linux/tools/testing
Jakub Kicinski 7a1ff3545a selftests: net: py: ensure defer() is only used within a test case
I wasted a couple of hours recently after accidentally adding
a defer() from within a function which itself was called as
part of defer(). This leads to an infinite loop of defer().
Make sure this cannot happen and raise a helpful exception.

I understand that the pair of _ksft_defer_arm() calls may
not be the most Pythonic way to implement this, but it's
easy enough to understand.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20260108225257.2684238-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-01-10 15:11:59 -08:00
..
crypto/chacha20-s390
cxl
fault-injection
ktest ktest.pl: Fix uninitialized var in config-bisect.pl 2025-12-03 18:25:18 -05:00
kunit
memblock
nvdimm
radix-tree idr: fix idr_alloc() returning an ID out of range 2025-12-23 11:23:11 -08:00
rbtree
scatterlist
selftests selftests: net: py: ensure defer() is only used within a test case 2026-01-10 15:11:59 -08:00
shared
vma mm: introduce VMA flags bitmap type 2025-11-29 10:41:09 -08:00
vsock vsock/test: Test setting SO_ZEROCOPY on accept()ed socket 2026-01-05 16:14:51 -08:00