xfs: Regression test for vulnerable directory integrity check

If a malicious XFS contains a block+ format directory wherein the
directory inode's core.mode is corrupted, and there are
subdirectories of the corrupted directory, an attempt to traverse up
the directory tree by running xfs_scrub will crash the kernel in
__xfs_dir3_data_check.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Xiao Yang
2018-05-30 16:53:43 +08:00
committed by Eryu Guan
parent f99695e4da
commit f7f040063c
3 changed files with 99 additions and 0 deletions
+1
View File
@@ -445,3 +445,4 @@
445 auto quick filestreams
446 auto quick
447 auto mount
448 auto quick fuzzers