syzkaller/executor/syscalls_akaros.h
Dmitry Vyukov 645e75f803 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.
2018-06-07 15:32:30 +02:00

49 lines
1.1 KiB
C

// AUTOGENERATED FILE
#if defined(__x86_64__) || 0
#define GOARCH "amd64"
#define SYZ_REVISION "b3ec742aa8b8f4d014d4030760d098325dfb1f62"
#define SYZ_PAGE_SIZE 4096
#define SYZ_NUM_PAGES 4096
#define SYZ_DATA_OFFSET 536870912
#define SYZ_SYSCALL_COUNT 35
const call_t syscalls[] = {
{"abort_sysc_fd", 33},
{"chdir", 116},
{"close", 103},
{"fchdir", 124},
{"fcntl$F_DUPFD", 107},
{"fcntl$F_DUPFD_CLOEXEC", 107},
{"fcntl$F_GETFD", 107},
{"fcntl$F_GETFL", 107},
{"fcntl$F_GETLK", 107},
{"fcntl$F_GETOWN", 107},
{"fcntl$F_SETFD", 107},
{"fcntl$F_SETFL", 107},
{"fcntl$F_SETLK", 107},
{"fcntl$F_SETLKW", 107},
{"fcntl$F_SETOWN", 107},
{"fstat", 104},
{"getcwd", 117},
{"link", 112},
{"llseek", 111},
{"lstat", 106},
{"mkdir", 118},
{"mmap", 18},
{"mprotect", 20},
{"munmap", 19},
{"nanosleep", 36},
{"openat", 102},
{"read", 100},
{"readlink", 115},
{"rename", 123},
{"rmdir", 119},
{"stat", 105},
{"symlink", 114},
{"unlink", 113},
{"waitpid", 17},
{"write", 101},
};
#endif