// https://syzkaller.appspot.com/bug?id=467bb4d62847ce93f7d8fc650da1a089993987a0 // 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, 1ul, 0x84); if (res != -1) r[0] = res; res = syscall(SYS_fcntl, r[0], 0ul, r[0]); if (res != -1) r[1] = res; *(uint8_t*)0x20000b40 = 0x1c; *(uint8_t*)0x20000b41 = 0x1c; *(uint16_t*)0x20000b42 = htobe16(0x4e22); *(uint32_t*)0x20000b44 = 0; memset((void*)0x20000b48, 0, 10); memset((void*)0x20000b52, 255, 2); *(uint8_t*)0x20000b54 = 0xac; *(uint8_t*)0x20000b55 = 0x14; *(uint8_t*)0x20000b56 = 0; *(uint8_t*)0x20000b57 = 0xbb; *(uint32_t*)0x20000b58 = 0; syscall(SYS_sendto, r[1], 0ul, 0ul, 0ul, 0x20000b40ul, 0x15ul); syscall(SYS_socket, 0x1cul, 5ul, 0x84); return 0; }