aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlyssa Coghlan <ncoghlan@gmail.com>2024-08-21 19:02:38 +1000
committerGitHub <noreply@github.com>2024-08-21 19:02:38 +1000
commit2b7aae66b64a5da556bb8192acad13b828ab1711 (patch)
treeb0433bd298713830f3b34b7d610fe49fb8234dbc /src
parent097828391530c7858ba80024d69c4efdad2e2fb2 (diff)
downloadafl++-2b7aae66b64a5da556bb8192acad13b828ab1711.tar.gz
Offer more explicit core dump handling tip
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-init.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 4f366b0d..b042fce8 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -2443,20 +2443,24 @@ void check_crash_handling(void) {
SAYF(
"\n" cLRD "[-] " cRST
- "Hmm, your system is configured to send core dump notifications to an\n"
+ "Your system is configured to send core dump notifications to an\n"
" external utility. This will cause issues: there will be an "
"extended delay\n"
" between stumbling upon a crash and having this information "
"relayed to the\n"
" fuzzer via the standard waitpid() API.\n"
- " If you're just testing, set "
+ " If you're experimenting (so missed crashes don't matter), set "
"'AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1'.\n\n"
- " To avoid having crashes misinterpreted as timeouts, please log in "
- "as root\n"
- " and temporarily modify /proc/sys/kernel/core_pattern, like so:\n\n"
+ " To avoid having crashes misinterpreted as timeouts, please \n"
+ " temporarily modify /proc/sys/kernel/core_pattern, like so:\n\n"
- " echo core >/proc/sys/kernel/core_pattern\n");
+ " core_cmd=\"$(cat /proc/sys/kernel/core_pattern)\"\n"
+ " echo core | sudo tee /proc/sys/kernel/core_pattern\n"
+
+ " After fuzz testing is complete, restore the core handling:\n\n"
+
+ " echo \"$core_cmd\" | sudo tee /proc/sys/kernel/core_pattern\n");
if (!getenv("AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES")) {