// https://syzkaller.appspot.com/bug?id=8393c021d960cd9b36203efd312343a26d011997 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop() { long res; res = syscall(__NR_socket, 0x18, 1, 1); if (res != -1) r[0] = res; res = syscall(__NR_socket, 2, 3, 0x11); if (res != -1) r[1] = res; *(uint16_t*)0x200000c0 = 0x18; *(uint32_t*)0x200000c2 = 1; *(uint32_t*)0x200000c6 = 0; *(uint32_t*)0x200000ca = r[1]; *(uint16_t*)0x200000ce = 2; *(uint16_t*)0x200000d0 = htobe16(0x4e20); *(uint8_t*)0x200000d2 = 0xac; *(uint8_t*)0x200000d3 = 0x14; *(uint8_t*)0x200000d4 = 0x14; *(uint8_t*)0x200000d5 = 0x11; *(uint8_t*)0x200000d6 = 0; *(uint8_t*)0x200000d7 = 0; *(uint8_t*)0x200000d8 = 0; *(uint8_t*)0x200000d9 = 0; *(uint8_t*)0x200000da = 0; *(uint8_t*)0x200000db = 0; *(uint8_t*)0x200000dc = 0; *(uint8_t*)0x200000dd = 0; *(uint32_t*)0x200000de = 4; *(uint32_t*)0x200000e2 = 0; *(uint32_t*)0x200000e6 = 0; *(uint32_t*)0x200000ea = 0; syscall(__NR_connect, r[0], 0x200000c0, 0x2e); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }