// https://syzkaller.appspot.com/bug?id=9463343a39f66062536eca45450081f837781f88 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 0x1cul, 5ul, 0x84); if (res != -1) r[0] = res; *(uint64_t*)0x200005c0 = 0x20000180; *(uint8_t*)0x20000180 = 0x1c; *(uint8_t*)0x20000181 = 0x1c; *(uint16_t*)0x20000182 = htobe16(0x4e23); *(uint32_t*)0x20000184 = 0; *(uint64_t*)0x20000188 = htobe64(0); *(uint64_t*)0x20000190 = htobe64(1); *(uint32_t*)0x20000198 = 0; *(uint32_t*)0x200005c8 = 0x1c; *(uint64_t*)0x200005d0 = 0x200001c0; *(uint64_t*)0x200001c0 = 0x20000240; memset((void*)0x20000240, 3, 1); *(uint64_t*)0x200001c8 = 1; *(uint32_t*)0x200005d8 = 1; *(uint64_t*)0x200005e0 = 0; *(uint32_t*)0x200005e8 = 0; *(uint32_t*)0x200005ec = 0; syscall(SYS_sendmsg, r[0], 0x200005c0ul, 0ul); { int i; for (i = 0; i < 64; i++) { syscall(SYS_sendmsg, r[0], 0x200005c0ul, 0ul); } } return 0; }