ext4: add more mount time checks of the superblock
authorTheodore Ts'o <tytso@mit.edu>
Sun, 17 Jun 2018 22:11:20 +0000 (18:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:31:31 +0000 (16:31 +0200)
commita5f8b0a70e3967ec2e5b91dfc865d10fb995f37d
tree5bf68735cd5d38935ac5e1160e9f9766956be4f2
parent77d4024c10f3271dc7e799890e15df8fcadebcda
ext4: add more mount time checks of the superblock

commit bfe0a5f47ada40d7984de67e59a7d3390b9b9ecc upstream.

The kernel's ext4 mount-time checks were more permissive than
e2fsprogs's libext2fs checks when opening a file system.  The
superblock is considered too insane for debugfs or e2fsck to operate
on it, the kernel has no business trying to mount it.

This will make file system fuzzing tools work harder, but the failure
cases that they find will be more useful and be easier to evaluate.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c