* [folded-merged] kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v2.patch removed from -mm tree
@ 2025-09-13 22:07 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-09-13 22:07 UTC (permalink / raw)
To: mm-commits, vincenzo.frascino, vbabka, ryabinin.a.a, glider,
dvyukov, andreyknvl, jannh, akpm
The quilt patch titled
Subject: kasan: add test for SLAB_TYPESAFE_BY_RCU quarantine skipping
has been removed from the -mm tree. Its filename was
kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v2.patch
This patch was dropped because it was folded into kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping.patch
------------------------------------------------------
From: Jann Horn <jannh@google.com>
Subject: kasan: add test for SLAB_TYPESAFE_BY_RCU quarantine skipping
Date: Tue, 29 Jul 2025 18:49:40 +0200
- disable migration to ensure that all SLUB operations use the same
percpu state (vbabka)
- use EXPECT instead of ASSERT for pointer equality check so that
expectation failure doesn't terminate the test with migration still
disabled
Link: https://lkml.kernel.org/r/20250729-kasan-tsbrcu-noquarantine-test-v2-1-d16bd99309c9@google.com
Signed-off-by: Jann Horn <jannh@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/kasan/kasan_test_c.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
--- a/mm/kasan/kasan_test_c.c~kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v2
+++ a/mm/kasan/kasan_test_c.c
@@ -1088,23 +1088,25 @@ static void kmem_cache_rcu_reuse(struct
NULL);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cache);
+ migrate_disable();
p = kmem_cache_alloc(cache, GFP_KERNEL);
if (!p) {
kunit_err(test, "Allocation failed: %s\n", __func__);
- kmem_cache_destroy(cache);
- return;
+ goto out;
}
kmem_cache_free(cache, p);
p2 = kmem_cache_alloc(cache, GFP_KERNEL);
if (!p2) {
kunit_err(test, "Allocation failed: %s\n", __func__);
- kmem_cache_destroy(cache);
- return;
+ goto out;
}
- KUNIT_ASSERT_PTR_EQ(test, p, p2);
+ KUNIT_EXPECT_PTR_EQ(test, p, p2);
kmem_cache_free(cache, p2);
+
+out:
+ migrate_enable();
kmem_cache_destroy(cache);
}
_
Patches currently in -mm which might be from jannh@google.com are
kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping.patch
kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v3.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-13 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-13 22:07 [folded-merged] kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v2.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.