[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161114567725.217634.54341340334446178.b4-ty@kernel.org>
Date: Wed, 20 Jan 2021 13:01:03 +0000
From: Will Deacon <will@...nel.org>
To: Anshuman Khandual <anshuman.khandual@....com>,
linux-arm-kernel@...ts.infradead.org
Cc: catalin.marinas@....com, kernel-team@...roid.com,
Will Deacon <will@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arm64/mm: Add warning for outside range requests in vmemmap_populate()
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
Powered by blists - more mailing lists