• Theodore Ts'o's avatar
    ext4: add sanity checking to count_overhead() · c48ae41b
    Theodore Ts'o authored
    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: default avatarTheodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    c48ae41b
super.c 160 KB