// https://syzkaller.appspot.com/bug?id=e28a8c9bccd8c58e7fe462274ca213b7eb52615e // 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*)0x20000140, "+\213\212\026\021O\335\337k(F\231\337\222\325>oJ\002u\233\224a\254", 24); res = syscall(__NR_memfd_create, 0x20000140, 3); if (res != -1) r[0] = res; memcpy((void*)0x20000240, "\000", 1); syscall(__NR_write, r[0], 0x20000240, 1); syscall(__NR_fcntl, r[0], 0x409, 8); return 0; }