mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 14:48:50 +01:00
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.
Fixes:
|
||
|---|---|---|
| .. | ||
| asm | ||
| uapi/asm | ||