// https://syzkaller.appspot.com/bug?id=35140c36bdc2a463f27e79ec579595544d9494a7 // 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; memcpy((void*)0x200000c0, "/dev/pf\000", 8); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x200000c0ul, 1ul, 0ul); if (res != -1) r[0] = res; syscall(SYS_ioctl, r[0], 0xcbe04404ul, 0x20000080ul); return 0; }