aboutsummaryrefslogtreecommitdiffstats
path: root/executor/syscalls_akaros.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-19 19:35:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-19 21:48:20 +0100
commit75a7c5e2d1f09a4a58e7e1f1f4ef0b0f55a33413 (patch)
treed44c2457c44b53192005f0b89cd6633a2a2b0ff9 /executor/syscalls_akaros.h
parent90fd6503136121e9494761a460898e83bc0b6b3e (diff)
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.
Diffstat (limited to 'executor/syscalls_akaros.h')
-rw-r--r--executor/syscalls_akaros.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/executor/syscalls_akaros.h b/executor/syscalls_akaros.h
index 238b68cc0..90c1f09b9 100644
--- a/executor/syscalls_akaros.h
+++ b/executor/syscalls_akaros.h
@@ -2,7 +2,10 @@
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
-#define SYZ_REVISION "0e5dbbd94e4838b9729df440c4c53e581768eaf8"
+#define SYZ_REVISION "43f665d2468516ae8ffc137aec39649a4a1dc7ce"
+#define SYZ_PAGE_SIZE 4096
+#define SYZ_NUM_PAGES 4096
+#define SYZ_DATA_OFFSET 536870912
unsigned syscall_count = 35;
call_t syscalls[] = {
{"abort_sysc_fd", 33},