aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test_kasan.c
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2022-09-05 23:05:48 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:03:02 -0700
commit1f538e1f2d294cf8a9486fb1a7d4d4f0d16e2b01 (patch)
tree90463481097a8961c6926c96f486f1ffdc80289c /lib/test_kasan.c
parentkasan: dynamically allocate stack ring entries (diff)
downloadwireguard-linux-1f538e1f2d294cf8a9486fb1a7d4d4f0d16e2b01.tar.xz
wireguard-linux-1f538e1f2d294cf8a9486fb1a7d4d4f0d16e2b01.zip
kasan: better identify bug types for tag-based modes
Identify the bug type for the tag-based modes based on the stack trace entries found in the stack ring. If a free entry is found first (meaning that it was added last), mark the bug as use-after-free. If an alloc entry is found first, mark the bug as slab-out-of-bounds. Otherwise, assign the common bug type. This change returns the functionalify of the previously dropped CONFIG_KASAN_TAGS_IDENTIFY. Link: https://lkml.kernel.org/r/13ce7fa07d9d995caedd1439dfae4d51401842f2.1662411800.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>
Diffstat (limited to 'lib/test_kasan.c')
0 files changed, 0 insertions, 0 deletions