// https://syzkaller.appspot.com/bug?id=acc91fc5738dacbfaa1163219fc6bf0685224b60 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {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*)0x20000040, "/dev/ptmx\000", 10); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000040ul, 0x41ul, 0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000280, "\x22\xd8\xbe\x7d\xba\x60\xd4\x10\x72\x40\x98\x90\x91\xdb\x7f\x3f\xa3" "\x54\x9d\x80\xf5\x51\xac\xe1\xd8\x7a\xc8\x94\x94\x7e\x1c\x4c\x32\x6e" "\x28\x72\xab\x28\x06\x04\xfc\xbd\x77\xc6\xe0\x26\xee\x6a\x13\xbd\xa9" "\x9e\xe1\x72\xd2\x0a", 56); syscall(__NR_write, r[0], 0x20000280ul, 0xff2eul); return 0; }