Searched hist:"476 b1dc2bc34febc620b8a6cd459f0b3d9950c34" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/kasan/ |
H A D | report.c | diff 476b1dc2bc34febc620b8a6cd459f0b3d9950c34 Thu Mar 24 20:12:28 CDT 2022 Andrey Konovalov <andreyknvl@google.com> kasan: simplify async check in end_report()
Currently, end_report() does not call trace_error_report_end() for bugs detected in either async or asymm mode (when kasan_async_fault_possible() returns true), as the address of the bad access might be unknown.
However, for asymm mode, the address is known for faults triggered by read operations.
Instead of using kasan_async_fault_possible(), simply check that the addr is not NULL when calling trace_error_report_end().
Link: https://lkml.kernel.org/r/1c8ce43f97300300e62c941181afa2eb738965c5.1646237226.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Marco Elver <elver@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|