aboutsummaryrefslogtreecommitdiffstats
path: root/executor/syscalls_test.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-24 14:33:36 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-25 18:22:02 +0100
commit9fe8aa42c5bd11e2eb6952a16da6287205d7bf97 (patch)
tree7cf636dd611cb2a338cfeba13607b8e152545f19 /executor/syscalls_test.h
parent2145057cb8a50aba1a27a67be19953bee9b164fd (diff)
prog: add arbitrary mutation of complex structs
Squash complex structs into flat byte array and mutate this array with generic blob mutations. This allows to mutate what we currently consider as paddings and add/remove paddings from structs, etc.
Diffstat (limited to 'executor/syscalls_test.h')
-rw-r--r--executor/syscalls_test.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/executor/syscalls_test.h b/executor/syscalls_test.h
index 7f91e398e..db1591e1f 100644
--- a/executor/syscalls_test.h
+++ b/executor/syscalls_test.h
@@ -2,12 +2,14 @@
#if 0
#define GOARCH "32"
-#define SYZ_REVISION "8e3bfbc4dd1f6619b4895bcb80e0004ef4c96928"
+#define SYZ_REVISION "0d78e9b1f441c9ae33361f9778195af0a245ffdd"
#define SYZ_PAGE_SIZE 8192
#define SYZ_NUM_PAGES 2048
#define SYZ_DATA_OFFSET 536870912
-unsigned syscall_count = 88;
+unsigned syscall_count = 90;
call_t syscalls[] = {
+ {"foo$any0", 0, (syscall_t)foo},
+ {"foo$anyres", 0, (syscall_t)foo},
{"mmap", 0, (syscall_t)mmap},
{"mutate0", 0, (syscall_t)mutate0},
{"mutate1", 0, (syscall_t)mutate1},
@@ -102,12 +104,14 @@ call_t syscalls[] = {
#if 0
#define GOARCH "64"
-#define SYZ_REVISION "4a4abb9774bf056d0952d60f2fffdfdc392353a2"
+#define SYZ_REVISION "e361957ea430829459298bc20840e4edbd324930"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
-unsigned syscall_count = 88;
+unsigned syscall_count = 90;
call_t syscalls[] = {
+ {"foo$any0", 0, (syscall_t)foo},
+ {"foo$anyres", 0, (syscall_t)foo},
{"mmap", 0, (syscall_t)mmap},
{"mutate0", 0, (syscall_t)mutate0},
{"mutate1", 0, (syscall_t)mutate1},