Re: [PATCH] io_uring/bpf-ops: validate loop_step before registration
From: Jens Axboe
Date: Thu Nov 26 2026 - 11:19:06 EST
On Thu, 19 Nov 2026 11:59:29 +0000, Sechang Lim wrote:
> A struct_ops map with only ring_fd set leaves loop_step NULL. The
> struct_ops update path skips a zero program fd, and bpf_ring_ops does
> not validate the completed value. Without BPF_F_LINK, the update then
> calls bpf_io_reg(), where io_install_bpf() triggers a kernel warning
> before returning -EINVAL. With BPF_F_LINK, the warning occurs when the
> link is created.
>
> [...]
Applied, thanks!
[1/1] io_uring/bpf-ops: validate loop_step before registration
commit: ba0084f1402bdf2946282290a3fb0af8f3544759
Best regards,
--
Jens Axboe