Re: [PATCH 5.15.y] io_uring: prevent opcode speculation

From: Sasha Levin

Date: Wed May 20 2026 - 10:54:03 EST


> From: Pavel Begunkov <asml.silence@xxxxxxxxx>
>
> [ Upstream commit 1e988c3fe1264708f4f92109203ac5b1d65de50b ]
>
> sqe->opcode is used for different tables, make sure we santitise it
> against speculations.
[...]
> [ Use req->opcode instead of opcode here. ]
> Signed-off-by: Robert Garcia <rob_garcia@xxxxxxx>

Thanks for the backport. Upstream 1e988c3fe126 is currently queued or
present on 6.6, 6.12, 6.18 and 7.0, but it is missing from both 5.15
and 6.1 - we should not skip 6.1 when backporting a Cc:stable fix to
5.15.

Could you send a matching backport for 6.1 as well? Once we have
coverage from 6.1 onwards I'll queue both together.

--
Thanks,
Sasha