// https://syzkaller.appspot.com/bug?id=d43b43d907055085f535aca386e524a5ff8cef95 // 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; *(uint32_t*)0x200000c0 = 0; *(uint32_t*)0x200000c4 = 0x7f; *(uint32_t*)0x200000c8 = 0x6d; *(uint32_t*)0x200000cc = 0xffff8ead; *(uint32_t*)0x200000d0 = 0xffff681b; *(uint32_t*)0x200000d4 = 0x73f3; *(uint32_t*)0x200000d8 = 0; *(uint32_t*)0x200000dc = 0x10; *(uint32_t*)0x200000e0 = 9; *(uint32_t*)0x200000e4 = 0x200; *(uint32_t*)0x200000e8 = 0x7d; *(uint32_t*)0x200000ec = 0; *(uint32_t*)0x200000f0 = 7; *(uint32_t*)0x200000f4 = 0; *(uint32_t*)0x200000f8 = 0; *(uint32_t*)0x200000fc = 0x80000000; *(uint32_t*)0x20000100 = 0x8000; *(uint32_t*)0x20000104 = 0; *(uint32_t*)0x20000108 = 5; *(uint32_t*)0x2000010c = 0x100; *(uint32_t*)0x20000110 = 0x7f; *(uint32_t*)0x20000114 = 0x81; *(uint32_t*)0x20000118 = 8; *(uint32_t*)0x2000011c = 0x8000; *(uint32_t*)0x20000120 = 7; *(uint32_t*)0x20000124 = 9; *(uint32_t*)0x20000128 = 7; *(uint32_t*)0x2000012c = 5; *(uint32_t*)0x20000130 = 2; *(uint32_t*)0x20000134 = 0x800; *(uint32_t*)0x20000138 = 0x101; *(uint32_t*)0x2000013c = 0x80000001; *(uint32_t*)0x20000140 = 5; *(uint32_t*)0x20000144 = 9; *(uint32_t*)0x20000148 = 8; *(uint32_t*)0x2000014c = 0; *(uint32_t*)0x20000150 = 0x6e000000; *(uint32_t*)0x20000154 = 0x401; *(uint32_t*)0x20000158 = 0xdb; *(uint32_t*)0x2000015c = 1; *(uint32_t*)0x20000160 = 0x80000000; *(uint32_t*)0x20000164 = 3; *(uint32_t*)0x20000168 = 0x3ff; *(uint32_t*)0x2000016c = 0x8000; *(uint32_t*)0x20000170 = 0x9c7; *(uint32_t*)0x20000174 = 0x1000; *(uint32_t*)0x20000178 = 6; *(uint32_t*)0x2000017c = 8; *(uint32_t*)0x20000180 = 7; *(uint32_t*)0x20000184 = 4; *(uint32_t*)0x20000188 = 6; *(uint32_t*)0x2000018c = 0x6b9; *(uint32_t*)0x20000190 = 0x7f; *(uint32_t*)0x20000194 = 0xfffffc00; *(uint32_t*)0x20000198 = 9; *(uint32_t*)0x2000019c = 0x317; *(uint32_t*)0x200001a0 = 0x800; *(uint32_t*)0x200001a4 = 3; *(uint32_t*)0x200001a8 = 0x2a; *(uint32_t*)0x200001ac = 2; *(uint32_t*)0x200001b0 = 8; *(uint32_t*)0x200001b4 = 1; *(uint32_t*)0x200001b8 = 9; *(uint32_t*)0x200001bc = 0xcd4; *(uint32_t*)0x200001c0 = 4; *(uint32_t*)0x200001c4 = 9; *(uint32_t*)0x200001c8 = 0x186; *(uint32_t*)0x200001cc = 0x1f; *(uint32_t*)0x200001d0 = 5; *(uint32_t*)0x200001d4 = 0x3ff; *(uint32_t*)0x200001d8 = 0; *(uint32_t*)0x200001dc = 0xfffffffc; syscall(SYS_ioctl, -1, 0x81205724ul, 0x200000c0ul); memcpy((void*)0x20000000, "/dev/pf\000\000", 9); res = syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000000ul, 0ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000080 = 0; syscall(SYS_ioctl, r[0], 0xc0504417ul, 0x20000080ul); syscall(SYS_fcntl, -1, 5ul, 0); return 0; }