Skip to content
Snippets Groups Projects
Commit 69a62e03 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/msg_ring: don't leave potentially dangling ->tctx pointer


For remote posting of messages, req->tctx is assigned even though it
is never used. Rather than leave a dangling pointer, just clear it to
NULL and use the previous check for a valid submitter_task to gate on
whether or not the request should be terminated.

Reported-by: default avatarJann Horn <jannh@google.com>
Fixes: b6f58a3f ("io_uring: move struct io_kiocb from task_struct to io_uring_task")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2839ab71
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment