aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host')
-rw-r--r--pkg/host/host.go8
-rw-r--r--pkg/host/host_linux.go2
2 files changed, 9 insertions, 1 deletions
diff --git a/pkg/host/host.go b/pkg/host/host.go
index 6394dd4a0..d048b2ade 100644
--- a/pkg/host/host.go
+++ b/pkg/host/host.go
@@ -21,7 +21,13 @@ func DetectSupportedSyscalls(target *prog.Target, sandbox string) (
return supported, unsupported, nil
}
for _, c := range target.Syscalls {
- ok, reason := isSupported(c, sandbox)
+ ok, reason := false, ""
+ switch c.CallName {
+ case "syz_execute_func":
+ ok = true
+ default:
+ ok, reason = isSupported(c, sandbox)
+ }
if ok {
supported[c] = true
} else {
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index dd3e146c4..3386113ee 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -205,6 +205,8 @@ func isSupportedSyzkall(sandbox string, c *prog.Syscall) (bool, string) {
return isSupportedFilesystem(fstype)
case "syz_read_part_table":
return onlySandboxNone(sandbox)
+ case "syz_execute_func":
+ return true, ""
}
panic("unknown syzkall: " + c.Name)
}