aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h2
-rw-r--r--executor/common_ext.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h
index 21af03189..74e75d33b 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -458,6 +458,8 @@ static uint16 csum_inet_digest(struct csum_inet* csum)
#error "unknown OS"
#endif
+#include "common_ext.h"
+
#if SYZ_EXECUTOR || __NR_syz_execute_func
// syz_execute_func(text ptr[in, text[taget]])
static long syz_execute_func(volatile long text)
diff --git a/executor/common_ext.h b/executor/common_ext.h
new file mode 100644
index 000000000..4f6e7491a
--- /dev/null
+++ b/executor/common_ext.h
@@ -0,0 +1,6 @@
+// Copyright 2022 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.
+
+// This file is included into executor and C reproducers and can be used to add
+// non-mainline pseudo-syscalls w/o changing any other files.
+// These syscalls should start with syz_ext_.