// https://syzkaller.appspot.com/bug?id=a12c1f3e39a8a831adb228340dbbe6c747126f14 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0x0, 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; res = syscall(__NR_io_setup, 6, 0x20000300ul); if (res != -1) r[0] = *(uint64_t*)0x20000300; memcpy((void*)0x20000480, "/dev/net/tun\000", 13); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000480ul, 2ul, 0ul); if (res != -1) r[1] = res; memcpy((void*)0x200000c0, "wlan1\000\000\000\000\000\000\000\000\000\000\000", 16); *(uint16_t*)0x200000d0 = 0x1001; syscall(__NR_ioctl, r[1], 0x400454ca, 0x200000c0ul); *(uint64_t*)0x20002600 = 0x20000000; *(uint64_t*)0x20000000 = 0; *(uint32_t*)0x20000008 = 0; *(uint32_t*)0x2000000c = 0; *(uint16_t*)0x20000010 = 1; *(uint16_t*)0x20000012 = 0; *(uint32_t*)0x20000014 = r[1]; *(uint64_t*)0x20000018 = 0; *(uint64_t*)0x20000020 = 0; *(uint64_t*)0x20000028 = 0; *(uint64_t*)0x20000030 = 0; *(uint32_t*)0x20000038 = 0; *(uint32_t*)0x2000003c = -1; syscall(__NR_io_submit, r[0], 1ul, 0x20002600ul); return 0; }