]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/bpf_filter: use bpf_prog_run_pin_on_cpu() to prevent migration
authorJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:20:14 +0000 (14:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:20:14 +0000 (14:20 -0600)
commit785d4625d3e05bb0ac536ff4fd74d096cfe51714
treefa4189db884015d34771540376481ffb19d9deff
parent3306a589e598b50a5bbdfe837371670b507043c0
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: d42eb05e60fe ("io_uring: add support for BPF filtering for opcode restrictions")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/bpf_filter.c