// https://syzkaller.appspot.com/bug?id=2c0ac0ec1fad20a0c844ee6e2c74bcdddb3a75ca // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_mkdir #define __NR_mkdir 39 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_mount #define __NR_mount 21 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); memcpy((void*)0x20000200, "./file0\000", 8); syscall(__NR_mkdir, 0x20000200, 0); memcpy((void*)0x20000240, "\x23\x9a\xfe\x2f\x5d\x75\x77\x4f\x2c\x22\xb9\x16\x63\xd0\x41\x63\xdd" "\xb5\x82\x95\xb4\x5b\xb2\x18\x24\xd0\x93\x35\x78\x7e\xb5\x53\xde\x26" "\xc6\xa1\x54\x57\x7d\xd9\xaa\x99\x7a\x15\xba\x43\x50\x12\x28\x3a", 50); memcpy((void*)0x20000140, "./file0\000", 8); memcpy((void*)0x20000180, "afs\000", 4); syscall(__NR_mount, 0x20000240, 0x20000140, 0x20000180, 0, 0); return 0; }