diff options
| author | Jan Kara <jack@suse.cz> | 2018-09-06 15:56:10 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-21 09:19:12 +0100 |
| commit | 8035d1a13d50a144cb26ee39ca6e225514beb197 (patch) | |
| tree | 5bd8562a270583372e5afa452675dbe560f6f748 /drivers | |
| parent | 949fd0eaf955a3319080d3bfd699044bacef0abb (diff) | |
udf: Prevent write-unsupported filesystem to be remounted read-write
[ Upstream commit a9ad01bc759df79b0012f43ee52164391e31cd96 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
