// https://syzkaller.appspot.com/bug?id=7cae38958ddfe2c338548b4217587bd6d89b43e2 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 0x1cul, 2ul, 0); if (res != -1) r[0] = res; *(uint32_t*)0x200001c0 = 0; syscall(SYS_setsockopt, r[0], 0x29, 0x1b, 0x200001c0ul, 4ul); res = syscall(SYS_dup, r[0]); if (res != -1) r[1] = res; *(uint8_t*)0x20000000 = 0x1c; *(uint8_t*)0x20000001 = 0x1c; *(uint16_t*)0x20000002 = htobe16(0x4e21); *(uint32_t*)0x20000004 = 0; memset((void*)0x20000008, 0, 10); memset((void*)0x20000012, 255, 2); *(uint32_t*)0x20000014 = htobe32(0xe0000002); *(uint32_t*)0x20000018 = 0; syscall(SYS_sendto, r[1], 0ul, 0ul, 0ul, 0x20000000ul, 0x1cul); return 0; }