Thread (9 messages) 9 messages, 3 authors, 2022-01-20

Re: Racy loop device reuse logic

From: Jan Kara <jack@suse.cz>
Date: 2022-01-19 21:34:24

On Wed 19-01-22 20:30:52, Tetsuo Handa wrote:
I found a way to avoid this race by splitting lo_open() into two phases
using task_work_add().  Christoph Hellwig is trying to take a look at
https://lkml.kernel.org/r/f6b947d0-1047-66b3-0243-af5017c9ab55@I-love.SAKURA.ne.jp
.
No, you have found a way to make the race window for mount(8) smaller. And
I still disagree with that kernel change because it is making kernel more
complex only to make the race window smaller. On another machine or with
different scheduling decisions, you can still hit this race. This problem
must be fixed in mount...

								Honza
-- 
Jan Kara [off-list ref]
SUSE Labs, CR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help