linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH slab hotfixes 0/2] slub kunit tests fixes for 6.12
@ 2024-09-30  8:37 Vlastimil Babka
  2024-09-30  8:37 ` [PATCH slab hotfixes 1/2] mm, slab: suppress warnings in test_leak_destroy kunit test Vlastimil Babka
  2024-09-30  8:37 ` [PATCH slab hotfixes 2/2] kunit: move call to kunit_run_all_tests() after rcu_end_inkernel_boot() Vlastimil Babka
  0 siblings, 2 replies; 8+ messages in thread
From: Vlastimil Babka @ 2024-09-30  8:37 UTC (permalink / raw)
  To: Andrew Morton, Christoph Lameter, David Rientjes, Roman Gushchin,
	Hyeonggon Yoo, linux-kernel, linux-mm, Vlastimil Babka
  Cc: kernel test robot, Guenter Roeck, Paul E. McKenney, Boqun Feng,
	Uladzislau Rezki, rcu, David Gow, Rae Moar, linux-kselftest,
	kunit-dev, Brendan Higgins

The SLUB changes for 6.12 included new kunit tests that resulted in
noisy warnings, which we normally suppress, and a boot lockup in some
configurations in case the kunit tests are built-in.

The warnings are addressed in Patch 1.

The lockups I couldn't reproduce, but inspecting boot initialization
order makes me suspect the tests (which call few RCU operations) are
being executed a bit too early before RCU finishes initialization.
Moving the exection later seems to do the trick, so I'd like to ask
kunit folks to ack this change (Patch 2). If RCU folks have any
insights, it would be welcome too.

So these are now fixes for 4e1c44b3db79 ("kunit, slub: add
test_kfree_rcu() and test_leak_destroy()")
Once sent as a full patch, I also want to include comment fixes from
Ulad for kvfree_rcu_queue_batch():
https://lore.kernel.org/all/CA%2BKHdyV%3D0dpJX_v_tcuTQ-_ree-Yb9ch3F_HqfT4YnH8%3DzyWng@mail.gmail.com/

The plan is to take the fixes via slab tree for a 6.12 rcX.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
---
Vlastimil Babka (2):
      mm, slab: suppress warnings in test_leak_destroy kunit test
      kunit: move call to kunit_run_all_tests() after rcu_end_inkernel_boot()

 init/main.c      | 4 ++--
 lib/slub_kunit.c | 4 ++--
 mm/slab.h        | 6 ++++++
 mm/slab_common.c | 5 +++--
 mm/slub.c        | 5 +++--
 5 files changed, 16 insertions(+), 8 deletions(-)
---
base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
change-id: 20240930-b4-slub-kunit-fix-6fba4d1c1742

Best regards,
-- 
Vlastimil Babka <vbabka@suse.cz>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-03  6:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-30  8:37 [PATCH slab hotfixes 0/2] slub kunit tests fixes for 6.12 Vlastimil Babka
2024-09-30  8:37 ` [PATCH slab hotfixes 1/2] mm, slab: suppress warnings in test_leak_destroy kunit test Vlastimil Babka
2024-10-01  6:05   ` Hyeonggon Yoo
2024-09-30  8:37 ` [PATCH slab hotfixes 2/2] kunit: move call to kunit_run_all_tests() after rcu_end_inkernel_boot() Vlastimil Babka
2024-09-30 18:50   ` Guenter Roeck
2024-09-30 23:55     ` Guenter Roeck
2024-10-01  8:39       ` Vlastimil Babka
2024-10-03  6:52       ` David Gow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox