xfs/ext4: check negative inode size

Craft a malicious filesystem image with a negative inode size,
then try to trigger a kernel DoS by appending data to the file.
Ideally this should trigger verifier errors instead of hanging.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2017-01-09 12:55:18 -08:00
committed by Eryu Guan
parent 959f80ec24
commit 466369dc92
10 changed files with 328 additions and 0 deletions
+2
View File
@@ -7,7 +7,9 @@
002 auto metadata quick
003 auto quick
004 auto quick
005 dangerous_fuzzers
006 auto enospc
007 dangerous_fuzzers
032 mkfs auto quick
051 acl udf auto quick
272 auto enospc rw