// https://syzkaller.appspot.com/bug?id=1ace85e8fc9b0d5a45c08c2656c3e91762daa9b8 // 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_sendmmsg #define __NR_sendmmsg 345 #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); intptr_t res = 0; res = syscall(__NR_socket, 0x25, 5, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20007600 = 0; *(uint32_t*)0x20007604 = 0; *(uint32_t*)0x20007608 = 0; *(uint32_t*)0x2000760c = 0; *(uint32_t*)0x20007610 = 0; *(uint32_t*)0x20007614 = 0; *(uint32_t*)0x20007618 = 0; *(uint32_t*)0x2000761c = 0; syscall(__NR_sendmmsg, (intptr_t)r[0], 0x20007600, 1, 0); return 0; }