io_uring: don't miss setting REQ_F_DOUBLE_POLL
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Jul 2022 14:13:14 +0000 (15:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:47:03 +0000 (08:47 -0600)
commit69a7c434f4333aaa65aaf0305d5e12026ad43e99
tree96b08a8f5249e5fbc067f5c32153a858d0e66ba3
parent67a9eea23f1cba8a6c5e041967a423bf04611ba2
io_uring: don't miss setting REQ_F_DOUBLE_POLL

When adding a second poll entry we should set REQ_F_DOUBLE_POLL
unconditionally. We might race with the first entry removal but that
doesn't change the rule.

Fixes: a18427bb2d9b ("io_uring: optimise submission side poll_refs")
Reported-and-tested-by: syzbot+49950ba66096b1f0209b@syzkaller.appspotmail.com
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8b680d83ded07424db83e8745585e7a6d72826ef.1657203020.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c