Commit e6551e1
committed
io_uring/waitid: always prune wait queue entry in io_waitid_wait()
jira KERNEL-318
cve CVE-2025-40047
Rebuild_History Non-Buildable kernel-6.12.0-124.20.1.el10_1
commit-author Jens Axboe <axboe@kernel.dk>
commit 2f8229d
For a successful return, always remove our entry from the wait queue
entry list. Previously this was skipped if a cancelation was in
progress, but this can race with another invocation of the wait queue
entry callback.
Cc: stable@vger.kernel.org
Fixes: f31ecf6 ("io_uring: add IORING_OP_WAITID support")
Reported-by: syzbot+b9e83021d9c642a33d8c@syzkaller.appspotmail.com
Tested-by: syzbot+b9e83021d9c642a33d8c@syzkaller.appspotmail.com
Link: https://lore.kernel.org/io-uring/68e5195e.050a0220.256323.001f.GAE@google.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 2f8229d)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent b4012b5 commit e6551e1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
0 commit comments