Skip to content

kasan: add clang support

Greg Hackmann linux-kbuild linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kasan: support alloca() poisoninglib/test_kasan.c mm/kasan/kasan.c mm/kasan/kasan.h +1 more+59 -07 replies
2/4kasan: added functions for unpoisoning stack variablesmm/kasan/kasan.c+15 -02 replies
3/4kasan: support LLVM-style asan parametersscripts/Makefile.kasan+9 -11 reply
4/4kasan: add compiler support for clanginclude/linux/compiler-clang.h+10 -02 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDmitry Vyukov
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] kasan: add clang support

This patch series adds support for building KASAN-enabled kernels with clang. This mostly involves adding callbacks for a couple of new features in LLVM's AddressSanitizer implementation. We also need to probe for the (slightly different) CFLAGS used to configure ASAN with clang.

*** BLURB HERE ***

Alexander Potapenko (1):
kasan: added functions for unpoisoning stack variables

Greg Hackmann (3):
kasan: support alloca() poisoning
kasan: support LLVM-style asan parameters
kasan: add compiler support for clang

 include/linux/compiler-clang.h | 10 ++++++++++
 lib/test_kasan.c               | 22 ++++++++++++++++++++++
 mm/kasan/kasan.c               | 41 +++++++++++++++++++++++++++++++++++++++++
 mm/kasan/kasan.h               |  8 ++++++++
 mm/kasan/report.c              |  3 +++
 scripts/Makefile.kasan         | 10 +++++++++-
 6 files changed, 93 insertions(+), 1 deletion(-)
Signature · 1 line
2.13.2.725.g09c95d1e9-goog