Skip to content

KASAN core changes for ppc64 radix KASAN

Daniel Axtens linux-mm linuxppc-dev lkml 15 versions – Applied

Status from this message: [merged] kasan-use-max_ptrs_per_-for-early-shadow-tables.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest4 patches 2 repliesApplied 4/4
  2. v154 patches 6 repliesSuperseded
  3. v144 patches 7 repliesSuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v133 patches4 repliesSuperseded
v126 patches5 repliesSuperseded
v116 patches16 repliesSuperseded
v106 patches2 repliesSuperseded
v96 patches8 repliesSuperseded
v8 posting 2/24 patches0 repliesSuperseded
v8 posting 1/24 patches0 repliesSuperseded
v74 patches5 repliesSuperseded
v64 patches4 repliesSuperseded
v54 patches2 repliesSuperseded
v44 patches6 repliesSuperseded
v33 patches8 repliesSuperseded

Patches in v16 All 4 applied

#Subject and filesSizeRepliesApplied
1/4kasan: allow an architecture to disable inline instrumentationlib/Kconfig.kasan+12 -01 replyApplied
2/4kasan: allow architectures to provide an outline readiness checkmm/kasan/common.c mm/kasan/generic.c mm/kasan/kasan.h +1 more+18 -01 replyApplied
3/4mm: define default MAX_PTRS_PER_* in include/pgtable.harch/s390/include/asm/pgtable.h include/asm-generic/pgtable-nop4d.h include/linux/pgtable.h+22 -30 repliesApplied
4/4kasan: use MAX_PTRS_PER_* for early shadow tablesinclude/linux/kasan.h mm/kasan/init.c+6 -60 repliesApplied

Reviews trailers per patch

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

PatchMarco ElverAndrey KonovalovChristophe LeroyBalbir Singh
1/4R-b R-b
2/4R-b R-b
3/4R-b A-b R-b
4/4R-b R-b R-b R-b

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

Read the v16 thread

Cover letter [PATCH v16 0/4] KASAN core changes for ppc64 radix KASAN

Building on the work of Christophe, Aneesh and Balbir, I've ported KASAN to 64-bit Book3S kernels running on the Radix MMU. I've been trying this for a while, but we keep having collisions between the kasan code in the mm tree and the code I want to put in to the ppc tree.

This series just contains the kasan core changes that we need. These can go in via the mm tree. I will then propose the powerpc changes for a later cycle. (The most recent RFC for the powerpc changes is in the v12 series at
https://lore.kernel.org/linux-mm/[email protected]/
)

v16 applies to next-20210622. There should be no noticeable changes to other platforms.

Changes since v15: Review comments from Andrey. Thanks Andrey.

Changes since v14: Included a bunch of Reviewed-by:s, thanks Christophe and Marco. Cleaned up the build time error #ifdefs, thanks Christophe.

Changes since v13: move the MAX_PTR_PER_* definitions out of kasan and into pgtable.h. Add a build time error to hopefully prevent any confusion about when the new hook is applicable. Thanks Marco and Christophe.

Changes since v12: respond to Marco's review comments - clean up the help for ARCH_DISABLE_KASAN_INLINE, and add an arch readiness check to the new granule poisioning function. Thanks Marco.

Daniel Axtens (4):
kasan: allow an architecture to disable inline instrumentation
kasan: allow architectures to provide an outline readiness check
mm: define default MAX_PTRS_PER_* in include/pgtable.h
kasan: use MAX_PTRS_PER_* for early shadow tables

 arch/s390/include/asm/pgtable.h     |  2 --
 include/asm-generic/pgtable-nop4d.h |  1 -
 include/linux/kasan.h               |  6 +++---
 include/linux/pgtable.h             | 22 ++++++++++++++++++++++
 lib/Kconfig.kasan                   | 12 ++++++++++++
 mm/kasan/common.c                   |  3 +++
 mm/kasan/generic.c                  |  3 +++
 mm/kasan/init.c                     |  6 +++---
 mm/kasan/kasan.h                    |  6 ++++++
 mm/kasan/shadow.c                   |  6 ++++++
 10 files changed, 58 insertions(+), 9 deletions(-)
Signature · 1 line
2.30.2