// https://syzkaller.appspot.com/bug?id=2cd06fb274bcdbc4abc841b4e0211b6209189881 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; syscall(SYS_ksem_init, 0x20000040ul, 0); memcpy((void*)0x20000000, "/dev/pf\000", 8); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000000ul, 1ul, 0ul); if (res != -1) r[0] = res; syscall(SYS_ioctl, r[0], 0xcbe0441aul, 0x20000040ul); return 0; }