diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-19 19:35:04 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-02-19 21:48:20 +0100 |
| commit | 75a7c5e2d1f09a4a58e7e1f1f4ef0b0f55a33413 (patch) | |
| tree | d44c2457c44b53192005f0b89cd6633a2a2b0ff9 /executor/syscalls_test.h | |
| parent | 90fd6503136121e9494761a460898e83bc0b6b3e (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_test.h')
| -rw-r--r-- | executor/syscalls_test.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/executor/syscalls_test.h b/executor/syscalls_test.h index 13e643dfc..9ea69df00 100644 --- a/executor/syscalls_test.h +++ b/executor/syscalls_test.h @@ -2,7 +2,10 @@ #if 0 #define GOARCH "32" -#define SYZ_REVISION "229a33891b79d4c76384836d58be89caaab83684" +#define SYZ_REVISION "6f7cae371c55b5afdfbc7f518e21c58894cfce5b" +#define SYZ_PAGE_SIZE 8192 +#define SYZ_NUM_PAGES 2048 +#define SYZ_DATA_OFFSET 536870912 unsigned syscall_count = 85; call_t syscalls[] = { {"mmap", 0, (syscall_t)mmap}, @@ -96,7 +99,10 @@ call_t syscalls[] = { #if 0 #define GOARCH "64" -#define SYZ_REVISION "72bf9b428d7ccdf1adbb2ef093b656ca3564ee14" +#define SYZ_REVISION "e5ba3c9ee8fe997bfacae016e4bbebd8ecb2f573" +#define SYZ_PAGE_SIZE 4096 +#define SYZ_NUM_PAGES 4096 +#define SYZ_DATA_OFFSET 536870912 unsigned syscall_count = 85; call_t syscalls[] = { {"mmap", 0, (syscall_t)mmap}, |
