aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-02 13:21:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-02 13:21:47 +0200
commit2c0b7b7ff31bbb899cc0c95766b5d04ebbd2d269 (patch)
treec1cbb0136f8194b636bd13baecff4d342d1ef2b6 /pkg/host
parenta7206b24cac96c08aecf2f3b4cc3c2e555eec708 (diff)
pkg/compiler: restore generation of unsupported syscalls
Unfortunately this is sitll needed, see the added comment. Update #191
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)
}