commit | 4b70cf9dea4cd239b425f3282fa56ce19e234c8a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon Nov 02 10:39:05 2020 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Nov 04 10:22:57 2020 -0700 |
tree | 9526725d90a8add9b5d5547a81100d01b2f1cb61 | |
parent | fdaf083cdfb556a45c422c8998268baf1ab26829 [diff] |
io_uring: ensure consistent view of original task ->mm from SQPOLL Ensure we get a valid view of the task mm, by using task_lock() when attempting to grab the original task mm. Reported-by: syzbot+b57abf7ee60829090495@syzkaller.appspotmail.com Fixes: 2aede0e417db ("io_uring: stash ctx task reference for SQPOLL") Signed-off-by: Jens Axboe <axboe@kernel.dk>