* [PATCH] io_uring/bpf_filter: use bpf_prog_run_pin_on_cpu() to prevent migration
@ 2026-03-10 14:44 Jens Axboe
0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2026-03-10 14:44 UTC (permalink / raw)
To: io-uring
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>
---
diff --git a/io_uring/bpf_filter.c b/io_uring/bpf_filter.c
index 28a23e92ee81..9cc44764e0ac 100644
--- a/io_uring/bpf_filter.c
+++ b/io_uring/bpf_filter.c
@@ -85,7 +85,7 @@ int __io_uring_run_bpf_filters(struct io_bpf_filter __rcu **filters,
do {
if (filter == &dummy_filter)
return -EACCES;
- ret = bpf_prog_run(filter->prog, &bpf_ctx);
+ ret = bpf_prog_run_pin_on_cpu(filter->prog, &bpf_ctx);
if (!ret)
return -EACCES;
filter = filter->next;
--
Jens Axboe
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-10 14:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 14:44 [PATCH] io_uring/bpf_filter: use bpf_prog_run_pin_on_cpu() to prevent migration Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox