]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/ext4: check negative inode size
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Jan 2017 20:55:18 +0000 (12:55 -0800)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Jan 2017 05:56:45 +0000 (13:56 +0800)
commit466369dc92dea4d143c15574a406f0fad525585b
treebcacf0b0b444f06024c514a9c4082bfafc368e5e
parent959f80ec24601ec14c5c8514a51dc763ff93d41d
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>
tests/shared/005 [new file with mode: 0755]
tests/shared/005.out [new file with mode: 0644]
tests/shared/007 [new file with mode: 0755]
tests/shared/007.out [new file with mode: 0644]
tests/shared/group
tests/xfs/133 [new file with mode: 0755]
tests/xfs/133.out [new file with mode: 0644]
tests/xfs/134 [new file with mode: 0755]
tests/xfs/134.out [new file with mode: 0644]
tests/xfs/group