// https://syzkaller.appspot.com/bug?id=24d623839a861c6d7b4e79a08cfbd54e30fe7592 // 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*)0x20000000, "/dev/pf\000\000", 9); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000000ul, 1ul, 0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000d80, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5e\x5e\x2e\x94\x68" "\x99\x10\xf7\xe4\x5e\x99\xd1\x7d\x65\xcf\xdb\x3e\x4a\xed\x0e\xdf\x9d" "\x74\x1c\x26\x71\xbb\x28\x1c\xf8\x2d\xb3\x9f\xf1\x42", 217); syscall(SYS_msgrcv, 0, 0x20000d80ul, 1ul, 0ul, 0ul); *(uint64_t*)0x20000580 = 0; *(uint32_t*)0x20000588 = 0; *(uint64_t*)0x20000590 = 0; *(uint64_t*)0x20000598 = 0; *(uint64_t*)0x200005a0 = 0x20000980; *(uint64_t*)0x20000980 = 0x38; *(uint32_t*)0x20000988 = 0xffff; *(uint32_t*)0x2000098c = 1; *(uint32_t*)0x20000990 = -1; *(uint32_t*)0x20000994 = -1; *(uint32_t*)0x20000998 = -1; *(uint32_t*)0x2000099c = -1; *(uint32_t*)0x200009a0 = -1; *(uint32_t*)0x200009a4 = -1; *(uint32_t*)0x200009a8 = -1; *(uint32_t*)0x200009ac = -1; *(uint32_t*)0x200009b0 = r[0]; *(uint64_t*)0x200009b8 = 0x20; *(uint32_t*)0x200009c0 = 0xffff; *(uint32_t*)0x200009c4 = 1; *(uint32_t*)0x200009c8 = -1; *(uint32_t*)0x200009cc = -1; *(uint32_t*)0x200009d0 = -1; *(uint64_t*)0x200009d8 = 0x20; *(uint32_t*)0x200009e0 = 0xffff; *(uint32_t*)0x200009e4 = 0; *(uint32_t*)0x200009e8 = 0; *(uint32_t*)0x200009ec = -1; *(uint32_t*)0x200009f0 = 0; *(uint64_t*)0x200009f8 = 0x20; *(uint32_t*)0x20000a00 = 0xffff; *(uint32_t*)0x20000a04 = 0; *(uint32_t*)0x20000a08 = 0; *(uint32_t*)0x20000a0c = 0; *(uint32_t*)0x20000a10 = 0; *(uint64_t*)0x20000a18 = 0x20; *(uint32_t*)0x20000a20 = 0xffff; *(uint32_t*)0x20000a24 = 0; *(uint32_t*)0x20000a28 = 0; *(uint32_t*)0x20000a2c = 0; *(uint32_t*)0x20000a30 = 0; *(uint64_t*)0x200005a8 = 0xb8; *(uint32_t*)0x200005b0 = 5; syscall(SYS_sendmsg, -1, 0x20000580ul, 0x400ul); *(uint32_t*)0x20000140 = 0; syscall(SYS_ioctl, r[0], 0xcd604404ul, 0x20000140ul); return 0; }