// https://syzkaller.appspot.com/bug?id=3ae6ce85eab4479e4da324d52c13e467e7f1603c // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_open_by_handle_at #define __NR_open_by_handle_at 342 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 int main(void) { syscall(__NR_mmap, 0x1ffff000, 0x1000, 0, 0x32, -1, 0); syscall(__NR_mmap, 0x20000000, 0x1000000, 7, 0x32, -1, 0); syscall(__NR_mmap, 0x21000000, 0x1000, 0, 0x32, -1, 0); memcpy((void*)0x20000200, "\x09\x00\x00\x00\x01\x00\x00\x00\x77", 9); syscall(__NR_open_by_handle_at, 0xffffff9c, 0x20000200, 0x2f40); return 0; }