[PATCH mm 00/22] kasan: report clean-ups and improvements

From: andrey . konovalov
Date: Wed Mar 02 2022 - 11:36:56 EST


From: Andrey Konovalov <andreyknvl@xxxxxxxxxx>

A number of clean-up patches for KASAN reporting code.

Most are non-functional and only improve readability.

The patches go on top of mm.

Andrey Konovalov (22):
kasan: drop addr check from describe_object_addr
kasan: more line breaks in reports
kasan: rearrange stack frame info in reports
kasan: improve stack frame info in reports
kasan: print basic stack frame info for SW_TAGS
kasan: simplify async check in end_report
kasan: simplify kasan_update_kunit_status and call sites
kasan: check CONFIG_KASAN_KUNIT_TEST instead of CONFIG_KUNIT
kasan: move update_kunit_status to start_report
kasan: move disable_trace_on_warning to start_report
kasan: split out print_report from __kasan_report
kasan: simplify kasan_find_first_bad_addr call sites
kasan: restructure kasan_report
kasan: merge __kasan_report into kasan_report
kasan: call print_report from kasan_report_invalid_free
kasan: move and simplify kasan_report_async
kasan: rename kasan_access_info to kasan_report_info
kasan: add comment about UACCESS regions to kasan_report
kasan: respect KASAN_BIT_REPORTED in all reporting routines
kasan: reorder reporting functions
kasan: move and hide kasan_save_enable/restore_multi_shot
kasan: disable LOCKDEP when printing reports

include/linux/kasan.h | 4 -
mm/kasan/kasan.h | 44 ++++--
mm/kasan/report.c | 312 ++++++++++++++++++++++----------------
mm/kasan/report_generic.c | 34 ++---
mm/kasan/report_hw_tags.c | 1 +
mm/kasan/report_sw_tags.c | 15 ++
mm/kasan/report_tags.c | 2 +-
7 files changed, 241 insertions(+), 171 deletions(-)

--
2.25.1