[PATCH bpf-next v1 11/11] selftests/bpf: exercise the lockless path ancestor iterator
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Oct 13 16:57:37 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 on the escalated
> position) 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/20261013164800.2906577-1-utilityemal77@gmail.com?part=11
More information about the Linux-security-module-archive
mailing list