Skip to content
Commit b77fb25d authored by Kenny Yu's avatar Kenny Yu Committed by Alexei Starovoitov
Browse files

bpf: Add support for bpf iterator programs to use sleepable helpers



This patch allows bpf iterator programs to use sleepable helpers by
changing `bpf_iter_run_prog` to use the appropriate synchronization.
With sleepable bpf iterator programs, we can no longer use
`rcu_read_lock()` and must use `rcu_read_lock_trace()` instead
to protect the bpf program.

Signed-off-by: default avatarKenny Yu <kennyyu@fb.com>
Acked-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220124185403.468466-2-kennyyu@fb.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent caaba961
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment