diff options
author | Will Deacon <[email protected]> | 2019-08-13 15:52:23 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2019-08-14 13:00:57 +0100 |
commit | 68dd8ef321626f14ae9ef2039b7a03c707149489 (patch) | |
tree | 28f9129443d076c4ab76bd1e878110ed3c4791a2 /scripts/patch-kernel | |
parent | d2d73d2fef421ca0d447946cc430fdf5c4c5b06a (diff) |
arm64: memory: Fix virt_addr_valid() using __is_lm_address()
virt_addr_valid() is intended to test whether or not the passed address
is a valid linear map address. Unfortunately, it relies on
_virt_addr_is_linear() which is broken because it assumes the linear
map is at the top of the address space, which it no longer is.
Reimplement virt_addr_valid() using __is_lm_address() and remove
_virt_addr_is_linear() entirely. At the same time, ensure we evaluate
the macro parameter only once and move it within the __ASSEMBLY__ block.
Reported-by: Qian Cai <[email protected]>
Reported-by: Geert Uytterhoeven <[email protected]>
Tested-by: Steve Capper <[email protected]>
Reviewed-by: Steve Capper <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Fixes: 14c127c957c1 ("arm64: mm: Flip kernel VA space")
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions