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:29:19 +0000 (16:29 +0200)
commit54bf664ae4fa0b27d8fefc64514509e63dd89929
tree44e65a98c158756a72d3e1961f4b6aac9ea3da04
parentc24aab6d86640ccf321b87be6096319f55b16274
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