]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Prevent write-unsupported filesystem to be remounted read-write
authorJan Kara <jack@suse.cz>
Thu, 6 Sep 2018 13:56:10 +0000 (15:56 +0200)
committerJan Kara <jack@suse.cz>
Fri, 7 Sep 2018 08:32:22 +0000 (10:32 +0200)
commit610c5b538a9864669a84e92aa2e00937fea472fc
treef1c661d0ea79df14520453b5439a19e117892065
parentcbd0c8fb57129ac45dde490c96a3d424411fac32
udf: Prevent write-unsupported filesystem to be remounted read-write

There are certain filesystem features which we support for reading but
not for writing. We properly refuse to mount such filesystems read-write
however for some features (such as read-only partitions), we don't check
for these features when remounting the filesystem from read-only to
read-write. Thus such filesystems could be remounted read-write leading
to strange behavior (most likely crashes).

Fix the problem by marking in superblock whether the filesystem has some
features that are supported in read-only mode and check this flag during
remount.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c
fs/udf/udf_sb.h