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)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 Jun 2018 22:11:20 +0000 (18:11 -0400)
commitbfe0a5f47ada40d7984de67e59a7d3390b9b9ecc
treebb20c9d7def61a74f3d0e1686358849ac9110309
parentc37e9e013469521d9adb932d17a1795c139b36db
ext4: add more mount time checks of the superblock

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
fs/ext4/super.c