]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add sanity checking to count_overhead()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Nov 2016 18:37:47 +0000 (13:37 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Nov 2016 18:37:47 +0000 (13:37 -0500)
commit5ad16d18c921d2d51fe23db7080136b9665802ec
tree5bce12d4855399ea72f2b89dc108ab4e1c45a556
parenta2932779d10e348b208815ae076f7f4b795557a0
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
fs/ext4/super.c