Commit 7dd13f7
committed
io_uring/waitid: always prune wait queue entry in io_waitid_wait()
jira VULN-162139
cve CVE-2025-40047
commit-author Jens Axboe <[email protected]>
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: [email protected]
Fixes: f31ecf6 ("io_uring: add IORING_OP_WAITID support")
Reported-by: [email protected]
Tested-by: [email protected]
Link: https://lore.kernel.org/io-uring/[email protected]/
Signed-off-by: Jens Axboe <[email protected]>
(cherry picked from commit 2f8229d)
Signed-off-by: Brett Mastbergen <[email protected]>1 parent 311903c commit 7dd13f7
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