Thread (19 messages) 19 messages, 4 authors, 2021-12-08

Re: [syzbot] possible deadlock in blkdev_put (2)

From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date: 2021-11-28 07:44:59

On 2021/11/28 14:32, Tetsuo Handa wrote:
If we can unconditionally start __loop_clr_fd() upon ioctl(LOOP_CLR_FD), I think
we can avoid circular locking between disk->open_mutex and flush_workqueue().
Too bad. There is ioctl(LOOP_SET_STATUS) which allows forcing __loop_clr_fd() to be
called without ioctl(LOOP_CLR_FD). We have to support __loop_clr_fd() upon lo_release().

Is dropping disk->open_mutex inside lo_release()
( https://lkml.kernel.org/r/e4bdc6b1-701d-6cc1-5d42-65564d2aa089@I-love.SAKURA.ne.jp ) possible?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help