kasan: support kasan.stacktrace for SW_TAGS
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 5 Sep 2022 21:05:46 +0000 (23:05 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:01 +0000 (14:03 -0700)
commit7ebfce33125100e3f0c5e059845a019a1401433d
treeb02449fd4156bd3e43c1e12dd407a096b21b0816
parent7bc0584e5d2a687c0855a1b3dec9a6d6857d757b
kasan: support kasan.stacktrace for SW_TAGS

Add support for the kasan.stacktrace command-line argument for Software
Tag-Based KASAN.

The following patch adds a command-line argument for selecting the stack
ring size, and, as the stack ring is supported by both the Software and
the Hardware Tag-Based KASAN modes, it is natural that both of them have
support for kasan.stacktrace too.

Link: https://lkml.kernel.org/r/3b43059103faa7f8796017847b7d674b658f11b5.1662411799.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/dev-tools/kasan.rst
mm/kasan/hw_tags.c
mm/kasan/kasan.h
mm/kasan/sw_tags.c
mm/kasan/tags.c