• Jens Axboe's avatar
    io_uring: drop req submit reference always in async punt · 817869d2
    Jens Axboe authored
    If we don't end up actually calling submit in io_sq_wq_submit_work(),
    we still need to drop the submit reference to the request. If we
    don't, then we can leak the request. This can happen if we race
    with ring shutdown while flushing the workqueue for requests that
    require use of the mm_struct.
    
    Fixes: e65ef56d ("io_uring: use regular request ref counts")
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    817869d2
io_uring.c 72.3 KB