aboutsummaryrefslogtreecommitdiffstats
path: root/executor/syscalls.h
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-05-11 20:38:41 +0200
committerAnton Lindqvist <anton@basename.se>2019-05-12 14:03:04 +0200
commit5f302c04a24235ce766a27ca21e993221fb09e30 (patch)
treeb3c85c3da6bfefaf79e1164efcb146a38ec45dfb /executor/syscalls.h
parent45065351dd01e87059e4ed1cf025c2ef292994a4 (diff)
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
Diffstat (limited to 'executor/syscalls.h')
-rw-r--r--executor/syscalls.h2
1 files changed, 2 insertions, 0 deletions
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},