public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ARM: Support KFENCE feature
@ 2021-11-03 13:38 Kefeng Wang
  2021-11-03 13:38 ` [PATCH v2 1/3] ARM: mm: Provide set_memory_valid() Kefeng Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Kefeng Wang @ 2021-11-03 13:38 UTC (permalink / raw)
  To: Russell King, linux-arm-kernel, linux-kernel
  Cc: Alexander Potapenko, Marco Elver, Dmitry Vyukov, Kefeng Wang

This patchset supports Kfence feature, tested the kfence_test on ARM QEMU
with or without ARM_LPAE and all passed.

V2:
- drop patch4 in v1, which is used a new way to skip kfence test
  see commit c40c6e593bf9 ("kfence: test: fail fast if disabled at boot")
- fix some issue about NO MMU
  - drop useless set_memory_valid() under no mmu
  - fix implicit declaration of function ‘is_write_fault’ if no mmu
- make KFENCE depends on !XIP_KERNEL, no tested with xip

v1:
https://lore.kernel.org/linux-arm-kernel/20210825092116.149975-1-wangkefeng.wang@huawei.com/

Kefeng Wang (3):
  ARM: mm: Provide set_memory_valid()
  ARM: mm: Provide is_write_fault()
  ARM: Support KFENCE for ARM

 arch/arm/Kconfig                  |  1 +
 arch/arm/include/asm/kfence.h     | 53 +++++++++++++++++++++++++++++++
 arch/arm/include/asm/set_memory.h |  1 +
 arch/arm/mm/fault.c               | 16 ++++++++--
 arch/arm/mm/pageattr.c            | 42 ++++++++++++++++++------
 5 files changed, 100 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/include/asm/kfence.h

-- 
2.26.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-11-04 12:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03 13:38 [PATCH v2 0/3] ARM: Support KFENCE feature Kefeng Wang
2021-11-03 13:38 ` [PATCH v2 1/3] ARM: mm: Provide set_memory_valid() Kefeng Wang
2021-11-03 13:38 ` [PATCH v2 2/3] ARM: mm: Provide is_write_fault() Kefeng Wang
2021-11-03 13:38 ` [PATCH v2 3/3] ARM: Support KFENCE for ARM Kefeng Wang
2021-11-03 16:22   ` Alexander Potapenko
2021-11-04  1:14     ` Kefeng Wang
2021-11-04  7:00 ` [PATCH v2 0/3] ARM: Support KFENCE feature Marco Elver
2021-11-04  7:17   ` Kefeng Wang
2021-11-04 12:12 ` Russell King (Oracle)
2021-11-04 12:38   ` Kefeng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox