Skip to content

RFC powerpc: KASAN for 64-bit 3s radix

Daniel Axtens linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7kasan: do not open-code addr_has_shadowmm/kasan/generic.c mm/kasan/tags.c+2 -40 replies
2/7kasan: allow architectures to manage the memory-to-shadow mappinginclude/linux/kasan.h mm/kasan/generic.c mm/kasan/generic_report.c +3 more+13 -70 replies
3/7kasan: allow architectures to provide an outline readiness checkinclude/linux/kasan.h mm/kasan/generic.c+7 -01 reply
4/7powerpc: KASAN for 64bit Book3Earch/powerpc/Kconfig arch/powerpc/Kconfig.debug arch/powerpc/include/asm/kasan.h +3 more+129 -11 reply
5/7kasan: allow arches to provide their own early shadow setupinclude/linux/kasan.h mm/kasan/init.c+12 -00 replies
6/7kasan: allow arches to hook into global registrationinclude/linux/kasan.h mm/kasan/generic.c+8 -02 replies
7/7powerpc: Book3S 64-bit "heavyweight" KASAN supportarch/powerpc/Kconfig arch/powerpc/Kconfig.debug arch/powerpc/Makefile +4 more+176 -00 replies

Reviews trailers per patch

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

PatchAndrew DonnellanDmitry VyukovBalbir Singh
1/7R-b R-b
2/7R-b
3/7Originally-by
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [RFC PATCH 0/7] powerpc: KASAN for 64-bit 3s radix

Building on the work of Christophe, Aneesh and Balbir, I've ported KASAN to Book3S radix.

It builds on top Christophe's work on 32bit, and includes my work for 64-bit Book3E (3S doesn't really depend on 3E, but it was handy to have around when developing and debugging).

This provides full inline instrumentation on radix, but does require that you be able to specify the amount of memory on the system at compile time. More details in patch 7.

Regards,
Daniel

Daniel Axtens (7):
kasan: do not open-code addr_has_shadow
kasan: allow architectures to manage the memory-to-shadow mapping
kasan: allow architectures to provide an outline readiness check
powerpc: KASAN for 64bit Book3E
kasan: allow arches to provide their own early shadow setup
kasan: allow arches to hook into global registration
powerpc: Book3S 64-bit "heavyweight" KASAN support

 arch/powerpc/Kconfig                         |   2 +
 arch/powerpc/Kconfig.debug                   |  17 ++-
 arch/powerpc/Makefile                        |   7 ++
 arch/powerpc/include/asm/kasan.h             | 116 +++++++++++++++++++
 arch/powerpc/kernel/prom.c                   |  40 +++++++
 arch/powerpc/mm/kasan/Makefile               |   2 +
 arch/powerpc/mm/kasan/kasan_init_book3e_64.c |  50 ++++++++
 arch/powerpc/mm/kasan/kasan_init_book3s_64.c |  67 +++++++++++
 arch/powerpc/mm/nohash/Makefile              |   5 +
 include/linux/kasan.h                        |  13 +++
 mm/kasan/generic.c                           |   9 +-
 mm/kasan/generic_report.c                    |   2 +-
 mm/kasan/init.c                              |  10 ++
 mm/kasan/kasan.h                             |   6 +-
 mm/kasan/report.c                            |   6 +-
 mm/kasan/tags.c                              |   3 +-
 16 files changed, 345 insertions(+), 10 deletions(-)
 create mode 100644 arch/powerpc/mm/kasan/kasan_init_book3e_64.c
 create mode 100644 arch/powerpc/mm/kasan/kasan_init_book3s_64.c
Signature · 1 line
2.19.1