// https://syzkaller.appspot.com/bug?id=abea64deca0c76a7abebf8afb24edca59638b683 // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x40000000002, 3, 2); if (res != -1) r[0] = res; memcpy((void*)0x20000040, "syz_tun\000\000\000\000\000\000\000\000\000", 16); syscall(__NR_setsockopt, r[0], 1, 0x19, 0x20000040, 0xfe33); *(uint16_t*)0x20000d00 = 0; *(uint8_t*)0x20000d02 = 0; *(uint32_t*)0x20000d04 = 0x10000e0; syscall(__NR_sendto, r[0], 0, 0, 0, 0x20000d00, 0x6e); return 0; }