about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-rt.o.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-29 14:15:39 +0200
committerGitHub <noreply@github.com>2020-07-29 14:15:39 +0200
commit3b194e16903e841ec0e6f5c7ae0352709c9e802b (patch)
tree3c641a31dedc8cf48f42ae1492bf14863b5435be /llvm_mode/afl-llvm-rt.o.c
parent45b650833925af31b6d455add75fa82022f5c15f (diff)
parentd64c0e888751a3747d945702bc3e732c94db0cc9 (diff)
downloadafl++-3b194e16903e841ec0e6f5c7ae0352709c9e802b.tar.gz
Merge pull request #476 from AFLplusplus/new_lkm
New snapshot lkm support
Diffstat (limited to 'llvm_mode/afl-llvm-rt.o.c')
-rw-r--r--llvm_mode/afl-llvm-rt.o.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c
index a2038188..c0ed1bcf 100644
--- a/llvm_mode/afl-llvm-rt.o.c
+++ b/llvm_mode/afl-llvm-rt.o.c
@@ -521,7 +521,12 @@ static void __afl_start_snapshots(void) {
         close(FORKSRV_FD);
         close(FORKSRV_FD + 1);
 
-        if (!afl_snapshot_do()) { raise(SIGSTOP); }
+        if (!afl_snapshot_take(AFL_SNAPSHOT_MMAP | AFL_SNAPSHOT_FDS |
+                               AFL_SNAPSHOT_REGS | AFL_SNAPSHOT_EXIT)) {
+
+          raise(SIGSTOP);
+
+        }
 
         __afl_area_ptr[0] = 1;
         memset(__afl_prev_loc, 0, NGRAM_SIZE_MAX * sizeof(PREV_LOC_T));