commit | f655b3575c4746679553a46559a97fb4afb29ce1 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Nov 18 13:37:47 2016 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 06 11:16:13 2017 +0100 |
tree | daa270486a5022a6a51284bedbf565b7db47edff | |
parent | 3995881b0f722cde317c06a098a11d20a9805ee9 [diff] |
ext4: add sanity checking to count_overhead() commit c48ae41bafe31e9a66d8be2ced4e42a6b57fa814 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>