linux/fs/ext4/super.c
Theodore Ts'o cefafbaa4a ext4: add sanity checking to count_overhead()
[ Upstream commit c48ae41baf ]

The commit "ext4: sanity check the block and cluster size at mount
time" should prevent any problems, but in case the superblock is
modified while the file system is mounted, add an extra safety check
to make sure we won't overrun the allocated buffer.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2017-01-15 09:49:49 -05:00

5714 lines
162 KiB