[PATCH 0/4] ARM: Support KFENCE feature
Kefeng Wang
wangkefeng.wang at huawei.com
Wed Aug 25 02:21:12 PDT 2021
The patch 1~3 is to support KFENCE feature on ARM.
NOTE:
The context of patch2/3 changes in arch/arm/mm/fault.c is based on link[1],
which make some refactor and cleanup about page fault.
kfence_test is not useful when kfence is not enabled, skip kfence test
when kfence not enabled in patch4.
I tested the kfence_test on ARM QEMU with or without ARM_LPAE and all passed.
[1] https://lore.kernel.org/linux-arm-kernel/20210610123556.171328-1-wangkefeng.wang@huawei.com/
Kefeng Wang (4):
ARM: mm: Provide set_memory_valid()
ARM: mm: Provide is_write_fault()
ARM: Support KFENCE for ARM
mm: kfence: Only load kfence_test when kfence is enabled
arch/arm/Kconfig | 1 +
arch/arm/include/asm/kfence.h | 52 +++++++++++++++++++++++++++++++
arch/arm/include/asm/set_memory.h | 5 +++
arch/arm/mm/fault.c | 16 ++++++++--
arch/arm/mm/pageattr.c | 41 ++++++++++++++++++------
include/linux/kfence.h | 2 ++
mm/kfence/core.c | 8 +++++
mm/kfence/kfence_test.c | 2 ++
8 files changed, 114 insertions(+), 13 deletions(-)
create mode 100644 arch/arm/include/asm/kfence.h
--
2.26.2
More information about the linux-arm-kernel
mailing list