mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
kasan: remove unnecessary sync argument from start_report()
commit 7ce0ea19d5 ("kasan: switch kunit tests to console tracepoints")
removed use of sync variable, thus removing that extra argument also.
Link: https://lkml.kernel.org/r/20260122041556.341868-1-maninder1.s@samsung.com
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Acked-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
57fdfd6423
commit
292ded180b
1 changed files with 4 additions and 4 deletions
|
|
@ -203,7 +203,7 @@ static inline void fail_non_kasan_kunit_test(void) { }
|
|||
|
||||
static DEFINE_RAW_SPINLOCK(report_lock);
|
||||
|
||||
static void start_report(unsigned long *flags, bool sync)
|
||||
static void start_report(unsigned long *flags)
|
||||
{
|
||||
fail_non_kasan_kunit_test();
|
||||
/* Respect the /proc/sys/kernel/traceoff_on_warning interface. */
|
||||
|
|
@ -543,7 +543,7 @@ void kasan_report_invalid_free(void *ptr, unsigned long ip, enum kasan_report_ty
|
|||
if (unlikely(!report_enabled()))
|
||||
return;
|
||||
|
||||
start_report(&flags, true);
|
||||
start_report(&flags);
|
||||
|
||||
__memset(&info, 0, sizeof(info));
|
||||
info.type = type;
|
||||
|
|
@ -581,7 +581,7 @@ bool kasan_report(const void *addr, size_t size, bool is_write,
|
|||
goto out;
|
||||
}
|
||||
|
||||
start_report(&irq_flags, true);
|
||||
start_report(&irq_flags);
|
||||
|
||||
__memset(&info, 0, sizeof(info));
|
||||
info.type = KASAN_REPORT_ACCESS;
|
||||
|
|
@ -615,7 +615,7 @@ void kasan_report_async(void)
|
|||
if (unlikely(!report_enabled()))
|
||||
return;
|
||||
|
||||
start_report(&flags, false);
|
||||
start_report(&flags);
|
||||
pr_err("BUG: KASAN: invalid-access\n");
|
||||
pr_err("Asynchronous fault: no details available\n");
|
||||
pr_err("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue