// https://syzkaller.appspot.com/bug?id=c2e90508040e0848e0c1e1dffa4e3e5b0bd6091f // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #define __syscall syscall uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul, 0ul); intptr_t res = 0; memcpy((void*)0x20000100, "/dev/pf\000\000", 9); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000100ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint64_t*)0x200000c0 = 0x20000080; *(uint32_t*)0x20000080 = 0x24; *(uint32_t*)0x20000084 = 0x3f6b; *(uint32_t*)0x20000088 = 0x22; *(uint32_t*)0x2000008c = 0xfffffffe; *(uint32_t*)0x20000090 = 0x43; *(uint32_t*)0x20000094 = 1; *(uint32_t*)0x20000098 = 0xe1; *(uint32_t*)0x2000009c = 0x3f; *(uint32_t*)0x200000a0 = 0x40c89c44; *(uint32_t*)0x200000a4 = 1; syscall(SYS_ioctl, -1, 0x80105727ul, 0x200000c0ul); *(uint32_t*)0x20000040 = 7; syscall(SYS_ioctl, r[0], 0xc0504417ul, 0x20000040ul); return 0; }