Skip to content

Commit 785d462

Browse files
committed
io_uring/bpf_filter: use bpf_prog_run_pin_on_cpu() to prevent migration
Since the caller, __io_uring_run_bpf_filters(), doesn't prevent migration, it should use the migration disabling variant for running the BPF program. Fixes: d42eb05 ("io_uring: add support for BPF filtering for opcode restrictions") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3306a58 commit 785d462

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/bpf_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int __io_uring_run_bpf_filters(struct io_bpf_filter __rcu **filters,
8585
do {
8686
if (filter == &dummy_filter)
8787
return -EACCES;
88-
ret = bpf_prog_run(filter->prog, &bpf_ctx);
88+
ret = bpf_prog_run_pin_on_cpu(filter->prog, &bpf_ctx);
8989
if (!ret)
9090
return -EACCES;
9191
filter = filter->next;

0 commit comments

Comments
 (0)