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
@@ -130,6 +130,8 @@
130 fuzzers clone
131 auto quick clone
132 auto quick clone
133 dangerous_fuzzers
134 dangerous_fuzzers
135 auto logprint quick v2log
136 attr2
137 auto metadata v2log