// https://syzkaller.appspot.com/bug?id=e5241d365aa13afa651a758163d62e0a5d94e955 // 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, 0x1ffff000, 0x1000, 0, 0x32, -1, 0); syscall(__NR_mmap, 0x20000000, 0x1000000, 7, 0x32, -1, 0); syscall(__NR_mmap, 0x21000000, 0x1000, 0, 0x32, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 0x10, 3, 9); if (res != -1) r[0] = res; *(uint32_t*)0x200002c0 = 0; *(uint32_t*)0x200002c4 = 0; *(uint32_t*)0x200002c8 = 0x20000280; *(uint32_t*)0x20000280 = 0x200001c0; *(uint32_t*)0x200001c0 = 0x10; *(uint16_t*)0x200001c4 = 0x453; *(uint16_t*)0x200001c6 = 0; *(uint32_t*)0x200001c8 = 0; *(uint32_t*)0x200001cc = 0; *(uint32_t*)0x20000284 = 0x10; *(uint32_t*)0x200002cc = 1; *(uint32_t*)0x200002d0 = 0; *(uint32_t*)0x200002d4 = 0; *(uint32_t*)0x200002d8 = 0; syscall(__NR_sendmsg, (intptr_t)r[0], 0x200002c0, 0); return 0; }