// https://syzkaller.appspot.com/bug?id=ab159f6b25403d41d2144ba584961589f4132205 // 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=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x1012ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } res = syscall(SYS_socket, /*domain=AF_INET6*/ 0x1cul, /*type=SOCK_STREAM*/ 1ul, /*proto=*/0); if (res != -1) r[0] = res; *(uint32_t*)0x200000000140 = 0xb; syscall(SYS_setsockopt, /*fd=*/r[0], /*level=*/0xffff, /*optname=SO_REUSEPORT_LB*/ 0x10000, /*optval=*/0x200000000140ul, /*optlen=*/4ul); *(uint8_t*)0x200000000040 = 0x1c; *(uint8_t*)0x200000000041 = 0x1c; *(uint16_t*)0x200000000042 = htobe16(0x4e20); *(uint32_t*)0x200000000044 = 0xae5; *(uint64_t*)0x200000000048 = htobe64(0); *(uint64_t*)0x200000000050 = htobe64(1); *(uint32_t*)0x200000000058 = 1; syscall(SYS_sendto, /*fd=*/r[0], /*buf=*/0ul, /*len=*/0ul, /*f=MSG_DONTWAIT*/ 0x80ul, /*addr=*/0x200000000040ul, /*addrlen=*/0x1cul); return 0; }