anolis-cloud-kernel/io_uring
Ferry Meng 786ea302b7 anolis: io_uring: fix out-of-bound io_op_defs access in io_init_req
ANBZ: #20231

There is a risk of out-of-bound access in io_init_req(), now fix it by
exchanging two judgements.

Fixes: 9753551b6f ("anolis: io_uring: fix IORING_OP_URING_CMD incompatible issue")
Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5034
2025-04-09 09:02:53 +00:00
..
Makefile
io-wq.c io_uring/io-wq: limit retrying worker initialisation 2024-12-02 05:13:28 +00:00
io-wq.h io_uring: break out of iowq iopoll on teardown 2023-10-02 11:28:13 +00:00
io_uring.c anolis: io_uring: fix out-of-bound io_op_defs access in io_init_req 2025-04-09 09:02:53 +00:00