Skip to content

arm: kasan: support CONFIG_KASAN_VMALLOC

Lecopzer Chen linux-arm-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 2 repliesIn review
  2. v42 patches 0 repliesSuperseded
  3. v32 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches2 repliesSuperseded
v12 patches0 repliesSuperseded

Changes in v5 from the cover letter

    rebase on 5.18-rc4

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm: kasan: support CONFIG_KASAN_VMALLOCarch/arm/Kconfig arch/arm/mm/kasan_init.c+6 -10 replies
2/2arm: kconfig: fix MODULE_PLTS for KASAN with KASAN_VMALLOCarch/arm/Kconfig+1 -00 replies

Reviews trailers per patch

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

PatchLinus Walleij
1/2T-b R-b
2/2T-b R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/2] arm: kasan: support CONFIG_KASAN_VMALLOC

Since the framework of KASAN_VMALLOC is well-developed, It's easy to support for ARM that simply not to map shadow of VMALLOC area on kasan_init.

Since the virtual address of vmalloc for Arm is also between MODULE_VADDR and 0x100000000 (ZONE_HIGHMEM), which means the shadow address has already included between KASAN_SHADOW_START and KASAN_SHADOW_END.
Thus we need to change nothing for memory map of Arm.

This can fix ARM_MODULE_PLTS with KASan, support KASan for higmem and support CONFIG_VMAP_STACK with KASan.

Test on
1. Qemu with memory 2G and vmalloc=500M for 3G/1G mapping.
2. Qemu with memory 2G and vmalloc=500M for 3G/1G mapping + LPAE.
3. Qemu with memory 2G and vmalloc=500M for 2G/2G mapping.

v5:

    rebase on 5.18-rc4

v4:
rebase on 5.17-rc8.
remove simple doc for "arm: kasan: support CONFIG_KASAN_VMALLOC" rewrite the description for VMAP_STACK

https://lore.kernel.org/lkml/[email protected]/

v3:
rebase on 5.17-rc5.
Add simple doc for "arm: kasan: support CONFIG_KASAN_VMALLOC" Tweak commit message.

https://lore.kernel.org/lkml/[email protected]/

v2:

    rebase on 5.17-rc3

Lecopzer Chen (2):
arm: kasan: support CONFIG_KASAN_VMALLOC
arm: kconfig: fix MODULE_PLTS for KASAN with KASAN_VMALLOC

 arch/arm/Kconfig         | 2 ++
 arch/arm/mm/kasan_init.c | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 7 lines
2.18.0


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