// https://syzkaller.appspot.com/bug?id=431ae15c31aa1c27fc0ba8dd6ea04fcf03f46b91 // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 0x10, 3, 0); if (res != -1) r[0] = res; memcpy((void*)0x20000040, "dummy0\000\000\000\000\000\000\000\000\000\000", 16); *(uint32_t*)0x20000050 = 0; res = syscall(__NR_ioctl, r[0], 0x8933, 0x20000040); if (res != -1) r[1] = *(uint32_t*)0x20000050; *(uint64_t*)0x2000a000 = 0; *(uint32_t*)0x2000a008 = 0; *(uint64_t*)0x2000a010 = 0x20000080; *(uint64_t*)0x20000080 = 0x20000180; memcpy((void*)0x20000180, "\x38\x00\x00\x00\x13\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00", 20); *(uint32_t*)0x20000194 = r[1]; memcpy((void*)0x20000198, "\xff\xff\xff\xfa\x00\x00\x00\x00\x18\x00\x16\x00" "\x14\x00\x01\x00\x10\x00\x03\x00\x00\x00\x00\xae" "\xfd\xa5\x20\x1b\x5b\x12\x53\xcc\x98\xac\x00\x00" "\x00\x00\x00\x00\x00\x00\x00", 43); *(uint64_t*)0x20000088 = 0x38; *(uint64_t*)0x2000a018 = 1; *(uint64_t*)0x2000a020 = 0; *(uint64_t*)0x2000a028 = 0; *(uint32_t*)0x2000a030 = 0; syscall(__NR_sendmsg, r[0], 0x2000a000, 0); return 0; }