// https://syzkaller.appspot.com/bug?id=a4bb57c35e15f292b4f90bdc037e7e0b3e88c0b1 // 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; memcpy((void*)0x20000180, "./file0\000", 8); res = syscall(__NR_open, 0x20000180ul, 0x80943ul, 0ul); if (res != -1) r[0] = res; syscall(__NR_close, r[0]); syscall(__NR_socket, 1ul, 1ul, 0); *(uint16_t*)0x200002c0 = 1; memcpy( (void*)0x200002c2, "\351\037q\211Y\036\2223aK\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 108); syscall(__NR_bind, r[0], 0x200002c0ul, 0x6eul); syscall(__NR_listen, r[0], 0x80000000); return 0; }