aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host')
-rw-r--r--pkg/host/host.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/host/host.go b/pkg/host/host.go
index 720bb60f1..af89ac5aa 100644
--- a/pkg/host/host.go
+++ b/pkg/host/host.go
@@ -38,6 +38,9 @@ func DetectSupportedSyscalls() (map[*sys.Call]bool, error) {
}
func isSupported(kallsyms []byte, c *sys.Call) bool {
+ if c.NR == ^uint64(0) {
+ return false // don't even have a syscall number
+ }
if strings.HasPrefix(c.CallName, "syz_") {
return isSupportedSyzkall(c)
}