Skip to content

kasan: support stack instrumentation for tag-based mode

Andrey Konovalov linux-efi linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review 3 of 5 applied
  2. v14 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add efi patch to undefined reference to `efi_enter_virtual_mode'.
- Reorder attributes for start_kernel().

Patches in v2 3 of 5 applied

#Subject and filesSizeRepliesApplied
1/5kasan: don't tag stacks allocated with pageallockernel/fork.c+2 -10 replies
2/5efi: provide empty efi_enter_virtual_mode implementationinclude/linux/efi.h+4 -01 replyApplied
3/5kasan, arm64: don't instrument functions that enable kasanarch/arm64/kernel/setup.c init/main.c+2 -22 replies
4/5kasan: allow enabling stack tagging for tag-based modescripts/Makefile.kasan+2 -10 repliesApplied
5/5kasan: adjust kasan_stack_oob for tag-based modelib/test_kasan.c+1 -10 repliesApplied

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchArd BiesheuvelCatalin Marinas
1/5
2/5A-b
3/5A-b
4/5
5/5

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 v2 0/5] kasan: support stack instrumentation for tag-based mode

This goes on top of Walter's patch titled "kasan: fix KASAN unit tests for tag-based KASAN" (already in mm tree).

Bugzilla link: https://bugzilla.kernel.org/show_bug.cgi?id=203497

Thanks to Walter Wu for debugging and testing.

Changes v1 -> v2:
- Add efi patch to undefined reference to `efi_enter_virtual_mode'.
- Reorder attributes for start_kernel().

Andrey Konovalov (5):
kasan: don't tag stacks allocated with pagealloc
efi: provide empty efi_enter_virtual_mode implementation kasan, arm64: don't instrument functions that enable kasan
kasan: allow enabling stack tagging for tag-based mode
kasan: adjust kasan_stack_oob for tag-based mode

 arch/arm64/kernel/setup.c | 2 +-
 include/linux/efi.h       | 4 ++++
 init/main.c               | 2 +-
 kernel/fork.c             | 3 ++-
 lib/test_kasan.c          | 2 +-
 scripts/Makefile.kasan    | 3 ++-
 6 files changed, 11 insertions(+), 5 deletions(-)
Signature · 1 line
2.28.0.163.g6104cc2f0b6-goog