// https://syzkaller.appspot.com/bug?id=8fdd21f601550b6e5e43dec7d4a96955879a5aac // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0}; 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, 0x10ul, 3ul, 0); if (res != -1) r[0] = res; res = syscall(__NR_socketpair, 1ul, 1ul, 0, 0x20000080ul); if (res != -1) r[1] = *(uint32_t*)0x20000084; memcpy((void*)0x20000000, "lo\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, r[1], 0x8933, 0x20000000ul); if (res != -1) r[2] = *(uint32_t*)0x20000010; *(uint64_t*)0x20000000 = 0; *(uint32_t*)0x20000008 = 0; *(uint64_t*)0x20000010 = 0x20000780; *(uint64_t*)0x20000780 = 0x200000c0; *(uint32_t*)0x200000c0 = 0x50; *(uint16_t*)0x200000c4 = 0x24; *(uint16_t*)0x200000c6 = 0xf0b; *(uint32_t*)0x200000c8 = 0; *(uint32_t*)0x200000cc = 0; *(uint8_t*)0x200000d0 = 0x60; *(uint8_t*)0x200000d1 = 0; *(uint16_t*)0x200000d2 = 0; *(uint32_t*)0x200000d4 = r[2]; *(uint16_t*)0x200000d8 = 0; *(uint16_t*)0x200000da = 0; *(uint16_t*)0x200000dc = -1; *(uint16_t*)0x200000de = -1; *(uint16_t*)0x200000e0 = 0; *(uint16_t*)0x200000e2 = 0; *(uint16_t*)0x200000e4 = 6; *(uint16_t*)0x200000e6 = 5; *(uint8_t*)0x200000e8 = 1; *(uint8_t*)0x200000e9 = 0; *(uint16_t*)0x200000ec = 8; *(uint16_t*)0x200000ee = 1; memcpy((void*)0x200000f0, "cbs\000", 4); *(uint16_t*)0x200000f4 = 0x1c; *(uint16_t*)0x200000f6 = 2; *(uint16_t*)0x200000f8 = 0x18; *(uint16_t*)0x200000fa = 1; *(uint8_t*)0x200000fc = 4; memset((void*)0x200000fd, 0, 3); *(uint32_t*)0x20000100 = 0xfffff6fe; *(uint32_t*)0x20000104 = 6; *(uint32_t*)0x20000108 = 0x18000; *(uint32_t*)0x2000010c = 0x14; *(uint64_t*)0x20000788 = 0x50; *(uint64_t*)0x20000018 = 1; *(uint64_t*)0x20000020 = 0; *(uint64_t*)0x20000028 = 0; *(uint32_t*)0x20000030 = 0; syscall(__NR_sendmsg, r[0], 0x20000000ul, 0ul); return 0; }