// https://syzkaller.appspot.com/bug?id=dacc7707e9dc2ff70c53cb2ad92b4c675818ac68 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 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, 0x18ul, 1ul, 1); if (res != -1) r[0] = res; res = syscall(__NR_socket, 0xaul, 2ul, 0); if (res != -1) r[1] = res; *(uint16_t*)0x20000000 = 0x18; *(uint32_t*)0x20000002 = 1; *(uint32_t*)0x20000006 = 0; *(uint32_t*)0x2000000a = r[1]; *(uint32_t*)0x2000000e = 4; *(uint32_t*)0x20000012 = 0; *(uint32_t*)0x20000016 = 0; *(uint32_t*)0x2000001a = 0; *(uint16_t*)0x2000001e = 0xa; *(uint16_t*)0x20000020 = htobe16(0x4e20); *(uint32_t*)0x20000022 = htobe32(9); *(uint8_t*)0x20000026 = 0xfc; *(uint8_t*)0x20000027 = 0; memset((void*)0x20000028, 0, 13); *(uint8_t*)0x20000035 = 1; *(uint32_t*)0x20000036 = 4; syscall(__NR_connect, r[0], 0x20000000ul, 0x3aul); return 0; }