// 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*)0x200000000080 = 0xb; syscall(SYS_setsockopt, /*fd=*/r[0], /*level=*/0xffff, /*optname=SO_REUSEPORT_LB*/ 0x10000, /*optval=*/0x200000000080ul, /*optlen=*/4ul); *(uint8_t*)0x200000000200 = 0x1c; *(uint8_t*)0x200000000201 = 0x1c; *(uint16_t*)0x200000000202 = htobe16(0x4e20); *(uint32_t*)0x200000000204 = 9; memset((void*)0x200000000208, 0, 16); *(uint32_t*)0x200000000218 = 0; syscall(SYS_sendto, /*fd=*/r[0], /*buf=*/0ul, /*len=*/0ul, /*f=*/0ul, /*addr=*/0x200000000200ul, /*addrlen=*/0x1cul); return 0; }