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 bd08af1..809dee5 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