Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/msg: initialise msg request opcode

It's risky to have msg request opcode set to garbage, so at least
initialise it to nop. Later we might want to add a user inaccessible
opcode for such cases.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9afe650fcb348414a4529d89f52eb8969ba06efd.1743190078.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
9cc0bbda b0e9570a

+1
+1
io_uring/msg_ring.c
··· 93 93 kmem_cache_free(req_cachep, req); 94 94 return -EOWNERDEAD; 95 95 } 96 + req->opcode = IORING_OP_NOP; 96 97 req->cqe.user_data = user_data; 97 98 io_req_set_res(req, res, cflags); 98 99 percpu_ref_get(&ctx->refs);