aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-01-17 14:15:13 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-01-19 09:10:50 +0100
commit11e98f1831460925fbcd80af11c894b30823e414 (patch)
tree909309cfd23358fce6bdfe62a1f0bc7f086e5804 /pkg/csource
parente333a0e2fc94aa27a735e62e713402c21eb2c0ef (diff)
executor: add extension point for adding non-mainline pseudo-syscalls
Add an empty common_ext.h which is included into executor and C reproducers and can be used to add non-mainline pseudo-syscalls w/o changing any other files (by replacing common_ext.h file). It would be good to finish #2274 which allows to add pseudo-syscalls along with *.txt descriptions, but #2274 is large and there are several open design questions. So add this simple extension point for now.
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/gen.go1
-rw-r--r--pkg/csource/generated.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/csource/gen.go b/pkg/csource/gen.go
index 2ecd59b79..dea64bb39 100644
--- a/pkg/csource/gen.go
+++ b/pkg/csource/gen.go
@@ -39,6 +39,7 @@ func main() {
"common_usb_linux.h",
"common_usb_netbsd.h",
"common_usb.h",
+ "common_ext.h",
"android/android_seccomp.h",
"kvm.h",
"kvm_amd64.S.h",
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 90ae7268c..16b128b42 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -10440,6 +10440,7 @@ static void use_temporary_dir(void)
#error "unknown OS"
#endif
+
#if SYZ_EXECUTOR || __NR_syz_execute_func
static long syz_execute_func(volatile long text)
{