2423 Commits

Author SHA1 Message Date
hexcoder
5f3b7e6cdf
typo aonce -> once 2020-06-28 21:21:27 +02:00
van Hauser
910b9f3f25 O2 instead of O3 for .o target files 2020-06-28 16:53:31 +02:00
van Hauser
4fd2cb2ce0 update idea list 2020-06-28 14:51:49 +02:00
van Hauser
e234a6ae4e update schedules in readme 2020-06-28 14:46:57 +02:00
van Hauser
ee17782e61 fix output for LTOinstrim 2020-06-28 00:13:31 +02:00
van Hauser
cd6954e3c1 fix make static 2020-06-27 23:11:10 +02:00
van Hauser
29e41a09d5 fix typos 2020-06-27 18:16:27 +02:00
hexcoder-
4103687f76 afl-sharedmem.c: fix leaks on error paths (SysV shared memory) 2020-06-27 00:13:24 +02:00
Andrea Fioraldi
976e99b1d4 original fix for calibration error 2020-06-26 10:17:21 +02:00
van Hauser
da7c548452 afl-plot remove error print 2020-06-26 09:53:54 +02:00
van Hauser
1ecfd78418 implement sharedmem mmap for cmplog 2020-06-26 09:13:07 +02:00
hexcoder-
07fead0466 fix shared memory leaks in afl-showmap, initialize cmplog_mode 2020-06-26 01:14:21 +02:00
van Hauser
8bd8442bcc fix for schedules 2020-06-25 22:44:46 +02:00
van Hauser
5904083231 remove debug 2020-06-25 22:28:56 +02:00
van Hauser
171b1923e9 shmem release fix 2020-06-25 22:02:02 +02:00
van Hauser
8d5eb9487d make llvm_mode pcguard instrumentation collision free 2020-06-25 20:09:56 +02:00
van Hauser
633a3feab9 fix makefile 2020-06-25 17:51:48 +02:00
Dominik Maier
c8f60a7fbf initialized variable 2020-06-25 17:25:16 +02:00
Dominik Maier
3a62bb68e0 updated unicornafl 2020-06-25 17:13:16 +02:00
van Hauser
8178f4dfdd remove radamsa, add radamsa custom mutator 2020-06-25 16:51:29 +02:00
Andrea Fioraldi
4a3305c007
Merge pull request #425 from dgmelski/fix-recalibration
Fix saturated maps & stability cliff in recalibration
2020-06-25 15:16:10 +02:00
hexcoder-
9858bc81a3 GNUmakefile: warn about '.' being first path in PATH environment variable. This causes recursion in 'as'. (seen in Haiku) 2020-06-25 13:28:34 +02:00
van Hauser
b5573b3adb add seek power schedule, remove update stats in calibration, fix help output 2020-06-25 10:33:59 +02:00
van Hauser
15dd4ad177 fix plot 2020-06-25 08:50:34 +02:00
David Melski
d540971443 Fix saturated maps & stability cliff in recalibration
I have observed two problems:

  1. A sudden "stability cliff" where stability drops precipitously.

  2. A sudden jump to a 100% saturated "density map".

Both issues are due to attempted "recalibration" of a case at the
beginning of fuzz_one_original() or mopt_common_fuzzing().  See the
comments "CALIBRATION (only if failed earlier on)" in those functions
and the subsequent call to calibrate_case().

At those calls to calibrate_case(), afl->fsrv.trace_bits holds
trace_bits for a run of the SUT on a prior queue entry.  However,
calibrate_case() may use the trace_bits as if they apply to the
current queue entry (afl->queue_cur).

Most often this bug causes the "stability cliff".  Trace bits are
compared for runs on distinct inputs, which can be very different.
The result is a sudden drop in stability.

Sometimes it leads to the "saturated map" problem.  A saturated
density map arises if the trace bits on the previous entry were
"simplified" by simplify_trace().  Simplified traces only contain the
values 1 and 128.  They are meant to be compared against
virgin_crashes and virgin_tmouts.

However, this bug causes the (stale) simplified trace to be compared
against virgin_bits during a call to has_new_bits(), which causes
every byte in vigin_bits to be something other than 255.  The overall
map density is determined by the percentage of bytes not 255, which
will be 100%.  Worse, AFL++ will be unable to detect novel occurrences
of edge counts 1 and 128 going forward.

This patch avoids the above issues by clearing q->exec_cksum when
calibration fails.  Recalibrations are forced to start with a fresh
trace on the queue entry.

Thanks to @andreafioraldi for suggesting the current, improved patch.
2020-06-24 17:59:04 -04:00
van Hauser
1d7c76d141 decrease time to sync for main 2020-06-24 17:37:16 +02:00
van Hauser
224a49341a update .gitignore 2020-06-24 17:04:28 +02:00
van Hauser
fce010f051 add -D option for -S 2020-06-24 11:14:00 +02:00
van Hauser
bdc8e3b79e create .synced/NAMES.last to document last sync attempts 2020-06-24 11:09:33 +02:00
van Hauser
9289af040c gitignore 2020-06-24 08:23:31 +02:00
van Hauser
49a769ac06 lto whitelist in test.sh 2020-06-23 21:23:10 +02:00
van Hauser
2b450aeb20 fix test.sh 2020-06-23 18:21:50 +02:00
van Hauser
5f1c0111a6 fix make files 2020-06-23 18:06:08 +02:00
van Hauser
89f0dc2d14 fix gcc mode for travis 2020-06-23 17:43:04 +02:00
van Hauser
cffb0e9a25 fix gcc makefile 2020-06-23 17:36:05 +02:00
van Hauser
2b26e3867f fix gcc makefile 2020-06-23 17:31:52 +02:00
Dominik Maier
aad433e11e Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-06-23 15:08:49 +02:00
Dominik Maier
59e1a18197
Merge pull request #422 from devnexen/haiku__build_upd
Haiku  build upd
2020-06-23 11:01:22 +02:00
David Carlier
8f98044d69 Libdislocator Haiku build fix 2020-06-23 09:41:38 +00:00
David Carlier
6c414409d4 libtokencap Haiku support 2020-06-23 09:29:57 +00:00
Dominik Maier
7119bf5d86 Added rand, hash unittests 2020-06-22 21:58:23 +02:00
van Hauser
ea1222b33f old compiler fix 2020-06-22 21:40:02 +02:00
van Hauser
37edfe2de9 shmem support for afl-tmin and afl-showmap 2020-06-22 19:56:34 +02:00
van Hauser
76a2d9b59b further refinement 2020-06-22 13:48:59 +02:00
aflpp
87f127722c fix afl-cmin.bash 2020-06-22 08:28:41 +02:00
van Hauser
a49b5ef072 allow /tmp 2020-06-22 07:16:24 +02:00
van Hauser
5cad92e57e fix unicorn mode for CFLAGS 2020-06-21 18:07:30 +02:00
van Hauser
f6ef1fe65e fix libcompcov for CFLAGS 2020-06-21 16:43:55 +02:00
van Hauser
048e429356 remove -Werror and add include for libdislocator 2020-06-21 16:33:55 +02:00
van Hauser
eb3cb4bbf8 fix for s=0 2020-06-21 16:21:59 +02:00