summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2026-11-13 08:33:19 -0700
committerJens Axboe <axboe@kernel.dk>2026-11-13 13:28:12 -0700
commitd2a64291eec3327cf5421cf228e8cbc6d1dd368f (patch)
treeb0cd602d33d8dc95390ed10bc1ddc023f44ad00a /kernel/debug
parent39c7210e970200f8b17de3767c73efe64173a95f (diff)
io_uring: don't run canceled local work from a foreign mm on release
Since commit 89baa3154a72 ("io_uring: run cancelations synchronously on ring release"), the task dropping the last reference to a ring runs the first cancelation pass itself. For DEFER_TASKRUN, that includes running the pending local work in cancel mode. That task need not be the one that submitted the requests, a forked child holding an inherited ring fd is one example. Only run canceled local work from a task that shares the mm of the submitter, or from a kthread like io_ring_exit_work() where such copies fail. Reported-by: Yingjie Wang <x-professor@outlook.com> Fixes: 89baa3154a72 ("io_uring: run cancelations synchronously on ring release") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions