// https://syzkaller.appspot.com/bug?id=f03bd3c7d096c9d96ea3b6da9cb6c9f278532884 // 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_read #define SYS_read 3 #endif #ifndef SYS_setsockopt #define SYS_setsockopt 105 #endif #ifndef SYS_socket #define SYS_socket 394 #endif uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0, 0); long res = 0; res = syscall(SYS_socket, 0x18, 3, 6); if (res != -1) r[0] = res; *(uint64_t*)0x20000080 = 0xfffffffffffffff9; *(uint64_t*)0x20000088 = 0x8000; syscall(SYS_setsockopt, r[0], 0xffff, 0x100c, 0x20000080, 0x10); syscall(SYS_read, r[0], 0x20000240, 0x76); return 0; }