Skip to content

Commit

Permalink
[libfuzzer] zip timeouts/ooms/slow units as an artifact for analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Nov 14, 2023
1 parent 0e58c0c commit e0817e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/libfuzzer/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ EOF
# These sysctls shouldn't be necessary for libFuzzer
# sysctl --load /etc/sysctl.d/60-fuzzos.conf
su worker -s "$0"
if [[ -e /home/worker/timeouts.tar.zst ]] && [[ "$(tar -I zstd -tvf /home/worker/timeouts.tar.zst | wc -l)" -gt 0 ]]
then
mv /home/worker/timeouts.tar.zst /logs/
fi
else
# get gcp fuzzdata credentials
mkdir -p ~/.config/gcloud
Expand Down
1 change: 1 addition & 0 deletions services/libfuzzer/libfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,4 @@ else
--libfuzzer \
--build "$(dirname "$HOME/$TARGET_BIN")"
fi
find ./corpora '(' -name 'slow-unit-*' -o -name 'oom-*' -o -name 'timeout-*' ')' -print0 | tar --null --verbatim-files-from -T- -I zstd -cvf timeouts.tar.zst

0 comments on commit e0817e1

Please sign in to comment.