diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2023-11-20 18:47:18 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-10 16:51:47 -0800 |
commit | f816938bff1f772ce7949e5747734be27ecf7f4d (patch) | |
tree | 2a1786cbbe14054f26dbcb21cbe588d845e629b1 /lib/stackdepot.c | |
parent | 7d88e4f768b0fdb85b68f0e4679bb10fdb05c808 (diff) | |
download | linux-f816938bff1f772ce7949e5747734be27ecf7f4d.tar.gz linux-f816938bff1f772ce7949e5747734be27ecf7f4d.tar.bz2 linux-f816938bff1f772ce7949e5747734be27ecf7f4d.zip |
kasan: use stack_depot_put for tag-based modes
Make tag-based KASAN modes evict stack traces from the stack depot once
they are evicted from the stack ring.
Internally, pass STACK_DEPOT_FLAG_GET to stack_depot_save_flags (via
kasan_save_stack) to increment the refcount when saving a new entry to
stack ring and call stack_depot_put when removing an entry from stack
ring.
Link: https://lkml.kernel.org/r/b4773e5c1b0b9df6826ec0b65c1923feadfa78e5.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions