mm-kasan-do-not-panic-if-both-panic_on_warn-and-kasan_multishot-set.patch removed from -mm tree
The patch titled
Subject: mm: kasan: do not panic if both panic_on_warn and kasan_multishot set
has been removed from the -mm tree. Its filename was
mm-kasan-do-not-panic-if-both-panic_on_warn-and-kasan_multishot-set.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Gow <[email protected]>
Subject: mm: kasan: do not panic if both panic_on_warn and kasan_multishot set
KASAN errors will currently trigger a panic when panic_on_warn is set. This renders kasan_multishot useless, as further KASAN errors won't be reported if the kernel has already paniced. By making kasan_multishot disable this behaviour for KASAN errors, we can still have the benefits of panic_on_warn for non-KASAN warnings, yet be able to use kasan_multishot.
This is particularly important when running KASAN tests, which need to trigger multiple KASAN errors: previously these would panic the system if panic_on_warn was set, now they can run (and will panic the system should non-KASAN warnings show up).
---
mm/kasan/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/kasan/report.c renamed from mm/kasan/report.c~mm-kasan-do-not-panic-if-both-panic_on_warn-and-kasan_multishot-set +1 -1
@@ -95,7 +95,7 @@ static void end_report(unsigned long *flpr_err ("==================================================================\n" );add_taint (TAINT_BAD_PAGE ,LOCKDEP_NOW_UNRELIABLE );spin_unlock_irqrestore (&report_lock, *flags); -if (panic_on_warn) { +if (panic_on_warn && !test_bit (KASAN_BIT_MULTI_SHOT , &kasan_flags)) {/* * This thread may hit another WARN() in the panic path. * Resetting this prevents additional WARN() from panicking the
_
Patches currently in -mm which might be from [email protected] are