Files
linux-stable-mirror/include
Andrii NakryikoandGreg Kroah-Hartman f020d8a03e bpf: Consistently use bpf_rcu_lock_held() everywhere
[ Upstream commit 48a97ffc6c ]

We have many places which open-code what's now is bpf_rcu_lock_held()
macro, so replace all those places with a clean and short macro invocation.
For that, move bpf_rcu_lock_held() macro into include/linux/bpf.h.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20251014201403.4104511-1-andrii@kernel.org
Stable-dep-of: 2f884d371f ("bpf: Allow LPM map access from sleepable BPF programs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-24 15:55:16 +02:00
..
2026-06-19 13:36:58 +02:00
2026-07-24 15:54:39 +02:00
2026-07-24 15:54:48 +02:00