From 5f302c04a24235ce766a27ca21e993221fb09e30 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Sat, 11 May 2019 20:38:41 +0200 Subject: sys/openbsd: add missing padding arguments Due to missing padding arguments, stack garbage could end up being used as actual arguments. More reading for the curious[1]. While here, add missing descriptions for pread and pwrite. [1] https://flak.tedunangst.com/post/syzkaller-found-a-bug --- 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 788875f41..92bace9b3 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -130,7 +130,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "216c98ad3498631ce9d36fbfa6fa8f98d1f2c5cb" +#define SYZ_REVISION "1b6671ad8d712ebbd04cdedcec2c7d0d224996b9" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 diff --git a/executor/syscalls.h b/executor/syscalls.h index 37b36814a..53b08e7ab 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -15278,7 +15278,9 @@ const call_t syscalls[] = { {"pipe2", 101}, {"pledge", 108}, {"poll", 252}, + {"pread", 173}, {"preadv", 267}, + {"pwrite", 174}, {"pwritev", 268}, {"read", 3}, {"readlink", 58}, -- cgit mrf-deployment