-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
v4.33c #2487
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
Merged
Merged
v4.33c #2487
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AFLFast power schedules regressed since v4.31c
This enables 64-bit detection for the following additional systems: - [PowerPC64 (little endian)](https://en.wikipedia.org/wiki/Ppc64) - [S390x](https://en.wikipedia.org/wiki/S390x) - [LoongArch64](https://en.wikipedia.org/wiki/LoongArch64)
fix power schedules
Define WORD_SIZE_64 for more 64-bit arches
Add missing override directive for CFLAGS+= in libdislocator
Color `AFL_NO_UI` output
Add a test case to `test/test-qemu-mode.sh` and make sure that AFL_QEMU_PERSISTENT_EXITS loops correctly. This works only on platforms for which `afl-qemu-trace` detects exit signals and resets the program counter. This commit updates `test-instr.c` to optionally call `exit(n)` instead of returning n to the operating system. This option can be activated using the `EXIT_AT_END` flag. This way, we can test the QEMU persistent exit mode without having to add a new test file. You can compile and run `test-instr.c` with the exit mode like so: ```bash gcc -o exit -DEXIT_AT_END test-instr.c AFL_QEMU_DEBUG_MAPS= \ AFL_DEBUG= \ AFL_QEMU_PERSISTENT_ADDR=$(readelf -a exit | grep 'main$' | awk '{ printf "0x%s", $2 }') \ AFL_QEMU_PERSISTENT_GPR=1 \ AFL_QEMU_PERSISTENT_EXITS=1 \ ./afl-qemu-trace exit ``` Press enter repeatedly and you will see an output like this: ``` ... Debug: Sending status 0xc201ffff test-instr: Neither one or zero? How quaint! test-instr: Neither one or zero? How quaint! test-instr: Neither one or zero? How quaint! test-instr: Neither one or zero? How quaint! test-instr: Neither one or zero? How quaint! ``` To make sure that persistent exits are detected correctly on x86_64, I've made the following changes to qemuafl: ``` linux-user/i386/cpu_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c index 4509f46b95..46bdbaf94a 100644 --- a/linux-user/i386/cpu_loop.c +++ b/linux-user/i386/cpu_loop.c @@ -235,7 +235,7 @@ void cpu_loop(CPUX86State *env) #ifndef TARGET_ABI32 case EXCP_SYSCALL: /* linux syscall from syscall instruction */ - if (afl_fork_child && persistent_exits && + if (persistent_exits && env->regs[R_EAX] == TARGET_NR_exit_group) { env->eip = afl_persistent_addr; continue; ```
Disable GCC instrumentation for AFL_SAN_NO_INST
…ing of the forkserver child process, and unsetting it when the target is launched
"!target_hash" already cover "afl->fsrv.nyx_mode && target_hash == 0"
Add test case for AFL_QEMU_PERSISTENT_EXITS
Remove macros for old compiler versions from afl-llvm-* passes
Remove macros for old compiler versions from split-* and injection passes
Remove macros for old compiler versions from sancov passes
Patch for Nyx bug in afl-showmap #2
push to stable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.