[PATCH] kaslr: rename physmem_end and PHYSMEM_END to direct_map_physmem_end

David Hildenbrand david at redhat.com
Mon Oct 14 04:46:04 PDT 2024


On 09.10.24 04:50, John Hubbard wrote:
> For clarity. It's increasingly hard to reason about the code, when KASLR
> is moving around the boundaries. In this case where KASLR is randomizing
> the location of the kernel image within physical memory, the maximum
> number of address bits for physical memory has not changed.
> 
> What has changed is the ending address of memory that is allowed to be
> directly mapped by the kernel.
> 
> Let's name the variable, and the associated macro accordingly.
> 
> Also, enhance the comment above the direct_map_physmem_end definition,
> to further clarify how this all works.
> 
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Alistair Popple <apopple at nvidia.com>
> Cc: Jordan Niethe <jniethe at nvidia.com>
> Cc: David Hildenbrand <david at redhat.com>
> Signed-off-by: John Hubbard <jhubbard at nvidia.com>
> ---
> 
> David Hildenbrand, I recall you had an unanswered question in this
> vicinity [1] when tglx's recent kaslr fix was being reviewed. Maybe this
> will help with that.

Yes, that makes it clearer for me, thanks

Acked-by: David Hildenbrand <david at redhat.com>

-- 
Cheers,

David / dhildenb




More information about the linux-arm-kernel mailing list