summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorHarry Yoo (Oracle) <harry@kernel.org>2026-04-06 18:09:07 +0900
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-04-07 11:21:32 +0200
commit92af129b4085cd561b59bfa1596653844cb82e4c (patch)
tree9cc268f83a1d4279cbe6ad2755e69f0c24c64f03 /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent7711207dcb9b7b74270ea0fb21daf91e4291f21d (diff)
lib/tests/slub_kunit: add a test case for {kmalloc,kfree}_nolock
Testing invocation of {kmalloc,kfree}_nolock() during kmalloc() or kfree() is tricky, and it is even harder to ensure that slowpaths are properly tested. Lack of such testing has led to late discovery of the bug fixed by commit a1e244a9f177 ("mm/slab: use prandom if !allow_spin"). Add a slub_kunit test that allocates and frees objects in a tight loop while a perf event triggers interrupts (NMI or hardirq depending on the arch) on the same task, invoking {kmalloc,kfree}_nolock() from the overflow handler. Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Harry Yoo (Oracle) <harry@kernel.org> Link: https://patch.msgid.link/20260406090907.11710-3-harry@kernel.org Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions