summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_discard.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-08-11 16:04:14 +0200
committerJens Axboe <axboe@kernel.dk>2020-08-11 16:09:13 +0200
commit6d816e088c359866f9867057e04f244c608c42fe (patch)
tree2b27bdab84603e31011b7aeb19b95b1a18e6934c /fs/xfs/xfs_discard.c
parentfs: RWF_NOWAIT should imply IOCB_NOIO (diff)
downloadlinux-6d816e088c359866f9867057e04f244c608c42fe.tar.xz
linux-6d816e088c359866f9867057e04f244c608c42fe.zip
io_uring: hold 'ctx' reference around task_work queue + execute
We're holding the request reference, but we need to go one higher to ensure that the ctx remains valid after the request has finished. If the ring is closed with pending task_work inflight, and the given io_kiocb finishes sync during issue, then we need a reference to the ring itself around the task_work execution cycle. Cc: stable@vger.kernel.org # v5.7+ Reported-by: syzbot+9b260fc33297966f5a8e@syzkaller.appspotmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/xfs/xfs_discard.c')
0 files changed, 0 insertions, 0 deletions