Commit 7a27472
io_uring: don't modify req->poll for rw
__io_queue_proc() is used by both poll and apoll, so we should not
access req->poll directly but selecting right struct io_poll_iocb
depending on use case.
Reported-and-tested-by: syzbot+a84b8783366ecb1c65d0@syzkaller.appspotmail.com
Fixes: ea6a693 ("io_uring: disable multishot poll for double poll add cases")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4a6a1de31142d8e0250fe2dfd4c8923d82a5bbfc.1621251795.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 489809e commit 7a27472
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5019 | 5019 | | |
5020 | 5020 | | |
5021 | 5021 | | |
5022 | | - | |
5023 | | - | |
| 5022 | + | |
| 5023 | + | |
5024 | 5024 | | |
5025 | | - | |
| 5025 | + | |
5026 | 5026 | | |
5027 | 5027 | | |
5028 | 5028 | | |
| |||
0 commit comments