Remount read-only races?

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

 



  Hello,

  Toshiyuki reported an ext3 error message which implies that we can have
unlinked but open files on read-only filesystem. Apparently open+unlink
races with remount in some way. Looking at code in do_remount_sb() I don't
see what prevents open("file", O_WRONLY) to happen after the check
fs_may_remount_ro() and before the filesystem is marked as read-only.
So are we expected to prevent these races? If yes, do I just miss something
or the above race is really there? Thanks for reply in advance.

								Honza
-- 
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux