ext4: sanity check the block and cluster size at mount time
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Nov 2016 18:00:24 +0000 (13:00 -0500)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:03:24 +0000 (11:03 +0100)
commita7ee70f64fc0b15036db7b6ff146f19e8f33203f
tree58537644108266695274470947e8f55160757594
parent7a97321f5c3666df35674889e45f6a0370bc99fc
ext4: sanity check the block and cluster size at mount time

commit 8cdf3372fe8368f56315e66bea9f35053c418093 upstream.

If the block size or cluster size is insane, reject the mount.  This
is important for security reasons (although we shouldn't be just
depending on this check).

Ref: http://www.securityfocus.com/archive/1/539661
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1332506
Reported-by: Borislav Petkov <bp@alien8.de>
Reported-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/ext4/ext4.h
fs/ext4/super.c