kmsan-make-the-tests-compatible-with-kmsanpanic=1.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: make the tests compatible with kmsan.panic=1
has been removed from the -mm tree. Its filename was
kmsan-make-the-tests-compatible-with-kmsanpanic=1.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ilya Leoshkevich <[email protected]>
Subject: kmsan: make the tests compatible with kmsan.panic=1
Date: Fri, 21 Jun 2024 13:34:46 +0200
It's useful to have both tests and kmsan.panic=1 during development, but right now the warnings, that the tests cause, lead to kernel panics.
Temporarily set kmsan.panic=0 for the duration of the KMSAN testing.
---
mm/kmsan/kmsan_test.c | 5 +++++ 1 file changed, 5 insertions(+)
mm/kmsan/kmsan_test.c renamed from mm/kmsan/kmsan_test.c~kmsan-make-the-tests-compatible-with-kmsanpanic=1 +5 -0
@@ -686,9 +686,13 @@ static void test_exit(struct kunit *test { } +static int orig_panic_on_kmsan; +static int kmsan_suite_init (struct kunit_suite *suite) {register_trace_console (probe_console,NULL ); + orig_panic_on_kmsan = panic_on_kmsan; + panic_on_kmsan =0 ;return 0 ; }
@@ -696,6 +700,7 @@ static void kmsan_suite_exit(struct kuni {unregister_trace_console (probe_console,NULL );tracepoint_synchronize_unregister (); + panic_on_kmsan = orig_panic_on_kmsan; }static struct kunit_suite kmsan_test_suite = {
_
Patches currently in -mm which might be from [email protected] are