aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-30 21:10:38 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-30 21:45:04 -0700
commita4718693a3d9fcabb02299b2ec07c19d8208c539 (patch)
tree4646830d734816c5d6ab7bd5f71338ce3f9b1b54 /sys/freebsd
parent4239b99abbcccac9104facbf2b040a5af4ffe1b1 (diff)
sys/linux: add syz_execute_func
The function executes random code. Update #310
Diffstat (limited to 'sys/freebsd')
-rw-r--r--sys/freebsd/gen/amd64.go5
-rw-r--r--sys/freebsd/sys.txt2
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/freebsd/gen/amd64.go b/sys/freebsd/gen/amd64.go
index 192053c73..5de2ea7bd 100644
--- a/sys/freebsd/gen/amd64.go
+++ b/sys/freebsd/gen/amd64.go
@@ -1876,6 +1876,9 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
}},
{NR: 36, Name: "sync", CallName: "sync"},
+ {Name: "syz_execute_func", CallName: "syz_execute_func", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "text", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "text", IsVarlen: true}, Kind: 4}},
+ }},
{NR: 479, Name: "truncate", CallName: "truncate", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", TypeSize: 8}}},
@@ -2443,4 +2446,4 @@ var consts_amd64 = []ConstValue{
{Name: "WUNTRACED", Value: 2},
}
-const revision_amd64 = "89eac40a68a14ffc0af9fc9b181147236b82d00b"
+const revision_amd64 = "06d50288c46275b56218cab0097fcb71a7f0f80e"
diff --git a/sys/freebsd/sys.txt b/sys/freebsd/sys.txt
index 28b486dcd..cf1dd960e 100644
--- a/sys/freebsd/sys.txt
+++ b/sys/freebsd/sys.txt
@@ -19,6 +19,8 @@ include <sys/wait.h>
include <linux/linux.h>
include <compat/linux/linux_event.h>
+syz_execute_func(text ptr[in, text[target]])
+
pipe(pipefd ptr[out, pipefd])
sendfile(fdout fd, fdin fd, off ptr[inout, fileoff[int64], opt], count int64)