diff options
| author | Jens Axboe <axboe@kernel.dk> | 2019-10-29 12:34:10 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2019-10-29 15:43:30 -0600 |
| commit | 842f96124c5617b060cc0f071dcfb6ab24bdd042 (patch) | |
| tree | 2cd9617a5a7f63c53262dbd7aee1b5aefdaa3af7 /include/uapi/linux | |
| parent | 65e19f54d29cd8559ce60cfd0d751bef7afbdc5c (diff) | |
io_uring: fix race with canceling timeouts
If we get -1 from hrtimer_try_to_cancel(), we know that the timer
is running. Hence leave all completion to the timeout handler. If
we don't, we can corrupt the list and miss a completion.
Fixes: 11365043e527 ("io_uring: add support for canceling timeout requests")
Reported-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Tested-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
