Skip to content
Commit aa184e86 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: don't attempt to IOPOLL for MSG_RING requests



We gate whether to IOPOLL for a request on whether the opcode is allowed
on a ring setup for IOPOLL and if it's got a file assigned. MSG_RING
is the only one that allows a file yet isn't pollable, it's merely
supported to allow communication on an IOPOLL ring, not because we can
poll for completion of it.

Put the assigned file early and clear it, so we don't attempt to poll
for it.

Reported-by: default avatar <syzbot+1a0a53300ce782f8b3ad@syzkaller.appspotmail.com>
Fixes: 3f1d52ab

 ("io_uring: defer msg-ring file validity check until command issue")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2d2d5cb6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment