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. --- executor/syscalls_akaros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/syscalls_akaros.h') diff --git a/executor/syscalls_akaros.h b/executor/syscalls_akaros.h index 40254b1d8..69ca4e481 100644 --- a/executor/syscalls_akaros.h +++ b/executor/syscalls_akaros.h @@ -6,8 +6,8 @@ #define SYZ_PAGE_SIZE 4096 #define SYZ_NUM_PAGES 4096 #define SYZ_DATA_OFFSET 536870912 -unsigned syscall_count = 35; -call_t syscalls[] = { +#define SYZ_SYSCALL_COUNT 35 +const call_t syscalls[] = { {"abort_sysc_fd", 33}, {"chdir", 116}, {"close", 103}, -- cgit mrf-deployment