aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-20 21:18:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-20 21:19:29 +0200
commit8cb7d3dcfcbe11a6d5682743816409d1c8e8f6a0 (patch)
tree75e6dd62ae61ce7986cf4e0e04e9954586033635 /executor
parentd606e60dfe3d50499812f7d740dae6e727fa9f76 (diff)
all: initial support for fuchsia
Nothing works, but builds. Update #191
Diffstat (limited to 'executor')
-rw-r--r--executor/executor_fuchsia.cc3
-rw-r--r--executor/executor_linux.cc2
-rw-r--r--executor/syscalls_fuchsia.h26
-rw-r--r--executor/syscalls_linux.h (renamed from executor/syscalls.h)10
-rw-r--r--executor/test.go2
-rw-r--r--executor/test_executor_linux.cc (renamed from executor/test_executor.cc)2
-rw-r--r--executor/test_test.go2
7 files changed, 40 insertions, 7 deletions
diff --git a/executor/executor_fuchsia.cc b/executor/executor_fuchsia.cc
index 6a312167b..3a214e4ac 100644
--- a/executor/executor_fuchsia.cc
+++ b/executor/executor_fuchsia.cc
@@ -3,7 +3,10 @@
// +build
+#include "syscalls_fuchsia.h"
+
int main()
{
+ (void)syscalls;
return 0;
}
diff --git a/executor/executor_linux.cc b/executor/executor_linux.cc
index cd0e406ff..d428fc1ea 100644
--- a/executor/executor_linux.cc
+++ b/executor/executor_linux.cc
@@ -26,7 +26,7 @@
#include <time.h>
#include <unistd.h>
-#include "syscalls.h"
+#include "syscalls_linux.h"
#define SYZ_EXECUTOR
#include "common.h"
diff --git a/executor/syscalls_fuchsia.h b/executor/syscalls_fuchsia.h
new file mode 100644
index 000000000..6919aec79
--- /dev/null
+++ b/executor/syscalls_fuchsia.h
@@ -0,0 +1,26 @@
+// AUTOGENERATED FILE
+
+struct call_t {
+ const char* name;
+ int sys_nr;
+};
+
+#if defined(__x86_64__) || 0
+#define GOARCH "amd64"
+#define SYZ_REVISION "d65b9adb4853817be6f471df44fc8347ebf6dfc6"
+
+static call_t syscalls[] = {
+ {"mx_time_get", 0},
+
+};
+#endif
+
+#if defined(__aarch64__) || 0
+#define GOARCH "arm64"
+#define SYZ_REVISION "bd2655e6d85f1fecceb1648649e1ad5adda81dc8"
+
+static call_t syscalls[] = {
+ {"mx_time_get", 0},
+
+};
+#endif
diff --git a/executor/syscalls.h b/executor/syscalls_linux.h
index 7ee207b0f..48ea44e1c 100644
--- a/executor/syscalls.h
+++ b/executor/syscalls_linux.h
@@ -7,7 +7,7 @@ struct call_t {
#if defined(__i386__) || 0
#define GOARCH "386"
-#define SYZ_REVISION "86d577076d75af98e3c800a3c65bf8e4869e3ea4"
+#define SYZ_REVISION "7b2f1949d48094cf3369932d0743db166049457b"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@@ -1505,7 +1505,7 @@ static call_t syscalls[] = {
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
-#define SYZ_REVISION "e482e82186ee2d78bed701630c062b7c5d5b23c6"
+#define SYZ_REVISION "8349df62e623f9c8d8bfaefcc8ba3febf463ce92"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@@ -3064,7 +3064,7 @@ static call_t syscalls[] = {
#if defined(__arm__) || 0
#define GOARCH "arm"
-#define SYZ_REVISION "41372f11d60aad90c991926434f714d736320cb1"
+#define SYZ_REVISION "02567c0623e18214f0be8d059aad68c263064645"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@@ -4576,7 +4576,7 @@ static call_t syscalls[] = {
#if defined(__aarch64__) || 0
#define GOARCH "arm64"
-#define SYZ_REVISION "3424aa8d1e2be36f2a093d39f49a45b6904827e0"
+#define SYZ_REVISION "0709fe60bdd20ea30d937d14615a40269fadb2b8"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
@@ -6063,7 +6063,7 @@ static call_t syscalls[] = {
#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0
#define GOARCH "ppc64le"
-#define SYZ_REVISION "0af6f5872777fdaf20c06a1f982df39659c46b6a"
+#define SYZ_REVISION "8bfb8686625fa3398eb8d1a5d66834dec0d3fa06"
#define __NR_syz_emit_ethernet 1000000
#define __NR_syz_extract_tcp_res 1000001
#define __NR_syz_fuse_mount 1000002
diff --git a/executor/test.go b/executor/test.go
index 1f18dd3bf..7bab3933c 100644
--- a/executor/test.go
+++ b/executor/test.go
@@ -3,6 +3,8 @@
//go:generate bash -c "gcc kvm_gen.cc kvm.S -o kvm_gen && ./kvm_gen > kvm.S.h && rm ./kvm_gen"
+// +build linux
+
package executor
// int test_copyin();
diff --git a/executor/test_executor.cc b/executor/test_executor_linux.cc
index 5b30286bf..8bbd56910 100644
--- a/executor/test_executor.cc
+++ b/executor/test_executor_linux.cc
@@ -1,7 +1,7 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-#include "syscalls.h"
+#include "syscalls_linux.h"
#define SYZ_EXECUTOR
#include "common.h"
diff --git a/executor/test_test.go b/executor/test_test.go
index 368454ac3..8048d50f0 100644
--- a/executor/test_test.go
+++ b/executor/test_test.go
@@ -1,6 +1,8 @@
// Copyright 2016 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+// +build linux
+
package executor
import "testing"