]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: add sanity check for an invalid itable_used value in inode scan code
authorTheodore Ts'o <tytso@mit.edu>
Fri, 26 Dec 2014 04:18:32 +0000 (23:18 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 26 Dec 2014 04:29:19 +0000 (23:29 -0500)
commit13f450addb3c9624987e62e9978e793d874c060d
tree8ecb404647d4a34dc787e048ab87879501c2207f
parentfcc19b4aa36c499a6574668c9346176628e29ddd
libext2fs: add sanity check for an invalid itable_used value in inode scan code

If the number of unused inodes is greater than number of inodes a
block group, this can cause an e2fsck -n run of the file system to
crash.

We should add more checks to e2fsck to detect this case directly, but
this will at least protect progams (tune2fs, dump, etc.) which use the
inode_scan abstraction from crashing on an invalid file system.

Addresses-Debian-Bug: #773795

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/inode.c