Skip to content

KASAN support for RISC-V

Nick Hu linux-doc linux-mm linux-riscv lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 4 repliesIn review
  2. v33 patches 6 repliesSuperseded
  3. v22 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches18 repliesSuperseded

Changes in v4 from the cover letter

- Correct the commit log
- Fix the bug reported by Greentime Hu

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kasan: No KASAN's memmove check if archs don't have it.mm/kasan/common.c+2 -03 replies
2/3riscv: Add KASAN supportarch/riscv/Kconfig arch/riscv/include/asm/kasan.h arch/riscv/include/asm/pgtable-64.h +9 more+169 -40 replies
3/3kasan: Add riscv to KASAN documentation.Documentation/dev-tools/kasan.rst+2 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGreentime HuDmitry VyukovAndrey Ryabinin
SeriesT-b
1/3A-b A-b
2/3
3/3

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 v4 thread

Cover letter [PATCH v4 0/3] KASAN support for RISC-V

KASAN is an important runtime memory debugging feature in linux kernel which can detect use-after-free and out-of-bounds problems.

Changes in v2:
- Remove the porting of memmove and exclude the check instead.
- Fix some code noted by Christoph Hellwig

Changes in v3:
- Update the KASAN documentation to mention that riscv is supported.

Changes in v4:
- Correct the commit log
- Fix the bug reported by Greentime Hu

Nick Hu (3):
kasan: No KASAN's memmove check if archs don't have it.
riscv: Add KASAN support
kasan: Add riscv to KASAN documentation.

 Documentation/dev-tools/kasan.rst   |   4 +-
 arch/riscv/Kconfig                  |   1 +
 arch/riscv/include/asm/kasan.h      |  27 ++++++++
 arch/riscv/include/asm/pgtable-64.h |   5 ++
 arch/riscv/include/asm/string.h     |   9 +++
 arch/riscv/kernel/head.S            |   3 +
 arch/riscv/kernel/riscv_ksyms.c     |   2 +
 arch/riscv/kernel/setup.c           |   5 ++
 arch/riscv/kernel/vmlinux.lds.S     |   1 +
 arch/riscv/lib/memcpy.S             |   5 +-
 arch/riscv/lib/memset.S             |   5 +-
 arch/riscv/mm/Makefile              |   6 ++
 arch/riscv/mm/kasan_init.c          | 104 ++++++++++++++++++++++++++++
 mm/kasan/common.c                   |   2 +
 14 files changed, 173 insertions(+), 6 deletions(-)
 create mode 100644 arch/riscv/include/asm/kasan.h
 create mode 100644 arch/riscv/mm/kasan_init.c
Signature · 7 lines
2.17.0


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