Skip to content
Commit e8053c68 authored by Guoyu Huang's avatar Guoyu Huang Committed by Greg Kroah-Hartman
Browse files

io_uring: Fix use-after-free in io_sq_wq_submit_work()



when ctx->sqo_mm is zero, io_sq_wq_submit_work() frees 'req'
without deleting it from 'task_list'. After that, 'req' is
accessed in io_ring_ctx_wait_and_kill() which lead to
a use-after-free.

Signed-off-by: default avatarGuoyu Huang <hgy5945@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a4d61e66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment