public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob 4d86b2f1a7f95dcc2c629d9b06c76a7f1feedcfe 697 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
 
## 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-lto passt
```

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

```
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:

```
mkdir -p sync_dir
afl-fuzz -i testcase_dir -o sync_dir -M fuzz01 ./fuzz-wrapper @@
```

Slaves:

```
# replace fuzzNN with fuzz02, fuzz03, etc.
afl-fuzz -i testcase_dir -o sync_dir -S fuzzNN ./fuzz-wrapper @@
```

debug log:

solving 4d86b2f ...
found 4d86b2f in https://archives.passt.top/passt-dev/20221117122614.1269214-6-rjones@redhat.com/

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

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

index at:
100644 4d86b2f1a7f95dcc2c629d9b06c76a7f1feedcfe	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).