diff options
| author | Mike Rapoport <[email protected]> | 2022-09-21 07:48:41 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2022-09-29 16:59:28 +0000 |
| commit | b9dd04a20f81333e4b99662f1bbaf7c9e3a1e137 (patch) | |
| tree | ea68c3c97d9a48dedd5e4858e156f7d195ec2202 /lib/overflow_kunit.c | |
| parent | arm64: uaccess: simplify uaccess_mask_ptr() (diff) | |
| download | kernel-b9dd04a20f81333e4b99662f1bbaf7c9e3a1e137.tar.gz kernel-b9dd04a20f81333e4b99662f1bbaf7c9e3a1e137.zip | |
arm64/mm: fold check for KFENCE into can_set_direct_map()
KFENCE requires linear map to be mapped at page granularity, so that it
is possible to protect/unprotect single pages, just like with
rodata_full and DEBUG_PAGEALLOC.
Instead of repating
can_set_direct_map() || IS_ENABLED(CONFIG_KFENCE)
make can_set_direct_map() handle the KFENCE case.
This also prevents potential false positives in kernel_page_present()
that may return true for non-present page if CONFIG_KFENCE is enabled.
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
