From d7de683e7d171e134122771a759569ad2a98b553 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Fri, 25 Feb 2022 16:10:06 +0100 Subject: [PATCH] Fix syscall post hook --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1cbb083e3c..505840bf5b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -13337,6 +13337,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, //// --- Begin LibAFL code --- +after_syscall: if (libafl_post_syscall_hook) { ret = (abi_ulong)libafl_post_syscall_hook((uint64_t)ret, num, (uint64_t)arg1, @@ -13349,7 +13350,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, (uint64_t)arg8); } -after_syscall: //// --- End LibAFL code --- if (unlikely(qemu_loglevel_mask(LOG_STRACE))) {