summaryrefslogtreecommitdiff
path: root/fs/ext4/file.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2016-11-18 21:37:47 +0300
committerTheodore Ts'o <tytso@mit.edu>2016-11-18 21:37:47 +0300
commitc48ae41bafe31e9a66d8be2ced4e42a6b57fa814 (patch)
tree5bce12d4855399ea72f2b89dc108ab4e1c45a556 /fs/ext4/file.c
parentcd6bb35bf7f6d7d922509bf50265383a0ceabe96 (diff)
downloadlinux-c48ae41bafe31e9a66d8be2ced4e42a6b57fa814.tar.xz
ext4: add sanity checking to count_overhead()
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
Diffstat (limited to 'fs/ext4/file.c')
0 files changed, 0 insertions, 0 deletions