// https://syzkaller.appspot.com/bug?id=182572e325365b1289980a1583da6c9966f1aec1 // 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, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x1012ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; res = syscall(SYS_socket, /*domain=*/2ul, /*type=*/1ul, /*proto=*/0x84); if (res != -1) r[0] = res; *(uint8_t*)0x20000980 = 0x10; *(uint8_t*)0x20000981 = 2; *(uint16_t*)0x20000982 = htobe16(0x4e20); *(uint32_t*)0x20000984 = htobe32(4); memset((void*)0x20000988, 0, 8); syscall(SYS_sendto, /*fd=*/r[0], /*buf=*/0ul, /*len=*/0ul, /*f=*/0ul, /*addr=*/0x20000980ul, /*addrlen=*/0x10ul); syscall(SYS_shutdown, /*fd=*/r[0], /*how=*/1ul); return 0; }