// https://syzkaller.appspot.com/bug?id=9d6b122f96ca72dca0f35a8d9ce58502a78762a5 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000140, "/dev/vim2m\000", 11); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000140ul, 2ul, 0ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000180 = 0x240080; *(uint32_t*)0x20000184 = 1; *(uint32_t*)0x20000188 = 2; *(uint32_t*)0x2000018c = 0; *(uint32_t*)0x20000190 = 0; syscall(__NR_ioctl, r[0], 0xc0145608, 0x20000180ul); *(uint32_t*)0x20000600 = 1; syscall(__NR_ioctl, r[0], 0x40045612, 0x20000600ul); *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 1; *(uint32_t*)0x20000008 = 4; *(uint32_t*)0x2000000c = 0; *(uint32_t*)0x20000010 = 0; *(uint64_t*)0x20000018 = 0x77359400; *(uint64_t*)0x20000020 = 0; *(uint32_t*)0x20000028 = 0; *(uint32_t*)0x2000002c = 0; *(uint8_t*)0x20000030 = 0; *(uint8_t*)0x20000031 = 0; *(uint8_t*)0x20000032 = 0; *(uint8_t*)0x20000033 = 0; memset((void*)0x20000034, 0, 4); *(uint32_t*)0x20000038 = 0; *(uint32_t*)0x2000003c = 2; *(uint64_t*)0x20000040 = 0x20000080; *(uint32_t*)0x20000080 = 0; *(uint32_t*)0x20000084 = 0; *(uint64_t*)0x20000088 = 0; *(uint32_t*)0x20000090 = 0; memset((void*)0x20000094, 0, 44); *(uint32_t*)0x20000048 = 0x96000; *(uint32_t*)0x2000004c = 0; *(uint32_t*)0x20000050 = -1; syscall(__NR_ioctl, r[0], 0xc058560f, 0x20000000ul); res = syscall(__NR_epoll_create1, 0ul); if (res != -1) r[1] = res; *(uint32_t*)0x200000c0 = 0xe0000004; *(uint64_t*)0x200000c4 = 0; syscall(__NR_epoll_ctl, r[1], 1ul, r[0], 0x200000c0ul); return 0; }