// https://syzkaller.appspot.com/bug?id=244acf6996ae0b9122ac763d3099922258c9bd43 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; res = syscall(__NR_socket, 2ul, 1ul, 0); if (res != -1) r[0] = res; *(uint16_t*)0x200000c0 = 2; *(uint16_t*)0x200000c2 = htobe16(0x4e20); *(uint32_t*)0x200000c4 = htobe32(0xe0000002); syscall(__NR_bind, r[0], 0x200000c0ul, 0x10ul); *(uint32_t*)0x20000000 = 1; syscall(__NR_setsockopt, r[0], 1, 0x3c, 0x20000000ul, 4ul); *(uint16_t*)0x20000080 = 2; *(uint16_t*)0x20000082 = htobe16(0x4e20); *(uint32_t*)0x20000084 = htobe32(0); syscall(__NR_sendto, r[0], 0ul, 0ul, 0x20020001ul, 0x20000080ul, 0x10ul); *(uint64_t*)0x20003b40 = 0; *(uint32_t*)0x20003b48 = 0; *(uint64_t*)0x20003b50 = 0x200026c0; *(uint64_t*)0x200026c0 = 0x20003c80; memset((void*)0x20003c80, 30, 1); *(uint64_t*)0x200026c8 = 1; *(uint64_t*)0x20003b58 = 1; *(uint64_t*)0x20003b60 = 0; *(uint64_t*)0x20003b68 = 0; *(uint32_t*)0x20003b70 = 0; *(uint32_t*)0x20003b78 = 0; syscall(__NR_sendmmsg, r[0], 0x20003b40ul, 1ul, 0x60cd854ul); memset((void*)0x20000240, 177, 1); syscall(__NR_sendto, r[0], 0x20000240ul, 1ul, 0ul, 0ul, 0ul); return 0; }