// https://syzkaller.appspot.com/bug?id=e4f035eaf9aaffc5dc8609e4fcf4f35ffb6a0f96 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; memcpy((void*)0x200000c0, "+\213\212\026\021O\335\337k(F\231\337\222\325>oJ\002u\233\224a\254", 24); res = syscall(__NR_memfd_create, 0x200000c0, 3); if (res != -1) r[0] = res; *(uint32_t*)0x20000c40 = -1; syscall(__NR_write, r[0], 0x20000c40, 0xff67); syscall(__NR_fcntl, r[0], 0x409, 8); return 0; }