From 9fe8aa42c5bd11e2eb6952a16da6287205d7bf97 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 24 Feb 2018 14:33:36 +0100 Subject: 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. --- executor/syscalls_test.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'executor/syscalls_test.h') 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}, -- cgit mrf-deployment