diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-01-11 05:00:30 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-11 15:39:54 +0100 |
commit | d434ab6db524ab1efd0afad4ffa1ee65ca6ac097 (patch) | |
tree | 71234160cb83e0ba6b7ee49e36ae2cf32b3b903b /init | |
parent | io_uring: stop SQPOLL submit on creator's death (diff) | |
download | linux-d434ab6db524ab1efd0afad4ffa1ee65ca6ac097.tar.xz linux-d434ab6db524ab1efd0afad4ffa1ee65ca6ac097.zip |
io_uring: drop mm and files after task_work_run
__io_req_task_submit() run by task_work can set mm and files, but
io_sq_thread() in some cases, and because __io_sq_thread_acquire_mm()
and __io_sq_thread_acquire_files() do a simple current->mm/files check
it may end up submitting IO with mm/files of another task.
We also need to drop it after in the end to drop potentially grabbed
references to them.
Cc: stable@vger.kernel.org # 5.9+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions