]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 26 Jan 2017 16:22:34 +0000 (17:22 +0100)
commit2b47f7351dd6e24e54acbd6883fccc6c5650374e
tree6adc1b4a657d2079953161a34212100692f69e06
parent399cf9694d2df236121351e3263e52c556ba2383
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: Jiri Slaby <jslaby@suse.cz>
fs/ext4/super.c