From 645e75f8038d1b177ead2d6ea0b3ade6f7f9d985 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Jun 2018 15:32:16 +0200 Subject: executor: make syscall table and number constant We see some crashes that suggest corruption of the syscall number: invalid command number 1296 (errno 11) invalid command number 107 (errno 110) Make the table and the number constant to prevent corruption. --- pkg/csource/akaros_common.go | 2 -- pkg/csource/freebsd_common.go | 2 -- pkg/csource/linux_common.go | 2 -- pkg/csource/netbsd_common.go | 2 -- 4 files changed, 8 deletions(-) (limited to 'pkg/csource') diff --git a/pkg/csource/akaros_common.go b/pkg/csource/akaros_common.go index 5cf33d01c..f8a657096 100644 --- a/pkg/csource/akaros_common.go +++ b/pkg/csource/akaros_common.go @@ -104,8 +104,6 @@ struct call_t { syscall_t call; }; -extern call_t syscalls[]; -extern unsigned syscall_count; #endif #if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT)) || \ diff --git a/pkg/csource/freebsd_common.go b/pkg/csource/freebsd_common.go index 92450af70..79baeb37d 100644 --- a/pkg/csource/freebsd_common.go +++ b/pkg/csource/freebsd_common.go @@ -95,8 +95,6 @@ struct call_t { syscall_t call; }; -extern call_t syscalls[]; -extern unsigned syscall_count; #endif #if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT)) || \ diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index 4d168e661..1aa454f9e 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -221,8 +221,6 @@ struct call_t { syscall_t call; }; -extern call_t syscalls[]; -extern unsigned syscall_count; #endif #if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT)) || \ diff --git a/pkg/csource/netbsd_common.go b/pkg/csource/netbsd_common.go index dee071f73..994edd8b3 100644 --- a/pkg/csource/netbsd_common.go +++ b/pkg/csource/netbsd_common.go @@ -95,8 +95,6 @@ struct call_t { syscall_t call; }; -extern call_t syscalls[]; -extern unsigned syscall_count; #endif #if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT)) || \ -- cgit mrf-deployment