io_uring: clear opcode specific data for an early failure
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Mar 2024 15:51:40 +0000 (09:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 16 Mar 2024 17:24:50 +0000 (11:24 -0600)
commite21e1c45e1fe2e31732f40256b49c04e76a17cee
tree8fe35a98b6f167e6e69a4f06c9534b187aa248b9
parentf3a640cca951ef9715597e68f5363afc0f452a88
io_uring: clear opcode specific data for an early failure

If failure happens before the opcode prep handler is called, ensure that
we clear the opcode specific area of the request, which holds data
specific to that request type. This prevents errors where opcode
handlers either don't get to clear per-request private data since prep
isn't even called.

Reported-and-tested-by: syzbot+f8e9a371388aa62ecab4@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c