Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set rlimit to inifinity for core dumps if AFL_DEBUG=1 #2643

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

R9295
Copy link
Collaborator

@R9295 R9295 commented Oct 30, 2024

No description provided.

@R9295
Copy link
Collaborator Author

R9295 commented Oct 30, 2024

the CI issue is qemu, not related to this pr

@@ -134,6 +135,8 @@ pub trait ConfigTarget {
fn setsid(&mut self) -> &mut Self;
/// Sets a mem limit
fn setlimit(&mut self, memlimit: u64) -> &mut Self;
/// Sets core dump rlimit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit more docu what this does would be nice

@R9295 R9295 requested a review from domenukk October 31, 2024 08:54
@domenukk
Copy link
Member

libafl-fuzz seems broken now:

[u] [13.494438] fksrv_start returns 2
[u] [13.496424] fksrv_start returns 2
Fuzzing stopped by user. Good bye.
+ true
+ ls ./test/output-unicorn-cmpcov/fuzzer_main/queue/id:000002*
+ test -n 
+ echo No new corpus entries found for Unicorn cmpcov mode
No new corpus entries found for Unicorn cmpcov mode
+ exit 1
Error while executing command, exit code: 1
[u] [15.873886] fksrv_start returns 5
Loading data input from ./test/output-unicorn-cmpcov/fuzzer_main/.cur_input_86329
Starting the AFL fuzz
Traceback (most recent call last):
  File "/home/runner/work/LibAFL/LibAFL/fuzzers/forkserver/libafl-fuzz/AFLplusplus/unicorn_mode/samples/compcov_x64/compcov_test_harness.py", line 172, in <module>
    main()
  File "/home/runner/work/LibAFL/LibAFL/fuzzers/forkserver/libafl-fuzz/AFLplusplus/unicorn_mode/samples/compcov_x64/compcov_test_harness.py", line 163, in main
    uc_afl_fuzz(uc,
  File "/home/runner/.local/lib/python3.12/site-packages/unicornafl-2.1.0-py3.12.egg/unicornafl/unicornafl.py", line 199, in uc_afl_fuzz
    raise UcAflError(err)
unicornafl.unicornafl.UcAflError: We forked before but now AFL is gone (time to quit)
Error: Process completed with exit code 1.

@R9295
Copy link
Collaborator Author

R9295 commented Nov 5, 2024

@domenukk we can merge

@domenukk domenukk merged commit d1c746a into AFLplusplus:main Nov 6, 2024
99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants