]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
resize2fs: sanity check the free blocks and inode counts
authorTheodore Ts'o <tytso@mit.edu>
Sun, 23 Jul 2017 04:46:36 +0000 (00:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 23 Jul 2017 04:46:36 +0000 (00:46 -0400)
commit7f5ba7cc82b5be96a9ae49d27071cf1b9dfac9f5
treed60f524b02eae62d98aa53a5d28d64f65a31ad1f
parent393df147698962761824179c00840336caf3ffd8
resize2fs: sanity check the free blocks and inode counts

If the free block or free inodes count are larger than the number of
blocks or inodes in the system, request that the file system be
checked.  Otherwise it's possible for calcuate_minimum_resize_size()
to hang in an infinite loop.

This problem was found using American Fuzzy Lop.

Reported-by: Adam Buchbinder <abuchbinder@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c