Skip to content

mm/kasan: remove kasan_arch_is_ready()

Baoquan He linux-mm linux-um linuxppc-dev lkml loongarch 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arch/loongarch: remove kasan_arch_is_ready()arch/loongarch/include/asm/kasan.h arch/loongarch/mm/kasan_init.c+3 -140 replies
2/4arch/powerpc: remove kasan_arch_is_ready()arch/powerpc/include/asm/kasan.h arch/powerpc/mm/kasan/init_book3s_64.c+0 -170 replies
3/4arch/um: remove kasan_arch_is_ready()arch/um/include/asm/kasan.h arch/um/kernel/mem.c+7 -40 replies
4/4mm/kasan: remove kasan_arch_is_ready()mm/kasan/common.c mm/kasan/generic.c mm/kasan/kasan.h +1 more+3 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mm/kasan: remove kasan_arch_is_ready()

These are made on top of below patchset in which all functional functions will be skipped if kasan is disabled by checking kasan_enabled(). With the changes, kasan_arch_is_ready() can be easily cleaned up to simplify code.

[PATCH v2 00/12] mm/kasan: make kasan=on|off work for all three modes
https://lore.kernel.org/all/[email protected]/T/#u

The 1st three patches are from Sabyrzhan Tasbolatov's patchset. After clean up the kasan_arch_is_ready() definition in loongarch, power and UM, we can simply remove kasan_arch_is_ready() checking in mm/kasan since all the checking has been covered by kasan_enabled().

[PATCH v6 0/2] kasan: unify kasan_enabled() and remove arch-specific implementations
https://lore.kernel.org/all/[email protected]/T/#u

Test:
======
I have tested the effect of this patchset on loongarch, power and UM. Will try to find machine to do testing.

Baoquan He (1):
mm/kasan: remove kasan_arch_is_ready()

Sabyrzhan Tasbolatov (3):
arch/loongarch: remove kasan_arch_is_ready()
arch/powerpc: remove kasan_arch_is_ready()
arch/um: remove kasan_arch_is_ready()

 arch/loongarch/include/asm/kasan.h     |  7 -------
 arch/loongarch/mm/kasan_init.c         | 10 +++-------
 arch/powerpc/include/asm/kasan.h       | 13 -------------
 arch/powerpc/mm/kasan/init_book3s_64.c |  4 ----
 arch/um/include/asm/kasan.h            |  5 ++---
 arch/um/kernel/mem.c                   |  6 +++++-
 mm/kasan/common.c                      |  9 +++------
 mm/kasan/generic.c                     |  9 ---------
 mm/kasan/kasan.h                       |  6 ------
 mm/kasan/shadow.c                      | 18 ------------------
 10 files changed, 13 insertions(+), 74 deletions(-)
Signature · 1 line
2.41.0