fuzzy: capture core dumps from repair utilities
authorDarrick J. Wong <djwong@kernel.org>
Wed, 10 Feb 2021 02:56:53 +0000 (18:56 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 7 Mar 2021 14:36:15 +0000 (22:36 +0800)
Always capture the core dumps when we run repair tools against a fuzzed
filesystem.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/fuzzy

index bd08af1ce76a4bfa16d4eb7dfe1cd873303b1965..809dee5465c2d16df903b8004cd240219baf56f4 100644 (file)
@@ -307,6 +307,9 @@ _scratch_xfs_fuzz_metadata() {
        echo "Verbs we propose to fuzz with:"
        echo $(echo "${verbs}")
 
+       # Always capture full core dumps from crashing tools
+       ulimit -c unlimited
+
        echo "${fields}" | while read field; do
                echo "${verbs}" | while read fuzzverb; do
                        __scratch_xfs_fuzz_mdrestore