]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kasan-add-test-for-slab_typesafe_by_rcu-quarantine-skipping-v3
authorJann Horn <jannh@google.com>
Thu, 14 Aug 2025 15:11:10 +0000 (17:11 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:35 +0000 (17:24 -0700)
make comment more verbose

Link: https://lkml.kernel.org/r/20250814-kasan-tsbrcu-noquarantine-test-v3-1-9e9110009b4e@google.com
Signed-off-by: Jann Horn <jannh@google.com>
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>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/kasan_test_c.c

index 47ff5cd941c717b5bc9f9c26bf18b6d63c32b574..4cf2b5f8d6c1459d8d2d0a2ea09574d0a92dbf84 100644 (file)
@@ -1076,6 +1076,8 @@ static void kmem_cache_rcu_uaf(struct kunit *test)
 /*
  * Check that SLAB_TYPESAFE_BY_RCU objects are immediately reused when
  * CONFIG_SLUB_RCU_DEBUG is off, and stay at the same address.
+ * Without this, KASAN builds would be unable to trigger bugs caused by
+ * SLAB_TYPESAFE_BY_RCU users handling reycled objects improperly.
  */
 static void kmem_cache_rcu_reuse(struct kunit *test)
 {