diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-08-24 13:15:31 +0100 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-08-26 08:35:57 -0400 |
commit | f15e6426739389876d66d093f49866b4f24c1a4b (patch) | |
tree | 39992d6383b025a01c1699f9630a6e5b40678b99 /Makefile | |
parent | 695ab28a7fa107d0350ab19eba8ec89fac45a95d (diff) |
io_uring: only assign io_uring_enter() SQPOLL error in actual error case
[ upstream commit 21f965221e7c42609521342403e8fb91b8b3e76e ]
If an SQPOLL based ring is newly created and an application issues an
io_uring_enter(2) system call on it, then we can return a spurious
-EOWNERDEAD error. This happens because there's nothing to submit, and
if the caller doesn't specify any other action, the initial error
assignment of -EOWNERDEAD never gets overwritten. This causes us to
return it directly, even if it isn't valid.
Move the error assignment into the actual failure case instead.
Cc: stable@vger.kernel.org
Fixes: d9d05217cb69 ("io_uring: stop SQPOLL submit on creator's death")
Reported-by: Sherlock Holo sherlockya@gmail.com
Link: https://github.com/axboe/liburing/issues/413
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions