[PATCH RFC 0/4] Hazard-pointer torture test

From: Paul E. McKenney

Date: Thu May 07 2026 - 12:53:18 EST


Hello!

This RFC series is the beginnings of a hazard-pointer torture-test module.

1. Add a hazptrtorture.c torture test.

2. Add testing of on-stack hazptr_ctx structures.

3. Add microsecond-scale sleep in readers.

4. Enable system-independent CPU overcommit.

Future extensions include cross-kthread and cross-context hazard-pointer
acquisition/release, along with who knows what all else.

Thanx, Paul

------------------------------------------------------------------------

b/include/linux/torture.h | 2
b/kernel/rcu/Kconfig.debug | 12
b/kernel/rcu/Makefile | 1
b/kernel/rcu/hazptrtorture.c | 684 ++++++++++
b/kernel/rcu/update.c | 3
b/tools/testing/selftests/rcutorture/bin/kvm.sh | 6
b/tools/testing/selftests/rcutorture/configs/hazptr/CFLIST | 2
b/tools/testing/selftests/rcutorture/configs/hazptr/CFcommon | 2
b/tools/testing/selftests/rcutorture/configs/hazptr/NOPREEMPT | 17
b/tools/testing/selftests/rcutorture/configs/hazptr/NOPREEMPT.boot | 1
b/tools/testing/selftests/rcutorture/configs/hazptr/PREEMPT | 14
b/tools/testing/selftests/rcutorture/configs/hazptr/ver_functions.sh | 40
kernel/rcu/hazptrtorture.c | 55
13 files changed, 823 insertions(+), 16 deletions(-)