Skip to contentSkip to conversation

fstests: fixes and new tests

PATCH In review Darrick J. Wong 3 participants 9 messages Jul 4, 2018 – Jul 9, 2018

lore
Share & tools
lore
#0 lore raw

cover fstests: fixes and new tests

Hi all,

The first patch provides a regression test for a condition where mmap read of a file's EOF page shows nonzero bytes after EOF if the previous operation was a zero_range all the way to EOF. This bug only seems to manifest on XFS, but it uses generic APIs and so is a generic test. The patch concerned here is "xfs: ensure post-EOF zeroing happens after zeroing part of a file".

The second patch adds a variant to the xfs fuzz tests where we fuzz the metadata fields and immediately try to write to the filesystem.

--D

#1 lore raw

PATCH 1/2 generic: mread past eof shows nonzero contents

From: Darrick J. Wong <[email protected]>

Certain sequences of generic/127 invocations complain about being able to mread nonzero contents past eof. Replicate that here as a regression test.

---
 tests/generic/708     |   57 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/708.out |    2 ++
 tests/generic/group   |    1 +
 3 files changed, 60 insertions(+)
 create mode 100755 tests/generic/708
 create mode 100644 tests/generic/708.out
tests/generic/708 new file +57 -0
new file mode 100755
index 00000000..5648cfcd
@@ -0,0 +1,57 @@
+#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle, Inc.  All Rights Reserved.
+#
+# FS QA Test No. 708
+#
+# Test a specific sequence of fsx operations that causes an mmap read past
+# eof to return nonzero contents.
+#
+seq=`basename $0`
+seqres=$RESULT_DIR/$seq
+echo "QA output created by $seq"
+tmp=/tmp/$$
+status=1	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+	cd /
+	rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/punch
+
+# real QA test starts here
+_supported_fs generic
+_supported_os Linux
+_require_scratch
+_require_xfs_io_command "fcollapse"
+_require_xfs_io_command "fzero"
+
+rm -f $seqres.full
+
+_scratch_mkfs >>$seqres.full 2>&1
+_scratch_mount
+
+cat >> $tmp.fsxops << ENDL
+fallocate 0x77e2 0x5f06 0x269a2 keep_size
+mapwrite 0x2e7fc 0x42ba 0x3f989
+write 0x67a9 0x714e 0x3f989
+write 0x39f96 0x185a 0x3f989
+collapse_range 0x36000 0x8000 0x3f989
+mapread 0x74c0 0x1bb3 0x3e2d0
+truncate 0x0 0x8aa2 0x3e2d0
+zero_range 0x1265 0x783d 0x8aa2
+mapread 0x7bd8 0xeca 0x8aa2
+ENDL
+
+victim=$SCRATCH_MNT/a
+touch $victim
+$here/ltp/fsx --replay-ops $tmp.fsxops $victim > $tmp.output || cat $tmp.output
+
+echo "Silence is golden"
+status=0
+exit
tests/generic/708.out new file +2 -0
new file mode 100644
index 00000000..33c478ad
@@ -0,0 +1,2 @@
+QA output created by 708
+Silence is golden
tests/generic/group +1 -0
index 83a6fdab..eb3a0dd0 100644
@@ -501,3 +501,4 @@
 496 auto quick swap
 497 auto quick swap collapse
 498 auto quick log
+708 auto quick rw collapse zero
#2 lore raw

Re: [PATCH 1/2] generic: mread past eof shows nonzero contents

Quoted 5 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Certain sequences of generic/127 invocations complain about being able to mread nonzero contents past eof. Replicate that here as a regression test.

This seesm to miss the update from Brian that actuallys makes it reproduce reliably for him and for me.

#3 lore raw

Re: [PATCH 1/2] generic: mread past eof shows nonzero contents

Quoted 9 lines · Christoph Hellwig
Quoted 5 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Certain sequences of generic/127 invocations complain about being able to mread nonzero contents past eof. Replicate that here as a regression test.

This seesm to miss the update from Brian that actuallys makes it reproduce reliably for him and for me.

