diff options
| author | 2022-01-24 10:54:00 -0800 | |
|---|---|---|
| committer | 2022-01-24 19:55:40 -0800 | |
| commit | b77fb25dcb342788d72ad7533163c34b8b823a1d (patch) | |
| tree | e2da08693c1dd3f620eb6f53d67e15145a8a63de /kernel/bpf/helpers.c | |
| parent | Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
| download | linux-dev-b77fb25dcb342788d72ad7533163c34b8b823a1d.tar.xz linux-dev-b77fb25dcb342788d72ad7533163c34b8b823a1d.zip | |
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: Kenny Yu <kennyyu@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220124185403.468466-2-kennyyu@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions
