]> www.infradead.org Git - users/dwmw2/linux.git/commit
ext4: don't allow r/w mounts if metadata blocks overlap the superblock
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 02:10:35 +0000 (22:10 -0400)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:34 +0000 (21:36 -0400)
commit176df3e2add7cd7029a3493ea825e5582cb84ef0
treeb48ee444cbd507afd81a400ed5b3876af3ba597b
parented49ed98a073c2a0535161186b32a49b6f71d735
ext4: don't allow r/w mounts if metadata blocks overlap the superblock

[ Upstream commit 18db4b4e6fc31eda838dd1c1296d67dbcb3dc957 ]

If some metadata block, such as an allocation bitmap, overlaps the
superblock, it's very likely that if the file system is mounted
read/write, the results will not be pretty.  So disallow r/w mounts
for file systems corrupted in this particular way.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
fs/ext4/super.c