[RFC PATCH bpf-next 12/12] selftests/bpf: exercise the lockless path ancestor iterator

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Oct 6 00:25:35 UTC 2026


> Walk the same ancestry four ways and require the position counts to
> agree: lockless from a non-sleepable program, where the RCU critical
> section is implicit; lockless under an explicit bpf_rcu_read_lock();
> referenced; and the hybrid that walks lockless to the second position,
> hands it over to a referenced iteration, and resumes there - the
> escalated position therefore being walked twice, once per mode.
> 
> The sleepable work the escalation exists for (d_path, an xattr read
> through the position's dentry) runs on the resumed iteration's first
> position, after bpf_rcu_read_unlock(), which is the only place a
> sleepable kfunc can run at all.
> 
> Signed-off-by: Justin Suess <utilityemal77 at gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261006002020.2890858-1-utilityemal77@gmail.com?part=12




More information about the Linux-security-module-archive mailing list