Skip to content

systemd fails to build because all its fuzz targets time out and bad_build_check fails (when it's built with AFL) #13975

@evverx

Description

@evverx

My guess would be that it regressed when AFL was updated in #13968.

https://oss-fuzz-build-logs.storage.googleapis.com/log-0a3ca49a-6368-4257-8a79-d9223cd92d48.txt

Step #4 - "build-check-afl-address-x86_64": ERROR: 100.0% of fuzz targets seem to be broken. See the list above for a detailed information.
Step #4 - "build-check-afl-address-x86_64": ********************************************************************************
Step #4 - "build-check-afl-address-x86_64": Build checks failed.

Here's what fuzz-dns-packet failures look like:

Step #4 - "build-check-afl-address-x86_64": BAD BUILD: fuzzing /tmp/not-out/tmp3joxpek0/fuzz-dns-packet with afl-fuzz failed.
Step #4 - "build-check-afl-address-x86_64": vm.mmap_rnd_bits = 28
Step #4 - "build-check-afl-address-x86_64": afl++ setup:
Step #4 - "build-check-afl-address-x86_64": AFL_SKIP_CPUFREQ=1
Step #4 - "build-check-afl-address-x86_64": AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
Step #4 - "build-check-afl-address-x86_64": AFL_TRY_AFFINITY=1
Step #4 - "build-check-afl-address-x86_64": AFL_IGNORE_UNKNOWN_ENVS=1
Step #4 - "build-check-afl-address-x86_64": AFL_FUZZER_ARGS=-m none -t 5000+
Step #4 - "build-check-afl-address-x86_64": AFL_CMPLOG_ONLY_NEW=1
Step #4 - "build-check-afl-address-x86_64": AFL_FAST_CAL=1
Step #4 - "build-check-afl-address-x86_64": AFL_NO_UI=1
Step #4 - "build-check-afl-address-x86_64": AFL_IGNORE_PROBLEMS=1
Step #4 - "build-check-afl-address-x86_64": AFL_FORKSRV_INIT_TMOUT=30000
Step #4 - "build-check-afl-address-x86_64": AFL_IGNORE_UNKNOWN_ENVS=1
Step #4 - "build-check-afl-address-x86_64": AFL_QUIET=1
Step #4 - "build-check-afl-address-x86_64": AFL_IGNORE_PROBLEMS=1
Step #4 - "build-check-afl-address-x86_64": /tmp/not-out/tmp3joxpek0/afl-fuzz -m none -t 5000+ -i /tmp/fuzz-dns-packet_corpus -o /tmp/fuzz-dns-packet_afl_address_out -- /tmp/not-out/tmp3joxpek0/fuzz-dns-packet
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_SKIP_CPUFREQ with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_TRY_AFFINITY with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_CMPLOG_ONLY_NEW with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_FAST_CAL with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_NO_UI with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_IGNORE_PROBLEMS with value 1�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable AFL_FORKSRV_INIT_TMOUT with value 30000�[0m
Step #4 - "build-check-afl-address-x86_64": �[0;36mafl-fuzz++4.34a�[0m based on afl by Michal Zalewski and a large online community
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mAFL++ is maintained by Marc "van Hauser" Heuse, Dominik Maier, Andrea Fioraldi and Heiko "hexcoder" Eißfeldt�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mAFL++ is open source, get it at https://github.com/AFLplusplus/AFLplusplus�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mNOTE: AFL++ >= v3 has changed defaults and behaviours - see README.md�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable ASAN_OPTIONS with value alloc_dealloc_mismatch=0:allocator_may_return_null=1:allocator_release_to_os_interval_ms=500:check_malloc_usable_size=0:detect_container_overflow=1:detect_odr_violation=0:detect_leaks=1:detect_stack_use_after_return=1:fast_unwind_on_fatal=0:handle_abort=1:handle_segv=1:handle_sigill=1:max_uar_stack_size_log=16:print_scariness=1:quarantine_size_mb=10:strict_memcmp=1:strip_path_prefix=/workspace/:symbolize=1:use_sigaltstack=1:dedup_token_length=3:abort_on_error=1:symbolize=0:detect_odr_violation=0:�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled environment variable MSAN_OPTIONS with value print_stats=1:strip_path_prefix=/workspace/:symbolize=1:dedup_token_length=3:exit_code=86:symbolize=0�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mNo -M/-S set, autoconfiguring for "-S default"�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mGetting to work...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mUsing exploration-based constant power schedule (EXPLORE)�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mEnabled testcache with 50 MB�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mGenerating fuzz data with a length of min=1 max=1048576�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mChecking core_pattern...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mDisabling the UI because AFL_NO_UI is set.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mYou have 32 CPU cores and 2 runnable tasks (utilization: 6%).�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mTry parallel jobs - see docs/fuzzing_in_depth.md#c-using-multiple-cores�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mSetting up output directories...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mChecking CPU core loadout...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mFound a free CPU core, try binding to #0.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mValidating target binary...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mScanning '/tmp/fuzz-dns-packet_corpus'...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mCreating hard links for all input files...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mLoaded a total of 1 seeds.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mSpinning up the fork server...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;92m[+] �[0mAll right - new fork server model v1 is up.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mTarget map size: 114418�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mUsing SHARED MEMORY FUZZING feature.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mNo auto-generated dictionary tokens to reuse.�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;94m[*] �[0mAttempting dry run with 'id:000000,time:0,execs:0,orig:input'...�[0m
Step #4 - "build-check-afl-address-x86_64": �[1;93m[!] �[1;97mWARNING: �[0mTest case results in a timeout (skipping)�[0m
Step #4 - "build-check-afl-address-x86_64": �[?25h�[0m�[1;91m
Step #4 - "build-check-afl-address-x86_64": [-] PROGRAM ABORT : �[0mAll test cases time out or crash, giving up!�[1;91m
Step #4 - "build-check-afl-address-x86_64":          Location : �[0mperform_dry_run(), src/afl-fuzz-init.c:1413
Step #4 - "build-check-afl-address-x86_64": 
Step #4 - "build-check-afl-address-x86_64": 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions