[PATCH] arm64/mm: Add warning for outside range requests in vmemmap_populate()

Will Deacon will at kernel.org
Wed Jan 20 08:01:03 EST 2021


On Tue, 5 Jan 2021 16:54:11 +0530, Anshuman Khandual wrote:
> vmemmap_populate() does not validate the requested vmemmap address range to
> be inside the platform assigned space i.e [VMEMMAP_START..VMEMMAP_END] for
> vmemmap. Instead it would just go ahead and create the mapping which might
> then overlap with other sections in the kernel virtual address space.
> 
> Just adding an warning here for range overrun which would help detect the
> problem earlier on, before a potential struct page corruption. This also
> makes vmemmap_populate() symmetrical with vmemmap_free() which already has
> a similar warning.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/mm: Add warning for outside range requests in vmemmap_populate()
      https://git.kernel.org/arm64/c/edb739eed8f3

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list