// https://syzkaller.appspot.com/bug?id=0be8ca995f66bd2d98f041823f1e80f1d2575515 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #ifndef SYS_mmap #define SYS_mmap 197 #endif #ifndef SYS_setrlimit #define SYS_setrlimit 195 #endif #ifndef SYS_socket #define SYS_socket 394 #endif int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0, 0); *(uint64_t*)0x20000000 = 0; *(uint64_t*)0x20000008 = 0; syscall(SYS_setrlimit, 9, 0x20000000); syscall(SYS_socket, 0x18, 2, 0); return 0; }