Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libafl-fuzz: separate frida build + cmplog debug #2591

Open
wants to merge 71 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
0bd362c
libafl-fuzz: separate frida build
R9295 Oct 8, 2024
a8cfc84
cmplog debug
R9295 Oct 8, 2024
66245dc
update
R9295 Oct 8, 2024
8d3f5f6
merge AflStatsStage
R9295 Oct 8, 2024
9d1a98d
mandate track_hit_feedbacks feature for AflStatsStage
R9295 Oct 8, 2024
012ab10
afl_stats do not hardcode TimeoutFeedback and CrashFeedback names
R9295 Oct 8, 2024
6534c94
typo
R9295 Oct 8, 2024
18f1fed
typo
R9295 Oct 8, 2024
02f85d9
fix generics order
R9295 Oct 9, 2024
6a358e8
add verify timeouts stage
R9295 Oct 9, 2024
def8485
libafl: introduce set_timeout func to dynamically set timeouts for ex…
R9295 Oct 9, 2024
a3f203e
add missing set_timeout implementations
R9295 Oct 10, 2024
eec5505
libafl-fuzz: move set_timeout and timeout from Executor to HasTimeout
R9295 Oct 11, 2024
d17f50a
libafl-fuzz: add removed gitignore
R9295 Oct 11, 2024
2a35f55
remove timeout from libafl_nyx::Executor and move it to NyxHelper
R9295 Oct 11, 2024
74e41c7
clippy
R9295 Oct 11, 2024
57e8417
Merge branch 'main' into libafl-fuzz/frida-mode-separate
R9295 Oct 11, 2024
282514b
fix HasTimeout for QemuExecutor
R9295 Oct 11, 2024
5b24eac
libafl-fuzz: remove observer handle usage in verify_timeouts
R9295 Oct 11, 2024
2eab13c
libafl-fuzz: fix foreign_sync_dirs option
R9295 Oct 11, 2024
27d3e78
Merge branch 'main' into libafl-fuzz/frida-mode-separate
R9295 Oct 14, 2024
1c5a5eb
fmt && clippy
R9295 Oct 14, 2024
5ee0216
clippy && fmt
R9295 Oct 14, 2024
c04a779
missing doc
R9295 Oct 14, 2024
866cbce
clippy
R9295 Oct 14, 2024
03cae63
bruh
R9295 Oct 14, 2024
0ffb0a7
damned doc build
R9295 Oct 14, 2024
5f79ecd
trait fix
R9295 Oct 14, 2024
22db281
impl HasTimeout for InProcessExecutor only if std
R9295 Oct 14, 2024
c5edce4
clippy
R9295 Oct 14, 2024
dcb1774
fix typo
R9295 Oct 15, 2024
c4ce299
fix nostd build
R9295 Oct 15, 2024
97b6792
clippy
R9295 Oct 15, 2024
8662e7b
remove most HasTimeout implementations for now
R9295 Oct 15, 2024
1b82afb
typo
R9295 Oct 15, 2024
bd46c24
remove redundant import
R9295 Oct 15, 2024
084f1d5
misc
R9295 Oct 15, 2024
c83caa8
fmt
R9295 Oct 15, 2024
b94613d
simplify trait bounds
R9295 Oct 22, 2024
5a41359
add old AflStatsStage back and rename it to StatsStage
R9295 Oct 22, 2024
5eb82b5
fix ci
R9295 Oct 22, 2024
049a940
make set_timeout and timeout of HasTimeout inline
R9295 Oct 22, 2024
fbad346
fmt
R9295 Oct 22, 2024
55851c9
add gitignore
R9295 Oct 22, 2024
3ce8a08
serde_any fix
R9295 Oct 22, 2024
00e5bab
tmate
R9295 Oct 22, 2024
9e3f66d
misc
R9295 Oct 22, 2024
dcb2f81
remove tmate
R9295 Oct 22, 2024
4344350
test
R9295 Oct 22, 2024
0860235
coordinate between capture_timeout and verify_timeout
R9295 Oct 22, 2024
f43f37b
makefile
R9295 Oct 22, 2024
6de0332
fix
R9295 Oct 22, 2024
be31f5e
fix
R9295 Oct 22, 2024
1f0e96e
fmt
R9295 Oct 22, 2024
8c19f6e
increase cmplog timeout
R9295 Oct 22, 2024
59bddef
semantic
R9295 Oct 22, 2024
f25747e
debug
R9295 Oct 23, 2024
46ae082
debug
R9295 Oct 23, 2024
527e310
remove dbeug
R9295 Oct 23, 2024
a1e7e77
only test libafl-fuzz on CI for now
R9295 Oct 24, 2024
d50ea37
better seed for cmplog?
R9295 Oct 24, 2024
17fcb49
Merge remote-tracking branch 'origin/main' into libafl-fuzz/frida-mod…
R9295 Oct 24, 2024
e722eb0
remove preflight check for now
R9295 Oct 24, 2024
2b14512
set Input type in forkserver
R9295 Oct 24, 2024
4cb3715
debug
R9295 Oct 24, 2024
2b3cbbb
tmate
R9295 Oct 24, 2024
99ffca3
fix capture_timeout
R9295 Oct 24, 2024
4c0b388
revert workflow
R9295 Oct 24, 2024
8ad5342
run only libafl-fuzz
R9295 Oct 24, 2024
ac0d38b
remove pre-flight
R9295 Oct 24, 2024
6401708
Merge branch 'main' into libafl-fuzz/frida-mode-separate
domenukk Oct 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions fuzzers/forkserver/libafl-fuzz/.gitignore

This file was deleted.

12 changes: 9 additions & 3 deletions fuzzers/forkserver/libafl-fuzz/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ if [ ! -d "$AFL_DIR" ]; then
cd ${AFL_DIR}
git checkout ${AFL_VERSION}
LLVM_CONFIG=${LLVM_CONFIG} make
fi
'''
[tasks.build_frida_mode]
script_runner = '@shell'
script = '''
cd ${AFL_DIR}
cd frida_mode
LLVM_CONFIG=${LLVM_CONFIG} make
cd ../..
fi
'''

[tasks.build_qemuafl]
script_runner = "@shell"
script = '''
Expand Down Expand Up @@ -110,6 +114,8 @@ script = '''
# cmplog TODO: AFL_BENCH_UNTIL_CRASH=1 instead of timeout 15s
AFL_LLVM_CMPLOG=1 AFL_PATH=${AFL_DIR} ${AFL_CC_PATH} ./test/test-cmplog.c -o ./test/out-cmplog
AFL_CORES=1 timeout 5 ${FUZZER} -Z -l 3 -m 0 -V30 -i ./test/seeds_cmplog -o ./test/output-cmplog -c 0 ./test/out-cmplog || true
ls -l ./test/output-cmplog/fuzzer_main/hangs
ls -l ./test/output-cmplog/fuzzer_main/crashes
test -n "$( ls ${PROJECT_DIR}/test/output-cmplog/fuzzer_main/hangs/id:0000* ${PROJECT_DIR}/test/output-cmplog/fuzzer_main/crashes/id:0000*)" || {
echo "No crashes found"
exit 1
Expand Down Expand Up @@ -162,7 +168,7 @@ test -n "$RUNTIME" -a -n "$RUNTIME_PERSISTENT" && {

unset AFL_FRIDA_PERSISTENT_ADDR
'''
dependencies = ["build_afl", "build_libafl_fuzz"]
dependencies = ["build_afl", "build_frida_mode", "build_libafl_fuzz"]

[tasks.test_qemu]
script_runner = "@shell"
Expand Down
Loading
Loading