[PATCH hazptr 0/4] Hazard pointer updates
From: Mathieu Desnoyers
Date: Sun Sep 27 2026 - 11:52:32 EST
Hi Paul,
This series applies on top of "hazptr: handle NULL address in
hazptr_detach" you have in your rcu dev tree.
This first patch addresses a race identified by Boqun Feng in the
two-phase wildcard scheme.
Patches 2-3 are prerequisites for using ptr_eq() in the 4th patch.
Those were discussed at length in a prior version of hazard pointer
patches.
Patch 4 introduces a "try acquire" helper to allow the fast path
to not rely on wildcards, while keeping the wildcard forward
progress guarantees in the acquire slow path, used on fast path
failure.
Thanks,
Mathieu
Mathieu Desnoyers (4):
hazptr: Fix two-phase hazptr_synchronize race with detach
compiler.h: Introduce ptr_eq() to preserve address dependency
Documentation: RCU: Refer to ptr_eq()
hazptr: Introduce "try acquire" fast path, fallback to overflow list
Cc: Paul E. McKenney <paulmck@xxxxxxxxxx>
Cc: Boqun Feng <boqun@xxxxxxxxxx>
Cc: Bradley Morgan <brads@xxxxxxxxxxxxxx>
Cc: Gary Guo <gary@xxxxxxxxxxx>
Cc: <rcu@xxxxxxxxxxxxxxx>
Cc: <lkmm@xxxxxxxxxxxxxxx>
Documentation/RCU/rcu_dereference.rst | 38 +++++++-
include/linux/compiler.h | 63 ++++++++++++
include/linux/hazptr.h | 47 +++++----
kernel/hazptr.c | 135 +++++++++++++++-----------
4 files changed, 203 insertions(+), 80 deletions(-)
--
2.43.0