Thread (4 messages) flat view 4 messages, 2 authors, 2021-01-27

Re: [PATCH] arm64: Fix kernel address detection of __is_lm_address()

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-01-27 13:13:23
Also in: lkml, stable

On Tue, 26 Jan 2021 13:40:56 +0000, Vincenzo Frascino wrote:
Currently, the __is_lm_address() check just masks out the top 12 bits
of the address, but if they are 0, it still yields a true result.
This has as a side effect that virt_addr_valid() returns true even for
invalid virtual addresses (e.g. 0x0).

Fix the detection checking that it's actually a kernel address starting
at PAGE_OFFSET.
Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: Fix kernel address detection of __is_lm_address()
      https://git.kernel.org/arm64/c/519ea6f1c82f

-- 
Catalin


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help