Oops, I lost track of that. :(

I'll post an update to g/499 to add it in.

--D

#4 lore raw

PATCH 2/2 xfs: fuzz every field of every structure and test kernel crashes

In reply to Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fuzz every field of every structure and then try to write the filesystem, to see how many of these writes can crash the kernel.

---
 common/fuzzy       |   54 ++++++++++++++++++++++++++++++----------------------
 tests/xfs/1387     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1387.out |    4 ++++
 tests/xfs/1388     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1388.out |    4 ++++
 tests/xfs/1389     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1389.out |    6 ++++++
 tests/xfs/1390     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1390.out |    4 ++++
 tests/xfs/1391     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1391.out |    4 ++++
 tests/xfs/1392     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1392.out |    4 ++++
 tests/xfs/1393     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1393.out |    4 ++++
 tests/xfs/1394     |   45 +++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1394.out |    4 ++++
 tests/xfs/1395     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1395.out |    4 ++++
 tests/xfs/1396     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1396.out |    4 ++++
 tests/xfs/1397     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1397.out |    4 ++++
 tests/xfs/1398     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1398.out |    4 ++++
 tests/xfs/1399     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1399.out |    5 +++++
 tests/xfs/1400     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1400.out |    5 +++++
 tests/xfs/1401     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1401.out |    5 +++++
 tests/xfs/1402     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1402.out |    5 +++++
 tests/xfs/1403     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1403.out |    5 +++++
 tests/xfs/1404     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1404.out |    5 +++++
 tests/xfs/1405     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1405.out |    5 +++++
 tests/xfs/1406     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1406.out |    5 +++++
 tests/xfs/1407     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1407.out |    5 +++++
 tests/xfs/1408     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1408.out |    5 +++++
 tests/xfs/1409     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1409.out |    5 +++++
 tests/xfs/1410     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1410.out |    5 +++++
 tests/xfs/1411     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1411.out |    5 +++++
 tests/xfs/1412     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1412.out |    5 +++++
 tests/xfs/1413     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1413.out |    5 +++++
 tests/xfs/1414     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1414.out |    5 +++++
 tests/xfs/1415     |   49 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1415.out |    4 ++++
 tests/xfs/1416     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1416.out |    4 ++++
 tests/xfs/1417     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1417.out |    4 ++++
 tests/xfs/1418     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1418.out |    5 +++++
 tests/xfs/1419     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1419.out |    5 +++++
 tests/xfs/1420     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1420.out |    5 +++++
 tests/xfs/1421     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1421.out |    4 ++++
 tests/xfs/1422     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1422.out |    4 ++++
 tests/xfs/1423     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1423.out |    4 ++++
 tests/xfs/group    |   37 ++++++++++++++++++++++++++++++++++++
 76 files changed, 2035 insertions(+), 23 deletions(-)
 create mode 100755 tests/xfs/1387
 create mode 100644 tests/xfs/1387.out
 create mode 100755 tests/xfs/1388
 create mode 100644 tests/xfs/1388.out
 create mode 100755 tests/xfs/1389
 create mode 100644 tests/xfs/1389.out
 create mode 100755 tests/xfs/1390
 create mode 100644 tests/xfs/1390.out
 create mode 100755 tests/xfs/1391
 create mode 100644 tests/xfs/1391.out
 create mode 100755 tests/xfs/1392
 create mode 100644 tests/xfs/1392.out
 create mode 100755 tests/xfs/1393
 create mode 100644 tests/xfs/1393.out
 create mode 100755 tests/xfs/1394
 create mode 100644 tests/xfs/1394.out
 create mode 100755 tests/xfs/1395
 create mode 100644 tests/xfs/1395.out
 create mode 100755 tests/xfs/1396
 create mode 100644 tests/xfs/1396.out
 create mode 100755 tests/xfs/1397
 create mode 100644 tests/xfs/1397.out
 create mode 100755 tests/xfs/1398
 create mode 100644 tests/xfs/1398.out
 create mode 100755 tests/xfs/1399
 create mode 100644 tests/xfs/1399.out
 create mode 100755 tests/xfs/1400
 create mode 100644 tests/xfs/1400.out
 create mode 100755 tests/xfs/1401
 create mode 100644 tests/xfs/1401.out
 create mode 100755 tests/xfs/1402
 create mode 100644 tests/xfs/1402.out
 create mode 100755 tests/xfs/1403
 create mode 100644 tests/xfs/1403.out
 create mode 100755 tests/xfs/1404
 create mode 100644 tests/xfs/1404.out
 create mode 100755 tests/xfs/1405
 create mode 100644 tests/xfs/1405.out
 create mode 100755 tests/xfs/1406
 create mode 100644 tests/xfs/1406.out
 create mode 100755 tests/xfs/1407
 create mode 100644 tests/xfs/1407.out
 create mode 100755 tests/xfs/1408
 create mode 100644 tests/xfs/1408.out
 create mode 100755 tests/xfs/1409
 create mode 100644 tests/xfs/1409.out
 create mode 100755 tests/xfs/1410
 create mode 100644 tests/xfs/1410.out
 create mode 100755 tests/xfs/1411
 create mode 100644 tests/xfs/1411.out
 create mode 100755 tests/xfs/1412
 create mode 100644 tests/xfs/1412.out
 create mode 100755 tests/xfs/1413
 create mode 100644 tests/xfs/1413.out
 create mode 100755 tests/xfs/1414
 create mode 100644 tests/xfs/1414.out
 create mode 100755 tests/xfs/1415
 create mode 100644 tests/xfs/1415.out
 create mode 100755 tests/xfs/1416
 create mode 100644 tests/xfs/1416.out
 create mode 100755 tests/xfs/1417
 create mode 100644 tests/xfs/1417.out
 create mode 100755 tests/xfs/1418
 create mode 100644 tests/xfs/1418.out
 create mode 100755 tests/xfs/1419
 create mode 100644 tests/xfs/1419.out
 create mode 100755 tests/xfs/1420
 create mode 100644 tests/xfs/1420.out
 create mode 100755 tests/xfs/1421
 create mode 100644 tests/xfs/1421.out
 create mode 100755 tests/xfs/1422
 create mode 100644 tests/xfs/1422.out
 create mode 100755 tests/xfs/1423
 create mode 100644 tests/xfs/1423.out
common/fuzzy +31 -23
index 025f2615..e3435c8a 100644
@@ -169,7 +169,7 @@ __fuzz_notify() {
 # Fuzz one field of some piece of metadata.
 # First arg is the field name
 # Second arg is the fuzz verb (ones, zeroes, random, add, sub...)
-# Third arg is the repair mode (online, offline, both)
+# Third arg is the repair mode (online, offline, both, none)
 __scratch_xfs_fuzz_field_test() {
 	field="$1"
 	fuzzverb="$2"
@@ -190,12 +190,14 @@ __scratch_xfs_fuzz_field_test() {
 	if [ $res -eq 0 ]; then
 		# Try an online scrub unless we're fuzzing ag 0's sb,
 		# which scrub doesn't know how to fix.
-		echo "++ Online scrub"
-		if [ "$1" != "sb 0" ]; then
-			_scratch_scrub -n -a 1 -e continue 2>&1
-			res=$?
-			test $res -eq 0 && \
-				(>&2 echo "scrub didn't fail with ${field} = ${fuzzverb}.")
+		if [ "${repair}" != "none" ]; then
+			echo "++ Online scrub"
+			if [ "$1" != "sb 0" ]; then
+				_scratch_scrub -n -a 1 -e continue 2>&1
+				res=$?
+				test $res -eq 0 && \
+					(>&2 echo "scrub didn't fail with ${field} = ${fuzzverb}.")
+			fi
 		fi
 
 		# Try fixing the filesystem online?!
@@ -222,11 +224,13 @@ __scratch_xfs_fuzz_field_test() {
 	fi
 
 	# See if repair finds a clean fs
-	echo "+ Make sure error is gone (offline)"
-        _scratch_xfs_repair -n 2>&1
-	res=$?
-	test $res -ne 0 && \
-		(>&2 echo "offline re-scrub ($res) with ${field} = ${fuzzverb}.")
+	if [ "${repair}" != "none" ]; then
+		echo "+ Make sure error is gone (offline)"
+		_scratch_xfs_repair -n 2>&1
+		res=$?
+		test $res -ne 0 && \
+			(>&2 echo "offline re-scrub ($res) with ${field} = ${fuzzverb}.")
+	fi
 
 	# See if scrub finds a clean fs
 	echo "+ Make sure error is gone (online)"
@@ -235,12 +239,14 @@ __scratch_xfs_fuzz_field_test() {
 	if [ $res -eq 0 ]; then
 		# Try an online scrub unless we're fuzzing ag 0's sb,
 		# which scrub doesn't know how to fix.
-		echo "++ Online scrub"
-		if [ "$1" != "sb 0" ]; then
-			_scratch_scrub -n -e continue 2>&1
-			res=$?
-			test $res -ne 0 && \
-				(>&2 echo "online re-scrub ($res) with ${field} = ${fuzzverb}.")
+		if [ "${repair}" != "none" ]; then
+			echo "++ Online scrub"
+			if [ "$1" != "sb 0" ]; then
+				_scratch_scrub -n -e continue 2>&1
+				res=$?
+				test $res -ne 0 && \
+					(>&2 echo "online re-scrub ($res) with ${field} = ${fuzzverb}.")
+			fi
 		fi
 
 		# Try modifying the filesystem again!
@@ -252,11 +258,13 @@ __scratch_xfs_fuzz_field_test() {
 	fi
 
 	# See if repair finds a clean fs
-	echo "+ Re-check the filesystem (offline)"
-	_scratch_xfs_repair -n 2>&1
-	res=$?
-	test $res -ne 0 && \
-		(>&2 echo "re-repair failed ($res) with ${field} = ${fuzzverb}.")
+	if [ "${repair}" != "none" ]; then
+		echo "+ Re-check the filesystem (offline)"
+		_scratch_xfs_repair -n 2>&1
+		res=$?
+		test $res -ne 0 && \
+			(>&2 echo "re-repair failed ($res) with ${field} = ${fuzzverb}.")
+	fi
 }
 
 # Make sure we have all the pieces we need for field fuzzing
tests/xfs/1387 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1387.out new file +4 -0
new file mode 100644
index 00000000..67adab71
@@ -0,0 +1,4 @@
+QA output created by 1387
+Format and populate
+Fuzz superblock
+Done fuzzing superblock
tests/xfs/1388 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1388.out new file +4 -0
new file mode 100644
index 00000000..5b3b8077
@@ -0,0 +1,4 @@
+QA output created by 1388
+Format and populate
+Fuzz AGF
+Done fuzzing AGF
tests/xfs/1389 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1389.out new file +6 -0
new file mode 100644
index 00000000..7f7db14c
@@ -0,0 +1,6 @@
+QA output created by 1389
+Format and populate
+Fuzz AGFL
+Done fuzzing AGFL
+Fuzz AGFL flfirst
+Done fuzzing AGFL flfirst
tests/xfs/1390 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1390.out new file +4 -0
new file mode 100644
index 00000000..0119f32b
@@ -0,0 +1,4 @@
+QA output created by 1390
+Format and populate
+Fuzz AGI
+Done fuzzing AGI
tests/xfs/1391 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1391.out new file +4 -0
new file mode 100644
index 00000000..382b0902
@@ -0,0 +1,4 @@
+QA output created by 1391
+Format and populate
+Fuzz bnobt recs
+Done fuzzing bnobt recs
tests/xfs/1392 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1392.out new file +4 -0
new file mode 100644
index 00000000..e7b9c660
@@ -0,0 +1,4 @@
+QA output created by 1392
+Format and populate
+Fuzz bnobt keyptr
+Done fuzzing bnobt keyptr
tests/xfs/1393 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1393.out new file +4 -0
new file mode 100644
index 00000000..d63c8ca9
@@ -0,0 +1,4 @@
+QA output created by 1393
+Format and populate
+Fuzz cntbt
+Done fuzzing cntbt
tests/xfs/1394 new file +45 -0

45 lines not on this page · raw message

tests/xfs/1394.out new file +4 -0
new file mode 100644
index 00000000..83277856
@@ -0,0 +1,4 @@
+QA output created by 1394
+Format and populate
+Fuzz inobt
+Done fuzzing inobt
tests/xfs/1395 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1395.out new file +4 -0
new file mode 100644
index 00000000..408f894b
@@ -0,0 +1,4 @@
+QA output created by 1395
+Format and populate
+Fuzz finobt
+Done fuzzing finobt
tests/xfs/1396 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1396.out new file +4 -0
new file mode 100644
index 00000000..ee974659
@@ -0,0 +1,4 @@
+QA output created by 1396
+Format and populate
+Fuzz rmapbt recs
+Done fuzzing rmapbt recs
tests/xfs/1397 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1397.out new file +4 -0
new file mode 100644
index 00000000..01258bbe
@@ -0,0 +1,4 @@
+QA output created by 1397
+Format and populate
+Fuzz rmapbt keyptr
+Done fuzzing rmapbt keyptr
tests/xfs/1398 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1398.out new file +4 -0
new file mode 100644
index 00000000..ab572804
@@ -0,0 +1,4 @@
+QA output created by 1398
+Format and populate
+Fuzz refcountbt
+Done fuzzing refcountbt
tests/xfs/1399 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1399.out new file +5 -0
new file mode 100644
index 00000000..f57a3648
@@ -0,0 +1,5 @@
+QA output created by 1399
+Format and populate
+Find btree-format dir inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1400 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1400.out new file +5 -0
new file mode 100644
index 00000000..5415c8d6
@@ -0,0 +1,5 @@
+QA output created by 1400
+Format and populate
+Find extents-format file inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1401 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1401.out new file +5 -0
new file mode 100644
index 00000000..6dbf00f0
@@ -0,0 +1,5 @@
+QA output created by 1401
+Format and populate
+Find btree-format file inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1402 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1402.out new file +5 -0
new file mode 100644
index 00000000..78f7424e
@@ -0,0 +1,5 @@
+QA output created by 1402
+Format and populate
+Find bmbt block
+Fuzz bmbt
+Done fuzzing bmbt
tests/xfs/1403 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1403.out new file +5 -0
new file mode 100644
index 00000000..3ff10063
@@ -0,0 +1,5 @@
+QA output created by 1403
+Format and populate
+Find symlink remote block
+Fuzz symlink remote block
+Done fuzzing symlink remote block
tests/xfs/1404 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1404.out new file +5 -0
new file mode 100644
index 00000000..106ff63e
@@ -0,0 +1,5 @@
+QA output created by 1404
+Format and populate
+Find inline-format dir inode
+Fuzz inline-format dir inode
+Done fuzzing inline-format dir inode
tests/xfs/1405 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1405.out new file +5 -0
new file mode 100644
index 00000000..3f194d24
@@ -0,0 +1,5 @@
+QA output created by 1405
+Format and populate
+Find data-format dir block
+Fuzz data-format dir block
+Done fuzzing data-format dir block
tests/xfs/1406 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1406.out new file +5 -0
new file mode 100644
index 00000000..32e8749f
@@ -0,0 +1,5 @@
+QA output created by 1406
+Format and populate
+Find data-format dir block
+Fuzz data-format dir block
+Done fuzzing data-format dir block
tests/xfs/1407 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1407.out new file +5 -0
new file mode 100644
index 00000000..f9b8c3e1
@@ -0,0 +1,5 @@
+QA output created by 1407
+Format and populate
+Find leaf1-format dir block
+Fuzz leaf1-format dir block
+Done fuzzing leaf1-format dir block
tests/xfs/1408 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1408.out new file +5 -0
new file mode 100644
index 00000000..b404dd87
@@ -0,0 +1,5 @@
+QA output created by 1408
+Format and populate
+Find leafn-format dir block
+Fuzz leafn-format dir block
+Done fuzzing leafn-format dir block
tests/xfs/1409 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1409.out new file +5 -0
new file mode 100644
index 00000000..e0b5ae0b
@@ -0,0 +1,5 @@
+QA output created by 1409
+Format and populate
+Find node-format dir block
+Fuzz node-format dir block
+Done fuzzing node-format dir block
tests/xfs/1410 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1410.out new file +5 -0
new file mode 100644
index 00000000..0e60d89d
@@ -0,0 +1,5 @@
+QA output created by 1410
+Format and populate
+Find freeindex-format dir block
+Fuzz freeindex-format dir block
+Done fuzzing freeindex-format dir block
tests/xfs/1411 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1411.out new file +5 -0
new file mode 100644
index 00000000..16cfbfa6
@@ -0,0 +1,5 @@
+QA output created by 1411
+Format and populate
+Find inline-format attr inode
+Fuzz inline-format attr inode
+Done fuzzing inline-format attr inode
tests/xfs/1412 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1412.out new file +5 -0
new file mode 100644
index 00000000..41614772
@@ -0,0 +1,5 @@
+QA output created by 1412
+Format and populate
+Find leaf-format attr block
+Fuzz leaf-format attr block
+Done fuzzing leaf-format attr block
tests/xfs/1413 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1413.out new file +5 -0
new file mode 100644
index 00000000..7c295771
@@ -0,0 +1,5 @@
+QA output created by 1413
+Format and populate
+Find node-format attr block
+Fuzz node-format attr block
+Done fuzzing node-format attr block
tests/xfs/1414 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1414.out new file +5 -0
new file mode 100644
index 00000000..ede45f43
@@ -0,0 +1,5 @@
+QA output created by 1414
+Format and populate
+Find external attr block
+Fuzz external attr block
+Done fuzzing external attr block
tests/xfs/1415 new file +49 -0

49 lines not on this page · raw message

tests/xfs/1415.out new file +4 -0
new file mode 100644
index 00000000..d23b46bf
@@ -0,0 +1,4 @@
+QA output created by 1415
+Format and populate
+Fuzz rtrmapbt recs
+Done fuzzing rtrmapbt recs
tests/xfs/1416 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1416.out new file +4 -0
new file mode 100644
index 00000000..e368a20e
@@ -0,0 +1,4 @@
+QA output created by 1416
+Format and populate
+Fuzz rtrmapbt keyptrs
+Done fuzzing rtrmapbt keyptrs
tests/xfs/1417 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1417.out new file +4 -0
new file mode 100644
index 00000000..4a505f1c
@@ -0,0 +1,4 @@
+QA output created by 1417
+Format and populate
+Fuzz refcountbt
+Done fuzzing refcountbt
tests/xfs/1418 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1418.out new file +5 -0
new file mode 100644
index 00000000..d5864640
@@ -0,0 +1,5 @@
+QA output created by 1418
+Format and populate
+Find btree-format attr inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1419 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1419.out new file +5 -0
new file mode 100644
index 00000000..10af3bb3
@@ -0,0 +1,5 @@
+QA output created by 1419
+Format and populate
+Find blockdev inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1420 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1420.out new file +5 -0
new file mode 100644
index 00000000..c82242ce
@@ -0,0 +1,5 @@
+QA output created by 1420
+Format and populate
+Find local-format symlink inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1421 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1421.out new file +4 -0
new file mode 100644
index 00000000..8a50226a
@@ -0,0 +1,4 @@
+QA output created by 1421
+Format and populate
+Fuzz user 0 dquot
+Done fuzzing dquot
tests/xfs/1422 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1422.out new file +4 -0
new file mode 100644
index 00000000..728e73f7
@@ -0,0 +1,4 @@
+QA output created by 1422
+Format and populate
+Fuzz group 0 dquot
+Done fuzzing dquot
tests/xfs/1423 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1423.out new file +4 -0
new file mode 100644
index 00000000..8a679f76
@@ -0,0 +1,4 @@
+QA output created by 1423
+Format and populate
+Fuzz project 0 dquot
+Done fuzzing dquot
tests/xfs/group +37 -0
index 39b0e842..f825e6b8 100644
@@ -450,3 +450,40 @@
 450 auto quick rmap
 451 auto quick metadata repair
 452 auto db
+1387 dangerous_fuzzers dangerous_norepair
+1388 dangerous_fuzzers dangerous_norepair
+1389 dangerous_fuzzers dangerous_norepair
+1390 dangerous_fuzzers dangerous_norepair
+1391 dangerous_fuzzers dangerous_norepair
+1392 dangerous_fuzzers dangerous_norepair
+1393 dangerous_fuzzers dangerous_norepair
+1394 dangerous_fuzzers dangerous_norepair
+1395 dangerous_fuzzers dangerous_norepair
+1396 dangerous_fuzzers dangerous_norepair
+1397 dangerous_fuzzers dangerous_norepair
+1398 dangerous_fuzzers dangerous_norepair
+1399 dangerous_fuzzers dangerous_norepair
+1400 dangerous_fuzzers dangerous_norepair
+1401 dangerous_fuzzers dangerous_norepair
+1402 dangerous_fuzzers dangerous_norepair
+1403 dangerous_fuzzers dangerous_norepair
+1404 dangerous_fuzzers dangerous_norepair
+1405 dangerous_fuzzers dangerous_norepair
+1406 dangerous_fuzzers dangerous_norepair
+1407 dangerous_fuzzers dangerous_norepair
+1408 dangerous_fuzzers dangerous_norepair
+1409 dangerous_fuzzers dangerous_norepair
+1410 dangerous_fuzzers dangerous_norepair
+1411 dangerous_fuzzers dangerous_norepair
+1412 dangerous_fuzzers dangerous_norepair
+1413 dangerous_fuzzers dangerous_norepair
+1414 dangerous_fuzzers dangerous_norepair
+1415 dangerous_fuzzers dangerous_norepair
+1416 dangerous_fuzzers dangerous_norepair
+1417 dangerous_fuzzers dangerous_norepair
+1418 dangerous_fuzzers dangerous_norepair
+1419 dangerous_fuzzers dangerous_norepair
+1420 dangerous_fuzzers dangerous_norepair
+1421 dangerous_fuzzers dangerous_norepair
+1422 dangerous_fuzzers dangerous_norepair
+1423 dangerous_fuzzers dangerous_norepair
#5 lore raw

Re: [PATCH 2/2] xfs: fuzz every field of every structure and test kernel crashes

Quoted 6 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fuzz every field of every structure and then try to write the filesystem, to see how many of these writes can crash the kernel.

The "re-repair" failures are gone, but I still see some test failures like (xfs/1398 for example)

+re-mount failed (32) with magic = zeroes.
+re-mount failed (32) with magic = ones.
...

Looks like the re-mount is expected to fail as we skipped all the repair work.

Also, there're _check_dmesg failures too (they were buried among other failures so I didn't notice them in last review), like this "Internal error" from xfs/1397

[1513573.879719] [U] ++ Try to write filesystem again
[1513574.092652] XFS (dm-1): Internal error XFS_WANT_CORRUPTED_GOTO at line 756 of file fs/xfs/libxfs/xfs_rmap.c.  Caller xfs_rmap_finish_one+0x206/0x2b0 [xfs]
[1513574.094001] CPU: 1 PID: 7087 Comm: kworker/u4:2 Tainted: G        W  OE     4.18.0-rc1 #1
[1513574.094839] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.fc28 04/01/2014
[1513574.095650] Workqueue: writeback wb_workfn (flush-253:1)
[1513574.096145] Call Trace:
[1513574.096390]  dump_stack+0x5c/0x80
[1513574.096719]  xfs_rmap_map+0x18c/0x8d0 [xfs]
[1513574.097138]  ? xfs_free_extent_fix_freelist+0x7d/0xb0 [xfs]
[1513574.097662]  ? _cond_resched+0x15/0x30
[1513574.098021]  ? kmem_cache_alloc+0x16a/0x1d0
[1513574.098435]  ? kmem_zone_alloc+0x61/0xe0 [xfs]
[1513574.098877]  xfs_rmap_finish_one+0x206/0x2b0 [xfs]
[1513574.099355]  ? xfs_trans_free+0x55/0xc0 [xfs]
[1513574.099788]  xfs_trans_log_finish_rmap_update+0x2f/0x40 [xfs]
[1513574.100346]  xfs_rmap_update_finish_item+0x2d/0x40 [xfs]
[1513574.100865]  xfs_defer_finish+0x164/0x470 [xfs]
[1513574.101318]  ? xfs_rmap_update_cancel_item+0x10/0x10 [xfs]
[1513574.101852]  xfs_iomap_write_allocate+0x182/0x370 [xfs]
[1513574.102371]  xfs_map_blocks+0x209/0x290 [xfs]
[1513574.102819]  xfs_do_writepage+0x147/0x690 [xfs]
[1513574.103265]  ? clear_page_dirty_for_io+0x224/0x290
[1513574.103718]  write_cache_pages+0x1dc/0x450
[1513574.104141]  ? xfs_vm_readpage+0x70/0x70 [xfs]
[1513574.104594]  ? btrfs_wq_submit_bio+0xc9/0xf0 [btrfs]
[1513574.105098]  xfs_vm_writepages+0x59/0x90 [xfs]
[1513574.105534]  do_writepages+0x41/0xd0
[1513574.105886]  ? __switch_to_asm+0x40/0x70
[1513574.106281]  ? __switch_to_asm+0x34/0x70
[1513574.106673]  ? __switch_to_asm+0x40/0x70
[1513574.107067]  ? __switch_to_asm+0x34/0x70
[1513574.107453]  ? __switch_to_asm+0x40/0x70
[1513574.107843]  ? __switch_to_asm+0x34/0x70
[1513574.108235]  ? __switch_to_asm+0x40/0x70
[1513574.108623]  ? __switch_to_asm+0x34/0x70
[1513574.109016]  ? __switch_to_asm+0x40/0x70
[1513574.109406]  ? __switch_to_asm+0x40/0x70
[1513574.109790]  __writeback_single_inode+0x3d/0x350
[1513574.110247]  writeback_sb_inodes+0x1d0/0x460
[1513574.110669]  __writeback_inodes_wb+0x5d/0xb0
[1513574.111172]  wb_writeback+0x255/0x2f0
[1513574.111535]  ? get_nr_inodes+0x35/0x50
[1513574.111904]  ? cpumask_next+0x16/0x20
[1513574.112273]  wb_workfn+0x186/0x400
[1513574.112608]  ? sched_clock+0x5/0x10
[1513574.112955]  process_one_work+0x1a1/0x350
[1513574.113343]  worker_thread+0x30/0x380
[1513574.113702]  ? wq_update_unbound_numa+0x1a0/0x1a0
[1513574.114158]  kthread+0x112/0x130
[1513574.114484]  ? kthread_create_worker_on_cpu+0x70/0x70
[1513574.114980]  ret_from_fork+0x35/0x40
[1513574.115352] XFS (dm-1): xfs_do_force_shutdown(0x8) called from line 222 of file fs/xfs/libxfs/xfs_defer.c.  Return address = 0000000000b9898a
[1513574.309527] XFS (dm-1): Corruption of in-memory data detected.  Shutting down filesystem
[1513574.313154] XFS (dm-1): Please umount the filesystem and rectify the problem(s)

Should the dmesg check be disabled as well?

Thanks,
Eryu

P.S.
BTW, patch 1/1 looks fine, I'll take it for this week's update.

#6 lore raw

Re: [PATCH 2/2] xfs: fuzz every field of every structure and test kernel crashes

Quoted 15 lines · Eryu Guan
Quoted 6 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fuzz every field of every structure and then try to write the filesystem, to see how many of these writes can crash the kernel.

The "re-repair" failures are gone, but I still see some test failures like (xfs/1398 for example)

(quoted diff) +2 -0
+re-mount failed (32) with magic = zeroes.
+re-mount failed (32) with magic = ones.
...
Quoted 1 line

Looks like the re-mount is expected to fail as we skipped all the repair work.

Yeah, these tests are going to throw a /lot/ of errors as we try to see if we can get the kernel to blow up on deliberately garbage filesystems. They're not expected to pass ever, except in the sense that the kernel doesn't just crash. :)

Quoted 3 lines

Also, there're _check_dmesg failures too (they were buried among other failures so I didn't notice them in last review), like this "Internal error" from xfs/1397

But yeah, I will add _check_dmesg to all of the tests before the next submission (unless you commit it before then).

--D

Quoted 66 lines
[1513573.879719] [U] ++ Try to write filesystem again
[1513574.092652] XFS (dm-1): Internal error XFS_WANT_CORRUPTED_GOTO at line 756 of file fs/xfs/libxfs/xfs_rmap.c.  Caller xfs_rmap_finish_one+0x206/0x2b0 [xfs]
[1513574.094001] CPU: 1 PID: 7087 Comm: kworker/u4:2 Tainted: G        W  OE     4.18.0-rc1 #1
[1513574.094839] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.fc28 04/01/2014
[1513574.095650] Workqueue: writeback wb_workfn (flush-253:1)
[1513574.096145] Call Trace:
[1513574.096390]  dump_stack+0x5c/0x80
[1513574.096719]  xfs_rmap_map+0x18c/0x8d0 [xfs]
[1513574.097138]  ? xfs_free_extent_fix_freelist+0x7d/0xb0 [xfs]
[1513574.097662]  ? _cond_resched+0x15/0x30
[1513574.098021]  ? kmem_cache_alloc+0x16a/0x1d0
[1513574.098435]  ? kmem_zone_alloc+0x61/0xe0 [xfs]
[1513574.098877]  xfs_rmap_finish_one+0x206/0x2b0 [xfs]
[1513574.099355]  ? xfs_trans_free+0x55/0xc0 [xfs]
[1513574.099788]  xfs_trans_log_finish_rmap_update+0x2f/0x40 [xfs]
[1513574.100346]  xfs_rmap_update_finish_item+0x2d/0x40 [xfs]
[1513574.100865]  xfs_defer_finish+0x164/0x470 [xfs]
[1513574.101318]  ? xfs_rmap_update_cancel_item+0x10/0x10 [xfs]
[1513574.101852]  xfs_iomap_write_allocate+0x182/0x370 [xfs]
[1513574.102371]  xfs_map_blocks+0x209/0x290 [xfs]
[1513574.102819]  xfs_do_writepage+0x147/0x690 [xfs]
[1513574.103265]  ? clear_page_dirty_for_io+0x224/0x290
[1513574.103718]  write_cache_pages+0x1dc/0x450
[1513574.104141]  ? xfs_vm_readpage+0x70/0x70 [xfs]
[1513574.104594]  ? btrfs_wq_submit_bio+0xc9/0xf0 [btrfs]
[1513574.105098]  xfs_vm_writepages+0x59/0x90 [xfs]
[1513574.105534]  do_writepages+0x41/0xd0
[1513574.105886]  ? __switch_to_asm+0x40/0x70
[1513574.106281]  ? __switch_to_asm+0x34/0x70
[1513574.106673]  ? __switch_to_asm+0x40/0x70
[1513574.107067]  ? __switch_to_asm+0x34/0x70
[1513574.107453]  ? __switch_to_asm+0x40/0x70
[1513574.107843]  ? __switch_to_asm+0x34/0x70
[1513574.108235]  ? __switch_to_asm+0x40/0x70
[1513574.108623]  ? __switch_to_asm+0x34/0x70
[1513574.109016]  ? __switch_to_asm+0x40/0x70
[1513574.109406]  ? __switch_to_asm+0x40/0x70
[1513574.109790]  __writeback_single_inode+0x3d/0x350
[1513574.110247]  writeback_sb_inodes+0x1d0/0x460
[1513574.110669]  __writeback_inodes_wb+0x5d/0xb0
[1513574.111172]  wb_writeback+0x255/0x2f0
[1513574.111535]  ? get_nr_inodes+0x35/0x50
[1513574.111904]  ? cpumask_next+0x16/0x20
[1513574.112273]  wb_workfn+0x186/0x400
[1513574.112608]  ? sched_clock+0x5/0x10
[1513574.112955]  process_one_work+0x1a1/0x350
[1513574.113343]  worker_thread+0x30/0x380
[1513574.113702]  ? wq_update_unbound_numa+0x1a0/0x1a0
[1513574.114158]  kthread+0x112/0x130
[1513574.114484]  ? kthread_create_worker_on_cpu+0x70/0x70
[1513574.114980]  ret_from_fork+0x35/0x40
[1513574.115352] XFS (dm-1): xfs_do_force_shutdown(0x8) called from line 222 of file fs/xfs/libxfs/xfs_defer.c.  Return address = 0000000000b9898a
[1513574.309527] XFS (dm-1): Corruption of in-memory data detected.  Shutting down filesystem
[1513574.313154] XFS (dm-1): Please umount the filesystem and rectify the problem(s)

Should the dmesg check be disabled as well?

Thanks,
Eryu

P.S.
BTW, patch 1/1 looks fine, I'll take it for this week's update. --
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Re: [PATCH 2/2] xfs: fuzz every field of every structure and test kernel crashes

Quoted 23 lines · Darrick J. Wong
Quoted 15 lines · Eryu Guan
Quoted 6 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fuzz every field of every structure and then try to write the filesystem, to see how many of these writes can crash the kernel.

The "re-repair" failures are gone, but I still see some test failures like (xfs/1398 for example)

(quoted diff) +2 -0
+re-mount failed (32) with magic = zeroes.
+re-mount failed (32) with magic = ones.
...
Quoted 1 line

Looks like the re-mount is expected to fail as we skipped all the repair work.

Yeah, these tests are going to throw a /lot/ of errors as we try to see if we can get the kernel to blow up on deliberately garbage filesystems. They're not expected to pass ever, except in the sense that the kernel doesn't just crash. :)

Quoted 6 lines
Quoted 3 lines

Also, there're _check_dmesg failures too (they were buried among other failures so I didn't notice them in last review), like this "Internal error" from xfs/1397

But yeah, I will add _check_dmesg to all of the tests before the next submission (unless you commit it before then).

I'll wait for re-submission :)

Thanks,
Eryu

#8 lore raw

PATCH v2 2/2 xfs: fuzz every field of every structure and test kernel crashes

In reply to Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Fuzz every field of every structure and then try to write the filesystem, to see how many of these writes can crash the kernel.

---
v2: disable dmesg check

---
 common/fuzzy       |   54 ++++++++++++++++++++++++++++++----------------------
 tests/xfs/1387     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1387.out |    4 ++++
 tests/xfs/1388     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1388.out |    4 ++++
 tests/xfs/1389     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1389.out |    6 ++++++
 tests/xfs/1390     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1390.out |    4 ++++
 tests/xfs/1391     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1391.out |    4 ++++
 tests/xfs/1392     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1392.out |    4 ++++
 tests/xfs/1393     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1393.out |    4 ++++
 tests/xfs/1394     |   46 ++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1394.out |    4 ++++
 tests/xfs/1395     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1395.out |    4 ++++
 tests/xfs/1396     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1396.out |    4 ++++
 tests/xfs/1397     |   47 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1397.out |    4 ++++
 tests/xfs/1398     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1398.out |    4 ++++
 tests/xfs/1399     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1399.out |    5 +++++
 tests/xfs/1400     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1400.out |    5 +++++
 tests/xfs/1401     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1401.out |    5 +++++
 tests/xfs/1402     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1402.out |    5 +++++
 tests/xfs/1403     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1403.out |    5 +++++
 tests/xfs/1404     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1404.out |    5 +++++
 tests/xfs/1405     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1405.out |    5 +++++
 tests/xfs/1406     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1406.out |    5 +++++
 tests/xfs/1407     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1407.out |    5 +++++
 tests/xfs/1408     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1408.out |    5 +++++
 tests/xfs/1409     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1409.out |    5 +++++
 tests/xfs/1410     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1410.out |    5 +++++
 tests/xfs/1411     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1411.out |    5 +++++
 tests/xfs/1412     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1412.out |    5 +++++
 tests/xfs/1413     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1413.out |    5 +++++
 tests/xfs/1414     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1414.out |    5 +++++
 tests/xfs/1415     |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1415.out |    4 ++++
 tests/xfs/1416     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1416.out |    4 ++++
 tests/xfs/1417     |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1417.out |    4 ++++
 tests/xfs/1418     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1418.out |    5 +++++
 tests/xfs/1419     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1419.out |    5 +++++
 tests/xfs/1420     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1420.out |    5 +++++
 tests/xfs/1421     |   49 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1421.out |    4 ++++
 tests/xfs/1422     |   49 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1422.out |    4 ++++
 tests/xfs/1423     |   49 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/1423.out |    4 ++++
 tests/xfs/group    |   37 ++++++++++++++++++++++++++++++++++++
 76 files changed, 2072 insertions(+), 23 deletions(-)
 create mode 100755 tests/xfs/1387
 create mode 100644 tests/xfs/1387.out
 create mode 100755 tests/xfs/1388
 create mode 100644 tests/xfs/1388.out
 create mode 100755 tests/xfs/1389
 create mode 100644 tests/xfs/1389.out
 create mode 100755 tests/xfs/1390
 create mode 100644 tests/xfs/1390.out
 create mode 100755 tests/xfs/1391
 create mode 100644 tests/xfs/1391.out
 create mode 100755 tests/xfs/1392
 create mode 100644 tests/xfs/1392.out
 create mode 100755 tests/xfs/1393
 create mode 100644 tests/xfs/1393.out
 create mode 100755 tests/xfs/1394
 create mode 100644 tests/xfs/1394.out
 create mode 100755 tests/xfs/1395
 create mode 100644 tests/xfs/1395.out
 create mode 100755 tests/xfs/1396
 create mode 100644 tests/xfs/1396.out
 create mode 100755 tests/xfs/1397
 create mode 100644 tests/xfs/1397.out
 create mode 100755 tests/xfs/1398
 create mode 100644 tests/xfs/1398.out
 create mode 100755 tests/xfs/1399
 create mode 100644 tests/xfs/1399.out
 create mode 100755 tests/xfs/1400
 create mode 100644 tests/xfs/1400.out
 create mode 100755 tests/xfs/1401
 create mode 100644 tests/xfs/1401.out
 create mode 100755 tests/xfs/1402
 create mode 100644 tests/xfs/1402.out
 create mode 100755 tests/xfs/1403
 create mode 100644 tests/xfs/1403.out
 create mode 100755 tests/xfs/1404
 create mode 100644 tests/xfs/1404.out
 create mode 100755 tests/xfs/1405
 create mode 100644 tests/xfs/1405.out
 create mode 100755 tests/xfs/1406
 create mode 100644 tests/xfs/1406.out
 create mode 100755 tests/xfs/1407
 create mode 100644 tests/xfs/1407.out
 create mode 100755 tests/xfs/1408
 create mode 100644 tests/xfs/1408.out
 create mode 100755 tests/xfs/1409
 create mode 100644 tests/xfs/1409.out
 create mode 100755 tests/xfs/1410
 create mode 100644 tests/xfs/1410.out
 create mode 100755 tests/xfs/1411
 create mode 100644 tests/xfs/1411.out
 create mode 100755 tests/xfs/1412
 create mode 100644 tests/xfs/1412.out
 create mode 100755 tests/xfs/1413
 create mode 100644 tests/xfs/1413.out
 create mode 100755 tests/xfs/1414
 create mode 100644 tests/xfs/1414.out
 create mode 100755 tests/xfs/1415
 create mode 100644 tests/xfs/1415.out
 create mode 100755 tests/xfs/1416
 create mode 100644 tests/xfs/1416.out
 create mode 100755 tests/xfs/1417
 create mode 100644 tests/xfs/1417.out
 create mode 100755 tests/xfs/1418
 create mode 100644 tests/xfs/1418.out
 create mode 100755 tests/xfs/1419
 create mode 100644 tests/xfs/1419.out
 create mode 100755 tests/xfs/1420
 create mode 100644 tests/xfs/1420.out
 create mode 100755 tests/xfs/1421
 create mode 100644 tests/xfs/1421.out
 create mode 100755 tests/xfs/1422
 create mode 100644 tests/xfs/1422.out
 create mode 100755 tests/xfs/1423
 create mode 100644 tests/xfs/1423.out
common/fuzzy +31 -23
index 025f2615..e3435c8a 100644
@@ -169,7 +169,7 @@ __fuzz_notify() {
 # Fuzz one field of some piece of metadata.
 # First arg is the field name
 # Second arg is the fuzz verb (ones, zeroes, random, add, sub...)
-# Third arg is the repair mode (online, offline, both)
+# Third arg is the repair mode (online, offline, both, none)
 __scratch_xfs_fuzz_field_test() {
 	field="$1"
 	fuzzverb="$2"
@@ -190,12 +190,14 @@ __scratch_xfs_fuzz_field_test() {
 	if [ $res -eq 0 ]; then
 		# Try an online scrub unless we're fuzzing ag 0's sb,
 		# which scrub doesn't know how to fix.
-		echo "++ Online scrub"
-		if [ "$1" != "sb 0" ]; then
-			_scratch_scrub -n -a 1 -e continue 2>&1
-			res=$?
-			test $res -eq 0 && \
-				(>&2 echo "scrub didn't fail with ${field} = ${fuzzverb}.")
+		if [ "${repair}" != "none" ]; then
+			echo "++ Online scrub"
+			if [ "$1" != "sb 0" ]; then
+				_scratch_scrub -n -a 1 -e continue 2>&1
+				res=$?
+				test $res -eq 0 && \
+					(>&2 echo "scrub didn't fail with ${field} = ${fuzzverb}.")
+			fi
 		fi
 
 		# Try fixing the filesystem online?!
@@ -222,11 +224,13 @@ __scratch_xfs_fuzz_field_test() {
 	fi
 
 	# See if repair finds a clean fs
-	echo "+ Make sure error is gone (offline)"
-        _scratch_xfs_repair -n 2>&1
-	res=$?
-	test $res -ne 0 && \
-		(>&2 echo "offline re-scrub ($res) with ${field} = ${fuzzverb}.")
+	if [ "${repair}" != "none" ]; then
+		echo "+ Make sure error is gone (offline)"
+		_scratch_xfs_repair -n 2>&1
+		res=$?
+		test $res -ne 0 && \
+			(>&2 echo "offline re-scrub ($res) with ${field} = ${fuzzverb}.")
+	fi
 
 	# See if scrub finds a clean fs
 	echo "+ Make sure error is gone (online)"
@@ -235,12 +239,14 @@ __scratch_xfs_fuzz_field_test() {
 	if [ $res -eq 0 ]; then
 		# Try an online scrub unless we're fuzzing ag 0's sb,
 		# which scrub doesn't know how to fix.
-		echo "++ Online scrub"
-		if [ "$1" != "sb 0" ]; then
-			_scratch_scrub -n -e continue 2>&1
-			res=$?
-			test $res -ne 0 && \
-				(>&2 echo "online re-scrub ($res) with ${field} = ${fuzzverb}.")
+		if [ "${repair}" != "none" ]; then
+			echo "++ Online scrub"
+			if [ "$1" != "sb 0" ]; then
+				_scratch_scrub -n -e continue 2>&1
+				res=$?
+				test $res -ne 0 && \
+					(>&2 echo "online re-scrub ($res) with ${field} = ${fuzzverb}.")
+			fi
 		fi
 
 		# Try modifying the filesystem again!
@@ -252,11 +258,13 @@ __scratch_xfs_fuzz_field_test() {
 	fi
 
 	# See if repair finds a clean fs
-	echo "+ Re-check the filesystem (offline)"
-	_scratch_xfs_repair -n 2>&1
-	res=$?
-	test $res -ne 0 && \
-		(>&2 echo "re-repair failed ($res) with ${field} = ${fuzzverb}.")
+	if [ "${repair}" != "none" ]; then
+		echo "+ Re-check the filesystem (offline)"
+		_scratch_xfs_repair -n 2>&1
+		res=$?
+		test $res -ne 0 && \
+			(>&2 echo "re-repair failed ($res) with ${field} = ${fuzzverb}.")
+	fi
 }
 
 # Make sure we have all the pieces we need for field fuzzing
tests/xfs/1387 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1387.out new file +4 -0
new file mode 100644
index 00000000..67adab71
@@ -0,0 +1,4 @@
+QA output created by 1387
+Format and populate
+Fuzz superblock
+Done fuzzing superblock
tests/xfs/1388 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1388.out new file +4 -0
new file mode 100644
index 00000000..5b3b8077
@@ -0,0 +1,4 @@
+QA output created by 1388
+Format and populate
+Fuzz AGF
+Done fuzzing AGF
tests/xfs/1389 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1389.out new file +6 -0
new file mode 100644
index 00000000..7f7db14c
@@ -0,0 +1,6 @@
+QA output created by 1389
+Format and populate
+Fuzz AGFL
+Done fuzzing AGFL
+Fuzz AGFL flfirst
+Done fuzzing AGFL flfirst
tests/xfs/1390 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1390.out new file +4 -0
new file mode 100644
index 00000000..0119f32b
@@ -0,0 +1,4 @@
+QA output created by 1390
+Format and populate
+Fuzz AGI
+Done fuzzing AGI
tests/xfs/1391 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1391.out new file +4 -0
new file mode 100644
index 00000000..382b0902
@@ -0,0 +1,4 @@
+QA output created by 1391
+Format and populate
+Fuzz bnobt recs
+Done fuzzing bnobt recs
tests/xfs/1392 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1392.out new file +4 -0
new file mode 100644
index 00000000..e7b9c660
@@ -0,0 +1,4 @@
+QA output created by 1392
+Format and populate
+Fuzz bnobt keyptr
+Done fuzzing bnobt keyptr
tests/xfs/1393 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1393.out new file +4 -0
new file mode 100644
index 00000000..d63c8ca9
@@ -0,0 +1,4 @@
+QA output created by 1393
+Format and populate
+Fuzz cntbt
+Done fuzzing cntbt
tests/xfs/1394 new file +46 -0

46 lines not on this page · raw message

tests/xfs/1394.out new file +4 -0
new file mode 100644
index 00000000..83277856
@@ -0,0 +1,4 @@
+QA output created by 1394
+Format and populate
+Fuzz inobt
+Done fuzzing inobt
tests/xfs/1395 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1395.out new file +4 -0
new file mode 100644
index 00000000..408f894b
@@ -0,0 +1,4 @@
+QA output created by 1395
+Format and populate
+Fuzz finobt
+Done fuzzing finobt
tests/xfs/1396 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1396.out new file +4 -0
new file mode 100644
index 00000000..ee974659
@@ -0,0 +1,4 @@
+QA output created by 1396
+Format and populate
+Fuzz rmapbt recs
+Done fuzzing rmapbt recs
tests/xfs/1397 new file +47 -0

47 lines not on this page · raw message

tests/xfs/1397.out new file +4 -0
new file mode 100644
index 00000000..01258bbe
@@ -0,0 +1,4 @@
+QA output created by 1397
+Format and populate
+Fuzz rmapbt keyptr
+Done fuzzing rmapbt keyptr
tests/xfs/1398 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1398.out new file +4 -0
new file mode 100644
index 00000000..ab572804
@@ -0,0 +1,4 @@
+QA output created by 1398
+Format and populate
+Fuzz refcountbt
+Done fuzzing refcountbt
tests/xfs/1399 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1399.out new file +5 -0
new file mode 100644
index 00000000..f57a3648
@@ -0,0 +1,5 @@
+QA output created by 1399
+Format and populate
+Find btree-format dir inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1400 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1400.out new file +5 -0
new file mode 100644
index 00000000..5415c8d6
@@ -0,0 +1,5 @@
+QA output created by 1400
+Format and populate
+Find extents-format file inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1401 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1401.out new file +5 -0
new file mode 100644
index 00000000..6dbf00f0
@@ -0,0 +1,5 @@
+QA output created by 1401
+Format and populate
+Find btree-format file inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1402 new file +53 -0

53 lines not on this page · raw message

tests/xfs/1402.out new file +5 -0
new file mode 100644
index 00000000..78f7424e
@@ -0,0 +1,5 @@
+QA output created by 1402
+Format and populate
+Find bmbt block
+Fuzz bmbt
+Done fuzzing bmbt
tests/xfs/1403 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1403.out new file +5 -0
new file mode 100644
index 00000000..3ff10063
@@ -0,0 +1,5 @@
+QA output created by 1403
+Format and populate
+Find symlink remote block
+Fuzz symlink remote block
+Done fuzzing symlink remote block
tests/xfs/1404 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1404.out new file +5 -0
new file mode 100644
index 00000000..106ff63e
@@ -0,0 +1,5 @@
+QA output created by 1404
+Format and populate
+Find inline-format dir inode
+Fuzz inline-format dir inode
+Done fuzzing inline-format dir inode
tests/xfs/1405 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1405.out new file +5 -0
new file mode 100644
index 00000000..3f194d24
@@ -0,0 +1,5 @@
+QA output created by 1405
+Format and populate
+Find data-format dir block
+Fuzz data-format dir block
+Done fuzzing data-format dir block
tests/xfs/1406 new file +52 -0

52 lines not on this page · raw message

tests/xfs/1406.out new file +5 -0
new file mode 100644
index 00000000..32e8749f
@@ -0,0 +1,5 @@
+QA output created by 1406
+Format and populate
+Find data-format dir block
+Fuzz data-format dir block
+Done fuzzing data-format dir block
tests/xfs/1407 new file +53 -0

53 lines not on this page · raw message

tests/xfs/1407.out new file +5 -0
new file mode 100644
index 00000000..f9b8c3e1
@@ -0,0 +1,5 @@
+QA output created by 1407
+Format and populate
+Find leaf1-format dir block
+Fuzz leaf1-format dir block
+Done fuzzing leaf1-format dir block
tests/xfs/1408 new file +53 -0

53 lines not on this page · raw message

tests/xfs/1408.out new file +5 -0
new file mode 100644
index 00000000..b404dd87
@@ -0,0 +1,5 @@
+QA output created by 1408
+Format and populate
+Find leafn-format dir block
+Fuzz leafn-format dir block
+Done fuzzing leafn-format dir block
tests/xfs/1409 new file +53 -0

53 lines not on this page · raw message

tests/xfs/1409.out new file +5 -0
new file mode 100644
index 00000000..e0b5ae0b
@@ -0,0 +1,5 @@
+QA output created by 1409
+Format and populate
+Find node-format dir block
+Fuzz node-format dir block
+Done fuzzing node-format dir block
tests/xfs/1410 new file +53 -0

53 lines not on this page · raw message

tests/xfs/1410.out new file +5 -0
new file mode 100644
index 00000000..0e60d89d
@@ -0,0 +1,5 @@
+QA output created by 1410
+Format and populate
+Find freeindex-format dir block
+Fuzz freeindex-format dir block
+Done fuzzing freeindex-format dir block
tests/xfs/1411 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1411.out new file +5 -0
new file mode 100644
index 00000000..16cfbfa6
@@ -0,0 +1,5 @@
+QA output created by 1411
+Format and populate
+Find inline-format attr inode
+Fuzz inline-format attr inode
+Done fuzzing inline-format attr inode
tests/xfs/1412 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1412.out new file +5 -0
new file mode 100644
index 00000000..41614772
@@ -0,0 +1,5 @@
+QA output created by 1412
+Format and populate
+Find leaf-format attr block
+Fuzz leaf-format attr block
+Done fuzzing leaf-format attr block
tests/xfs/1413 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1413.out new file +5 -0
new file mode 100644
index 00000000..7c295771
@@ -0,0 +1,5 @@
+QA output created by 1413
+Format and populate
+Find node-format attr block
+Fuzz node-format attr block
+Done fuzzing node-format attr block
tests/xfs/1414 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1414.out new file +5 -0
new file mode 100644
index 00000000..ede45f43
@@ -0,0 +1,5 @@
+QA output created by 1414
+Format and populate
+Find external attr block
+Fuzz external attr block
+Done fuzzing external attr block
tests/xfs/1415 new file +50 -0

50 lines not on this page · raw message

tests/xfs/1415.out new file +4 -0
new file mode 100644
index 00000000..d23b46bf
@@ -0,0 +1,4 @@
+QA output created by 1415
+Format and populate
+Fuzz rtrmapbt recs
+Done fuzzing rtrmapbt recs
tests/xfs/1416 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1416.out new file +4 -0
new file mode 100644
index 00000000..e368a20e
@@ -0,0 +1,4 @@
+QA output created by 1416
+Format and populate
+Fuzz rtrmapbt keyptrs
+Done fuzzing rtrmapbt keyptrs
tests/xfs/1417 new file +48 -0

48 lines not on this page · raw message

tests/xfs/1417.out new file +4 -0
new file mode 100644
index 00000000..4a505f1c
@@ -0,0 +1,4 @@
+QA output created by 1417
+Format and populate
+Fuzz refcountbt
+Done fuzzing refcountbt
tests/xfs/1418 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1418.out new file +5 -0
new file mode 100644
index 00000000..d5864640
@@ -0,0 +1,5 @@
+QA output created by 1418
+Format and populate
+Find btree-format attr inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1419 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1419.out new file +5 -0
new file mode 100644
index 00000000..10af3bb3
@@ -0,0 +1,5 @@
+QA output created by 1419
+Format and populate
+Find blockdev inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1420 new file +51 -0

51 lines not on this page · raw message

tests/xfs/1420.out new file +5 -0
new file mode 100644
index 00000000..c82242ce
@@ -0,0 +1,5 @@
+QA output created by 1420
+Format and populate
+Find local-format symlink inode
+Fuzz inode
+Done fuzzing inode
tests/xfs/1421 new file +49 -0

49 lines not on this page · raw message

tests/xfs/1421.out new file +4 -0
new file mode 100644
index 00000000..8a50226a
@@ -0,0 +1,4 @@
+QA output created by 1421
+Format and populate
+Fuzz user 0 dquot
+Done fuzzing dquot
tests/xfs/1422 new file +49 -0

49 lines not on this page · raw message

tests/xfs/1422.out new file +4 -0
new file mode 100644
index 00000000..728e73f7
@@ -0,0 +1,4 @@
+QA output created by 1422
+Format and populate
+Fuzz group 0 dquot
+Done fuzzing dquot
tests/xfs/1423 new file +49 -0

49 lines not on this page · raw message

tests/xfs/1423.out new file +4 -0
new file mode 100644
index 00000000..8a679f76
@@ -0,0 +1,4 @@
+QA output created by 1423
+Format and populate
+Fuzz project 0 dquot
+Done fuzzing dquot
tests/xfs/group +37 -0
index 39b0e842..f825e6b8 100644
@@ -450,3 +450,40 @@
 450 auto quick rmap
 451 auto quick metadata repair
 452 auto db
+1387 dangerous_fuzzers dangerous_norepair
+1388 dangerous_fuzzers dangerous_norepair
+1389 dangerous_fuzzers dangerous_norepair
+1390 dangerous_fuzzers dangerous_norepair
+1391 dangerous_fuzzers dangerous_norepair
+1392 dangerous_fuzzers dangerous_norepair
+1393 dangerous_fuzzers dangerous_norepair
+1394 dangerous_fuzzers dangerous_norepair
+1395 dangerous_fuzzers dangerous_norepair
+1396 dangerous_fuzzers dangerous_norepair
+1397 dangerous_fuzzers dangerous_norepair
+1398 dangerous_fuzzers dangerous_norepair
+1399 dangerous_fuzzers dangerous_norepair
+1400 dangerous_fuzzers dangerous_norepair
+1401 dangerous_fuzzers dangerous_norepair
+1402 dangerous_fuzzers dangerous_norepair
+1403 dangerous_fuzzers dangerous_norepair
+1404 dangerous_fuzzers dangerous_norepair
+1405 dangerous_fuzzers dangerous_norepair
+1406 dangerous_fuzzers dangerous_norepair
+1407 dangerous_fuzzers dangerous_norepair
+1408 dangerous_fuzzers dangerous_norepair
+1409 dangerous_fuzzers dangerous_norepair
+1410 dangerous_fuzzers dangerous_norepair
+1411 dangerous_fuzzers dangerous_norepair
+1412 dangerous_fuzzers dangerous_norepair
+1413 dangerous_fuzzers dangerous_norepair
+1414 dangerous_fuzzers dangerous_norepair
+1415 dangerous_fuzzers dangerous_norepair
+1416 dangerous_fuzzers dangerous_norepair
+1417 dangerous_fuzzers dangerous_norepair
+1418 dangerous_fuzzers dangerous_norepair
+1419 dangerous_fuzzers dangerous_norepair
+1420 dangerous_fuzzers dangerous_norepair
+1421 dangerous_fuzzers dangerous_norepair
+1422 dangerous_fuzzers dangerous_norepair
+1423 dangerous_fuzzers dangerous_norepair