]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: reject inodes with negative size
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 10 Dec 2016 14:55:01 +0000 (09:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 Dec 2016 14:55:01 +0000 (09:55 -0500)
commit7e6e1ef48fc02f3ac5d0edecbb0c6087cd758d58
tree9b56e87202bf6e79da606529ef5900053e80f939
parent011c88e36c26a08590b2ebe214ac854289f85f26
ext4: reject inodes with negative size

Don't load an inode with a negative size; this causes integer overflow
problems in the VFS.

[ Added EXT4_ERROR_INODE() to mark file system as corrupted. -TYT]

Fixes: a48380f769df (ext4: rename i_dir_acl to i_size_high)
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c