Re: Racy loop device reuse logic

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

 



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@xxxxxxxxxxxxxxxxxxx
> .

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 <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux