From 75a7c5e2d1f09a4a58e7e1f1f4ef0b0f55a33413 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Feb 2018 19:35:04 +0100 Subject: prog: rework address allocation 1. mmap all memory always, without explicit mmap calls in the program. This makes lots of things much easier and removes lots of code. Makes mmap not a special syscall and allows to fuzz without mmap enabled. 2. Change address assignment algorithm. Current algorithm allocates unmapped addresses too frequently and allows collisions between arguments of a single syscall. The new algorithm analyzes actual allocations in the program and places new arguments at unused locations. --- executor/syscalls_fuchsia.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'executor/syscalls_fuchsia.h') diff --git a/executor/syscalls_fuchsia.h b/executor/syscalls_fuchsia.h index 59e941d7a..cb7a68a16 100644 --- a/executor/syscalls_fuchsia.h +++ b/executor/syscalls_fuchsia.h @@ -2,7 +2,10 @@ #if defined(__x86_64__) || 0 #define GOARCH "amd64" -#define SYZ_REVISION "16f8d2a14dffe8465559442d33e3ca296f7ea4bf" +#define SYZ_REVISION "4eadf9151d47a3744fe9277b15a0447970eba0cb" +#define SYZ_PAGE_SIZE 4096 +#define SYZ_NUM_PAGES 4096 +#define SYZ_DATA_OFFSET 536870912 unsigned syscall_count = 164; call_t syscalls[] = { {"chdir", 0, (syscall_t)chdir}, @@ -175,7 +178,10 @@ call_t syscalls[] = { #if defined(__aarch64__) || 0 #define GOARCH "arm64" -#define SYZ_REVISION "c04cb066cf7fc135f9f85388423f3e65aedc5028" +#define SYZ_REVISION "bb0e27a08caeecf468bb53c76ebf97388e4d3c6d" +#define SYZ_PAGE_SIZE 4096 +#define SYZ_NUM_PAGES 4096 +#define SYZ_DATA_OFFSET 536870912 unsigned syscall_count = 164; call_t syscalls[] = { {"chdir", 0, (syscall_t)chdir}, -- cgit mrf-deployment