From 026aaeb2b5393e0c838873306e1c5f2084a8a1aa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 5 Jan 2020 11:46:35 +0100 Subject: prog: don't mutate strings with enumerated values Strings with enumerated values are frequently file names or have complete enumeration of relevant values. Mutating complete enumeration if not very profitable. Mutating file names leads to escaping paths and fuzzer messing with things it is not supposed to mess with as in: r0 = openat$apparmor_task_exec(0xffffffffffffff9c, &(0x7f0000000440)='/proc/self//exe\x00', 0x3, 0x0) --- executor/defs.h | 2 +- executor/syscalls.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/defs.h b/executor/defs.h index 6726e29a2..28a41299b 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -185,7 +185,7 @@ #if GOARCH_64 #define GOARCH "64" -#define SYZ_REVISION "fd5870a81478a9208df976f4d8066bbdfa12f8e5" +#define SYZ_REVISION "108f16d364fe32a8c41e4592f79eab831b5935a0" #define SYZ_EXECUTOR_USES_FORK_SERVER 0 #define SYZ_EXECUTOR_USES_SHMEM 0 #define SYZ_PAGE_SIZE 4096 diff --git a/executor/syscalls.h b/executor/syscalls.h index c5c2dda54..82d610197 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -21431,6 +21431,8 @@ const call_t syscalls[] = { {"test$res1", 0}, {"test$res2", 0}, {"test$str0", 0}, + {"test$str1", 0}, + {"test$str2", 0}, {"test$struct", 0}, {"test$syz_union3", 0}, {"test$syz_union4", 0}, -- cgit mrf-deployment