]> git.baikalelectronics.ru Git - kernel.git/commit
kasan: better invalid/double-free report header
authorAndrey Konovalov <andreyknvl@google.com>
Sat, 10 Sep 2022 23:25:30 +0000 (01:25 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:02 +0000 (14:03 -0700)
commit07f3a53de764ab27e05270757889cda09a988c5e
treee8f4b53dbd4747d25bc47dd9783a1d5def152651
parentdf1b614d55663cb045c6bf28ff5e1cb1e55d6c3d
kasan: better invalid/double-free report header

Update the report header for invalid- and double-free bugs to contain the
address being freed:

BUG: KASAN: invalid-free in kfree+0x280/0x2a8
Free of addr ffff00000beac001 by task kunit_try_catch/99

Link: https://lkml.kernel.org/r/fce40f8dbd160972fe01a1ff39d0c426c310e4b7.1662852281.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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/report.c
mm/kasan/report_generic.c
mm/kasan/report_tags.c