Re: [PATCH 1/1] io_uring: fix mutex_unlock with unreferenced ctx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 03 Dec 2023 15:37:53 +0000, Pavel Begunkov wrote:
> Callers of mutex_unlock() have to make sure that the mutex stays alive
> for the whole duration of the function call. For io_uring that means
> that the following pattern is not valid unless we ensure that the
> context outlives the mutex_unlock() call.
> 
> mutex_lock(&ctx->uring_lock);
> req_put(req); // typically via io_req_task_submit()
> mutex_unlock(&ctx->uring_lock);
> 
> [...]

Applied, thanks!

[1/1] io_uring: fix mutex_unlock with unreferenced ctx
      commit: f7b32e785042d2357c5abc23ca6db1b92c91a070

Best regards,
-- 
Jens Axboe







[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux