ext2: reject inodes with negative size
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 6 Dec 2016 23:59:01 +0000 (15:59 -0800)
committerJan Kara <jack@suse.cz>
Wed, 7 Dec 2016 12:03:31 +0000 (13:03 +0100)
commitb46dc033818d3293ecc49dc258e2efb603c80bd7
tree7ee990bb6aa76991c41d09c3a2a86c4f1acb611c
parentc3b004460d77bf3f980d877be539016f2df4df12
ext2: reject inodes with negative size

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

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c