From 5de34a784c610ab08888c185dd0c09f542d62d4f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 15 Mar 2020 22:20:09 +0100 Subject: pkg/compiler: don't specify syscall consts for test OS This is just tedious. Fabricate them on the fly. --- executor/syscalls.h | 387 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 387 insertions(+) (limited to 'executor/syscalls.h') diff --git a/executor/syscalls.h b/executor/syscalls.h index 6e4da44bb..c2af7244e 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -22413,6 +22413,40 @@ const call_t syscalls[] = { #if GOARCH_32_fork_shmem const call_t syscalls[] = { + {"fallback$0", 0}, + {"fallback$1", 0}, + {"foo$any0", 0}, + {"foo$anyres", 0}, + {"foo$fmt0", 0}, + {"foo$fmt1", 0}, + {"foo$fmt2", 0}, + {"foo$fmt3", 0}, + {"foo$fmt4", 0}, + {"foo$fmt5", 0}, + {"minimize$0", 0}, + {"mutate$array", 0}, + {"mutate$array2", 0}, + {"mutate$buffer", 0}, + {"mutate$flags", 0}, + {"mutate$flags2", 0}, + {"mutate$flags3", 0}, + {"mutate$integer", 0}, + {"mutate$integer2", 0}, + {"mutate$rangedbuffer", 0}, + {"mutate$union", 0}, + {"mutate0", 0}, + {"mutate1", 0}, + {"mutate2", 0}, + {"mutate3", 0}, + {"mutate4", 0}, + {"mutate5", 0}, + {"mutate6", 0}, + {"mutate7", 0}, + {"mutate8", 0}, + {"prctl$PR_SET_SECCOMP", 0}, + {"seccomp", 0}, + {"serialize0", 0}, + {"serialize1", 0}, {"syz_compare", 0, (syscall_t)syz_compare}, {"syz_compare_int$2", 0, (syscall_t)syz_compare_int}, {"syz_compare_int$3", 0, (syscall_t)syz_compare_int}, @@ -22421,12 +22455,141 @@ const call_t syscalls[] = { {"syz_execute_func", 0, (syscall_t)syz_execute_func}, {"syz_exit", 0, (syscall_t)syz_exit}, {"syz_mmap", 0, (syscall_t)syz_mmap}, + {"test", 0}, + {"test$align0", 0}, + {"test$align1", 0}, + {"test$align2", 0}, + {"test$align3", 0}, + {"test$align4", 0}, + {"test$align5", 0}, + {"test$align6", 0}, + {"test$align7", 0}, + {"test$array0", 0}, + {"test$array1", 0}, + {"test$array2", 0}, + {"test$auto0", 0}, + {"test$bf0", 0}, + {"test$bf1", 0}, + {"test$blob0", 0}, + {"test$csum_encode", 0}, + {"test$csum_ipv4", 0}, + {"test$csum_ipv4_tcp", 0}, + {"test$csum_ipv4_udp", 0}, + {"test$csum_ipv6_icmp", 0}, + {"test$csum_ipv6_tcp", 0}, + {"test$csum_ipv6_udp", 0}, + {"test$end0", 0}, + {"test$end1", 0}, + {"test$excessive_args1", 0}, + {"test$excessive_args2", 0}, + {"test$excessive_fields1", 0}, + {"test$hint_data", 0}, + {"test$int", 0}, + {"test$length0", 0}, + {"test$length1", 0}, + {"test$length10", 0}, + {"test$length11", 0}, + {"test$length12", 0}, + {"test$length13", 0}, + {"test$length14", 0}, + {"test$length15", 0}, + {"test$length16", 0}, + {"test$length17", 0}, + {"test$length18", 0}, + {"test$length19", 0}, + {"test$length2", 0}, + {"test$length20", 0}, + {"test$length21", 0}, + {"test$length22", 0}, + {"test$length23", 0}, + {"test$length24", 0}, + {"test$length25", 0}, + {"test$length26", 0}, + {"test$length27", 0}, + {"test$length28", 0}, + {"test$length29", 0}, + {"test$length3", 0}, + {"test$length30", 0}, + {"test$length4", 0}, + {"test$length5", 0}, + {"test$length6", 0}, + {"test$length7", 0}, + {"test$length8", 0}, + {"test$length9", 0}, + {"test$missing_resource", 0}, + {"test$missing_struct", 0}, + {"test$offsetof0", 0}, + {"test$opt0", 0}, + {"test$opt1", 0}, + {"test$opt2", 0}, + {"test$opt3", 0}, + {"test$out_const", 0}, + {"test$recur0", 0}, + {"test$recur1", 0}, + {"test$recur2", 0}, + {"test$regression0", 0}, + {"test$regression1", 0}, + {"test$regression2", 0}, + {"test$res0", 0}, + {"test$res1", 0}, + {"test$res2", 0}, + {"test$str0", 0}, + {"test$str1", 0}, + {"test$str2", 0}, + {"test$struct", 0}, + {"test$syz_union3", 0}, + {"test$syz_union4", 0}, + {"test$text_x86_16", 0}, + {"test$text_x86_32", 0}, + {"test$text_x86_64", 0}, + {"test$text_x86_real", 0}, + {"test$type_confusion1", 0}, + {"test$union0", 0}, + {"test$union1", 0}, + {"test$union2", 0}, + {"test$vma0", 0}, + {"unsupported$0", 0}, + {"unsupported$1", 0}, }; #endif #if GOARCH_32_shmem const call_t syscalls[] = { + {"fallback$0", 0}, + {"fallback$1", 0}, + {"foo$any0", 0}, + {"foo$anyres", 0}, + {"foo$fmt0", 0}, + {"foo$fmt1", 0}, + {"foo$fmt2", 0}, + {"foo$fmt3", 0}, + {"foo$fmt4", 0}, + {"foo$fmt5", 0}, + {"minimize$0", 0}, + {"mutate$array", 0}, + {"mutate$array2", 0}, + {"mutate$buffer", 0}, + {"mutate$flags", 0}, + {"mutate$flags2", 0}, + {"mutate$flags3", 0}, + {"mutate$integer", 0}, + {"mutate$integer2", 0}, + {"mutate$rangedbuffer", 0}, + {"mutate$union", 0}, + {"mutate0", 0}, + {"mutate1", 0}, + {"mutate2", 0}, + {"mutate3", 0}, + {"mutate4", 0}, + {"mutate5", 0}, + {"mutate6", 0}, + {"mutate7", 0}, + {"mutate8", 0}, + {"prctl$PR_SET_SECCOMP", 0}, + {"seccomp", 0}, + {"serialize0", 0}, + {"serialize1", 0}, {"syz_compare", 0, (syscall_t)syz_compare}, {"syz_compare_int$2", 0, (syscall_t)syz_compare_int}, {"syz_compare_int$3", 0, (syscall_t)syz_compare_int}, @@ -22435,6 +22598,101 @@ const call_t syscalls[] = { {"syz_execute_func", 0, (syscall_t)syz_execute_func}, {"syz_exit", 0, (syscall_t)syz_exit}, {"syz_mmap", 0, (syscall_t)syz_mmap}, + {"test", 0}, + {"test$align0", 0}, + {"test$align1", 0}, + {"test$align2", 0}, + {"test$align3", 0}, + {"test$align4", 0}, + {"test$align5", 0}, + {"test$align6", 0}, + {"test$align7", 0}, + {"test$array0", 0}, + {"test$array1", 0}, + {"test$array2", 0}, + {"test$auto0", 0}, + {"test$bf0", 0}, + {"test$bf1", 0}, + {"test$blob0", 0}, + {"test$csum_encode", 0}, + {"test$csum_ipv4", 0}, + {"test$csum_ipv4_tcp", 0}, + {"test$csum_ipv4_udp", 0}, + {"test$csum_ipv6_icmp", 0}, + {"test$csum_ipv6_tcp", 0}, + {"test$csum_ipv6_udp", 0}, + {"test$end0", 0}, + {"test$end1", 0}, + {"test$excessive_args1", 0}, + {"test$excessive_args2", 0}, + {"test$excessive_fields1", 0}, + {"test$hint_data", 0}, + {"test$int", 0}, + {"test$length0", 0}, + {"test$length1", 0}, + {"test$length10", 0}, + {"test$length11", 0}, + {"test$length12", 0}, + {"test$length13", 0}, + {"test$length14", 0}, + {"test$length15", 0}, + {"test$length16", 0}, + {"test$length17", 0}, + {"test$length18", 0}, + {"test$length19", 0}, + {"test$length2", 0}, + {"test$length20", 0}, + {"test$length21", 0}, + {"test$length22", 0}, + {"test$length23", 0}, + {"test$length24", 0}, + {"test$length25", 0}, + {"test$length26", 0}, + {"test$length27", 0}, + {"test$length28", 0}, + {"test$length29", 0}, + {"test$length3", 0}, + {"test$length30", 0}, + {"test$length4", 0}, + {"test$length5", 0}, + {"test$length6", 0}, + {"test$length7", 0}, + {"test$length8", 0}, + {"test$length9", 0}, + {"test$missing_resource", 0}, + {"test$missing_struct", 0}, + {"test$offsetof0", 0}, + {"test$opt0", 0}, + {"test$opt1", 0}, + {"test$opt2", 0}, + {"test$opt3", 0}, + {"test$out_const", 0}, + {"test$recur0", 0}, + {"test$recur1", 0}, + {"test$recur2", 0}, + {"test$regression0", 0}, + {"test$regression1", 0}, + {"test$regression2", 0}, + {"test$res0", 0}, + {"test$res1", 0}, + {"test$res2", 0}, + {"test$str0", 0}, + {"test$str1", 0}, + {"test$str2", 0}, + {"test$struct", 0}, + {"test$syz_union3", 0}, + {"test$syz_union4", 0}, + {"test$text_x86_16", 0}, + {"test$text_x86_32", 0}, + {"test$text_x86_64", 0}, + {"test$text_x86_real", 0}, + {"test$type_confusion1", 0}, + {"test$union0", 0}, + {"test$union1", 0}, + {"test$union2", 0}, + {"test$vma0", 0}, + {"unsupported$0", 0}, + {"unsupported$1", 0}, }; #endif @@ -22585,6 +22843,40 @@ const call_t syscalls[] = { #if GOARCH_64_fork const call_t syscalls[] = { + {"fallback$0", 0}, + {"fallback$1", 0}, + {"foo$any0", 0}, + {"foo$anyres", 0}, + {"foo$fmt0", 0}, + {"foo$fmt1", 0}, + {"foo$fmt2", 0}, + {"foo$fmt3", 0}, + {"foo$fmt4", 0}, + {"foo$fmt5", 0}, + {"minimize$0", 0}, + {"mutate$array", 0}, + {"mutate$array2", 0}, + {"mutate$buffer", 0}, + {"mutate$flags", 0}, + {"mutate$flags2", 0}, + {"mutate$flags3", 0}, + {"mutate$integer", 0}, + {"mutate$integer2", 0}, + {"mutate$rangedbuffer", 0}, + {"mutate$union", 0}, + {"mutate0", 0}, + {"mutate1", 0}, + {"mutate2", 0}, + {"mutate3", 0}, + {"mutate4", 0}, + {"mutate5", 0}, + {"mutate6", 0}, + {"mutate7", 0}, + {"mutate8", 0}, + {"prctl$PR_SET_SECCOMP", 0}, + {"seccomp", 0}, + {"serialize0", 0}, + {"serialize1", 0}, {"syz_compare", 0, (syscall_t)syz_compare}, {"syz_compare_int$2", 0, (syscall_t)syz_compare_int}, {"syz_compare_int$3", 0, (syscall_t)syz_compare_int}, @@ -22593,6 +22885,101 @@ const call_t syscalls[] = { {"syz_execute_func", 0, (syscall_t)syz_execute_func}, {"syz_exit", 0, (syscall_t)syz_exit}, {"syz_mmap", 0, (syscall_t)syz_mmap}, + {"test", 0}, + {"test$align0", 0}, + {"test$align1", 0}, + {"test$align2", 0}, + {"test$align3", 0}, + {"test$align4", 0}, + {"test$align5", 0}, + {"test$align6", 0}, + {"test$align7", 0}, + {"test$array0", 0}, + {"test$array1", 0}, + {"test$array2", 0}, + {"test$auto0", 0}, + {"test$bf0", 0}, + {"test$bf1", 0}, + {"test$blob0", 0}, + {"test$csum_encode", 0}, + {"test$csum_ipv4", 0}, + {"test$csum_ipv4_tcp", 0}, + {"test$csum_ipv4_udp", 0}, + {"test$csum_ipv6_icmp", 0}, + {"test$csum_ipv6_tcp", 0}, + {"test$csum_ipv6_udp", 0}, + {"test$end0", 0}, + {"test$end1", 0}, + {"test$excessive_args1", 0}, + {"test$excessive_args2", 0}, + {"test$excessive_fields1", 0}, + {"test$hint_data", 0}, + {"test$int", 0}, + {"test$length0", 0}, + {"test$length1", 0}, + {"test$length10", 0}, + {"test$length11", 0}, + {"test$length12", 0}, + {"test$length13", 0}, + {"test$length14", 0}, + {"test$length15", 0}, + {"test$length16", 0}, + {"test$length17", 0}, + {"test$length18", 0}, + {"test$length19", 0}, + {"test$length2", 0}, + {"test$length20", 0}, + {"test$length21", 0}, + {"test$length22", 0}, + {"test$length23", 0}, + {"test$length24", 0}, + {"test$length25", 0}, + {"test$length26", 0}, + {"test$length27", 0}, + {"test$length28", 0}, + {"test$length29", 0}, + {"test$length3", 0}, + {"test$length30", 0}, + {"test$length4", 0}, + {"test$length5", 0}, + {"test$length6", 0}, + {"test$length7", 0}, + {"test$length8", 0}, + {"test$length9", 0}, + {"test$missing_resource", 0}, + {"test$missing_struct", 0}, + {"test$offsetof0", 0}, + {"test$opt0", 0}, + {"test$opt1", 0}, + {"test$opt2", 0}, + {"test$opt3", 0}, + {"test$out_const", 0}, + {"test$recur0", 0}, + {"test$recur1", 0}, + {"test$recur2", 0}, + {"test$regression0", 0}, + {"test$regression1", 0}, + {"test$regression2", 0}, + {"test$res0", 0}, + {"test$res1", 0}, + {"test$res2", 0}, + {"test$str0", 0}, + {"test$str1", 0}, + {"test$str2", 0}, + {"test$struct", 0}, + {"test$syz_union3", 0}, + {"test$syz_union4", 0}, + {"test$text_x86_16", 0}, + {"test$text_x86_32", 0}, + {"test$text_x86_64", 0}, + {"test$text_x86_real", 0}, + {"test$type_confusion1", 0}, + {"test$union0", 0}, + {"test$union1", 0}, + {"test$union2", 0}, + {"test$vma0", 0}, + {"unsupported$0", 0}, + {"unsupported$1", 0}, }; #endif -- cgit mrf-deployment