// https://syzkaller.appspot.com/bug?id=83d086a60fa273c76b2089f6b11bf59e6fe89acc // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include static void test(); void loop() { while (1) { test(); } } #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #ifndef __NR_sendmsg #define __NR_sendmsg 370 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 long r[63]; void test() { memset(r, -1, sizeof(r)); r[0] = syscall(__NR_mmap, 0x20000000ul, 0xfff000ul, 0x3ul, 0x32ul, 0xfffffffffffffffful, 0x0ul); r[1] = syscall(__NR_socket, 0xful, 0x3ul, 0x2ul); *(uint32_t*)0x205f5000 = (uint32_t)0x0; *(uint32_t*)0x205f5004 = (uint32_t)0x0; *(uint32_t*)0x205f5008 = (uint32_t)0x208feff0; *(uint32_t*)0x205f500c = (uint32_t)0x1; *(uint32_t*)0x205f5010 = (uint32_t)0x0; *(uint32_t*)0x205f5014 = (uint32_t)0x0; *(uint32_t*)0x205f5018 = (uint32_t)0x0; *(uint32_t*)0x208feff0 = (uint32_t)0x20849000; *(uint32_t*)0x208feff4 = (uint32_t)0x50; *(uint8_t*)0x20849000 = (uint8_t)0x2; *(uint8_t*)0x20849001 = (uint8_t)0x2; *(uint8_t*)0x20849002 = (uint8_t)0x0; *(uint8_t*)0x20849003 = (uint8_t)0x9; *(uint16_t*)0x20849004 = (uint16_t)0xa; *(uint16_t*)0x20849006 = (uint16_t)0x0; *(uint32_t*)0x20849008 = (uint32_t)0x0; *(uint32_t*)0x2084900c = (uint32_t)0x0; *(uint16_t*)0x20849010 = (uint16_t)0x3; *(uint16_t*)0x20849012 = (uint16_t)0x6; *(uint8_t*)0x20849014 = (uint8_t)0x0; *(uint8_t*)0x20849015 = (uint8_t)0x0; *(uint16_t*)0x20849016 = (uint16_t)0x0; *(uint16_t*)0x20849018 = (uint16_t)0x2; *(uint16_t*)0x2084901a = (uint16_t)0x204e; *(uint8_t*)0x2084901c = (uint8_t)0xac; *(uint8_t*)0x2084901d = (uint8_t)0x14; *(uint8_t*)0x2084901e = (uint8_t)0x0; *(uint8_t*)0x2084901f = (uint8_t)0xbb; *(uint8_t*)0x20849020 = (uint8_t)0x0; *(uint8_t*)0x20849021 = (uint8_t)0x0; *(uint8_t*)0x20849022 = (uint8_t)0x0; *(uint8_t*)0x20849023 = (uint8_t)0x0; *(uint8_t*)0x20849024 = (uint8_t)0x0; *(uint8_t*)0x20849025 = (uint8_t)0x0; *(uint8_t*)0x20849026 = (uint8_t)0x0; *(uint8_t*)0x20849027 = (uint8_t)0x0; *(uint16_t*)0x20849028 = (uint16_t)0x2; *(uint16_t*)0x2084902a = (uint16_t)0x1; *(uint32_t*)0x2084902c = (uint32_t)0x0; *(uint8_t*)0x20849030 = (uint8_t)0x0; *(uint8_t*)0x20849031 = (uint8_t)0x0; *(uint8_t*)0x20849032 = (uint8_t)0x0; *(uint8_t*)0x20849033 = (uint8_t)0x2; *(uint32_t*)0x20849034 = (uint32_t)0x0; *(uint16_t*)0x20849038 = (uint16_t)0x3; *(uint16_t*)0x2084903a = (uint16_t)0x5; *(uint8_t*)0x2084903c = (uint8_t)0x0; *(uint8_t*)0x2084903d = (uint8_t)0x0; *(uint16_t*)0x2084903e = (uint16_t)0x0; *(uint16_t*)0x20849040 = (uint16_t)0x2; *(uint16_t*)0x20849042 = (uint16_t)0x204e; *(uint32_t*)0x20849044 = (uint32_t)0x100007f; *(uint8_t*)0x20849048 = (uint8_t)0x0; *(uint8_t*)0x20849049 = (uint8_t)0x0; *(uint8_t*)0x2084904a = (uint8_t)0x0; *(uint8_t*)0x2084904b = (uint8_t)0x0; *(uint8_t*)0x2084904c = (uint8_t)0x0; *(uint8_t*)0x2084904d = (uint8_t)0x0; *(uint8_t*)0x2084904e = (uint8_t)0x0; *(uint8_t*)0x2084904f = (uint8_t)0x0; r[62] = syscall(__NR_sendmsg, r[1], 0x205f5000ul, 0x0ul); } int main() { int i; for (i = 0; i < 8; i++) { if (fork() == 0) { loop(); return 0; } } sleep(1000000); return 0; }