public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob 8a8a7f3c95352d307b3bb712bd8320e68ad71f37 835 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
## Fuzzing with AFL++ (https://aflplus.plus/)

1. In the top directory rebuild passt with AFL instrumentation, Clang
   and ASAN:

```
make clean
AFL_USE_ASAN=1 make CC=/usr/bin/afl-clang-fast passt
```

2. In the fuzzing/ subdirectory, build the fuzzing wrapper *without*
   instrumentation:

```
cd fuzzing
make fuzz-wrapper
```

3. Run AFL++

Create `fuzzing/sync_dir` and run multiple copies of afl-fuzz.
Usually you should run 1 master (-M) and as many slaves (-S) as you
can.

Master:

```
cd fuzzing
mkdir -p sync_dir
export AFL_SKIP_BIN_CHECK=1
export AFL_NO_FORKSRV=1
afl-fuzz -i testcase_dir -o sync_dir -M fuzz01 ./fuzz-wrapper @@
```

Slaves:

```
cd fuzzing
export AFL_SKIP_BIN_CHECK=1
export AFL_NO_FORKSRV=1
# replace fuzzNN with fuzz02, fuzz03, etc.
afl-fuzz -i testcase_dir -o sync_dir -S fuzzNN ./fuzz-wrapper @@
```

debug log:

solving 8a8a7f3 ...
found 8a8a7f3 in https://archives.passt.top/passt-dev/20221117184938.2270462-8-rjones@redhat.com/

applying [1/1] https://archives.passt.top/passt-dev/20221117184938.2270462-8-rjones@redhat.com/
diff --git a/fuzzing/README.fuzzing.md b/fuzzing/README.fuzzing.md
new file mode 100644
index 0000000..8a8a7f3

Checking patch fuzzing/README.fuzzing.md...
Applied patch fuzzing/README.fuzzing.md cleanly.

index at:
100644 8a8a7f3c95352d307b3bb712bd8320e68ad71f37	fuzzing/README.fuzzing.md

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).