// https://syzkaller.appspot.com/bug?id=35c69a61d7a3ac5102d729001701d5db25dbe58a // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static unsigned long long procid; static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[4096]; }; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; if (size > 0) memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static void netlink_nest(struct nlmsg* nlmsg, int typ) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_type = typ; nlmsg->pos += sizeof(*attr); nlmsg->nested[nlmsg->nesting++] = attr; } static void netlink_done(struct nlmsg* nlmsg) { struct nlattr* attr = nlmsg->nested[--nlmsg->nesting]; attr->nla_len = nlmsg->pos - (char*)attr; } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; unsigned n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != hdr->nlmsg_len) exit(1); n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (n < sizeof(struct nlmsghdr)) exit(1); if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr)) exit(1); if (hdr->nlmsg_type != NLMSG_ERROR) exit(1); return ((struct nlmsgerr*)(hdr + 1))->error; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL); } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, family_name, strnlen(family_name, GENL_NAMSIZ - 1) + 1); int n = 0; int err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n); if (err < 0) { return -1; } uint16_t id = 0; struct nlattr* attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); return id; } static int netlink_next_msg(struct nlmsg* nlmsg, unsigned int offset, unsigned int total_len) { struct nlmsghdr* hdr = (struct nlmsghdr*)(nlmsg->buf + offset); if (offset == total_len || offset + hdr->nlmsg_len > total_len) return -1; return hdr->nlmsg_len; } static void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); netlink_init(nlmsg, RTM_NEWLINK, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); if (name) netlink_attr(nlmsg, IFLA_IFNAME, name, strlen(name)); netlink_nest(nlmsg, IFLA_LINKINFO); netlink_attr(nlmsg, IFLA_INFO_KIND, type, strlen(type)); } static void netlink_add_device(struct nlmsg* nlmsg, int sock, const char* type, const char* name) { netlink_add_device_impl(nlmsg, type, name); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_veth(struct nlmsg* nlmsg, int sock, const char* name, const char* peer) { netlink_add_device_impl(nlmsg, "veth", name); netlink_nest(nlmsg, IFLA_INFO_DATA); netlink_nest(nlmsg, VETH_INFO_PEER); nlmsg->pos += sizeof(struct ifinfomsg); netlink_attr(nlmsg, IFLA_IFNAME, peer, strlen(peer)); netlink_done(nlmsg); netlink_done(nlmsg); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_hsr(struct nlmsg* nlmsg, int sock, const char* name, const char* slave1, const char* slave2) { netlink_add_device_impl(nlmsg, "hsr", name); netlink_nest(nlmsg, IFLA_INFO_DATA); int ifindex1 = if_nametoindex(slave1); netlink_attr(nlmsg, IFLA_HSR_SLAVE1, &ifindex1, sizeof(ifindex1)); int ifindex2 = if_nametoindex(slave2); netlink_attr(nlmsg, IFLA_HSR_SLAVE2, &ifindex2, sizeof(ifindex2)); netlink_done(nlmsg); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_linked(struct nlmsg* nlmsg, int sock, const char* type, const char* name, const char* link) { netlink_add_device_impl(nlmsg, type, name); netlink_done(nlmsg); int ifindex = if_nametoindex(link); netlink_attr(nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_vlan(struct nlmsg* nlmsg, int sock, const char* name, const char* link, uint16_t id, uint16_t proto) { netlink_add_device_impl(nlmsg, "vlan", name); netlink_nest(nlmsg, IFLA_INFO_DATA); netlink_attr(nlmsg, IFLA_VLAN_ID, &id, sizeof(id)); netlink_attr(nlmsg, IFLA_VLAN_PROTOCOL, &proto, sizeof(proto)); netlink_done(nlmsg); netlink_done(nlmsg); int ifindex = if_nametoindex(link); netlink_attr(nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_macvlan(struct nlmsg* nlmsg, int sock, const char* name, const char* link) { netlink_add_device_impl(nlmsg, "macvlan", name); netlink_nest(nlmsg, IFLA_INFO_DATA); uint32_t mode = MACVLAN_MODE_BRIDGE; netlink_attr(nlmsg, IFLA_MACVLAN_MODE, &mode, sizeof(mode)); netlink_done(nlmsg); netlink_done(nlmsg); int ifindex = if_nametoindex(link); netlink_attr(nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_add_geneve(struct nlmsg* nlmsg, int sock, const char* name, uint32_t vni, struct in_addr* addr4, struct in6_addr* addr6) { netlink_add_device_impl(nlmsg, "geneve", name); netlink_nest(nlmsg, IFLA_INFO_DATA); netlink_attr(nlmsg, IFLA_GENEVE_ID, &vni, sizeof(vni)); if (addr4) netlink_attr(nlmsg, IFLA_GENEVE_REMOTE, addr4, sizeof(*addr4)); if (addr6) netlink_attr(nlmsg, IFLA_GENEVE_REMOTE6, addr6, sizeof(*addr6)); netlink_done(nlmsg); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); (void)err; } #define IFLA_IPVLAN_FLAGS 2 #define IPVLAN_MODE_L3S 2 #undef IPVLAN_F_VEPA #define IPVLAN_F_VEPA 2 static void netlink_add_ipvlan(struct nlmsg* nlmsg, int sock, const char* name, const char* link, uint16_t mode, uint16_t flags) { netlink_add_device_impl(nlmsg, "ipvlan", name); netlink_nest(nlmsg, IFLA_INFO_DATA); netlink_attr(nlmsg, IFLA_IPVLAN_MODE, &mode, sizeof(mode)); netlink_attr(nlmsg, IFLA_IPVLAN_FLAGS, &flags, sizeof(flags)); netlink_done(nlmsg); netlink_done(nlmsg); int ifindex = if_nametoindex(link); netlink_attr(nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(nlmsg, sock); (void)err; } static void netlink_device_change(struct nlmsg* nlmsg, int sock, const char* name, bool up, const char* master, const void* mac, int macsize, const char* new_name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; hdr.ifi_index = if_nametoindex(name); netlink_init(nlmsg, RTM_NEWLINK, 0, &hdr, sizeof(hdr)); if (new_name) netlink_attr(nlmsg, IFLA_IFNAME, new_name, strlen(new_name)); if (master) { int ifindex = if_nametoindex(master); netlink_attr(nlmsg, IFLA_MASTER, &ifindex, sizeof(ifindex)); } if (macsize) netlink_attr(nlmsg, IFLA_ADDRESS, mac, macsize); int err = netlink_send(nlmsg, sock); (void)err; } static int netlink_add_addr(struct nlmsg* nlmsg, int sock, const char* dev, const void* addr, int addrsize) { struct ifaddrmsg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.ifa_family = addrsize == 4 ? AF_INET : AF_INET6; hdr.ifa_prefixlen = addrsize == 4 ? 24 : 120; hdr.ifa_scope = RT_SCOPE_UNIVERSE; hdr.ifa_index = if_nametoindex(dev); netlink_init(nlmsg, RTM_NEWADDR, NLM_F_CREATE | NLM_F_REPLACE, &hdr, sizeof(hdr)); netlink_attr(nlmsg, IFA_LOCAL, addr, addrsize); netlink_attr(nlmsg, IFA_ADDRESS, addr, addrsize); return netlink_send(nlmsg, sock); } static void netlink_add_addr4(struct nlmsg* nlmsg, int sock, const char* dev, const char* addr) { struct in_addr in_addr; inet_pton(AF_INET, addr, &in_addr); int err = netlink_add_addr(nlmsg, sock, dev, &in_addr, sizeof(in_addr)); (void)err; } static void netlink_add_addr6(struct nlmsg* nlmsg, int sock, const char* dev, const char* addr) { struct in6_addr in6_addr; inet_pton(AF_INET6, addr, &in6_addr); int err = netlink_add_addr(nlmsg, sock, dev, &in6_addr, sizeof(in6_addr)); (void)err; } static void netlink_add_neigh(struct nlmsg* nlmsg, int sock, const char* name, const void* addr, int addrsize, const void* mac, int macsize) { struct ndmsg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.ndm_family = addrsize == 4 ? AF_INET : AF_INET6; hdr.ndm_ifindex = if_nametoindex(name); hdr.ndm_state = NUD_PERMANENT; netlink_init(nlmsg, RTM_NEWNEIGH, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); netlink_attr(nlmsg, NDA_DST, addr, addrsize); netlink_attr(nlmsg, NDA_LLADDR, mac, macsize); int err = netlink_send(nlmsg, sock); (void)err; } static struct nlmsg nlmsg; static int tunfd = -1; #define TUN_IFACE "syz_tun" #define LOCAL_MAC 0xaaaaaaaaaaaa #define REMOTE_MAC 0xaaaaaaaaaabb #define LOCAL_IPV4 "172.20.20.170" #define REMOTE_IPV4 "172.20.20.187" #define LOCAL_IPV6 "fe80::aa" #define REMOTE_IPV6 "fe80::bb" #define IFF_NAPI 0x0010 static void initialize_tun(void) { tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK); if (tunfd == -1) { printf("tun: can't open /dev/net/tun: please enable CONFIG_TUN=y\n"); printf("otherwise fuzzing or reproducing might not work as intended\n"); return; } const int kTunFd = 240; if (dup2(tunfd, kTunFd) < 0) exit(1); close(tunfd); tunfd = kTunFd; struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, TUN_IFACE, IFNAMSIZ); ifr.ifr_flags = IFF_TAP | IFF_NO_PI; if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) { exit(1); } char sysctl[64]; sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/accept_dad", TUN_IFACE); write_file(sysctl, "0"); sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/router_solicitations", TUN_IFACE); write_file(sysctl, "0"); int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) exit(1); netlink_add_addr4(&nlmsg, sock, TUN_IFACE, LOCAL_IPV4); netlink_add_addr6(&nlmsg, sock, TUN_IFACE, LOCAL_IPV6); uint64_t macaddr = REMOTE_MAC; struct in_addr in_addr; inet_pton(AF_INET, REMOTE_IPV4, &in_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in_addr, sizeof(in_addr), &macaddr, ETH_ALEN); struct in6_addr in6_addr; inet_pton(AF_INET6, REMOTE_IPV6, &in6_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in6_addr, sizeof(in6_addr), &macaddr, ETH_ALEN); macaddr = LOCAL_MAC; netlink_device_change(&nlmsg, sock, TUN_IFACE, true, 0, &macaddr, ETH_ALEN, NULL); close(sock); } #define DEVLINK_FAMILY_NAME "devlink" #define DEVLINK_CMD_PORT_GET 5 #define DEVLINK_ATTR_BUS_NAME 1 #define DEVLINK_ATTR_DEV_NAME 2 #define DEVLINK_ATTR_NETDEV_NAME 7 static struct nlmsg nlmsg2; static void initialize_devlink_ports(const char* bus_name, const char* dev_name, const char* netdev_prefix) { struct genlmsghdr genlhdr; int len, total_len, id, err, offset; uint16_t netdev_index; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock == -1) exit(1); int rtsock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (rtsock == -1) exit(1); id = netlink_query_family_id(&nlmsg, sock, DEVLINK_FAMILY_NAME); if (id == -1) goto error; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = DEVLINK_CMD_PORT_GET; netlink_init(&nlmsg, id, NLM_F_DUMP, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, DEVLINK_ATTR_BUS_NAME, bus_name, strlen(bus_name) + 1); netlink_attr(&nlmsg, DEVLINK_ATTR_DEV_NAME, dev_name, strlen(dev_name) + 1); err = netlink_send_ext(&nlmsg, sock, id, &total_len); if (err < 0) { goto error; } offset = 0; netdev_index = 0; while ((len = netlink_next_msg(&nlmsg, offset, total_len)) != -1) { struct nlattr* attr = (struct nlattr*)(nlmsg.buf + offset + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg.buf + offset + len; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == DEVLINK_ATTR_NETDEV_NAME) { char* port_name; char netdev_name[IFNAMSIZ]; port_name = (char*)(attr + 1); snprintf(netdev_name, sizeof(netdev_name), "%s%d", netdev_prefix, netdev_index); netlink_device_change(&nlmsg2, rtsock, port_name, true, 0, 0, 0, netdev_name); break; } } offset += len; netdev_index++; } error: close(rtsock); close(sock); } #define DEV_IPV4 "172.20.20.%d" #define DEV_IPV6 "fe80::%02x" #define DEV_MAC 0x00aaaaaaaaaa static void netdevsim_add(unsigned int addr, unsigned int port_count) { char buf[16]; sprintf(buf, "%u %u", addr, port_count); if (write_file("/sys/bus/netdevsim/new_device", buf)) { snprintf(buf, sizeof(buf), "netdevsim%d", addr); initialize_devlink_ports("netdevsim", buf, "netdevsim"); } } #define WG_GENL_NAME "wireguard" enum wg_cmd { WG_CMD_GET_DEVICE, WG_CMD_SET_DEVICE, }; enum wgdevice_attribute { WGDEVICE_A_UNSPEC, WGDEVICE_A_IFINDEX, WGDEVICE_A_IFNAME, WGDEVICE_A_PRIVATE_KEY, WGDEVICE_A_PUBLIC_KEY, WGDEVICE_A_FLAGS, WGDEVICE_A_LISTEN_PORT, WGDEVICE_A_FWMARK, WGDEVICE_A_PEERS, }; enum wgpeer_attribute { WGPEER_A_UNSPEC, WGPEER_A_PUBLIC_KEY, WGPEER_A_PRESHARED_KEY, WGPEER_A_FLAGS, WGPEER_A_ENDPOINT, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, WGPEER_A_LAST_HANDSHAKE_TIME, WGPEER_A_RX_BYTES, WGPEER_A_TX_BYTES, WGPEER_A_ALLOWEDIPS, WGPEER_A_PROTOCOL_VERSION, }; enum wgallowedip_attribute { WGALLOWEDIP_A_UNSPEC, WGALLOWEDIP_A_FAMILY, WGALLOWEDIP_A_IPADDR, WGALLOWEDIP_A_CIDR_MASK, }; static void netlink_wireguard_setup(void) { const char ifname_a[] = "wg0"; const char ifname_b[] = "wg1"; const char ifname_c[] = "wg2"; const char private_a[] = "\xa0\x5c\xa8\x4f\x6c\x9c\x8e\x38\x53\xe2\xfd\x7a" "\x70\xae\x0f\xb2\x0f\xa1\x52\x60\x0c\xb0\x08\x45" "\x17\x4f\x08\x07\x6f\x8d\x78\x43"; const char private_b[] = "\xb0\x80\x73\xe8\xd4\x4e\x91\xe3\xda\x92\x2c\x22" "\x43\x82\x44\xbb\x88\x5c\x69\xe2\x69\xc8\xe9\xd8" "\x35\xb1\x14\x29\x3a\x4d\xdc\x6e"; const char private_c[] = "\xa0\xcb\x87\x9a\x47\xf5\xbc\x64\x4c\x0e\x69\x3f" "\xa6\xd0\x31\xc7\x4a\x15\x53\xb6\xe9\x01\xb9\xff" "\x2f\x51\x8c\x78\x04\x2f\xb5\x42"; const char public_a[] = "\x97\x5c\x9d\x81\xc9\x83\xc8\x20\x9e\xe7\x81\x25\x4b" "\x89\x9f\x8e\xd9\x25\xae\x9f\x09\x23\xc2\x3c\x62\xf5" "\x3c\x57\xcd\xbf\x69\x1c"; const char public_b[] = "\xd1\x73\x28\x99\xf6\x11\xcd\x89\x94\x03\x4d\x7f\x41" "\x3d\xc9\x57\x63\x0e\x54\x93\xc2\x85\xac\xa4\x00\x65" "\xcb\x63\x11\xbe\x69\x6b"; const char public_c[] = "\xf4\x4d\xa3\x67\xa8\x8e\xe6\x56\x4f\x02\x02\x11\x45" "\x67\x27\x08\x2f\x5c\xeb\xee\x8b\x1b\xf5\xeb\x73\x37" "\x34\x1b\x45\x9b\x39\x22"; const uint16_t listen_a = 20001; const uint16_t listen_b = 20002; const uint16_t listen_c = 20003; const uint16_t af_inet = AF_INET; const uint16_t af_inet6 = AF_INET6; const struct sockaddr_in endpoint_b_v4 = { .sin_family = AF_INET, .sin_port = htons(listen_b), .sin_addr = {htonl(INADDR_LOOPBACK)}}; const struct sockaddr_in endpoint_c_v4 = { .sin_family = AF_INET, .sin_port = htons(listen_c), .sin_addr = {htonl(INADDR_LOOPBACK)}}; struct sockaddr_in6 endpoint_a_v6 = {.sin6_family = AF_INET6, .sin6_port = htons(listen_a)}; endpoint_a_v6.sin6_addr = in6addr_loopback; struct sockaddr_in6 endpoint_c_v6 = {.sin6_family = AF_INET6, .sin6_port = htons(listen_c)}; endpoint_c_v6.sin6_addr = in6addr_loopback; const struct in_addr first_half_v4 = {0}; const struct in_addr second_half_v4 = {(uint32_t)htonl(128 << 24)}; const struct in6_addr first_half_v6 = {{{0}}}; const struct in6_addr second_half_v6 = {{{0x80}}}; const uint8_t half_cidr = 1; const uint16_t persistent_keepalives[] = {1, 3, 7, 9, 14, 19}; struct genlmsghdr genlhdr = {.cmd = WG_CMD_SET_DEVICE, .version = 1}; int sock; int id, err; sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock == -1) { return; } id = netlink_query_family_id(&nlmsg, sock, WG_GENL_NAME); if (id == -1) goto error; netlink_init(&nlmsg, id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, WGDEVICE_A_IFNAME, ifname_a, strlen(ifname_a) + 1); netlink_attr(&nlmsg, WGDEVICE_A_PRIVATE_KEY, private_a, 32); netlink_attr(&nlmsg, WGDEVICE_A_LISTEN_PORT, &listen_a, 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGDEVICE_A_PEERS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_b, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_b_v4, sizeof(endpoint_b_v4)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[0], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v4, sizeof(first_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v6, sizeof(first_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_c, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_c_v6, sizeof(endpoint_c_v6)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[1], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v4, sizeof(second_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v6, sizeof(second_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); err = netlink_send(&nlmsg, sock); if (err < 0) { } netlink_init(&nlmsg, id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, WGDEVICE_A_IFNAME, ifname_b, strlen(ifname_b) + 1); netlink_attr(&nlmsg, WGDEVICE_A_PRIVATE_KEY, private_b, 32); netlink_attr(&nlmsg, WGDEVICE_A_LISTEN_PORT, &listen_b, 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGDEVICE_A_PEERS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_a, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_a_v6, sizeof(endpoint_a_v6)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[2], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v4, sizeof(first_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v6, sizeof(first_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_c, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_c_v4, sizeof(endpoint_c_v4)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[3], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v4, sizeof(second_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v6, sizeof(second_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); err = netlink_send(&nlmsg, sock); if (err < 0) { } netlink_init(&nlmsg, id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, WGDEVICE_A_IFNAME, ifname_c, strlen(ifname_c) + 1); netlink_attr(&nlmsg, WGDEVICE_A_PRIVATE_KEY, private_c, 32); netlink_attr(&nlmsg, WGDEVICE_A_LISTEN_PORT, &listen_c, 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGDEVICE_A_PEERS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_a, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_a_v6, sizeof(endpoint_a_v6)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[4], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v4, sizeof(first_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &first_half_v6, sizeof(first_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGPEER_A_PUBLIC_KEY, public_b, 32); netlink_attr(&nlmsg, WGPEER_A_ENDPOINT, &endpoint_b_v4, sizeof(endpoint_b_v4)); netlink_attr(&nlmsg, WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL, &persistent_keepalives[5], 2); netlink_nest(&nlmsg, NLA_F_NESTED | WGPEER_A_ALLOWEDIPS); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v4, sizeof(second_half_v4)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_nest(&nlmsg, NLA_F_NESTED | 0); netlink_attr(&nlmsg, WGALLOWEDIP_A_FAMILY, &af_inet6, 2); netlink_attr(&nlmsg, WGALLOWEDIP_A_IPADDR, &second_half_v6, sizeof(second_half_v6)); netlink_attr(&nlmsg, WGALLOWEDIP_A_CIDR_MASK, &half_cidr, 1); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); netlink_done(&nlmsg); err = netlink_send(&nlmsg, sock); if (err < 0) { } error: close(sock); } static void initialize_netdevices(void) { char netdevsim[16]; sprintf(netdevsim, "netdevsim%d", (int)procid); struct { const char* type; const char* dev; } devtypes[] = { {"ip6gretap", "ip6gretap0"}, {"bridge", "bridge0"}, {"vcan", "vcan0"}, {"bond", "bond0"}, {"team", "team0"}, {"dummy", "dummy0"}, {"nlmon", "nlmon0"}, {"caif", "caif0"}, {"batadv", "batadv0"}, {"vxcan", "vxcan1"}, {"netdevsim", netdevsim}, {"veth", 0}, {"xfrm", "xfrm0"}, {"wireguard", "wg0"}, {"wireguard", "wg1"}, {"wireguard", "wg2"}, }; const char* devmasters[] = {"bridge", "bond", "team", "batadv"}; struct { const char* name; int macsize; bool noipv6; } devices[] = { {"lo", ETH_ALEN}, {"sit0", 0}, {"bridge0", ETH_ALEN}, {"vcan0", 0, true}, {"tunl0", 0}, {"gre0", 0}, {"gretap0", ETH_ALEN}, {"ip_vti0", 0}, {"ip6_vti0", 0}, {"ip6tnl0", 0}, {"ip6gre0", 0}, {"ip6gretap0", ETH_ALEN}, {"erspan0", ETH_ALEN}, {"bond0", ETH_ALEN}, {"veth0", ETH_ALEN}, {"veth1", ETH_ALEN}, {"team0", ETH_ALEN}, {"veth0_to_bridge", ETH_ALEN}, {"veth1_to_bridge", ETH_ALEN}, {"veth0_to_bond", ETH_ALEN}, {"veth1_to_bond", ETH_ALEN}, {"veth0_to_team", ETH_ALEN}, {"veth1_to_team", ETH_ALEN}, {"veth0_to_hsr", ETH_ALEN}, {"veth1_to_hsr", ETH_ALEN}, {"hsr0", 0}, {"dummy0", ETH_ALEN}, {"nlmon0", 0}, {"vxcan0", 0, true}, {"vxcan1", 0, true}, {"caif0", ETH_ALEN}, {"batadv0", ETH_ALEN}, {netdevsim, ETH_ALEN}, {"xfrm0", ETH_ALEN}, {"veth0_virt_wifi", ETH_ALEN}, {"veth1_virt_wifi", ETH_ALEN}, {"virt_wifi0", ETH_ALEN}, {"veth0_vlan", ETH_ALEN}, {"veth1_vlan", ETH_ALEN}, {"vlan0", ETH_ALEN}, {"vlan1", ETH_ALEN}, {"macvlan0", ETH_ALEN}, {"macvlan1", ETH_ALEN}, {"ipvlan0", ETH_ALEN}, {"ipvlan1", ETH_ALEN}, {"veth0_macvtap", ETH_ALEN}, {"veth1_macvtap", ETH_ALEN}, {"macvtap0", ETH_ALEN}, {"macsec0", ETH_ALEN}, {"veth0_to_batadv", ETH_ALEN}, {"veth1_to_batadv", ETH_ALEN}, {"batadv_slave_0", ETH_ALEN}, {"batadv_slave_1", ETH_ALEN}, {"geneve0", ETH_ALEN}, {"geneve1", ETH_ALEN}, {"wg0", 0}, {"wg1", 0}, {"wg2", 0}, }; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) exit(1); unsigned i; for (i = 0; i < sizeof(devtypes) / sizeof(devtypes[0]); i++) netlink_add_device(&nlmsg, sock, devtypes[i].type, devtypes[i].dev); for (i = 0; i < sizeof(devmasters) / (sizeof(devmasters[0])); i++) { char master[32], slave0[32], veth0[32], slave1[32], veth1[32]; sprintf(slave0, "%s_slave_0", devmasters[i]); sprintf(veth0, "veth0_to_%s", devmasters[i]); netlink_add_veth(&nlmsg, sock, slave0, veth0); sprintf(slave1, "%s_slave_1", devmasters[i]); sprintf(veth1, "veth1_to_%s", devmasters[i]); netlink_add_veth(&nlmsg, sock, slave1, veth1); sprintf(master, "%s0", devmasters[i]); netlink_device_change(&nlmsg, sock, slave0, false, master, 0, 0, NULL); netlink_device_change(&nlmsg, sock, slave1, false, master, 0, 0, NULL); } netlink_device_change(&nlmsg, sock, "bridge_slave_0", true, 0, 0, 0, NULL); netlink_device_change(&nlmsg, sock, "bridge_slave_1", true, 0, 0, 0, NULL); netlink_add_veth(&nlmsg, sock, "hsr_slave_0", "veth0_to_hsr"); netlink_add_veth(&nlmsg, sock, "hsr_slave_1", "veth1_to_hsr"); netlink_add_hsr(&nlmsg, sock, "hsr0", "hsr_slave_0", "hsr_slave_1"); netlink_device_change(&nlmsg, sock, "hsr_slave_0", true, 0, 0, 0, NULL); netlink_device_change(&nlmsg, sock, "hsr_slave_1", true, 0, 0, 0, NULL); netlink_add_veth(&nlmsg, sock, "veth0_virt_wifi", "veth1_virt_wifi"); netlink_add_linked(&nlmsg, sock, "virt_wifi", "virt_wifi0", "veth1_virt_wifi"); netlink_add_veth(&nlmsg, sock, "veth0_vlan", "veth1_vlan"); netlink_add_vlan(&nlmsg, sock, "vlan0", "veth0_vlan", 0, htons(ETH_P_8021Q)); netlink_add_vlan(&nlmsg, sock, "vlan1", "veth0_vlan", 1, htons(ETH_P_8021AD)); netlink_add_macvlan(&nlmsg, sock, "macvlan0", "veth1_vlan"); netlink_add_macvlan(&nlmsg, sock, "macvlan1", "veth1_vlan"); netlink_add_ipvlan(&nlmsg, sock, "ipvlan0", "veth0_vlan", IPVLAN_MODE_L2, 0); netlink_add_ipvlan(&nlmsg, sock, "ipvlan1", "veth0_vlan", IPVLAN_MODE_L3S, IPVLAN_F_VEPA); netlink_add_veth(&nlmsg, sock, "veth0_macvtap", "veth1_macvtap"); netlink_add_linked(&nlmsg, sock, "macvtap", "macvtap0", "veth0_macvtap"); netlink_add_linked(&nlmsg, sock, "macsec", "macsec0", "veth1_macvtap"); char addr[32]; sprintf(addr, DEV_IPV4, 14 + 10); struct in_addr geneve_addr4; if (inet_pton(AF_INET, addr, &geneve_addr4) <= 0) exit(1); struct in6_addr geneve_addr6; if (inet_pton(AF_INET6, "fc00::01", &geneve_addr6) <= 0) exit(1); netlink_add_geneve(&nlmsg, sock, "geneve0", 0, &geneve_addr4, 0); netlink_add_geneve(&nlmsg, sock, "geneve1", 1, 0, &geneve_addr6); netdevsim_add((int)procid, 4); netlink_wireguard_setup(); for (i = 0; i < sizeof(devices) / (sizeof(devices[0])); i++) { char addr[32]; sprintf(addr, DEV_IPV4, i + 10); netlink_add_addr4(&nlmsg, sock, devices[i].name, addr); if (!devices[i].noipv6) { sprintf(addr, DEV_IPV6, i + 10); netlink_add_addr6(&nlmsg, sock, devices[i].name, addr); } uint64_t macaddr = DEV_MAC + ((i + 10ull) << 40); netlink_device_change(&nlmsg, sock, devices[i].name, true, 0, &macaddr, devices[i].macsize, NULL); } close(sock); } static void initialize_netdevices_init(void) { int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) exit(1); struct { const char* type; int macsize; bool noipv6; bool noup; } devtypes[] = { {"nr", 7, true}, {"rose", 5, true, true}, }; unsigned i; for (i = 0; i < sizeof(devtypes) / sizeof(devtypes[0]); i++) { char dev[32], addr[32]; sprintf(dev, "%s%d", devtypes[i].type, (int)procid); sprintf(addr, "172.30.%d.%d", i, (int)procid + 1); netlink_add_addr4(&nlmsg, sock, dev, addr); if (!devtypes[i].noipv6) { sprintf(addr, "fe88::%02x:%02x", i, (int)procid + 1); netlink_add_addr6(&nlmsg, sock, dev, addr); } int macsize = devtypes[i].macsize; uint64_t macaddr = 0xbbbbbb + ((unsigned long long)i << (8 * (macsize - 2))) + (procid << (8 * (macsize - 1))); netlink_device_change(&nlmsg, sock, dev, !devtypes[i].noup, 0, &macaddr, macsize, NULL); } close(sock); } #define MAX_FDS 30 static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setsid(); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 0; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); initialize_netdevices_init(); if (unshare(CLONE_NEWNET)) { } initialize_tun(); initialize_netdevices(); loop(); exit(1); } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } uint64_t r[1] = {0xffffffffffffffff}; void loop(void) { intptr_t res = 0; res = syscall(__NR_socket, 0x10ul, 3ul, 9); if (res != -1) r[0] = res; *(uint64_t*)0x20000180 = 0; *(uint32_t*)0x20000188 = 0; *(uint64_t*)0x20000190 = 0x20000140; *(uint64_t*)0x20000140 = 0x20001400; *(uint32_t*)0x20001400 = 0xec4; *(uint16_t*)0x20001404 = 0x453; *(uint16_t*)0x20001406 = 0; *(uint32_t*)0x20001408 = 0; *(uint32_t*)0x2000140c = 0; memcpy( (void*)0x20001410, "\x12\x84\x9a\xcd\x42\x75\x9f\x51\x4a\x9a\x4e\xad\x05\x2e\x8d\xd2\xde\x63" "\x3c\x1c\xe7\xae\x1d\xcd\xb8\x58\x12\xa6\x44\x82\xcd\x90\x23\x5a\xc2\x01" "\x35\x62\x26\xbc\x25\xd0\xaf\x07\x7f\x65\xf0\xde\x0c\x9c\x2b\x56\xd5\xda" "\x25\x15\xec\x52\xb4\x41\x50\x08\x73\xb5\x86\x99\x6f\x7e\xcf\xab\xaf\xb8" "\x91\x82\x17\x39\x5a\xae\x5b\xca\x9d\xd2\x7c\x9c\x0f\xb5\x5f\x02\x8c\x6d" "\x60\x83\xb2\x31\x83\x54\x7d\x0b\x07\xaf\x75\x6f\x8e\x36\x5d\x47\x1a\xad" "\x76\xee\x01\x64\x75\xc3\xc2\x19\xac\xba\xad\xf6\xff\x33\xf0\xbe\xb2\xb5" "\x7a\x0b\x9d\xc6\xb3\xeb\x64\x1f\xba\x0b\x63\x41\x20\x94\x0c\x2d\xce\xf3" "\x72\x3a\x1e\x2e\xb5\x6f\xcf\xef\xcd\x83\xb4\x8e\x5d\xd1\x4c\x3a\x2d\x50" "\xb6\x91\x54\x64\x18\xd4\x5a\xf3\xd4\xb7\x5b\xa1\xd3\xfa\x5b\x93\x6a\x66" "\xcc\x9f\x7d\x8e\x36\x53\x61\xcd\x84\x78\x3f\x72\x17\x98\x78\x5d\xf8\x2e" "\x4c\x50\x0b\x78\xde\xbf\x0e\xbf\xa8\x65\xa7\xf2\xab\x81\x5e\x44\xef\x89" "\xf0\x3c\xe8\xe8\x80\xe6\x9a\x04\xaf\xf4\x4a\x95\x7d\xcd\x07\x0c\x4d\x26" "\xdc\x40\x48\x93\x80\x0a\x85\xa4\x58\x2f\x89\x54\x41\x0a\x0c\xf3\x07\xdb" "\xdd\xe9\x55\x64\xdb\x49\xc9\x56\x47\x9d\xd0\x80\xcc\xc1\x62\xd9\x4d\x02" "\x5d\x3a\x65\xcb\x65\xe3\xf9\x2e\x91\x76\xd0\xf6\x89\x9e\xf4\xf0\xea\xc8" "\x75\x56\x3c\x39\xcf\x4c\x4f\x8c\x80\x9d\x9d\xc3\x9f\x14\x96\x68\xc8\xaa" "\x1f\x4b\xc1\x60\x41\xe3\xf6\x9d\xef\x88\x53\x97\x28\xcc\x2e\x66\x9c\xca" "\xb9\xe6\x1d\xd6\x8e\x3a\xa3\x59\x69\x43\x09\xa2\x20\xea\xaf\x57\x54\xff" "\xb8\xf7\x74\xaf\x1f\x7b\xa3\x54\xa4\x84\xec\x97\xf6\x78\x54\x78\x9f\x5c" "\xef\x24\xa7\xee\x39\xce\xfa\xf7\x0b\x28\xb6\xe3\x9e\x5e\xd7\x8d\x43\x99" "\x69\x0c\x37\x1c\x8c\x13\xff\x57\xdb\x53\xee\x01\x28\x8e\xd1\xf5\x7d\x6d" "\x2e\x85\x1d\x41\x77\x0b\x81\x0b\x96\xe6\x25\x0b\x9b\x18\x6a\x58\x52\xe9" "\x9c\x79\x72\x3f\x9e\x1d\x2a\xc4\xf9\xd3\x83\x64\x26\x81\x81\x45\x3f\x32" "\xcd\xdd\xb8\x14\x6f\x1a\x50\xb3\x7c\xc5\x0f\x6e\x38\x37\x57\x4a\xeb\x93" "\x50\x38\x61\x8d\xa1\xfc\xa7\xd5\x5f\x3b\xe3\xa0\x1f\x97\xc6\x60\xca\x3f" "\x91\xa9\xf3\x6e\xa3\x8b\x74\xaa\xff\xb6\x24\x46\xd2\x72\xd0\xf3\x4b\x7c" "\x5b\xda\x76\xff\xe3\xdf\x7a\x57\x06\xee\x56\xe0\x1e\xda\x8b\xa8\x6f\x63" "\xcd\xe0\x53\x7d\x04\x92\x3a\x97\xdc\x4b\x36\x1d\x84\x7f\x75\x83\x48\x03" "\x15\xb7\x4e\x63\xc0\x04\x85\x4a\x6d\x16\xb9\xf1\x45\x83\x12\x03\x16\xd6" "\x7a\x96\xb4\xac\xb2\x28\x03\xd0\x67\xe8\xbe\x63\x14\xe1\x20\x73\xeb\xaf" "\x5b\x74\xa1\x8d\x7b\xa7\x6a\xa3\xbf\xd7\xdd\x3b\xf9\xb8\x7d\x5a\xfe\x15" "\x0a\xcf\xe8\x34\x69\xd0\x3e\x8d\xc0\xd4\x35\x95\xb6\x89\x47\x9d\xa9\x99" "\xe1\x67\xd7\x0e\x03\xfd\xc4\x59\xa5\xf4\x26\x36\x88\x1c\x26\xbb\xb8\xf2" "\xcc\xf3\x50\x02\x91\xc2\x5c\x25\xaa\x31\x27\x82\xe7\x28\xb3\xde\x27\x72" "\x45\x58\xb4\x02\xca\xec\x70\x06\x5f\x1d\x51\xcd\x2a\xec\x45\xc4\x1a\xfc" "\x5e\xf2\xa0\xe8\x72\x28\xfa\x98\xaf\x2b\xad\xb1\x2e\x14\x16\x14\xe1\x86" "\x36\xcd\x76\xa2\x3a\xa4\xdb\xe7\x8a\x51\xb6\x46\x9f\xb6\x8e\xb2\x51\xc5" "\x07\xad\xb4\x3a\x4b\xee\xdb\xae\xd2\x89\xc7\x86\x41\xe3\xe7\xd8\xb2\x05" "\x99\xbc\x3d\xd5\x8c\x2d\x84\xfe\x51\xae\xfb\x97\x72\x86\x5c\x3a\x9b\xcc" "\x0e\xad\xad\xfd\xf2\x0f\x84\xa0\x2f\x97\x94\x12\xf0\x5e\xab\xbd\x5d\x7a" "\x4c\x2f\x5f\x4b\xb4\x57\xaf\xc3\x20\x81\xd8\xcd\xaa\x97\x80\xf1\xa1\x85" "\x63\x1a\x6b\x29\x5d\x2a\x8e\x40\xb0\xc7\x92\x34\x3e\x0c\x72\x72\x3e\xa3" "\x7c\xc9\x56\xa1\x97\xae\x1f\xd8\x8d\x96\x2a\x46\xb2\x02\xbd\x01\x0d\xab" "\xd6\xaa\xd1\x9a\x2f\x8e\xd6\xd8\x9d\xfe\xa7\x65\x44\x05\x41\x51\xfb\xf1" "\xc3\x25\x96\x23\xfc\x5c\x9f\x5d\xaa\x62\x14\x56\x71\xae\x9f\xfd\xc9\xa1" "\x59\x86\xb3\x0b\x68\xec\x22\xf9\x74\x71\xaf\x0c\xfd\xba\x7c\x41\x4b\xfd" "\x65\x84\xb9\x63\xfe\x71\x88\xaa\xdb\x4a\x81\xc7\xb0\x13\x7e\x0c\xed\x22" "\xe6\x73\xf0\x28\x05\xa7\x8e\xcf\xbf\x27\x33\xf3\xf7\x84\x71\xee\xe8\x8c" "\x9e\xb2\x20\x5e\x6a\x21\xf8\x1a\x61\x51\x16\x94\xf9\x9c\xd9\x24\x62\x83" "\x2a\x76\xfe\xc6\xf6\x52\xc5\x6a\x00\x06\x6f\x27\xc7\x70\x19\xec\x4d\x87" "\xa8\x11\x99\x4d\x7b\xf3\x80\x9a\xf4\x29\xff\x4c\xf5\x67\x98\x4b\xea\xa4" "\x4f\x85\xdf\xa0\x10\x7f\x45\x5a\x8f\x8a\x3e\xde\x50\x6e\x3d\x13\x65\xad" "\x2e\xf4\x1a\xab\x31\xa0\xd2\x41\x67\x30\x27\x72\xe5\xb7\xab\xe8\xd1\x21" "\xa7\xac\xfc\xa4\xe5\xf4\xb8\x2a\x8b\x5b\x8c\x95\x47\x64\xa3\xaa\xa2\xe9" "\x4e\x9b\x23\xea\x01\x9b\xfe\x1b\x9e\x55\x96\xad\x05\xc3\x97\x0e\x9f\x23" "\xc9\xdf\x86\xe3\x16\x84\x56\x50\x6f\x19\x1c\x72\x6b\x75\x47\x1c\xd6\x1f" "\x0f\xcb\x4a\x5d\xee\xee\x8d\x83\xab\x10\x86\xef\xf9\x5f\x11\xf6\x21\xe2" "\x8d\x8f\x57\xf8\x8f\x66\x10\xcf\xe5\x76\x23\x79\x29\x7b\x7f\x14\x90\x5e" "\xfd\xb4\x81\x36\xe5\xb4\x3a\x4f\x25\x9d\x39\x67\x3d\x39\x0e\x38\x73\xe5" "\xdd\x70\x9c\xc3\xdb\xbb\x69\xcf\xce\x6f\x51\xf5\xde\x70\x30\xe8\xae\x83" "\xdc\x43\xf8\x60\x74\x09\xec\x86\xc6\xad\xa1\xe3\xd4\x7d\xed\x50\x38\x80" "\xd4\x85\x95\x42\xcf\xf0\x81\x83\xf0\xfe\x2d\x23\x4e\x96\x7f\xff\x77\x3f" "\x10\x73\x6c\x53\x89\xa9\x19\x4b\x2a\xa1\xd3\xd5\xfd\xae\x89\xab\x30\x23" "\x16\xeb\x5c\x05\x9b\xde\xc1\x7f\x02\x19\x8d\x4c\x00\x72\x08\x9b\x2a\x55" "\xcb\xcc\x26\xea\x4e\xdc\x01\xef\x0a\x43\xc5\xff\x1c\x79\xf6\xaf\xa5\x82" "\xbc\x8b\x15\x68\xe5\xcf\xe3\x32\x7d\xc7\x37\x9e\xc2\xe0\xb3\xcc\x76\x9b" "\x48\xaf\xfe\xf5\x7a\x05\xd7\x99\x9c\x6b\x15\x48\x7c\x0b\xd2\xa1\x71\xce" "\xd6\xc2\xd3\xd8\x25\x41\x2e\x19\xc9\x86\x20\x8e\xa3\x6d\xcb\x9a\xb9\x75" "\xd4\x42\x28\x06\xca\x4e\x71\x10\xe0\xfe\xef\xa6\x57\xea\x88\xe8\x4d\x16" "\xd2\x9d\x81\xfe\xc6\xd1\x9c\x2f\xb0\x15\x30\x7f\xdb\xcc\x7a\x7b\x65\xd1" "\xb2\x7b\x0b\x53\x30\x3d\x29\xb5\x3a\xe5\x03\xc0\xdf\x23\x1f\x20\xb0\x92" "\x0a\xb2\xce\xe1\x55\x11\xe4\x2f\xd2\x75\x5c\x5e\x16\x1f\xac\x37\x34\x9d" "\x24\xa5\xe0\xdf\x3d\x52\x90\x02\xec\x6d\x0a\x81\x43\x31\x26\xd6\x79\x71" "\x23\x14\xff\x2d\x4c\x16\x48\xd5\x13\xe6\x0c\x82\x17\x85\x97\x9d\x85\xc3" "\x8f\x23\xa8\xfd\xf2\x75\x90\x85\x52\xea\xc0\x70\xf5\xb4\x10\x49\x99\x8e" "\x13\x3d\xc3\x8d\x0b\x8b\x94\xb2\x16\x5e\xf9\x05\x51\x1e\xad\x2b\x1f\x84" "\xff\x57\x59\x62\x1c\xbf\x88\x82\xf2\x3e\x84\xfe\xaa\x04\xce\x1f\x30\xaf" "\x8d\x4d\x18\xae\x71\x14\xb8\xce\xaf\x5b\x9d\x26\x92\x97\xfb\x94\xd1\x85" "\x08\xcf\x81\xc1\x4d\x70\x5c\x0d\x8d\x61\x7c\xcc\xba\xe6\xd3\xb4\x7e\x71" "\x87\x4c\x4e\x3f\x3d\xd6\xf6\x4b\x97\x7e\x30\x55\x41\x2a\x83\xd6\xdd\xf5" "\x21\x2d\x2c\x97\xd6\x96\x30\x95\xe3\x61\x3e\x6a\xea\x1e\x11\xb2\x08\xb9" "\x74\x05\x6b\x08\xd6\x31\xe9\x71\x8a\x48\x87\x84\xf8\xb4\xfa\x9d\x69\x3c" "\xc3\x6a\xe9\x37\x14\xea\x6d\x1f\xde\x07\x3d\x2b\x09\x4a\x05\xa2\x33\xc1" "\xec\x7f\xe0\xd5\x48\x98\x2d\x91\xbe\x8a\xfc\x2d\x86\x97\xb7\xf1\x38\x04" "\xdc\xcd\xb1\xc6\xc6\x81\x4a\xbc\x39\x35\x7a\x9a\xb9\x80\x05\xba\x6d\x8a" "\xfb\xaa\x2c\x42\x05\x49\x31\x81\xac\x66\xc9\xa0\x92\x31\xb5\xf9\xce\x51" "\xc1\x83\xd4\x72\xe2\xf5\x54\x3b\xc9\x8f\x17\xa4\x96\x03\x0a\x12\xc4\x92" "\x2c\xed\xc7\xb0\x00\x6c\x74\x85\xb6\x33\xac\x8e\x56\x58\x1c\x66\x1c\x28" "\x72\x77\x8d\xc1\x69\x95\xda\x52\xd9\xdf\xe4\xb2\x0a\xd5\x62\x9e\x69\xad" "\x21\xdc\x14\xff\x3d\xc4\x6f\x5e\xea\xd7\xa2\x29\x0a\xcf\x3c\x40\x11\xfe" "\x38\x26\x12\xbe\x4d\x4a\x7d\x05\xea\xa5\xa9\x37\x40\x87\x94\xa9\x17\x3d" "\x91\x2f\x54\xe5\xce\x7c\xdb\x45\x3b\x07\x96\x82\x9d\x81\xb3\x2c\x3a\xb3" "\xd4\x6b\xfe\xb2\xea\x51\x16\xaf\x4e\xc7\x06\x23\x40\x7a\x97\x2e\x5a\xd7" "\x4f\x3b\x54\xd7\x3f\xd3\xb7\x2c\xe0\x8d\xf5\x3b\xe4\x58\x10\xb3\x46\x47" "\xbd\x6a\xf8\x4e\xfa\xf0\x23\x12\x53\xe4\x9c\xcf\xfe\x05\xdb\xd6\x6c\x53" "\xc6\x5e\x78\x12\x2c\x5a\xbb\x24\x2d\xaf\x94\x5a\xa1\x4f\xdd\x57\x71\x9b" "\x5c\x22\x04\x9f\xa6\x3f\xde\xd4\xe0\x72\x1d\xbb\x6c\x9e\x6f\x54\xba\x95" "\x7c\x2b\xbb\xc6\x83\x77\x84\x14\x5c\x76\xba\x08\x5c\x09\xf7\x30\x34\x53" "\x7f\x34\xb0\xf7\xc2\xa5\xd4\x65\x11\x23\x41\x63\x0d\xb9\xb9\x9b\x00\x9c" "\xc1\x1b\x36\x59\x95\xe8\x64\x89\x61\xfe\x89\xaf\xd0\xc3\x4a\xb7\x75\x7f" "\xc0\x45\x24\x97\x16\x42\x8a\x82\x55\x04\x22\x1d\x35\x9f\x63\x66\x0a\xdb" "\x3b\xfc\x6b\x8a\x09\xf4\x01\x85\x62\x1f\xd5\x82\x05\xec\xe6\xbf\x0a\xd4" "\x61\x35\xa2\x0d\xec\xb6\x56\x58\x57\xfc\x6d\x04\x4a\x7f\x2c\xd8\x56\xe2" "\x38\xb8\x57\x22\x8d\xbd\x41\x45\x62\x54\xcd\x3f\xb1\x97\x2d\x15\x29\x92" "\xdc\x92\x62\x5c\xc1\x17\xbf\x1c\xe8\x8f\x7e\x9b\x6a\xad\xdb\xd8\xb1\x91" "\x51\xf5\x2d\x0a\x9b\x6f\x1c\x63\x69\x29\x3c\x1f\x42\xcd\xdc\x21\x66\xd2" "\xfb\xa7\x3f\x7e\x9c\x5e\x66\x11\xae\x02\x1c\xb4\x79\xb9\x96\x9d\xae\x00" "\x42\x82\x89\xe7\x52\x0a\x35\x02\xd7\xad\x4c\xd3\x8b\x96\x46\xe9\x78\x89" "\xa3\xeb\x5c\xa2\x25\x15\x47\x35\x87\xc7\x75\x7a\x1b\x08\x78\xa8\xe6\x1b" "\x3e\xdb\xfa\xd4\xc8\xf2\x53\x4c\x0e\xd1\x3d\x72\x69\x9c\x26\x58\x67\xf7" "\x95\xf5\xd5\xb8\x9d\xfc\x11\xd6\x5e\x89\x43\x5e\x5f\x21\xa7\xb9\xfd\x4e" "\x6c\x2a\x69\x0b\x7d\xa1\xc5\x39\xd6\xd9\x68\xb1\xf8\x25\x8a\xee\x5f\xbd" "\xc5\x16\xa2\x09\x8c\x38\x92\x3d\x5e\x57\xc8\xda\xe7\x42\x55\xab\x48\x35" "\x07\x2b\x9f\x16\xb2\xe1\x4d\x03\xd0\x58\x3b\xee\x19\x63\x91\x3a\x51\x8f" "\x32\x30\x32\xa4\x7d\x74\xc3\x7f\x07\x76\x3b\x6a\xb7\xfd\xb5\x3c\xcb\x20" "\xe9\x5e\xf1\x4b\x8d\xab\x1b\x0f\xf7\x84\x1f\xbf\x40\xe5\x88\x1e\xd7\x77" "\x50\x78\xfa\x19\x04\xa9\xb5\x12\x3f\x06\x28\x95\xe0\xc2\x02\xe5\xc1\x2f" "\x57\x37\x66\x20\xc0\x9e\x3b\x72\x4e\x0d\x49\x8f\x00\x4a\xd1\xfb\x46\xf2" "\x59\xa0\x9f\x71\xed\xd2\xbd\x46\x3e\x46\x00\xd0\xdf\xc9\xe9\xde\xd9\x33" "\x5f\x5b\x13\x88\xf9\x2b\xfc\x54\x48\x75\x15\xb7\xe1\x3f\x1e\x3f\x1f\xbe" "\xce\x06\xcc\x1a\x85\x45\xae\x32\x72\x27\x76\x2d\xbc\x69\x0c\x0a\x7d\xdd" "\x8d\xda\x57\xb2\xdb\xec\x0d\xf3\xb7\x82\x78\xca\x2a\x8e\x2c\x06\x7b\x00" "\x33\x89\x52\x1b\x62\x6d\x9a\x5c\xe0\x97\xa1\x40\x5b\x6e\xaf\x9f\x95\x84" "\xad\xe8\xe7\x8e\xc3\xfe\xcb\x2f\xe5\x83\x75\x99\xc6\xad\xa0\x2e\xc7\xc6" "\xf2\x63\x20\x28\x80\xa3\x0c\x09\x79\xe7\xf5\x26\x0e\xcf\xa2\xbd\x81\xf4" "\xd4\x43\x3d\xd1\xfd\x6c\x3b\x3a\x7e\xc4\x03\x99\x3d\x18\xca\x5d\xd4\x92" "\x0b\x13\xfe\xba\xf2\x70\x2e\xbe\x1c\x5c\x67\x31\xb0\xb7\xec\x4d\xfc\xca" "\xc1\x17\xe9\xa6\xa3\x98\x45\x70\x91\xa2\xf0\xa5\x9f\x86\x44\xdf\x91\x50" "\x9b\x6c\x48\x5b\x0f\x3b\xe5\xb1\xe6\x28\xda\x3d\xab\x01\x4d\x91\x75\xbe" "\x94\x0c\xb3\x60\xe0\xc7\xff\x1e\xc3\xa0\xd6\x78\x11\x98\x8d\xbc\x9d\x5b" "\x7b\xa9\xf4\xc9\xd1\x0e\x06\xfa\x4a\x8b\x63\xb1\x1a\x9b\xea\xfc\xab\x0b" "\x96\x5b\x8b\xac\xee\xb5\x22\x61\xb2\xad\x43\x73\x5a\xa7\xca\x91\xb9\xc5" "\x8a\x96\x94\x69\x5b\xa8\x84\xcd\x58\xf4\x0e\x4e\xa9\x0b\xab\x36\xa3\x66" "\xe4\xab\x7b\xbb\x9f\x28\x21\xbe\x95\x07\xfd\xb3\xc6\xc1\x15\x03\x60\x00" "\x21\x63\xb5\xb4\x5f\x36\xa6\x2e\xcb\x5f\xba\x53\x50\x51\xb4\x4c\xc9\x27" "\x33\x20\x44\x31\x26\xa2\x9d\x8a\x32\x95\xf1\x7d\xfc\xd7\x63\x5e\x76\xf8" "\xc0\xd3\x35\xe5\xd7\xc5\xb6\x25\x6b\x39\xcb\x0d\x65\xb0\x83\x82\xb1\xb9" "\xc4\xbc\x46\x96\xdd\x20\x5a\x14\x05\xc8\x72\x0a\x2a\x7d\xd3\xbe\xca\x70" "\xb6\x55\xa1\x96\x77\x66\x2a\x2d\xab\xa7\x08\x97\x14\xc7\x8f\xf4\xb8\x3c" "\x9d\xe4\x2a\x5b\x8c\x5d\x48\xc3\x71\xe9\x2a\xe0\xb9\xf1\xcd\x4e\x4d\x3f" "\x1c\xe7\x05\x82\x45\x59\x85\x76\x26\xd2\xd8\x2d\xc4\x45\x1c\xc7\xff\x1d" "\x68\x09\x94\xe2\xc1\x4b\x8d\x7d\x07\x75\xa7\x94\xe6\x0b\x1c\x0d\x5a\x12" "\x63\x43\xff\x48\xdf\x5f\x20\xbf\xa1\xbe\x18\x77\xbd\x2f\x80\x99\x5b\x0d" "\xd2\xe5\x9c\xaa\x3d\x85\xcd\x78\xd7\x0c\x09\x4e\x20\x70\x32\x81\xba\xea" "\x8d\x86\x95\xf3\x96\xf7\xbf\x3f\xe8\xa6\xd8\xc0\xef\x42\xa3\x7b\xa3\x0b" "\x5d\x62\x94\x52\x82\x5d\x7a\xca\x34\x90\xe8\xaa\x49\x28\xc7\xbd\xa5\x77" "\x34\x3e\x49\xf4\xb3\x54\x87\xd5\xf8\x78\x0c\xfb\xe3\x4a\x9f\xf9\xbd\x7d" "\x72\x06\xc9\x5a\xef\xcf\x57\x74\x0b\x15\x08\xa9\x83\x41\x7f\xdc\xb0\x28" "\xab\x66\xe6\xeb\x21\xb7\x26\x57\x26\xd6\xfb\x61\x27\xe6\x12\xb8\x0c\xa3" "\xaf\x7c\x0f\x18\xe8\xd5\x73\xa0\x1c\x2e\x4d\xa2\xd6\x0b\xcb\x4a\x6a\xb8" "\xf5\x7f\x3a\x73\x27\x6c\xc6\x07\x64\xa0\x6f\xf3\xc4\x48\xb5\x63\xf7\x23" "\xfd\xb1\x6b\x0f\xe1\x7f\x74\xd8\x0f\x88\x20\xb2\x2b\x25\xae\x04\x22\x71" "\x54\x6e\xff\x02\x03\x47\x66\xbd\xe9\x44\xf3\xde\xfb\xd1\x65\x3d\x05\xcd" "\xea\xc6\xc5\xff\xcb\xb7\x4d\x58\xa5\x48\x6c\xcb\x66\xd6\x9d\xe1\xe2\x14" "\x3a\x66\x6e\x10\x0b\xa0\x89\x48\xc6\x54\xcd\xee\xc6\xb7\xbb\x11\xa3\xa8" "\x3a\x5a\x32\xd4\x6a\x7e\x4d\x70\xe8\xb2\x7d\xa1\xd3\x0c\xb6\x17\x61\x7e" "\x35\x9a\x7a\x49\xa1\x36\x23\x1c\xb9\x3d\x1d\x9d\xf9\x55\x7c\xcd\x9a\xe0" "\x0c\x25\x42\x48\xc7\x74\xe2\xa5\x0d\xc1\xed\x68\x84\x0b\xda\xde\x57\x00" "\x3d\x67\x16\x4b\xcc\x92\xd0\x4c\x55\x70\x36\x59\x01\xde\x91\x5d\x41\x30" "\xee\xf6\x25\x0b\x4b\x98\x8c\xd4\x0f\x89\x9d\xbd\x39\xe3\xd4\xed\xfd\x95" "\xeb\xd2\xc9\x79\xbf\xfc\x83\x33\x14\x67\x17\x31\x5b\xa9\xc1\x32\xcf\x6a" "\x56\xea\xe8\xc6\xe0\x3a\x99\x52\xdb\xcc\xb5\x8a\xc8\xa8\x67\x2b\xa5\xaf" "\x35\xa3\x2f\x59\x2f\xa3\x98\x9b\xd1\xa5\x06\x81\xd4\x9c\xb6\x37\xa2\x5f" "\xa3\xaf\x47\x6e\x07\xbd\x64\x33\x4f\xb3\x13\xc3\x31\x76\x0a\x1c\xb0\xe4" "\xc6\x12\x9d\xfa\x07\x73\xc9\x03\x71\x5d\x9c\xc8\x3a\xe4\xfe\x62\xb7\xb9" "\x00\x8d\x1a\xa7\x2c\x7e\xe7\x81\x13\x91\x98\x1e\x65\xfa\x8a\x58\xb1\x11" "\x0b\x7b\xf1\x55\xa5\x7a\x5d\x8b\x8a\x1f\x0f\xb2\xef\x04\x5d\xa7\xe1\x4d" "\x2d\x43\x30\xea\x75\xfd\xb6\xca\x08\x7c\xc0\x4a\x45\x14\x42\xb1\x85\xc4" "\x74\xac\xfc\xb5\x26\x7f\x53\x1b\x08\x01\xa5\x6f\x70\xa0\xeb\xab\x07\xc3" "\x83\x7f\x9f\x6c\xfc\x60\x8d\x08\x78\xec\xa7\x3c\x4d\x8e\xc2\xfb\x9c\x92" "\xd6\x5a\xce\xa6\x93\xfe\xe1\xcf\x2e\xd1\xf2\x9a\x6b\x42\x5e\x19\xa2\x93" "\x37\xbb\x93\x3a\x62\xec\x53\xcb\xb3\xf6\xda\x83\xae\xd3\xf2\x9a\xeb\xf4" "\x33\xc4\x0d\xb8\xcd\x4a\xe0\xdc\x3b\x71\x9a\xc5\xfd\x8b\x4c\xae\x66\x67" "\x3b\xa0\xc3\xae\x50\x40\x2b\x86\x83\x9e\x9a\xa2\xaf\x53\x40\x06\x60\xd7" "\xb7\xc7\xa6\x14\xc8\xfd\x39\x10\xde\xa8\x9b\x0f\xa7\x06\xc7\xce\xc5\x95" "\x39\x8a\x13\xf2\x47\x71\x0e\xa5\x08\xa0\x40\x6e\x79\x7b\x75\x5a\xf2\xa0" "\x92\xef\x2a\xf7\xa8\x00\x3d\x9e\x69\x19\xec\x36\xd9\x87\x6f\x64\x52\xa5" "\xb0\x73\x28\x0d\xaf\x38\xa7\x4f\x13\xca\x1c\x8c\x8f\x93\x08\x69\x90\x4d" "\x2e\x61\x9f\x8c\x56\x1f\x2f\xf7\x00\x07\xae\xf3\xbe\x70\x26\xc6\xc9\x8d" "\x79\x2a\xae\xfb\xa3\x85\xa4\x50\x9c\x90\xc1\x16\xd5\xd1\x06\x83\xd8\xb2" "\xb7\x3f\x8f\xf9\x05\x26\xa2\x0f\xc8\x86\x7b\xd1\x0e\x0a\x25\x2e\x55\x79" "\x28\x09\x86\x17\x91\xfa\xff\x28\xbb\xdc\x67\x3a\x48\xba\x19\xd5\xf0\x7f" "\x5f\x07\xa5\x53\x19\x2b\x4c\x9d\xe4\xc9\x82\x14\x20\x70\xc6\x55\x2c\x2a" "\x86\xf8\x64\x90\xda\x49\x58\xfd\x8a\x1e\x66\x73\xba\x9a\xee\xab\x13\x12" "\x18\xce\xca\xe8\x20\x0e\x60\xc0\xa8\x43\x6b\x70\x10\xa4\xed\xb9\x9d\xa3" "\x7a\x11\x6b\xe6\xe2\xef\x59\xbf\x23\x90\xd4\x50\x42\x47\x08\x6b\x45\x62" "\x60\x09\x50\x20\x00\x87\x18\x5e\xbe\xb9\x09\xb8\xc3\xc4\x4a\x73\xd3\xbe" "\x52\x39\x4d\xd9\x0c\x7a\x83\x34\x21\x7e\xbd\x1d\x85\xd4\x2c\x6c\x9b\x58" "\x4f\xf0\xb0\x01\xf5\x90\x9d\x16\xf8\xe6\x98\x26\x47\xd5\xfd\xe2\x27\xab" "\x85\xae\x48\xa0\x79\x24\xb6\x9b\x09\xef\x27\x3f\x27\xd1\xa9\x21\x4f\x68" "\x04\xe9\xb2\xf2\xc8\x30\x8f\x41\xc6\x8b\x73\xa2\x80\x4c\x94\xbb\xc4\x3c" "\xce\xd4\x46\x9f\xb0\x17\x5f\x2d\x0c\x17\x7d\xc1\x1a\x29\x9d\xf0\xd3\x3c" "\xf6\x23\xf1\x05\xe3\x5f\x66\xb0\x17\x39\xad\x54\xfb\x0b\x82\xb4\x9f\x53" "\x02\x1c\x21\x3e\xeb\x3d\x49\x8f\x02\x04\xe5\xfd\x9d\x9a\xc6\x88\xea\xe6" "\xc3\x4d\xc1\x8e\x92\xc6\x2c\xfe\x2f\x66\x83\x6b\xfb\x17\x01\xbd\x97\xe7" "\xbe\x72\x05\x93\x0b\x44\x83\xce\xcf\x0a\x3b\x6e\x36\xb1\x74\x3e\x64\x54" "\xd2\xed\x14\xfa\xae\x8c\x98\x66\x97\xb5\x60\x5d\x3c\x0a\xe9\x8f\x29\x21" "\x92\x54\xb2\xaf\xbb\xb8\x17\x4b\xa2\x56\xb9\x94\xad\x49\x27\xbd\x6b\xce" "\xc8\xf6\x2d\xf7\x56\x01\x58\x15\x2e\x57\x60\x42\xd8\x66\x00\xd4\x42\x1b" "\x29\xfa\x94\x2b\x60\x63\x06\x85\x08\xea\x19\x5a\x54\x77\xec\x02\xfa\x93" "\x33\xfa\x2e\x05\x31\x7a\x99\xd1\xf3\xb6\x67\x04\xde\x01\x94\x72\x32\x7e" "\x69\xfb\x2c\x68\x86\x11\x6b\x45\x9b\x5a\x0f\x43\x7d\x7d\x65\xbf\x7a\x70" "\xf2\x26\xd9\x5a\x3b\xf2\x48\x7d\x1b\x6f\xdf\x29\x42\x41\x9d\x24\x40\x28" "\xcd\x29\x60\xc7\xdc\x57\x3e\x42\x1e\x5f\x12\x95\x79\x6e\x81\x15\x7c\x91" "\xe1\x09\x7a\xb3\x7f\x3b\x3a\xe5\x67\x15\xb5\xac\x83\x5f\xfb\xbb\x0b\x0b" "\x0d\xa3\x34\xb7\xe0\x8d\x75\x76\x04\x82\xdc\xb2\x7f\xa7\x66\x8e\x04\x62" "\x06\xa4\x18\x0a\x45\xe0\x65\xae\xa3\xac\xdb\x72\x7f\xb8\x61\xdd\xd7\xed" "\x30\xff\xc2\x7a\xc1\x8b\xa8\x93\xb2\xa7\xb7\x78\x11\x64\x1b\xa1\x1f", 3761); *(uint64_t*)0x20000148 = 0xec4; *(uint64_t*)0x20000198 = 1; *(uint64_t*)0x200001a0 = 0; *(uint64_t*)0x200001a8 = 0; *(uint32_t*)0x200001b0 = 0; syscall(__NR_sendmsg, r[0], 0x20000180ul, 0x44040ul); close_fds(); } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); do_sandbox_none(); return 0; }