From 2c0b7b7ff31bbb899cc0c95766b5d04ebbd2d269 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 2 Sep 2017 13:21:47 +0200 Subject: pkg/compiler: restore generation of unsupported syscalls Unfortunately this is sitll needed, see the added comment. Update #191 --- pkg/host/host.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/host') 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) } -- cgit mrf-deployment