kasan-dont-run-tests-when-kasan-is-not-enabled.patch removed from -mm tree
The patch titled
Subject: kasan: don't run tests when KASAN is not enabled
has been removed from the -mm tree. Its filename was
kasan-dont-run-tests-when-kasan-is-not-enabled.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: kasan: don't run tests when KASAN is not enabled
Don't run KASAN tests when it's disabled with kasan.mode=off to avoid corrupting kernel memory.
---
lib/test_kasan.c | 5 +++++ 1 file changed, 5 insertions(+)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-dont-run-tests-when-kasan-is-not-enabled +5 -0
@@ -47,6 +47,11 @@ static bool multishot;*/ static int kasan_test_init (struct kunit *test) { +if (!kasan_enabled ()) { +kunit_err (test,"can't run KASAN tests with KASAN disabled" ); +return -1 ; + } + multishot =kasan_save_enable_multi_shot ();kasan_set_tagging_report_once (false);return 0 ;
_
Patches currently in -mm which might be from [email protected] are
kfence-kasan-make-kfence-compatible-with-kasan-fix-2.patch kasan-mm-dont-save-alloc-stacks-twice.patch kasan-mm-optimize-kmalloc-poisoning.patch kasan-optimize-large-kmalloc-poisoning.patch kasan-clean-up-setting-free-info-in-kasan_slab_free.patch kasan-unify-large-kfree-checks.patch kasan-rework-krealloc-tests.patch kasan-mm-fail-krealloc-on-freed-objects.patch kasan-mm-optimize-krealloc-poisoning.patch kasan-ensure-poisoning-size-alignment.patch arm64-kasan-simplify-and-inline-mte-functions.patch kasan-inline-hw_tags-helper-functions.patch kasan-clarify-that-only-first-bug-is-reported-in-hw_tags.patch