Files
kernel_arpi/mm
Andrey Konovalov 468fcd9da3 UPSTREAM: 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>
(cherry picked from commit 1f538e1f2d294cf8a9486fb1a7d4d4f0d16e2b01)
Bug: 254721825
Change-Id: Ie2d88b80b3b0bd13131e7f9081cc595489bcabb6
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
2022-12-20 23:11:43 +00:00
..
2022-07-13 11:40:42 +02:00
2022-12-08 16:43:35 +00:00
2022-03-23 11:32:12 -07:00
2022-11-28 16:08:50 +00:00
2022-12-14 13:04:18 +01:00
2022-09-24 14:12:45 +02:00
2021-09-13 10:18:28 -07:00
2022-10-05 11:59:55 +02:00
2022-03-16 12:53:52 +01:00
2022-12-14 13:04:18 +01:00
2022-09-21 17:30:12 +02:00
2022-10-05 11:59:55 +02:00
2022-06-09 15:39:10 +02:00
2022-06-06 11:12:02 +02:00
2021-11-23 11:59:24 +05:30
2022-04-27 16:02:52 +00:00
2022-11-28 16:08:50 +00:00
2022-06-06 11:12:02 +02:00
2022-06-06 11:12:02 +02:00
2022-09-28 13:32:32 +02:00
2021-11-23 11:59:24 +05:30
2022-07-13 19:41:43 +02:00
2022-12-08 16:43:35 +00:00
2022-07-09 11:22:04 +02:00