Skip to content

ARM: Support KFENCE feature

Kefeng Wang linux-arm-kernel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 1 replyIn review
  2. v2 posting 1/23 patches 6 repliesSuperseded
  3. v14 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- adjust is_write_fault() position in patch2 not patch3, sugguested Alexander
- Add ACKed from Marco
- rebased on v5.16-rc1

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: mm: Provide set_memory_valid()arch/arm/include/asm/set_memory.h arch/arm/mm/pageattr.c+33 -100 replies
2/3ARM: mm: Provide is_write_fault()arch/arm/mm/fault.c+6 -10 replies
3/3ARM: Support KFENCE for ARMarch/arm/Kconfig arch/arm/include/asm/kfence.h arch/arm/mm/fault.c+61 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMarco Elver
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH Resend v2 0/3] ARM: Support KFENCE feature

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

V2 Resend:
- adjust is_write_fault() position in patch2 not patch3, sugguested Alexander
- Add ACKed from Marco
- rebased on v5.16-rc1

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/[email protected]/

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
Signature · 7 lines
2.26.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel