// https://syzkaller.appspot.com/bug?id=9463343a39f66062536eca45450081f837781f88 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 0x1cul, 5ul, 0x84); if (res != -1) r[0] = res; syscall(SYS_socket, 0x1cul, 1ul, 0x84); *(uint64_t*)0x200005c0 = 0x20000000; *(uint8_t*)0x20000000 = 0x1c; *(uint8_t*)0x20000001 = 0x1c; *(uint16_t*)0x20000002 = htobe16(0x4e23); *(uint32_t*)0x20000004 = 0; *(uint64_t*)0x20000008 = htobe64(0); *(uint64_t*)0x20000010 = htobe64(1); *(uint32_t*)0x20000018 = 0; *(uint32_t*)0x200005c8 = 0x1c; *(uint64_t*)0x200005d0 = 0x200002c0; *(uint64_t*)0x200002c0 = 0x20000140; memset((void*)0x20000140, 230, 1); *(uint64_t*)0x200002c8 = 1; *(uint32_t*)0x200005d8 = 1; *(uint64_t*)0x200005e0 = 0; *(uint32_t*)0x200005e8 = 0x2c; *(uint32_t*)0x200005ec = 0; syscall(SYS_sendmsg, r[0], 0x200005c0ul, 0ul); { int i; for (i = 0; i < 32; i++) { syscall(SYS_sendmsg, r[0], 0x200005c0ul, 0ul); } } return 0; }