72 Commits

Author SHA1 Message Date
David Robillard
7765d4ac33
Fix various spelling errors (#2293)
* Fix spelling errors in log messages

* Fix doc comment syntax

* Fix spelling errors in Markdown documentation

* Fix spelling errors in comments
2025-02-10 00:32:42 +01:00
vanhauser-thc
d6a2edb42a update nyx 2024-10-07 10:11:16 +02:00
Sergej Schumilo
1d6cd5dd19 fix AFL_AUTORESUME=1 for Nyx mode 2024-09-14 03:51:20 +02:00
Jake Lamberson
5f43d0ad42 Fix and enhance Nyx mode instructions 2024-06-26 20:21:05 -04:00
vanhauser-thc
68dc4829b3 fixes 2024-02-03 11:40:19 +01:00
vanhauser-thc
a25f27de28 fixes 2024-02-03 11:37:21 +01:00
Sergej Schumilo
58871777ae
update QEMU-Nyx submodule (#1980) 2024-02-02 10:03:10 +00:00
Sergej Schumilo
f98dc8abe8
update QEMU-Nyx submodule (#1978) 2024-02-02 09:16:33 +00:00
van Hauser
eda770fd32
push to stable (#1967)
* Output afl-clang-fast stuffs only if necessary (#1912)

* afl-cc header

* afl-cc common declarations

 - Add afl-cc-state.c
 - Strip includes, find_object, debug/be_quiet/have_*/callname setting from afl-cc.c
 - Use debugf_args in main
 - Modify execvp stuffs to fit new aflcc struct

* afl-cc show usage

* afl-cc mode selecting

1. compiler_mode by callname in argv[0]
2. compiler_mode by env "AFL_CC_COMPILER"
3. compiler_mode/instrument_mode by command line options "--afl-..."
4. instrument_mode/compiler_mode by various env vars including "AFL_LLVM_INSTRUMENT"
5. final checking steps
6. print "... - mode: %s-%s\n"
7. determine real argv[0] according to compiler_mode

* afl-cc macro defs

* afl-cc linking behaviors

* afl-cc fsanitize behaviors

* afl-cc misc

* afl-cc body update

* afl-cc all-in-one

formated with custom-format.py

* nits

---------

Co-authored-by: vanhauser-thc <vh@thc.org>

* changelog

* update grammar mutator

* lto llvm 12+

* docs(custom_mutators): fix missing ':' (#1953)

* Fix broken LTO mode and response file support (#1948)

* Strip `-Wl,-no-undefined` during compilation (#1952)

Make the compiler wrapper stripping `-Wl,-no-undefined` in addition to `-Wl,--no-undefined`.
Both versions of the flag are accepted by clang and, therefore, used by building systems in the wild (e.g., samba will not build without this fix).

* Remove dead code in write_to_testcase (#1955)

The custom_mutators_count check in if case is duplicate with if condition.
The else case is custom_mutators_count == 0, neither custom_mutator_list iteration nor sent check needed.

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>

* update qemuafl

* WIP: Add ability to generate drcov trace using QEMU backend (#1956)

* Document new drcov QEMU plugin

* Add link to lightkeeper for QEMU drcov file loading

---------

Co-authored-by: Jean-Romain Garnier <jean-romain.garnier@airbus.com>

* code format

* changelog

* sleep on uid != 0 afl-system-config

* fix segv about skip_next, warn on unsupported cases of linking options (#1958)

* todos

* ensure afl-cc only allows available compiler modes

* update grammar mutator

* disable aslr on apple

* fix for arm64

* help selective instrumentation

* typos

* macos

* add compiler test script

* apple fixes

* bump nyx submodules (#1963)

* fix docs

* update changelog

* update grammar mutator

* improve compiler test script

* gcc asan workaround (#1966)

* fix github merge fuckup

* fix

* Fix afl-cc (#1968)

- Check if too many cmdline params here, each time before insert a new param.
 - Check if it is "-fsanitize=..." before we do sth.
 - Remove improper param_st transfer.

* Avoid adding llvmnative instrumentation when linking rust sanitizer runtime (#1969)

* Dynamic instrumentation filtering for LLVM native (#1971)

* Add two dynamic instrumentation filter methods to runtime

* Always use pc-table with native pcguard

* Add make_symbol_list.py and README

* changelog

* todos

* new forkserver check

* fix

* nyx test for CI

* improve nyx docs

* Fixes to afl-cc and documentation (#1974)

* Always compile with -ldl when building for CODE_COVERAGE

When building with CODE_COVERAGE, the afl runtime contains code that
calls `dladdr` which requires -ldl. Under most circumstances, clang
already adds this (e.g. when building with pc-table), but there are some
circumstances where it isn't added automatically.

* Add visibility declaration to __afl_connected

When building with hidden visibility, the use of __AFL_LOOP inside such
code can cause linker errors due to __afl_connected being declared
"hidden".

* Update docs to clarify that CODE_COVERAGE=1 is required for dynamic_covfilter

* nits

* nyx build script updates

* test error output

* debug ci

* debug ci

* Improve afl-cc (#1975)

* update response file support

 - full support of rsp file
 - fix some segv issues

* Improve afl-cc

 - remove dead code about allow/denylist options of sancov
 - missing `if (!aflcc->have_msan)`
 - add docs for each function
 - typo

* enable nyx

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* fix ci

* clean test script

* NO_NYX

* NO_NYX

* fix ci

* debug ci

* fix ci

* finalize ci fix

---------

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
Co-authored-by: Sonic <50692172+SonicStark@users.noreply.github.com>
Co-authored-by: Xeonacid <h.dwwwwww@gmail.com>
Co-authored-by: Nils Bars <nils.bars@rub.de>
Co-authored-by: Jean-Romain Garnier <7504819+JRomainG@users.noreply.github.com>
Co-authored-by: Jean-Romain Garnier <jean-romain.garnier@airbus.com>
Co-authored-by: Sergej Schumilo <sergej@schumilo.de>
Co-authored-by: Christian Holler (:decoder) <choller@mozilla.com>
2024-02-01 14:13:07 +00:00
vanhauser-thc
37d2039211 finalize ci fix 2024-02-01 14:53:10 +01:00
vanhauser-thc
87596105ef fix ci 2024-02-01 14:01:59 +01:00
vanhauser-thc
ac639012fb NO_NYX 2024-02-01 13:45:21 +01:00
vanhauser-thc
a84b7c7820 NO_NYX 2024-02-01 13:45:05 +01:00
vanhauser-thc
ccad11f7eb nyx build script updates 2024-01-31 14:03:25 +01:00
vanhauser-thc
0d164e4c18 nits 2024-01-30 16:27:03 +01:00
vanhauser-thc
75af391408 improve nyx docs 2024-01-30 15:14:02 +01:00
Sergej Schumilo
3046c80cd5
bump nyx submodules (#1963) 2024-01-20 23:09:19 +01:00
vanhauser-thc
c38dedbecd update nyx 2023-12-21 08:31:16 +01:00
Dominik Maier
d6cefdc193 Update unicornafl ref 2023-11-20 11:03:47 +01:00
vanhauser-thc
91a1459820 update 2023-11-20 09:30:12 +01:00
vanhauser-thc
3fd2e161db update todos 2023-11-09 15:55:40 +01:00
vanhauser-thc
05bea40ea4 update nyx-qemu 2023-10-02 09:09:37 +02:00
Sergej Schumilo
08a6fd7c29 update the old nyx env var naming scheme
(to have a more consistent naming overall)
2023-08-04 12:13:06 +02:00
Sergej Schumilo
1fd1f0d8ce fix typo in nyx_mode/README.md 2023-08-04 11:54:58 +02:00
Sergej Schumilo
4f3aa90a5f update QEMU-Nyx submodule 2023-08-04 11:52:39 +02:00
Sergej Schumilo
5d78a6f592 update nyx mode readme (NYX_AUX_BUFFER_SIZE) 2023-08-03 14:43:16 +02:00
Sergej Schumilo
641c551ba0 update Nyx submodules 2023-08-03 13:46:54 +02:00
vanhauser-thc
c092892488 disable macos in the ci, works fine for me 2023-05-06 09:26:24 +02:00
Sergej Schumilo
2c421d48fa
update libnyx (#1727) 2023-05-05 14:08:01 +02:00
vanhauser-thc
4d29e484b7 update nyx readme 2023-04-16 18:47:50 +02:00
Sergej Schumilo
0a699d885b add some documentation 2023-04-16 06:19:39 +02:00
Sergej Schumilo
d213071e13 bump packer version 2023-04-16 05:16:01 +02:00
Sergej Schumilo
6d4234b305 bump libnyx version 2023-04-16 05:14:32 +02:00
Sergej Schumilo
e2fedce6ec bump libnyx version 2023-04-14 04:40:26 +02:00
Sergej Schumilo
afc47868ee bump QEMU-Nyx version
The QEMU-Nyx compile script does not set "--enable-gtk" anymore.
So it is no longer necessary to patch the compile_qemu_nyx.sh script manually.
2023-04-14 04:39:15 +02:00
tocic
ffad6f3f09
Fix typos in docs 2022-09-10 07:41:19 +03:00
Ruben ten Hove
3282023047 check for package instead of if in docker 2022-06-21 21:36:02 +02:00
Ruben ten Hove
c7db5b67f9 just disable nyx 2022-06-21 21:30:43 +02:00
Sergej Schumilo
2a4d77abc6
Update nyx submodules (#1408) 2022-05-12 13:29:30 +02:00
vanhauser-thc
2eeba2dbf0 code format 2022-03-04 09:41:21 +01:00
Sergej Schumilo
7c9b7c0bc0 update submodules 2022-03-04 05:35:27 +01:00
vanhauser-thc
a5dc067331 nits 2022-02-07 12:22:57 +01:00
vanhauser-thc
119a0e0dce fix build scripts 2022-02-01 14:16:49 +01:00
vanhauser-thc
dd9003e59b nits for nyx build script 2022-01-31 09:00:01 +01:00
vanhauser-thc
43a7c0d601 make build_... scripts work without afl++ git checkout 2022-01-30 14:50:15 +01:00
vanhauser-thc
016bdc36bb code-format 2022-01-25 19:54:46 +01:00
Sergej Schumilo
026096ccf3 add AFL autodict capability to Nyx mode 2022-01-25 19:13:26 +01:00
vanhauser-thc
9baa402344 update refs 2022-01-23 18:39:55 +01:00
vanhauser-thc
04e3b5a6d3 update commit ids 2022-01-23 18:38:04 +01:00
vanhauser-thc
3609912f41 new logo 2022-01-22 10:31:50 +01:00