// https://syzkaller.appspot.com/bug?id=a32bd53b43c9bfc2495a6fa7ebaec3a2e7695e94 // 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_sendmsg #define __NR_sendmsg 370 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x10, 3, 0x10); if (res != -1) r[0] = res; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 0xfffffd74; *(uint32_t*)0x20000388 = 0x20000340; *(uint32_t*)0x20000340 = 0x20000080; *(uint32_t*)0x20000080 = 0x20; *(uint16_t*)0x20000084 = 0x1d; *(uint16_t*)0x20000086 = 0xfffd; *(uint32_t*)0x20000088 = 0; *(uint32_t*)0x2000008c = 0; *(uint8_t*)0x20000090 = 1; *(uint8_t*)0x20000091 = 0; *(uint16_t*)0x20000092 = 0; *(uint16_t*)0x20000094 = 0xc; *(uint16_t*)0x20000096 = 0x111; *(uint16_t*)0x20000098 = 8; *(uint16_t*)0x2000009a = 6; *(uint32_t*)0x2000009c = 0; *(uint32_t*)0x20000344 = 0x20; *(uint32_t*)0x2000038c = 1; *(uint32_t*)0x20000390 = 0; *(uint32_t*)0x20000394 = 0; *(uint32_t*)0x20000398 = 0; syscall(__NR_sendmsg, (long)r[0], 0x20000380, 0); return 0; }