// https://syzkaller.appspot.com/bug?id=b8b6200f39b2820e41f6428ee78ff5bde49872c6 // 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 #include #include #include #include #include #include #include static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) struct csum_inet { uint32_t acc; }; static void csum_inet_init(struct csum_inet* csum) { csum->acc = 0; } static void csum_inet_update(struct csum_inet* csum, const uint8_t* data, size_t length) { if (length == 0) return; size_t i = 0; for (; i < length - 1; i += 2) csum->acc += *(uint16_t*)&data[i]; if (length & 1) csum->acc += le16toh((uint16_t)data[length - 1]); while (csum->acc > 0xffff) csum->acc = (csum->acc & 0xffff) + (csum->acc >> 16); } static uint16_t csum_inet_digest(struct csum_inet* csum) { return ~csum->acc; } 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; if (size > 0) 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, bool dofail) { 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; ssize_t n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != (ssize_t)hdr->nlmsg_len) { if (dofail) exit(1); return -1; } n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (n < 0) { if (dofail) exit(1); return -1; } if (n < (ssize_t)sizeof(struct nlmsghdr)) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < (ssize_t)(sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr))) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type != NLMSG_ERROR) { errno = EINVAL; if (dofail) exit(1); return -1; } errno = -((struct nlmsgerr*)(hdr + 1))->error; return -errno; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL, true); } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name, bool dofail) { 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, dofail); 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) { errno = EINVAL; 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 unsigned int queue_count = 2; static void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name, bool up) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; 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_attr(nlmsg, IFLA_NUM_TX_QUEUES, &queue_count, sizeof(queue_count)); netlink_attr(nlmsg, IFLA_NUM_RX_QUEUES, &queue_count, sizeof(queue_count)); 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, false); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static void netlink_add_veth(struct nlmsg* nlmsg, int sock, const char* name, const char* peer) { netlink_add_device_impl(nlmsg, "veth", name, false); 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_attr(nlmsg, IFLA_NUM_TX_QUEUES, &queue_count, sizeof(queue_count)); netlink_attr(nlmsg, IFLA_NUM_RX_QUEUES, &queue_count, sizeof(queue_count)); netlink_done(nlmsg); netlink_done(nlmsg); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static void netlink_add_xfrm(struct nlmsg* nlmsg, int sock, const char* name) { netlink_add_device_impl(nlmsg, "xfrm", name, true); netlink_nest(nlmsg, IFLA_INFO_DATA); int if_id = 1; netlink_attr(nlmsg, IFLA_XFRM_IF_ID, &if_id, sizeof(if_id)); netlink_done(nlmsg); netlink_done(nlmsg); int err = netlink_send(nlmsg, sock); if (err < 0) { } } 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, false); 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); if (err < 0) { } } 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, false); netlink_done(nlmsg); int ifindex = if_nametoindex(link); netlink_attr(nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(nlmsg, sock); if (err < 0) { } } 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, false); 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); if (err < 0) { } } static void netlink_add_macvlan(struct nlmsg* nlmsg, int sock, const char* name, const char* link) { netlink_add_device_impl(nlmsg, "macvlan", name, false); 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); if (err < 0) { } } 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, false); 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); if (err < 0) { } } 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, false); 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); if (err < 0) { } } 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); if (err < 0) { } } 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)); if (err < 0) { } } 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)); if (err < 0) { } } static struct nlmsg nlmsg; 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_GENL_NAME, true); 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, true); 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_PORT_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) { write_file("/sys/bus/netdevsim/del_device", "%u", addr); if (write_file("/sys/bus/netdevsim/new_device", "%u %u", addr, port_count)) { char buf[32]; snprintf(buf, sizeof(buf), "netdevsim%d", addr); initialize_devlink_ports("netdevsim", buf, "netdevsim"); } } 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, true); 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"}, {"veth", 0}, {"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", 0}, {"ipvlan1", 0}, {"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}, {"ipvtap0", 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_add_xfrm(&nlmsg, sock, "xfrm0"); 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_linked(&nlmsg, sock, "ipvtap", "ipvtap0", "veth0_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 netlink_add_rxe(void) { if (access("/dev/infiniband/uverbs0", F_OK) == 0) return; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) return; int rdma = socket(AF_NETLINK, SOCK_RAW, NETLINK_RDMA); if (rdma == -1) { close(sock); return; } netlink_add_device(&nlmsg, sock, "dummy", "rxe_eth0"); netlink_add_addr4(&nlmsg, sock, "rxe_eth0", "172.20.20.170"); netlink_add_addr6(&nlmsg, sock, "rxe_eth0", "fe80::aa"); uint8_t macaddr[ETH_ALEN] = {0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa}; netlink_device_change(&nlmsg, sock, "rxe_eth0", true, 0, macaddr, ETH_ALEN, NULL); uint16_t type = RDMA_NL_GET_TYPE(RDMA_NL_NLDEV, RDMA_NLDEV_CMD_NEWLINK); netlink_init(&nlmsg, type, 0, NULL, 0); netlink_attr(&nlmsg, RDMA_NLDEV_ATTR_DEV_NAME, "rxe0", 5); netlink_attr(&nlmsg, RDMA_NLDEV_ATTR_LINK_TYPE, "rxe", 4); netlink_attr(&nlmsg, RDMA_NLDEV_ATTR_NDEV_NAME, "rxe_eth0", 9); int err = netlink_send_ext(&nlmsg, rdma, 0, NULL, false); if (err < 0) { } close(rdma); 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); netlink_add_rxe(); } #define MAX_FDS 30 static void setup_gadgetfs(); static void setup_binderfs(); static void setup_fusectl(); static void setup_tap_dev(const char* cls, const char* dev, const char* node) { unsigned ifindex = if_nametoindex(dev); if (!ifindex) { return; } char path[128], buf[32] = {}; snprintf(path, sizeof(path), "./syz-tmp/net_sys/class/%s/tap%u/dev", cls, ifindex); int fd = open(path, O_RDONLY); if (fd < 0) { return; } ssize_t n = read(fd, buf, sizeof(buf) - 1); close(fd); unsigned maj = 0, min = 0; if (n <= 0 || sscanf(buf, "%u:%u", &maj, &min) != 2) { return; } if (mknod(node, S_IFCHR | 0666, makedev(maj, min))) { } } static void setup_tap_devs(void) { if (mkdir("./syz-tmp/net_sys", 0700)) { return; } if (mount("sysfs", "./syz-tmp/net_sys", "sysfs", 0, NULL)) { rmdir("./syz-tmp/net_sys"); return; } setup_tap_dev("macvtap", "macvtap0", "./syz-tmp/newroot/macvtap0"); setup_tap_dev("ipvtap", "ipvtap0", "./syz-tmp/newroot/ipvtap0"); umount2("./syz-tmp/net_sys", MNT_DETACH); rmdir("./syz-tmp/net_sys"); } static void sandbox_common_mount_tmpfs(void) { write_file("/proc/sys/fs/mount-max", "100000"); if (mkdir("./syz-tmp", 0777)) exit(1); if (mount("", "./syz-tmp", "tmpfs", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot", 0777)) exit(1); if (mkdir("./syz-tmp/newroot/dev", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/dev", "./syz-tmp/newroot/dev", NULL, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/proc", 0700)) exit(1); if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/selinux", 0700)) exit(1); const char* selinux_path = "./syz-tmp/newroot/selinux"; if (mount("/selinux", selinux_path, NULL, bind_mount_flags, NULL)) { if (errno != ENOENT) exit(1); if (mount("/sys/fs/selinux", selinux_path, NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); } if (mkdir("./syz-tmp/newroot/sys", 0700)) exit(1); if (mount("/sys", "./syz-tmp/newroot/sys", 0, bind_mount_flags, NULL)) exit(1); if (mount("/sys/kernel/debug", "./syz-tmp/newroot/sys/kernel/debug", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/sys/fs/smackfs", "./syz-tmp/newroot/sys/fs/smackfs", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/proc/sys/fs/binfmt_misc", "./syz-tmp/newroot/proc/sys/fs/binfmt_misc", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mkdir("./syz-tmp/newroot/syz-inputs", 0700)) exit(1); if (mount("/syz-inputs", "./syz-tmp/newroot/syz-inputs", NULL, bind_mount_flags | MS_RDONLY, NULL) && errno != ENOENT) exit(1); setup_tap_devs(); if (mkdir("./syz-tmp/pivot", 0777)) exit(1); if (syscall(SYS_pivot_root, "./syz-tmp", "./syz-tmp/pivot")) { if (chdir("./syz-tmp")) exit(1); } else { if (chdir("/")) exit(1); if (umount2("./pivot", MNT_DETACH)) exit(1); } if (chroot("./newroot")) exit(1); if (chdir("/")) exit(1); setup_gadgetfs(); setup_binderfs(); setup_fusectl(); } static void setup_gadgetfs() { if (mkdir("/dev/gadgetfs", 0777)) { } if (mount("gadgetfs", "/dev/gadgetfs", "gadgetfs", 0, NULL)) { } } static void setup_fusectl() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void setup_binderfs() { if (mkdir("/dev/binderfs", 0777)) { } if (mount("binder", "/dev/binderfs", "binder", 0, "stats=global")) { if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } } if (symlink("/dev/binderfs", "./binderfs")) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); 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 = 128 << 20; 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); sandbox_common(); drop_caps(); initialize_netdevices_init(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); initialize_netdevices(); sandbox_common_mount_tmpfs(); loop(); exit(1); } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); close_fds(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // openat$macvtap arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: ptr[in, buffer] { // buffer: {2f 6d 61 63 76 74 61 70 30 00} (length 0xa) // } // flags: open_flags = 0x182 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_tun memcpy((void*)0x200000000000, "/macvtap0\000", 10); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000000ul, /*flags=O_NOCTTY|O_EXCL|O_RDWR*/ 0x182, /*mode=*/0); if (res != -1) r[0] = res; // write$tun arguments: [ // fd: fd_tun (resource) // buf: ptr[in, tun_buffer] { // tun_buffer { // pi: union optional[tun_pi] { // void: buffer: {} (length 0x0) // } // hdr: union optional[virtio_net_hdr] { // val: virtio_net_hdr { // flags: virtio_net_flags = 0x2 (1 bytes) // gsotype: virtio_net_types = 0x3 (1 bytes) // hdrlen: int16 = 0xe (2 bytes) // gsosize: int16 = 0x12 (2 bytes) // start: int16 = 0x1 (2 bytes) // offset: int16 = 0x8000 (2 bytes) // } // } // data: union tun_payload { // mpls: mpls_packet { // labels: array[mpls_label] { // mpls_label { // label: int32be = 0x0 (0 bytes) // tc: const = 0x0 (0 bytes) // s: int32be = 0x1 (0 bytes) // ttl: const = 0x0 (4 bytes) // } // mpls_label { // label: int32be = 0x0 (0 bytes) // tc: const = 0x0 (0 bytes) // s: int32be = 0x1 (0 bytes) // ttl: const = 0x0 (4 bytes) // } // mpls_label { // label: int32be = 0x401 (0 bytes) // tc: const = 0x0 (0 bytes) // s: int32be = 0x0 (0 bytes) // ttl: const = 0x0 (4 bytes) // } // mpls_label { // label: int32be = 0x3 (0 bytes) // tc: const = 0x0 (0 bytes) // s: int32be = 0x0 (0 bytes) // ttl: const = 0x0 (4 bytes) // } // } // payload: union mpls_payload { // ipv6: union ipv6_packet { // udp: ipv6_packet_t[const[IPPROTO_UDP, int8], udp_packet] { // priority: int8 = 0x2 (0 bytes) // version: const = 0x6 (1 bytes) // flow_label: buffer: {54 04 9d} (length 0x3) // length: len = 0x1100 (2 bytes) // next_header: const = 0x11 (1 bytes) // hop_limit: hop_limits = 0x1 (1 bytes) // src_ip: union ipv6_addr { // mcast1: ipv6_addr_multicast1 { // a0: const = 0xff (1 bytes) // a1: const = 0x1 (1 bytes) // a2: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00} // (length 0xd) a3: const = 0x1 (1 bytes) // } // } // dst_ip: union ipv6_addr { // empty: ipv6_addr_empty { // a0: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00 00} (length 0x10) // } // } // payload: ipv6_packet_payload[udp_packet] { // ext_headers: array[ipv6_ext_header] { // union ipv6_ext_header { // dstopts: ipv6_dstopts_ext_header { // next_header: ipv6_types = 0x3a (1 bytes) // length: bytesize8 = 0x15 (1 bytes) // pad: buffer: {00 00 00 00 00 00} (length 0x6) // options: array[ipv6_tlv_option] { // union ipv6_tlv_option { // padn: ipv6_tlv_padn { // type: const = 0x1 (1 bytes) // len: len = 0x5 (1 bytes) // pad: array[const[0, const]] { // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // } // } // } // union ipv6_tlv_option { // ra: ipv6_tlv_ra { // type: const = 0x5 (1 bytes) // len: const = 0x2 (1 bytes) // ra: int16be = 0x5 (2 bytes) // } // } // union ipv6_tlv_option { // ra: ipv6_tlv_ra { // type: const = 0x5 (1 bytes) // len: const = 0x2 (1 bytes) // ra: int16be = 0x5 (2 bytes) // } // } // union ipv6_tlv_option { // padn: ipv6_tlv_padn { // type: const = 0x1 (1 bytes) // len: len = 0x2 (1 bytes) // pad: array[const[0, const]] { // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // } // } // } // union ipv6_tlv_option { // enc_lim: ipv6_tlv_enc_lim { // type: const = 0x4 (1 bytes) // len: const = 0x1 (1 bytes) // encap_limit: int8 = 0x2 (1 bytes) // } // } // union ipv6_tlv_option { // hao: ipv6_tlv_hao { // type: const = 0xc9 (1 bytes) // len: bytesize = 0x10 (1 bytes) // addr: union ipv6_addr { // dev: ipv6_addr_t[netdev_addr_id] { // a0: const = 0xfe (1 bytes) // a1: const = 0x80 (1 bytes) // a2: buffer: {00 00 00 00 00 00 00 00 00 // 00 00 00 00} (length 0xd) a3: int8 = // 0x17 (1 bytes) // } // } // } // } // union ipv6_tlv_option { // generic: ipv6_tlv_generic { // type: int8 = 0x7f (1 bytes) // length: len = 0x71 (1 bytes) // data: buffer: {3c a9 17 d9 86 db 1c 8a b0 d4 // 72 d3 8c c9 82 2b 55 c5 1e 4d 15 fc 3d 56 2e // 01 89 6c 3b c0 41 c3 cc 16 be 83 3c 5e 0f 2c // c5 59 5d ee 91 b2 d3 f7 34 1d b9 aa 0c 85 cd // 41 07 11 21 1c 57 bf d4 41 2f 73 64 a9 26 81 // 42 4d 8d 1b c1 a7 fa 53 80 ba 92 78 94 38 70 // 2a 9a d2 e7 18 59 48 3c 53 8b 33 8e 6c 95 91 // 53 82 95 9f b1 86 a6 8f cc 3d 40 56 68} // (length 0x71) // } // } // union ipv6_tlv_option { // padn: ipv6_tlv_padn { // type: const = 0x1 (1 bytes) // len: len = 0x4 (1 bytes) // pad: array[const[0, const]] { // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // const = 0x0 (1 bytes) // } // } // } // union ipv6_tlv_option { // ra: ipv6_tlv_ra { // type: const = 0x5 (1 bytes) // len: const = 0x2 (1 bytes) // ra: int16be = 0x3 (2 bytes) // } // } // union ipv6_tlv_option { // ra: ipv6_tlv_ra { // type: const = 0x5 (1 bytes) // len: const = 0x2 (1 bytes) // ra: int16be = 0x67 (2 bytes) // } // } // } // } // } // union ipv6_ext_header { // dstopts: ipv6_dstopts_ext_header { // next_header: ipv6_types = 0x2c (1 bytes) // length: bytesize8 = 0x1 (1 bytes) // pad: buffer: {00 00 00 00 00 00} (length 0x6) // options: array[ipv6_tlv_option] { // union ipv6_tlv_option { // enc_lim: ipv6_tlv_enc_lim { // type: const = 0x4 (1 bytes) // len: const = 0x1 (1 bytes) // encap_limit: int8 = 0x8 (1 bytes) // } // } // union ipv6_tlv_option { // pad1: ipv6_tlv_pad1 { // type: const = 0x0 (1 bytes) // len: const = 0x1 (1 bytes) // pad: const = 0x0 (1 bytes) // } // } // union ipv6_tlv_option { // ra: ipv6_tlv_ra { // type: const = 0x5 (1 bytes) // len: const = 0x2 (1 bytes) // ra: int16be = 0x6 (2 bytes) // } // } // } // } // } // union ipv6_ext_header { // srh: ipv6_sr_hdr { // nexthdr: ipv6_types = 0x5e (1 bytes) // hdrlen: bytesize8 = 0x2 (1 bytes) // type: const = 0x4 (1 bytes) // segments_left: int8 = 0x4 (1 bytes) // first_segment: len = 0x0 (1 bytes) // flags: ipv6_sr_flags = 0x8 (1 bytes) // tag: int16 = 0x4 (2 bytes) // segments: ipv6_sr_segments { // first: union ipv6_addr { // ipv4: ipv6_addr_ipv4 { // a0: buffer: {00 00 00 00 00 00 00 00 00 00} // (length 0xa) a1: buffer: {ff ff} (length // 0x2) a3: union ipv4_addr { // initdev: ipv4_addr_initdev { // a0: const = 0xac (1 bytes) // a1: const = 0x1e (1 bytes) // a2: int8 = 0x0 (1 bytes) // a3: proc = 0x0 (1 bytes) // } // } // } // } // more: array[ipv6_addr] { // } // } // } // } // } // payload: udp_packet { // src_port: int16be = 0x4e20 (2 bytes) // dst_port: int16be = 0x4e24 (2 bytes) // length: len = 0x1018 (2 bytes) // csum: csum = 0x0 (2 bytes) // payload: union udp_payload { // wg: union wg_packet { // data: message_data { // type: const = 0x4 (4 bytes) // key_idx: int32 = 0x1cdc (4 bytes) // counter: int64 = 0x2 (8 bytes) // encrypted_data: buffer: {ad 64 74 44 c4 07 e9 92 // ec c8 dc 07 95 9d 71 f3 7c cd b5 1a 56 7a e3 cd // 10 f6 16 5e 57 94 ed 24 db 4e 84 49 be 23 59 8c // f4 e0 3b 6c 11 7c 65 d1 b9 82 75 92 70 70 0b f8 // f6 a3 0b ee 2f d3 e7 59 79 16 a0 6c d6 9f 1d 48 // bd 97 72 c3 01 47 08 94 fd 61 0f a8 da 7b ff 9d // bc da 9b 8f ff 3f 0b 0b f0 94 f4 52 e7 53 04 7d // 15 e6 c9 06 76 ac c7 f3 df 69 52 ea 45 d8 93 fd // 89 4a ed 7a 0b cd cf 2b fa 8e fc f0 de 6c 45 b2 // 73 ee cc c8 49 e5 66 5f a7 92 d6 d3 30 e2 03 0a // 8e 8b 4e fe 54 da bb 04 d5 49 ca fb 42 bb e6 1d // be dd ad 95 41 7d fb 30 d7 55 29 2c 7e 55 9d 97 // b4 2f d9 dc cb f3 ef 86 4c 96 77 f5 36 b6 4e 7e // 68 9d 1c 81 ec 62 8f 85 92 fa 51 af 0a 82 45 f6 // 47 8d 5d 0c 5c 1b 94 1c 2a 63 4d ee dd 5c 90 9d // c1 0c 6e ae 9a 0e 3a 7b aa f7 9b 29 7d ae 43 d4 // 23 f6 26 a6 8d 08 1d 1e 76 d0 b5 c9 9b b1 d3 d7 // 90 4e 0d 7f 2d 52 0c ba 5c 00 dd 61 ec aa 0b d9 // 8e 08 71 dc eb fc a7 2d b5 5c 1a 19 83 4a 7e e2 // 52 f5 2f 04 b0 53 e1 70 d8 88 6a d0 ab a2 83 e6 // 74 87 e3 e4 df a6 c2 bf 57 22 e9 c9 97 0d 7b c0 // 47 f6 ec f8 eb a0 3c 95 6e 4d 54 bf 53 90 f9 75 // 44 21 f0 ec b0 bc d0 56 74 6c cb fe d0 df 85 f8 // 85 9a c5 59 4a 15 ac 8a 25 22 99 90 2e 09 83 49 // 84 a6 9d df 5e b2 1d 04 9d f7 42 d9 c5 61 62 43 // d2 fc 1d 79 44 8d f8 25 f1 18 dc 12 ec 1b c3 73 // b3 fc 5b 07 89 8a a9 32 76 65 15 13 32 3f 0f c9 // 64 ec 79 df b0 27 d1 ef 22 8f f3 d7 81 10 fc ee // 2f e0 fa 05 54 15 be 2a a4 3c ff 50 ad c1 a2 2b // b2 76 d7 d4 30 4b ad 82 ff e1 cf e8 1f d1 88 35 // 96 c2 e5 58 d4 78 96 1e f1 28 8b a5 31 a0 22 f7 // 7d ee 1c 2a 4a 9d 71 fc 0f 4e a6 e6 f0 d6 b6 f8 // 75 1c 21 e5 aa 0a 93 41 38 04 52 c5 3d 31 1d b2 // 79 aa ec 50 4f e9 6a 0b 5b 1c 2d 74 fd 47 26 d1 // 78 f4 0d ce 38 79 5a fd 5c 1a 15 2b 4f 08 c4 00 // a3 be ca 07 17 59 51 47 11 ae b2 7a 70 48 e8 b6 // f9 e0 3c 67 59 df 9d 19 53 8a 00 12 a1 63 31 84 // f8 e5 71 3c f4 44 c3 9c 4e ba a0 f5 c4 04 b8 72 // 17 3c c6 a7 e4 93 c5 e9 fa e2 92 18 c7 3c 23 e5 // 3d 20 29 85 8a 21 af 4d 23 29 87 22 78 b4 ad 95 // ee 9c f9 1c ee 37 39 87 d8 a9 6c 57 b4 88 96 77 // 2a c0 13 ae 5b c4 83 d7 87 12 8a b3 4a d1 5a 58 // e6 de ea 4c 4d 2b e7 72 3b 91 84 b2 b1 09 64 80 // 0b 26 bf 5c 4f 92 1e a6 93 85 0e ef 8e 31 dd cc // a3 00 7b 78 1e bb 33 c2 84 16 e1 db 2a 85 8d 12 // d4 f8 e7 71 b1 1c 09 9d 94 f7 26 44 28 41 be 2b // 75 9f f0 e3 a1 00 77 a7 10 fb d1 ad 55 64 83 fc // 24 63 8a 2e 3e 3a d7 3e b0 c8 fb bc 88 35 aa b0 // 82 cb ec 71 04 05 a2 46 46 da 4a e9 a2 d6 f3 75 // d6 23 b1 62 62 a5 3b 6b 96 62 31 d1 1a da c9 d2 // e2 53 87 b7 43 3f 6f b7 a2 d3 11 63 2b 4b c6 8e // 6e 94 76 fa 30 c8 fe ed f7 ae ca 20 ae 95 fe 0b // 8e 01 ca 27 22 ac 76 7c ab 5e 9c 90 d7 00 e5 a9 // c2 68 8e d6 76 94 5a 48 11 ee b4 7e c1 e5 38 54 // 7a 1e 8b ff 45 12 62 3a 6d 04 84 3b a7 98 dc 48 // c0 25 bb f3 f9 f1 4e 21 ea d8 43 7e c3 d2 16 b2 // ee af fc 14 82 32 4f 65 a9 3e 43 0a 6c f7 96 ff // 8b 1d a0 a9 6f d0 a7 12 0f 43 79 18 f9 37 6e 0b // ff 0e a4 f3 54 1d 84 db f9 70 dc 21 c1 c6 91 a1 // 4f d2 d7 d6 ed 89 c1 55 bf 8f 51 d8 43 ab 7e a8 // a2 fb 13 6f 19 1f e8 93 13 5f 83 de cf 13 2a 62 // 67 68 5a c5 8d ca 46 58 e4 1d a6 10 e5 ae cf 11 // b9 71 d7 46 23 cf 20 a7 95 d6 d1 ec a6 8b 85 91 // 28 92 19 34 71 99 26 68 bf ec 0e be c9 18 d8 36 // f8 7f 6a 14 b9 e7 6d 4d a4 c6 db 2e fc 97 fe 0f // 9c fc ab 9d 99 d5 f4 c4 d6 39 b1 cb f9 9f c4 22 // 56 d1 28 06 78 21 d0 df a8 96 b3 de 92 bc 05 7b // 48 b9 27 b8 03 f1 c1 6e 98 71 bc 30 34 b4 81 5d // 50 53 ec 4a 72 c7 e7 f0 15 83 53 fc c0 d0 8c 7c // fa ab 2b 15 c5 94 a8 86 ca 51 45 8d 66 8d f9 5b // c6 e3 4e 39 e1 09 d5 93 4d 63 b3 f1 af de 98 b2 // fe 66 6e db e8 b0 1d be 56 9a 79 81 83 cd 69 54 // 3c ce f3 f4 6c 54 ee aa 3c ff 03 93 87 87 d3 b9 // 70 b8 b6 14 6e d4 7a 60 13 5c b8 b4 52 55 ad 90 // e0 c7 85 fa 89 0d ea fa 9c 10 56 1a 7b 2a bb 66 // f0 70 4b 99 37 18 ba d3 96 99 66 a1 26 79 39 a9 // de 15 7a bc 69 b3 72 bb 37 51 a8 18 14 66 90 bc // c8 cb 81 9d 91 c9 6d 0c bd 9a 82 fc 93 7c a9 18 // ff 60 85 48 fc c7 52 1f 01 51 74 5a 98 7b 25 fa // d2 cc 20 32 0b a6 a6 a7 b9 1f 8a 1b bd 00 e3 6b // 70 12 df 66 60 58 0b 61 f9 44 9f bf c7 2d 99 e4 // 5d b8 dc b9 a6 d8 8d 00 d3 b2 b6 69 60 d9 64 a2 // 0f 18 75 c9 59 cc 97 78 da b8 15 dc 51 86 b1 99 // 1b 3e 42 da 23 81 bf 64 d7 ce db db 20 51 e8 7b // 1b 39 9c c8 b8 7a 98 d1 6a 69 1e 12 95 b7 b0 a6 // c0 db 82 2b 85 4a 05 97 b9 11 40 db 32 6b 80 0f // 47 e7 1c 2f 1a 67 db ee 60 14 3b e7 63 5a 03 d0 // 7f 77 46 b0 df 1c 75 6c f5 7e 34 ce cc 78 b0 7a // 05 86 1d b2 1a 58 67 bf 92 68 fe a4 cd 49 5b d7 // e9 b3 c8 24 bc 6b 42 e6 58 07 20 b1 28 86 93 61 // ba 3b e0 d9 c0 e4 50 25 bf b0 ec 8f b5 38 fe 70 // f8 6f 9e fb 8e e3 55 fb e9 51 8e 17 00 b4 7f 36 // 84 7b 6f 90 ab 99 53 28 d7 1b d5 0d 39 03 c1 fa // ce 99 09 73 ad b7 d5 5c 93 7b d0 6c eb 2a 18 7e // 6b c5 df 04 d0 e0 2e 16 4a 00 a5 ef f4 29 7c 34 // 36 9f 0a f5 18 a4 d9 62 62 7b 69 6e 92 07 86 25 // 08 77 bf 75 50 8f 82 a0 18 96 40 4c e2 4f a2 32 // 3e 47 e8 cc ef 22 ad cb f1 4b 1d e2 6b 46 d6 3b // df 70 28 f5 d9 8f 6b a0 60 57 91 85 7d 8a 3c cb // 0b 69 dd 03 94 9f 25 7c 95 80 c8 fa 8a 20 98 6a // 0a f2 84 66 aa 43 29 54 3b a8 ba 82 67 a5 e2 10 // 0d 35 6e 0d 62 df e2 58 be 78 28 e8 2a 6e ee a8 // 25 2a f0 3c 12 f2 98 a9 5e 94 3f 3c 73 31 7a 1d // 0c f2 85 b5 05 0e 2b b1 28 12 e0 34 86 28 7d 5a // a2 a7 7e be d2 af fc 1d 02 a8 5d c6 8b d2 f4 f8 // 33 2c 3e 21 a3 db c6 ff 31 4e 98 32 58 4f a7 ac // 2b d6 fd 3b eb a3 5c 57 6a ac 03 e0 81 b4 02 8e // 0c e6 50 a5 6d 69 6b 1b 77 04 3d 52 1d af 94 c4 // 54 46 a8 7f 05 63 77 a2 5f 9d 42 3e f5 98 66 7d // 9d f3 57 58 40 c9 57 a9 c3 50 9d 58 da a2 58 fe // c8 c2 8d 75 c8 9c 62 12 5c 97 0e 58 f4 be e4 89 // 37 22 d9 4d d8 4a 41 42 72 03 b5 f7 44 a1 ba 5c // fc bc 99 93 03 02 9f 76 72 b8 96 e5 99 4d 6d 77 // 95 53 11 f7 8d 0b 63 18 3a 7e 37 67 c6 1b f8 81 // 48 b8 03 52 80 62 de e4 1d 9a 63 31 48 fb 03 9f // 06 61 0e b9 be 46 9c 28 3b e2 54 24 02 26 a3 3b // 2c 90 b2 da ca e6 be 27 ce 0a da 61 75 af 1b 6b // 37 2b 25 90 0c 51 eb e2 73 c6 c4 77 83 4a 11 52 // 23 ec 9b ce 65 6d 40 dc 9d 5d 38 ef 16 c3 52 4b // 61 02 e4 96 14 a0 f3 6b 5c 15 fe a0 15 d7 d3 89 // 35 81 bc de 82 9c 86 06 69 3e ee 32 bb 37 c1 98 // 98 e5 82 a1 40 91 14 d3 eb de 84 7d 17 74 4d 10 // 31 cf f5 f7 9b 3c ad 31 69 4f 60 2e e9 08 f5 67 // 88 ad 01 83 85 f0 3b 15 69 aa 87 36 4c 02 c4 4a // 76 28 15 6a 0c 48 58 cb 30 b2 eb a1 ad 21 80 13 // 3c 9a f7 88 9c 7a cf 6c 21 94 6b 0f b7 a5 12 6c // 04 bb a6 71 b0 a8 89 e9 11 c1 f4 6a a2 36 7a 41 // b1 91 e6 4a e1 0a 82 ba 19 7c 48 36 de 88 1f 9f // c5 17 fc 9a 32 28 6f 00 f3 5e 92 6a 30 42 12 b2 // cc 9b b7 28 77 58 fe 88 c7 01 d0 96 99 18 84 f2 // f3 05 e4 bd 90 e0 33 3a 33 0f 8b 71 6a 87 15 c7 // 1a 51 2c b0 09 55 bf 71 60 ed 06 4e 5c 60 7a 6f // 64 e6 65 de 9a ed 5c e7 29 e0 d1 48 4e 7e 5b d9 // db 36 86 ca 7e a4 49 21 a2 37 79 6c 68 fc d4 23 // e2 f6 a0 76 20 8f f2 04 79 b4 12 a6 c7 25 7d 4f // 99 0c b9 8b f0 13 39 31 28 ba 3f a3 36 ec ff 32 // bc 89 f8 bd 26 80 41 53 c2 ed 9b 7c 2a 51 a2 de // f3 13 84 51 7e a7 19 1c 86 31 38 78 53 53 a2 cc // 8b 1d 4b 2d e5 69 e5 50 7c a6 60 eb 22 fa 85 5a // 45 9f dd 57 d6 7e 95 6b aa 91 38 8b 9c d8 b1 1b // 92 78 ea 14 75 1d 9a 9a aa a9 e6 fa 67 c6 20 d0 // 3d fb de 1a 79 38 f9 80 dd 10 e7 71 c9 2a 7b 22 // bb bb 59 c9 37 98 98 d2 15 7e 5a f7 e1 ab 9e 46 // 99 42 dc 49 4c 77 a7 ba 38 aa f3 4d ba 49 e2 a5 // 17 af cc d1 ee 3d 62 ed 67 1d 5d ca eb e1 16 2c // 85 16 bd 69 03 9d 44 e7 05 31 b1 b0 19 c4 07 66 // f9 75 1b bc 8b ee fb 5d 25 0a 3f c5 2e 00 96 21 // e6 4a 5e 25 86 e8 8a f6 8b d0 68 66 13 c2 86 dd // 8a a8 c7 f4 4c 6c 67 1b 09 6e 46 fa 0d 41 ea b2 // 91 3e 33 3d 29 dc 30 cf ea df d8 15 ea 08 db 58 // 96 75 ca 89 cd 1d 1a bb da 38 1c 12 ba d6 74 6a // 77 f4 ee 2e 81 83 a7 2c 82 b1 1b d8 c1 c0 a7 c5 // 08 9d 5e 39 ee cf f8 56 cb 8b ec 87 9f 3a 8c 06 // 93 ca 42 b7 03 c2 a9 7c 36 17 12 9d a2 ce 8d ce // 6e a5 ed 4f 38 3c ce e7 27 61 93 ae 27 6e be d9 // f7 b1 ad 58 7e d1 4c 59 16 40 1e e3 35 33 4d a8 // 47 e1 6e 43 c5 16 5b 33 c8 e2 81 4e 4e ef 23 12 // 1e 76 0f ff b4 68 88 f6 af a8 49 fc d2 3a 50 56 // 52 fa d9 60 b7 00 3e 63 be cc 42 a2 a9 8b c3 13 // 07 3d 5c 99 5b 4c 6c 84 b0 99 fb 72 6b 2f bc d0 // 16 8e 39 77 86 fa a9 11 0a 99 d9 dd 55 b0 b0 6b // 53 18 32 51 c2 2a 53 cb 97 ee 53 aa cd b0 2c 8c // 55 9b 81 c9 b2 5b 69 74 99 f0 d2 5f d1 99 d8 44 // 01 f1 fd b8 37 5b 5b 1d f2 91 1a f6 6b 40 6c 9a // dc 8c bb 0f cd 0f d2 9c b7 80 3b 0a 9c 8d 03 38 // 6f 70 f3 a8 ff cf 27 80 98 51 a5 24 82 2d e1 af // ca 8d d8 65 66 98 dd 23 2e 7d 49 08 58 fc bb a7 // f4 4d 9d 42 e2 cc a6 e2 bd aa ce b6 2a 3f c9 67 // 70 5b b1 7e 0f b4 be db 3c 0e 22 86 60 d6 88 c1 // 17 34 4d 68 8f ad 41 58 44 d2 da 49 e8 1a a9 f0 // ec f9 a9 dd a4 60 a9 d3 5d 07 5f 61 1b fe a8 68 // 05 f5 70 6c f3 81 5e 70 1f a0 ce fc ab fc 91 a1 // d0 98 27 cd e7 70 d5 c6 0e 29 e6 e5 09 b3 83 e7 // b5 00 6d 5f 56 fe 48 83 ed 07 86 b8 3b 4e 21 e0 // 9c 16 34 35 80 f5 bc 4b e4 4a 24 74 4e 74 18 43 // 69 d6 4b 57 07 d0 1d c5 95 f7 44 95 f5 4b 58 4e // 31 52 6a 42 03 41 9d e8 2a 10 85 1e 6d f0 89 02 // 70 f3 e5 0f f6 1b 65 53 a2 42 24 76 b5 07 cb 43 // e3 3d 2d a8 6e 5c c5 fd 75 7e e9 bb 70 ed 80 69 // 87 33 b6 fa 02 ac dc 47 84 80 62 9c 89 4c bc 93 // ff 5a ba 34 51 cf 2d 70 9b 4c 89 fc a2 09 86 05 // dc b8 d6 08 87 75 c9 0b 47 ab cd f6 53 7f 33 1b // e8 3b 42 e1 e6 61 bc 8e 9e f6 1c 90 06 99 59 66 // c5 87 f7 dc 03 aa 7f e2 54 e0 2d 63 cd 60 63 b5 // 1c 0f 0a 28 31 de 2a cc ed fc 6f fc b6 c1 60 af // b1 cf 80 37 67 9a aa 49 ac a4 75 36 48 e7 b4 12 // 6a de 29 9a d4 f6 c9 4a c7 8a cd e7 8b d3 cc 3b // 2e 1f 36 d2 b9 d5 2f 94 b2 35 1d 49 6a f7 57 3e // dd d0 7e 3e 8a 0e 3d 38 a9 3c b3 89 d3 1f 67 09 // 95 be c6 a9 50 8e 9d 58 77 2a 02 a7 a5 b0 79 8b // 84 14 39 5b 2e 4f 55 14 0f da 8f 26 f2 c7 54 b5 // ab df cd 38 f7 29 72 f3 62 f7 e8 c7 42 db 43 87 // e9 57 25 83 94 d6 b8 45 26 28 a5 6c 04 b4 25 50 // 00 de aa e9 13 4f 9a b4 28 48 f4 bb 52 bb 99 d1 // e3 de 36 aa 26 51 4e 2d 36 24 90 73 65 d9 1a ea // b9 f2 3c e1 11 f7 52 74 a6 be 7a bc f5 c0 43 d3 // 63 61 93 6d fa 40 0f 9b 13 c7 23 0c 28 4c 60 c3 // d1 5c f4 16 81 bd 54 dd 0a 97 bf f4 2b 5e d9 9c // 93 16 30 5c 02 30 86 d4 a4 20 88 23 a6 04 ea 86 // 33 1b 8d 04 0c 39 2d 54 7d f2 a0 e9 41 32 25 af // 02 46 51 aa 38 6c 1f 19 d3 27 3f fe fd a6 a4 64 // a6 19 c7 41 83 8c fb 1c 5d 08 f2 da 3d 22 5c 3d // 3c 6d de 4e 47 3a 36 62 c9 e7 af 11 c3 4b 20 23 // 82 5d 87 28 69 fc 77 62 9c 6c af 4f 14 6c 82 96 // c8 07 85 9d 6b 96 f9 5e 11 fc 3e 76 45 26 9e 4b // 8b 7a 12 60 0a 30 f1 fa e3 77 f2 de c8 9c 86 d7 // 64 46 3d d6 5d 0f 6a d9 66 99 b0 63 7e 2e 72 90 // c0 d2 7c c8 09 6f a7 9a e6 e9 24 78 40 9c b7 40 // ae 55 bc 72 98 a1 fd d0 fa c1 58 04 c6 eb 43 48 // 7d 59 c4 19 04 f2 47 d7 e6 f5 25 50 68 95 56 f5 // e8 28 ac 91 59 e9 15 a9 dd 0f 2e fd 6e d5 a2 4e // d1 51 3e 8d a9 6e d4 3c 35 bd dc cc c1 87 ba b6 // 00 ee 27 bc d7 ce 43 36 bf cb 33 c8 30 0e 04 ad // a9 ae b9 9b 3e 18 05 a4 92 57 5d 19 58 80 9b 91 // 16 3c 9e f7 57 1e a6 7e ee 8f b5 2d e5 b5 60 49 // 90 78 26 26 78 67 84 29 16 c9 96 3e 2a 72 47 ce // c3 61 c3 fb 60 d1 37 a2 d2 67 ad 11 d6 c1 9b ad // e2 b8 41 53 56 14 b3 a3 9a 36 c4 c8 4b b9 3a a3 // bf 61 4e 18 11 b1 fd 96 69 e6 04 94 e4 c4 27 39 // f6 13 75 65 c3 11 45 7d 0d 96 dd 02 91 f6 66 08 // 5f c5 3f 6d 8a 26 8a 15 59 b8 fd b6 e9 6e d3 48 // 1e c0 e3 88 48 eb 78 4e 3e 3e 60 0c d6 a8 db bb // 5a 96 a3 43 3f 35 fc df f6 53 74 a9 9f 29 4c 37 // a6 e5 7e a4 70 08 58 16 7e db cf f8 4a 33 40 dc // 6e ea 6c 51 bf d2 b9 6e 25 b3 d0 af 4b 0d d7 e6 // 60 e5 28 75 47 c8 36 b0 06 18 0b c2 fb 1d 29 21 // 18 fb 97 4e 27 42 2b f0 13 99 7e f8 6f cf 9f eb // b3 af d1 fd 20 f6 41 8d d3 e0 b7 d4 ad e7 61 27 // 62 0b ac 6c dc fe 83 e3 17 c4 e3 cf 93 16 3d 65 // 96 cd 26 1f e6 4a c1 a5 2e a8 92 76 a4 73 96 ed // 05 cf 32 4d 71 f6 5d 2c cc 38 c3 61 cd 7d d0 9c // 70 c0 26 b2 47 f2 d2 cf c7 e2 4a 07 e8 7e 86 44 // 28 c7 23 4c 78 c7 95 ba 4d a7 3c fc 18 45 5c 01 // c1 00 42 d4 f3 b3 46 dd 61 4d 23 a2 d2 1a 95 ff // 0f 76 26 3c 93 65 b0 c6 6b be 42 ec 15 ac 7d 0c // ff b3 77 d0 d6 65 8e 07 2d 29 db 30 f3 bd 61 bb // 4f 27 70 77 96 49 e5 ea 9e 96 ba 83 06 7c 7d 9a // 23 ec c9 4c a7 b7 7a 07 07 fa a1 3e e8 0f 1d d5 // 8e 6f 6a 1b f4 67 05 4b 75 7d 3d 5d b3 7a 0d 82 // d4 22 d7 27 d0 3a 51 5a e7 e9 2e b2 cb fc 67 89 // a5 85 33 c6 df a6 6b 22 fe 2d ed 93 44 6a 57 c3 // 39 f5 13 d6 4e 37 35 55 da d4 03 e5 1c cd a3 a0 // ee e6 83 93 0b 40 26 47 ac 44 8e 51 e9 99 68 b5 // 9b 2b 5c a2 7f 19 3c 0f 67 06 77 47 94 f6 a7 03 // 32 f0 85 2e 0c 8a d0 a7 26 83 43 35 02 20 77 22 // f9 df d4 b6 dc 84 98 6a cd 3c 3c 23 6b 4b 57 eb // ba 52 3f bf c1 e3 1a bc 67 86 ac 59 61 e7 bc 13 // 47 c9 e9 37 40 b9 ce 43 21 f2 89 2b f7 24 73 b9 // c4 1c 52 80 9b 5d 9b b0 de f5 df b8 dc 8b cc 58 // 95 66 55 cc bb 4c 04 ca 77 2a 73 fe 84 d2 fc 5c // ef e9 bc 19 a2 36 ea 06 a8 95 15 53 b1 d7 c8 3e // ae c8 11 64 54 99 0a 43 1d c9 d7 9a 6c b1 3e 94 // 49 9d ab ce ee 7c e4 7c 96 e2 56 c0 e5 53 07 f2 // 34 75 4d e8 df 1a 73 fc b3 35 d5 e5 f6 4d 4b 40 // fb e6 e8 2a 1d de 59 4c 6e b5 0b 78 00 84 bd ff // 8e d0 c2 c1 30 a7 0b a0 81 39 45 89 17 ed 1d cc // e3 23 3b e9 d8 cd d0 bb} (length 0x1000) // } // } // } // } // } // } // } // } // } // } // } // } // count: len = 0x1142 (8 bytes) // ] *(uint8_t*)0x200000000d40 = 2; *(uint8_t*)0x200000000d41 = 3; *(uint16_t*)0x200000000d42 = 0xe; *(uint16_t*)0x200000000d44 = 0x12; *(uint16_t*)0x200000000d46 = 1; *(uint16_t*)0x200000000d48 = 0x8000; STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4a, 0, 0, 20); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4a, 0, 20, 3); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4a, 1, 23, 1); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4a, 0, 24, 8); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4e, 0, 0, 20); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4e, 0, 20, 3); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4e, 1, 23, 1); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d4e, 0, 24, 8); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d52, 0x401, 0, 20); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d52, 0, 20, 3); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d52, 0, 23, 1); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d52, 0, 24, 8); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d56, 3, 0, 20); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d56, 0, 20, 3); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d56, 0, 23, 1); STORE_BY_BITMASK(uint32_t, htobe32, 0x200000000d56, 0, 24, 8); STORE_BY_BITMASK(uint8_t, , 0x200000000d5a, 2, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x200000000d5a, 6, 4, 4); memcpy((void*)0x200000000d5b, "\x54\x04\x9d", 3); *(uint16_t*)0x200000000d5e = htobe16(0x1100); *(uint8_t*)0x200000000d60 = 0x11; *(uint8_t*)0x200000000d61 = 1; *(uint8_t*)0x200000000d62 = -1; *(uint8_t*)0x200000000d63 = 1; memset((void*)0x200000000d64, 0, 13); *(uint8_t*)0x200000000d71 = 1; memset((void*)0x200000000d72, 0, 16); *(uint8_t*)0x200000000d82 = 0x3a; *(uint8_t*)0x200000000d83 = 0x15; memset((void*)0x200000000d84, 0, 6); *(uint8_t*)0x200000000d8a = 1; *(uint8_t*)0x200000000d8b = 5; *(uint8_t*)0x200000000d8c = 0; *(uint8_t*)0x200000000d8d = 0; *(uint8_t*)0x200000000d8e = 0; *(uint8_t*)0x200000000d8f = 0; *(uint8_t*)0x200000000d90 = 0; *(uint8_t*)0x200000000d91 = 5; *(uint8_t*)0x200000000d92 = 2; *(uint16_t*)0x200000000d93 = htobe16(5); *(uint8_t*)0x200000000d95 = 5; *(uint8_t*)0x200000000d96 = 2; *(uint16_t*)0x200000000d97 = htobe16(5); *(uint8_t*)0x200000000d99 = 1; *(uint8_t*)0x200000000d9a = 2; *(uint8_t*)0x200000000d9b = 0; *(uint8_t*)0x200000000d9c = 0; *(uint8_t*)0x200000000d9d = 4; *(uint8_t*)0x200000000d9e = 1; *(uint8_t*)0x200000000d9f = 2; *(uint8_t*)0x200000000da0 = 0xc9; *(uint8_t*)0x200000000da1 = 0x10; *(uint8_t*)0x200000000da2 = 0xfe; *(uint8_t*)0x200000000da3 = 0x80; memset((void*)0x200000000da4, 0, 13); *(uint8_t*)0x200000000db1 = 0x17; *(uint8_t*)0x200000000db2 = 0x7f; *(uint8_t*)0x200000000db3 = 0x71; memcpy((void*)0x200000000db4, "\x3c\xa9\x17\xd9\x86\xdb\x1c\x8a\xb0\xd4\x72\xd3\x8c\xc9\x82\x2b\x55" "\xc5\x1e\x4d\x15\xfc\x3d\x56\x2e\x01\x89\x6c\x3b\xc0\x41\xc3\xcc\x16" "\xbe\x83\x3c\x5e\x0f\x2c\xc5\x59\x5d\xee\x91\xb2\xd3\xf7\x34\x1d\xb9" "\xaa\x0c\x85\xcd\x41\x07\x11\x21\x1c\x57\xbf\xd4\x41\x2f\x73\x64\xa9" "\x26\x81\x42\x4d\x8d\x1b\xc1\xa7\xfa\x53\x80\xba\x92\x78\x94\x38\x70" "\x2a\x9a\xd2\xe7\x18\x59\x48\x3c\x53\x8b\x33\x8e\x6c\x95\x91\x53\x82" "\x95\x9f\xb1\x86\xa6\x8f\xcc\x3d\x40\x56\x68", 113); *(uint8_t*)0x200000000e25 = 1; *(uint8_t*)0x200000000e26 = 4; *(uint8_t*)0x200000000e27 = 0; *(uint8_t*)0x200000000e28 = 0; *(uint8_t*)0x200000000e29 = 0; *(uint8_t*)0x200000000e2a = 0; *(uint8_t*)0x200000000e2b = 5; *(uint8_t*)0x200000000e2c = 2; *(uint16_t*)0x200000000e2d = htobe16(3); *(uint8_t*)0x200000000e2f = 5; *(uint8_t*)0x200000000e30 = 2; *(uint16_t*)0x200000000e31 = htobe16(0x67); *(uint8_t*)0x200000000e3a = 0x2c; *(uint8_t*)0x200000000e3b = 1; memset((void*)0x200000000e3c, 0, 6); *(uint8_t*)0x200000000e42 = 4; *(uint8_t*)0x200000000e43 = 1; *(uint8_t*)0x200000000e44 = 8; *(uint8_t*)0x200000000e45 = 0; *(uint8_t*)0x200000000e46 = 1; *(uint8_t*)0x200000000e47 = 0; *(uint8_t*)0x200000000e48 = 5; *(uint8_t*)0x200000000e49 = 2; *(uint16_t*)0x200000000e4a = htobe16(6); *(uint8_t*)0x200000000e52 = 0x5e; *(uint8_t*)0x200000000e53 = 2; *(uint8_t*)0x200000000e54 = 4; *(uint8_t*)0x200000000e55 = 4; *(uint8_t*)0x200000000e56 = 0; *(uint8_t*)0x200000000e57 = 8; *(uint16_t*)0x200000000e58 = 4; memset((void*)0x200000000e5a, 0, 10); memset((void*)0x200000000e64, 255, 2); *(uint8_t*)0x200000000e66 = 0xac; *(uint8_t*)0x200000000e67 = 0x1e; *(uint8_t*)0x200000000e68 = 0; *(uint8_t*)0x200000000e69 = 1; *(uint16_t*)0x200000000e6a = htobe16(0x4e20); *(uint16_t*)0x200000000e6c = htobe16(0x4e24); *(uint16_t*)0x200000000e6e = htobe16(0x1018); *(uint16_t*)0x200000000e70 = htobe16(0); *(uint32_t*)0x200000000e72 = 4; *(uint32_t*)0x200000000e76 = 0x1cdc; *(uint64_t*)0x200000000e7a = 2; memcpy( (void*)0x200000000e82, "\xad\x64\x74\x44\xc4\x07\xe9\x92\xec\xc8\xdc\x07\x95\x9d\x71\xf3\x7c\xcd" "\xb5\x1a\x56\x7a\xe3\xcd\x10\xf6\x16\x5e\x57\x94\xed\x24\xdb\x4e\x84\x49" "\xbe\x23\x59\x8c\xf4\xe0\x3b\x6c\x11\x7c\x65\xd1\xb9\x82\x75\x92\x70\x70" "\x0b\xf8\xf6\xa3\x0b\xee\x2f\xd3\xe7\x59\x79\x16\xa0\x6c\xd6\x9f\x1d\x48" "\xbd\x97\x72\xc3\x01\x47\x08\x94\xfd\x61\x0f\xa8\xda\x7b\xff\x9d\xbc\xda" "\x9b\x8f\xff\x3f\x0b\x0b\xf0\x94\xf4\x52\xe7\x53\x04\x7d\x15\xe6\xc9\x06" "\x76\xac\xc7\xf3\xdf\x69\x52\xea\x45\xd8\x93\xfd\x89\x4a\xed\x7a\x0b\xcd" "\xcf\x2b\xfa\x8e\xfc\xf0\xde\x6c\x45\xb2\x73\xee\xcc\xc8\x49\xe5\x66\x5f" "\xa7\x92\xd6\xd3\x30\xe2\x03\x0a\x8e\x8b\x4e\xfe\x54\xda\xbb\x04\xd5\x49" "\xca\xfb\x42\xbb\xe6\x1d\xbe\xdd\xad\x95\x41\x7d\xfb\x30\xd7\x55\x29\x2c" "\x7e\x55\x9d\x97\xb4\x2f\xd9\xdc\xcb\xf3\xef\x86\x4c\x96\x77\xf5\x36\xb6" "\x4e\x7e\x68\x9d\x1c\x81\xec\x62\x8f\x85\x92\xfa\x51\xaf\x0a\x82\x45\xf6" "\x47\x8d\x5d\x0c\x5c\x1b\x94\x1c\x2a\x63\x4d\xee\xdd\x5c\x90\x9d\xc1\x0c" "\x6e\xae\x9a\x0e\x3a\x7b\xaa\xf7\x9b\x29\x7d\xae\x43\xd4\x23\xf6\x26\xa6" "\x8d\x08\x1d\x1e\x76\xd0\xb5\xc9\x9b\xb1\xd3\xd7\x90\x4e\x0d\x7f\x2d\x52" "\x0c\xba\x5c\x00\xdd\x61\xec\xaa\x0b\xd9\x8e\x08\x71\xdc\xeb\xfc\xa7\x2d" "\xb5\x5c\x1a\x19\x83\x4a\x7e\xe2\x52\xf5\x2f\x04\xb0\x53\xe1\x70\xd8\x88" "\x6a\xd0\xab\xa2\x83\xe6\x74\x87\xe3\xe4\xdf\xa6\xc2\xbf\x57\x22\xe9\xc9" "\x97\x0d\x7b\xc0\x47\xf6\xec\xf8\xeb\xa0\x3c\x95\x6e\x4d\x54\xbf\x53\x90" "\xf9\x75\x44\x21\xf0\xec\xb0\xbc\xd0\x56\x74\x6c\xcb\xfe\xd0\xdf\x85\xf8" "\x85\x9a\xc5\x59\x4a\x15\xac\x8a\x25\x22\x99\x90\x2e\x09\x83\x49\x84\xa6" "\x9d\xdf\x5e\xb2\x1d\x04\x9d\xf7\x42\xd9\xc5\x61\x62\x43\xd2\xfc\x1d\x79" "\x44\x8d\xf8\x25\xf1\x18\xdc\x12\xec\x1b\xc3\x73\xb3\xfc\x5b\x07\x89\x8a" "\xa9\x32\x76\x65\x15\x13\x32\x3f\x0f\xc9\x64\xec\x79\xdf\xb0\x27\xd1\xef" "\x22\x8f\xf3\xd7\x81\x10\xfc\xee\x2f\xe0\xfa\x05\x54\x15\xbe\x2a\xa4\x3c" "\xff\x50\xad\xc1\xa2\x2b\xb2\x76\xd7\xd4\x30\x4b\xad\x82\xff\xe1\xcf\xe8" "\x1f\xd1\x88\x35\x96\xc2\xe5\x58\xd4\x78\x96\x1e\xf1\x28\x8b\xa5\x31\xa0" "\x22\xf7\x7d\xee\x1c\x2a\x4a\x9d\x71\xfc\x0f\x4e\xa6\xe6\xf0\xd6\xb6\xf8" "\x75\x1c\x21\xe5\xaa\x0a\x93\x41\x38\x04\x52\xc5\x3d\x31\x1d\xb2\x79\xaa" "\xec\x50\x4f\xe9\x6a\x0b\x5b\x1c\x2d\x74\xfd\x47\x26\xd1\x78\xf4\x0d\xce" "\x38\x79\x5a\xfd\x5c\x1a\x15\x2b\x4f\x08\xc4\x00\xa3\xbe\xca\x07\x17\x59" "\x51\x47\x11\xae\xb2\x7a\x70\x48\xe8\xb6\xf9\xe0\x3c\x67\x59\xdf\x9d\x19" "\x53\x8a\x00\x12\xa1\x63\x31\x84\xf8\xe5\x71\x3c\xf4\x44\xc3\x9c\x4e\xba" "\xa0\xf5\xc4\x04\xb8\x72\x17\x3c\xc6\xa7\xe4\x93\xc5\xe9\xfa\xe2\x92\x18" "\xc7\x3c\x23\xe5\x3d\x20\x29\x85\x8a\x21\xaf\x4d\x23\x29\x87\x22\x78\xb4" "\xad\x95\xee\x9c\xf9\x1c\xee\x37\x39\x87\xd8\xa9\x6c\x57\xb4\x88\x96\x77" "\x2a\xc0\x13\xae\x5b\xc4\x83\xd7\x87\x12\x8a\xb3\x4a\xd1\x5a\x58\xe6\xde" "\xea\x4c\x4d\x2b\xe7\x72\x3b\x91\x84\xb2\xb1\x09\x64\x80\x0b\x26\xbf\x5c" "\x4f\x92\x1e\xa6\x93\x85\x0e\xef\x8e\x31\xdd\xcc\xa3\x00\x7b\x78\x1e\xbb" "\x33\xc2\x84\x16\xe1\xdb\x2a\x85\x8d\x12\xd4\xf8\xe7\x71\xb1\x1c\x09\x9d" "\x94\xf7\x26\x44\x28\x41\xbe\x2b\x75\x9f\xf0\xe3\xa1\x00\x77\xa7\x10\xfb" "\xd1\xad\x55\x64\x83\xfc\x24\x63\x8a\x2e\x3e\x3a\xd7\x3e\xb0\xc8\xfb\xbc" "\x88\x35\xaa\xb0\x82\xcb\xec\x71\x04\x05\xa2\x46\x46\xda\x4a\xe9\xa2\xd6" "\xf3\x75\xd6\x23\xb1\x62\x62\xa5\x3b\x6b\x96\x62\x31\xd1\x1a\xda\xc9\xd2" "\xe2\x53\x87\xb7\x43\x3f\x6f\xb7\xa2\xd3\x11\x63\x2b\x4b\xc6\x8e\x6e\x94" "\x76\xfa\x30\xc8\xfe\xed\xf7\xae\xca\x20\xae\x95\xfe\x0b\x8e\x01\xca\x27" "\x22\xac\x76\x7c\xab\x5e\x9c\x90\xd7\x00\xe5\xa9\xc2\x68\x8e\xd6\x76\x94" "\x5a\x48\x11\xee\xb4\x7e\xc1\xe5\x38\x54\x7a\x1e\x8b\xff\x45\x12\x62\x3a" "\x6d\x04\x84\x3b\xa7\x98\xdc\x48\xc0\x25\xbb\xf3\xf9\xf1\x4e\x21\xea\xd8" "\x43\x7e\xc3\xd2\x16\xb2\xee\xaf\xfc\x14\x82\x32\x4f\x65\xa9\x3e\x43\x0a" "\x6c\xf7\x96\xff\x8b\x1d\xa0\xa9\x6f\xd0\xa7\x12\x0f\x43\x79\x18\xf9\x37" "\x6e\x0b\xff\x0e\xa4\xf3\x54\x1d\x84\xdb\xf9\x70\xdc\x21\xc1\xc6\x91\xa1" "\x4f\xd2\xd7\xd6\xed\x89\xc1\x55\xbf\x8f\x51\xd8\x43\xab\x7e\xa8\xa2\xfb" "\x13\x6f\x19\x1f\xe8\x93\x13\x5f\x83\xde\xcf\x13\x2a\x62\x67\x68\x5a\xc5" "\x8d\xca\x46\x58\xe4\x1d\xa6\x10\xe5\xae\xcf\x11\xb9\x71\xd7\x46\x23\xcf" "\x20\xa7\x95\xd6\xd1\xec\xa6\x8b\x85\x91\x28\x92\x19\x34\x71\x99\x26\x68" "\xbf\xec\x0e\xbe\xc9\x18\xd8\x36\xf8\x7f\x6a\x14\xb9\xe7\x6d\x4d\xa4\xc6" "\xdb\x2e\xfc\x97\xfe\x0f\x9c\xfc\xab\x9d\x99\xd5\xf4\xc4\xd6\x39\xb1\xcb" "\xf9\x9f\xc4\x22\x56\xd1\x28\x06\x78\x21\xd0\xdf\xa8\x96\xb3\xde\x92\xbc" "\x05\x7b\x48\xb9\x27\xb8\x03\xf1\xc1\x6e\x98\x71\xbc\x30\x34\xb4\x81\x5d" "\x50\x53\xec\x4a\x72\xc7\xe7\xf0\x15\x83\x53\xfc\xc0\xd0\x8c\x7c\xfa\xab" "\x2b\x15\xc5\x94\xa8\x86\xca\x51\x45\x8d\x66\x8d\xf9\x5b\xc6\xe3\x4e\x39" "\xe1\x09\xd5\x93\x4d\x63\xb3\xf1\xaf\xde\x98\xb2\xfe\x66\x6e\xdb\xe8\xb0" "\x1d\xbe\x56\x9a\x79\x81\x83\xcd\x69\x54\x3c\xce\xf3\xf4\x6c\x54\xee\xaa" "\x3c\xff\x03\x93\x87\x87\xd3\xb9\x70\xb8\xb6\x14\x6e\xd4\x7a\x60\x13\x5c" "\xb8\xb4\x52\x55\xad\x90\xe0\xc7\x85\xfa\x89\x0d\xea\xfa\x9c\x10\x56\x1a" "\x7b\x2a\xbb\x66\xf0\x70\x4b\x99\x37\x18\xba\xd3\x96\x99\x66\xa1\x26\x79" "\x39\xa9\xde\x15\x7a\xbc\x69\xb3\x72\xbb\x37\x51\xa8\x18\x14\x66\x90\xbc" "\xc8\xcb\x81\x9d\x91\xc9\x6d\x0c\xbd\x9a\x82\xfc\x93\x7c\xa9\x18\xff\x60" "\x85\x48\xfc\xc7\x52\x1f\x01\x51\x74\x5a\x98\x7b\x25\xfa\xd2\xcc\x20\x32" "\x0b\xa6\xa6\xa7\xb9\x1f\x8a\x1b\xbd\x00\xe3\x6b\x70\x12\xdf\x66\x60\x58" "\x0b\x61\xf9\x44\x9f\xbf\xc7\x2d\x99\xe4\x5d\xb8\xdc\xb9\xa6\xd8\x8d\x00" "\xd3\xb2\xb6\x69\x60\xd9\x64\xa2\x0f\x18\x75\xc9\x59\xcc\x97\x78\xda\xb8" "\x15\xdc\x51\x86\xb1\x99\x1b\x3e\x42\xda\x23\x81\xbf\x64\xd7\xce\xdb\xdb" "\x20\x51\xe8\x7b\x1b\x39\x9c\xc8\xb8\x7a\x98\xd1\x6a\x69\x1e\x12\x95\xb7" "\xb0\xa6\xc0\xdb\x82\x2b\x85\x4a\x05\x97\xb9\x11\x40\xdb\x32\x6b\x80\x0f" "\x47\xe7\x1c\x2f\x1a\x67\xdb\xee\x60\x14\x3b\xe7\x63\x5a\x03\xd0\x7f\x77" "\x46\xb0\xdf\x1c\x75\x6c\xf5\x7e\x34\xce\xcc\x78\xb0\x7a\x05\x86\x1d\xb2" "\x1a\x58\x67\xbf\x92\x68\xfe\xa4\xcd\x49\x5b\xd7\xe9\xb3\xc8\x24\xbc\x6b" "\x42\xe6\x58\x07\x20\xb1\x28\x86\x93\x61\xba\x3b\xe0\xd9\xc0\xe4\x50\x25" "\xbf\xb0\xec\x8f\xb5\x38\xfe\x70\xf8\x6f\x9e\xfb\x8e\xe3\x55\xfb\xe9\x51" "\x8e\x17\x00\xb4\x7f\x36\x84\x7b\x6f\x90\xab\x99\x53\x28\xd7\x1b\xd5\x0d" "\x39\x03\xc1\xfa\xce\x99\x09\x73\xad\xb7\xd5\x5c\x93\x7b\xd0\x6c\xeb\x2a" "\x18\x7e\x6b\xc5\xdf\x04\xd0\xe0\x2e\x16\x4a\x00\xa5\xef\xf4\x29\x7c\x34" "\x36\x9f\x0a\xf5\x18\xa4\xd9\x62\x62\x7b\x69\x6e\x92\x07\x86\x25\x08\x77" "\xbf\x75\x50\x8f\x82\xa0\x18\x96\x40\x4c\xe2\x4f\xa2\x32\x3e\x47\xe8\xcc" "\xef\x22\xad\xcb\xf1\x4b\x1d\xe2\x6b\x46\xd6\x3b\xdf\x70\x28\xf5\xd9\x8f" "\x6b\xa0\x60\x57\x91\x85\x7d\x8a\x3c\xcb\x0b\x69\xdd\x03\x94\x9f\x25\x7c" "\x95\x80\xc8\xfa\x8a\x20\x98\x6a\x0a\xf2\x84\x66\xaa\x43\x29\x54\x3b\xa8" "\xba\x82\x67\xa5\xe2\x10\x0d\x35\x6e\x0d\x62\xdf\xe2\x58\xbe\x78\x28\xe8" "\x2a\x6e\xee\xa8\x25\x2a\xf0\x3c\x12\xf2\x98\xa9\x5e\x94\x3f\x3c\x73\x31" "\x7a\x1d\x0c\xf2\x85\xb5\x05\x0e\x2b\xb1\x28\x12\xe0\x34\x86\x28\x7d\x5a" "\xa2\xa7\x7e\xbe\xd2\xaf\xfc\x1d\x02\xa8\x5d\xc6\x8b\xd2\xf4\xf8\x33\x2c" "\x3e\x21\xa3\xdb\xc6\xff\x31\x4e\x98\x32\x58\x4f\xa7\xac\x2b\xd6\xfd\x3b" "\xeb\xa3\x5c\x57\x6a\xac\x03\xe0\x81\xb4\x02\x8e\x0c\xe6\x50\xa5\x6d\x69" "\x6b\x1b\x77\x04\x3d\x52\x1d\xaf\x94\xc4\x54\x46\xa8\x7f\x05\x63\x77\xa2" "\x5f\x9d\x42\x3e\xf5\x98\x66\x7d\x9d\xf3\x57\x58\x40\xc9\x57\xa9\xc3\x50" "\x9d\x58\xda\xa2\x58\xfe\xc8\xc2\x8d\x75\xc8\x9c\x62\x12\x5c\x97\x0e\x58" "\xf4\xbe\xe4\x89\x37\x22\xd9\x4d\xd8\x4a\x41\x42\x72\x03\xb5\xf7\x44\xa1" "\xba\x5c\xfc\xbc\x99\x93\x03\x02\x9f\x76\x72\xb8\x96\xe5\x99\x4d\x6d\x77" "\x95\x53\x11\xf7\x8d\x0b\x63\x18\x3a\x7e\x37\x67\xc6\x1b\xf8\x81\x48\xb8" "\x03\x52\x80\x62\xde\xe4\x1d\x9a\x63\x31\x48\xfb\x03\x9f\x06\x61\x0e\xb9" "\xbe\x46\x9c\x28\x3b\xe2\x54\x24\x02\x26\xa3\x3b\x2c\x90\xb2\xda\xca\xe6" "\xbe\x27\xce\x0a\xda\x61\x75\xaf\x1b\x6b\x37\x2b\x25\x90\x0c\x51\xeb\xe2" "\x73\xc6\xc4\x77\x83\x4a\x11\x52\x23\xec\x9b\xce\x65\x6d\x40\xdc\x9d\x5d" "\x38\xef\x16\xc3\x52\x4b\x61\x02\xe4\x96\x14\xa0\xf3\x6b\x5c\x15\xfe\xa0" "\x15\xd7\xd3\x89\x35\x81\xbc\xde\x82\x9c\x86\x06\x69\x3e\xee\x32\xbb\x37" "\xc1\x98\x98\xe5\x82\xa1\x40\x91\x14\xd3\xeb\xde\x84\x7d\x17\x74\x4d\x10" "\x31\xcf\xf5\xf7\x9b\x3c\xad\x31\x69\x4f\x60\x2e\xe9\x08\xf5\x67\x88\xad" "\x01\x83\x85\xf0\x3b\x15\x69\xaa\x87\x36\x4c\x02\xc4\x4a\x76\x28\x15\x6a" "\x0c\x48\x58\xcb\x30\xb2\xeb\xa1\xad\x21\x80\x13\x3c\x9a\xf7\x88\x9c\x7a" "\xcf\x6c\x21\x94\x6b\x0f\xb7\xa5\x12\x6c\x04\xbb\xa6\x71\xb0\xa8\x89\xe9" "\x11\xc1\xf4\x6a\xa2\x36\x7a\x41\xb1\x91\xe6\x4a\xe1\x0a\x82\xba\x19\x7c" "\x48\x36\xde\x88\x1f\x9f\xc5\x17\xfc\x9a\x32\x28\x6f\x00\xf3\x5e\x92\x6a" "\x30\x42\x12\xb2\xcc\x9b\xb7\x28\x77\x58\xfe\x88\xc7\x01\xd0\x96\x99\x18" "\x84\xf2\xf3\x05\xe4\xbd\x90\xe0\x33\x3a\x33\x0f\x8b\x71\x6a\x87\x15\xc7" "\x1a\x51\x2c\xb0\x09\x55\xbf\x71\x60\xed\x06\x4e\x5c\x60\x7a\x6f\x64\xe6" "\x65\xde\x9a\xed\x5c\xe7\x29\xe0\xd1\x48\x4e\x7e\x5b\xd9\xdb\x36\x86\xca" "\x7e\xa4\x49\x21\xa2\x37\x79\x6c\x68\xfc\xd4\x23\xe2\xf6\xa0\x76\x20\x8f" "\xf2\x04\x79\xb4\x12\xa6\xc7\x25\x7d\x4f\x99\x0c\xb9\x8b\xf0\x13\x39\x31" "\x28\xba\x3f\xa3\x36\xec\xff\x32\xbc\x89\xf8\xbd\x26\x80\x41\x53\xc2\xed" "\x9b\x7c\x2a\x51\xa2\xde\xf3\x13\x84\x51\x7e\xa7\x19\x1c\x86\x31\x38\x78" "\x53\x53\xa2\xcc\x8b\x1d\x4b\x2d\xe5\x69\xe5\x50\x7c\xa6\x60\xeb\x22\xfa" "\x85\x5a\x45\x9f\xdd\x57\xd6\x7e\x95\x6b\xaa\x91\x38\x8b\x9c\xd8\xb1\x1b" "\x92\x78\xea\x14\x75\x1d\x9a\x9a\xaa\xa9\xe6\xfa\x67\xc6\x20\xd0\x3d\xfb" "\xde\x1a\x79\x38\xf9\x80\xdd\x10\xe7\x71\xc9\x2a\x7b\x22\xbb\xbb\x59\xc9" "\x37\x98\x98\xd2\x15\x7e\x5a\xf7\xe1\xab\x9e\x46\x99\x42\xdc\x49\x4c\x77" "\xa7\xba\x38\xaa\xf3\x4d\xba\x49\xe2\xa5\x17\xaf\xcc\xd1\xee\x3d\x62\xed" "\x67\x1d\x5d\xca\xeb\xe1\x16\x2c\x85\x16\xbd\x69\x03\x9d\x44\xe7\x05\x31" "\xb1\xb0\x19\xc4\x07\x66\xf9\x75\x1b\xbc\x8b\xee\xfb\x5d\x25\x0a\x3f\xc5" "\x2e\x00\x96\x21\xe6\x4a\x5e\x25\x86\xe8\x8a\xf6\x8b\xd0\x68\x66\x13\xc2" "\x86\xdd\x8a\xa8\xc7\xf4\x4c\x6c\x67\x1b\x09\x6e\x46\xfa\x0d\x41\xea\xb2" "\x91\x3e\x33\x3d\x29\xdc\x30\xcf\xea\xdf\xd8\x15\xea\x08\xdb\x58\x96\x75" "\xca\x89\xcd\x1d\x1a\xbb\xda\x38\x1c\x12\xba\xd6\x74\x6a\x77\xf4\xee\x2e" "\x81\x83\xa7\x2c\x82\xb1\x1b\xd8\xc1\xc0\xa7\xc5\x08\x9d\x5e\x39\xee\xcf" "\xf8\x56\xcb\x8b\xec\x87\x9f\x3a\x8c\x06\x93\xca\x42\xb7\x03\xc2\xa9\x7c" "\x36\x17\x12\x9d\xa2\xce\x8d\xce\x6e\xa5\xed\x4f\x38\x3c\xce\xe7\x27\x61" "\x93\xae\x27\x6e\xbe\xd9\xf7\xb1\xad\x58\x7e\xd1\x4c\x59\x16\x40\x1e\xe3" "\x35\x33\x4d\xa8\x47\xe1\x6e\x43\xc5\x16\x5b\x33\xc8\xe2\x81\x4e\x4e\xef" "\x23\x12\x1e\x76\x0f\xff\xb4\x68\x88\xf6\xaf\xa8\x49\xfc\xd2\x3a\x50\x56" "\x52\xfa\xd9\x60\xb7\x00\x3e\x63\xbe\xcc\x42\xa2\xa9\x8b\xc3\x13\x07\x3d" "\x5c\x99\x5b\x4c\x6c\x84\xb0\x99\xfb\x72\x6b\x2f\xbc\xd0\x16\x8e\x39\x77" "\x86\xfa\xa9\x11\x0a\x99\xd9\xdd\x55\xb0\xb0\x6b\x53\x18\x32\x51\xc2\x2a" "\x53\xcb\x97\xee\x53\xaa\xcd\xb0\x2c\x8c\x55\x9b\x81\xc9\xb2\x5b\x69\x74" "\x99\xf0\xd2\x5f\xd1\x99\xd8\x44\x01\xf1\xfd\xb8\x37\x5b\x5b\x1d\xf2\x91" "\x1a\xf6\x6b\x40\x6c\x9a\xdc\x8c\xbb\x0f\xcd\x0f\xd2\x9c\xb7\x80\x3b\x0a" "\x9c\x8d\x03\x38\x6f\x70\xf3\xa8\xff\xcf\x27\x80\x98\x51\xa5\x24\x82\x2d" "\xe1\xaf\xca\x8d\xd8\x65\x66\x98\xdd\x23\x2e\x7d\x49\x08\x58\xfc\xbb\xa7" "\xf4\x4d\x9d\x42\xe2\xcc\xa6\xe2\xbd\xaa\xce\xb6\x2a\x3f\xc9\x67\x70\x5b" "\xb1\x7e\x0f\xb4\xbe\xdb\x3c\x0e\x22\x86\x60\xd6\x88\xc1\x17\x34\x4d\x68" "\x8f\xad\x41\x58\x44\xd2\xda\x49\xe8\x1a\xa9\xf0\xec\xf9\xa9\xdd\xa4\x60" "\xa9\xd3\x5d\x07\x5f\x61\x1b\xfe\xa8\x68\x05\xf5\x70\x6c\xf3\x81\x5e\x70" "\x1f\xa0\xce\xfc\xab\xfc\x91\xa1\xd0\x98\x27\xcd\xe7\x70\xd5\xc6\x0e\x29" "\xe6\xe5\x09\xb3\x83\xe7\xb5\x00\x6d\x5f\x56\xfe\x48\x83\xed\x07\x86\xb8" "\x3b\x4e\x21\xe0\x9c\x16\x34\x35\x80\xf5\xbc\x4b\xe4\x4a\x24\x74\x4e\x74" "\x18\x43\x69\xd6\x4b\x57\x07\xd0\x1d\xc5\x95\xf7\x44\x95\xf5\x4b\x58\x4e" "\x31\x52\x6a\x42\x03\x41\x9d\xe8\x2a\x10\x85\x1e\x6d\xf0\x89\x02\x70\xf3" "\xe5\x0f\xf6\x1b\x65\x53\xa2\x42\x24\x76\xb5\x07\xcb\x43\xe3\x3d\x2d\xa8" "\x6e\x5c\xc5\xfd\x75\x7e\xe9\xbb\x70\xed\x80\x69\x87\x33\xb6\xfa\x02\xac" "\xdc\x47\x84\x80\x62\x9c\x89\x4c\xbc\x93\xff\x5a\xba\x34\x51\xcf\x2d\x70" "\x9b\x4c\x89\xfc\xa2\x09\x86\x05\xdc\xb8\xd6\x08\x87\x75\xc9\x0b\x47\xab" "\xcd\xf6\x53\x7f\x33\x1b\xe8\x3b\x42\xe1\xe6\x61\xbc\x8e\x9e\xf6\x1c\x90" "\x06\x99\x59\x66\xc5\x87\xf7\xdc\x03\xaa\x7f\xe2\x54\xe0\x2d\x63\xcd\x60" "\x63\xb5\x1c\x0f\x0a\x28\x31\xde\x2a\xcc\xed\xfc\x6f\xfc\xb6\xc1\x60\xaf" "\xb1\xcf\x80\x37\x67\x9a\xaa\x49\xac\xa4\x75\x36\x48\xe7\xb4\x12\x6a\xde" "\x29\x9a\xd4\xf6\xc9\x4a\xc7\x8a\xcd\xe7\x8b\xd3\xcc\x3b\x2e\x1f\x36\xd2" "\xb9\xd5\x2f\x94\xb2\x35\x1d\x49\x6a\xf7\x57\x3e\xdd\xd0\x7e\x3e\x8a\x0e" "\x3d\x38\xa9\x3c\xb3\x89\xd3\x1f\x67\x09\x95\xbe\xc6\xa9\x50\x8e\x9d\x58" "\x77\x2a\x02\xa7\xa5\xb0\x79\x8b\x84\x14\x39\x5b\x2e\x4f\x55\x14\x0f\xda" "\x8f\x26\xf2\xc7\x54\xb5\xab\xdf\xcd\x38\xf7\x29\x72\xf3\x62\xf7\xe8\xc7" "\x42\xdb\x43\x87\xe9\x57\x25\x83\x94\xd6\xb8\x45\x26\x28\xa5\x6c\x04\xb4" "\x25\x50\x00\xde\xaa\xe9\x13\x4f\x9a\xb4\x28\x48\xf4\xbb\x52\xbb\x99\xd1" "\xe3\xde\x36\xaa\x26\x51\x4e\x2d\x36\x24\x90\x73\x65\xd9\x1a\xea\xb9\xf2" "\x3c\xe1\x11\xf7\x52\x74\xa6\xbe\x7a\xbc\xf5\xc0\x43\xd3\x63\x61\x93\x6d" "\xfa\x40\x0f\x9b\x13\xc7\x23\x0c\x28\x4c\x60\xc3\xd1\x5c\xf4\x16\x81\xbd" "\x54\xdd\x0a\x97\xbf\xf4\x2b\x5e\xd9\x9c\x93\x16\x30\x5c\x02\x30\x86\xd4" "\xa4\x20\x88\x23\xa6\x04\xea\x86\x33\x1b\x8d\x04\x0c\x39\x2d\x54\x7d\xf2" "\xa0\xe9\x41\x32\x25\xaf\x02\x46\x51\xaa\x38\x6c\x1f\x19\xd3\x27\x3f\xfe" "\xfd\xa6\xa4\x64\xa6\x19\xc7\x41\x83\x8c\xfb\x1c\x5d\x08\xf2\xda\x3d\x22" "\x5c\x3d\x3c\x6d\xde\x4e\x47\x3a\x36\x62\xc9\xe7\xaf\x11\xc3\x4b\x20\x23" "\x82\x5d\x87\x28\x69\xfc\x77\x62\x9c\x6c\xaf\x4f\x14\x6c\x82\x96\xc8\x07" "\x85\x9d\x6b\x96\xf9\x5e\x11\xfc\x3e\x76\x45\x26\x9e\x4b\x8b\x7a\x12\x60" "\x0a\x30\xf1\xfa\xe3\x77\xf2\xde\xc8\x9c\x86\xd7\x64\x46\x3d\xd6\x5d\x0f" "\x6a\xd9\x66\x99\xb0\x63\x7e\x2e\x72\x90\xc0\xd2\x7c\xc8\x09\x6f\xa7\x9a" "\xe6\xe9\x24\x78\x40\x9c\xb7\x40\xae\x55\xbc\x72\x98\xa1\xfd\xd0\xfa\xc1" "\x58\x04\xc6\xeb\x43\x48\x7d\x59\xc4\x19\x04\xf2\x47\xd7\xe6\xf5\x25\x50" "\x68\x95\x56\xf5\xe8\x28\xac\x91\x59\xe9\x15\xa9\xdd\x0f\x2e\xfd\x6e\xd5" "\xa2\x4e\xd1\x51\x3e\x8d\xa9\x6e\xd4\x3c\x35\xbd\xdc\xcc\xc1\x87\xba\xb6" "\x00\xee\x27\xbc\xd7\xce\x43\x36\xbf\xcb\x33\xc8\x30\x0e\x04\xad\xa9\xae" "\xb9\x9b\x3e\x18\x05\xa4\x92\x57\x5d\x19\x58\x80\x9b\x91\x16\x3c\x9e\xf7" "\x57\x1e\xa6\x7e\xee\x8f\xb5\x2d\xe5\xb5\x60\x49\x90\x78\x26\x26\x78\x67" "\x84\x29\x16\xc9\x96\x3e\x2a\x72\x47\xce\xc3\x61\xc3\xfb\x60\xd1\x37\xa2" "\xd2\x67\xad\x11\xd6\xc1\x9b\xad\xe2\xb8\x41\x53\x56\x14\xb3\xa3\x9a\x36" "\xc4\xc8\x4b\xb9\x3a\xa3\xbf\x61\x4e\x18\x11\xb1\xfd\x96\x69\xe6\x04\x94" "\xe4\xc4\x27\x39\xf6\x13\x75\x65\xc3\x11\x45\x7d\x0d\x96\xdd\x02\x91\xf6" "\x66\x08\x5f\xc5\x3f\x6d\x8a\x26\x8a\x15\x59\xb8\xfd\xb6\xe9\x6e\xd3\x48" "\x1e\xc0\xe3\x88\x48\xeb\x78\x4e\x3e\x3e\x60\x0c\xd6\xa8\xdb\xbb\x5a\x96" "\xa3\x43\x3f\x35\xfc\xdf\xf6\x53\x74\xa9\x9f\x29\x4c\x37\xa6\xe5\x7e\xa4" "\x70\x08\x58\x16\x7e\xdb\xcf\xf8\x4a\x33\x40\xdc\x6e\xea\x6c\x51\xbf\xd2" "\xb9\x6e\x25\xb3\xd0\xaf\x4b\x0d\xd7\xe6\x60\xe5\x28\x75\x47\xc8\x36\xb0" "\x06\x18\x0b\xc2\xfb\x1d\x29\x21\x18\xfb\x97\x4e\x27\x42\x2b\xf0\x13\x99" "\x7e\xf8\x6f\xcf\x9f\xeb\xb3\xaf\xd1\xfd\x20\xf6\x41\x8d\xd3\xe0\xb7\xd4" "\xad\xe7\x61\x27\x62\x0b\xac\x6c\xdc\xfe\x83\xe3\x17\xc4\xe3\xcf\x93\x16" "\x3d\x65\x96\xcd\x26\x1f\xe6\x4a\xc1\xa5\x2e\xa8\x92\x76\xa4\x73\x96\xed" "\x05\xcf\x32\x4d\x71\xf6\x5d\x2c\xcc\x38\xc3\x61\xcd\x7d\xd0\x9c\x70\xc0" "\x26\xb2\x47\xf2\xd2\xcf\xc7\xe2\x4a\x07\xe8\x7e\x86\x44\x28\xc7\x23\x4c" "\x78\xc7\x95\xba\x4d\xa7\x3c\xfc\x18\x45\x5c\x01\xc1\x00\x42\xd4\xf3\xb3" "\x46\xdd\x61\x4d\x23\xa2\xd2\x1a\x95\xff\x0f\x76\x26\x3c\x93\x65\xb0\xc6" "\x6b\xbe\x42\xec\x15\xac\x7d\x0c\xff\xb3\x77\xd0\xd6\x65\x8e\x07\x2d\x29" "\xdb\x30\xf3\xbd\x61\xbb\x4f\x27\x70\x77\x96\x49\xe5\xea\x9e\x96\xba\x83" "\x06\x7c\x7d\x9a\x23\xec\xc9\x4c\xa7\xb7\x7a\x07\x07\xfa\xa1\x3e\xe8\x0f" "\x1d\xd5\x8e\x6f\x6a\x1b\xf4\x67\x05\x4b\x75\x7d\x3d\x5d\xb3\x7a\x0d\x82" "\xd4\x22\xd7\x27\xd0\x3a\x51\x5a\xe7\xe9\x2e\xb2\xcb\xfc\x67\x89\xa5\x85" "\x33\xc6\xdf\xa6\x6b\x22\xfe\x2d\xed\x93\x44\x6a\x57\xc3\x39\xf5\x13\xd6" "\x4e\x37\x35\x55\xda\xd4\x03\xe5\x1c\xcd\xa3\xa0\xee\xe6\x83\x93\x0b\x40" "\x26\x47\xac\x44\x8e\x51\xe9\x99\x68\xb5\x9b\x2b\x5c\xa2\x7f\x19\x3c\x0f" "\x67\x06\x77\x47\x94\xf6\xa7\x03\x32\xf0\x85\x2e\x0c\x8a\xd0\xa7\x26\x83" "\x43\x35\x02\x20\x77\x22\xf9\xdf\xd4\xb6\xdc\x84\x98\x6a\xcd\x3c\x3c\x23" "\x6b\x4b\x57\xeb\xba\x52\x3f\xbf\xc1\xe3\x1a\xbc\x67\x86\xac\x59\x61\xe7" "\xbc\x13\x47\xc9\xe9\x37\x40\xb9\xce\x43\x21\xf2\x89\x2b\xf7\x24\x73\xb9" "\xc4\x1c\x52\x80\x9b\x5d\x9b\xb0\xde\xf5\xdf\xb8\xdc\x8b\xcc\x58\x95\x66" "\x55\xcc\xbb\x4c\x04\xca\x77\x2a\x73\xfe\x84\xd2\xfc\x5c\xef\xe9\xbc\x19" "\xa2\x36\xea\x06\xa8\x95\x15\x53\xb1\xd7\xc8\x3e\xae\xc8\x11\x64\x54\x99" "\x0a\x43\x1d\xc9\xd7\x9a\x6c\xb1\x3e\x94\x49\x9d\xab\xce\xee\x7c\xe4\x7c" "\x96\xe2\x56\xc0\xe5\x53\x07\xf2\x34\x75\x4d\xe8\xdf\x1a\x73\xfc\xb3\x35" "\xd5\xe5\xf6\x4d\x4b\x40\xfb\xe6\xe8\x2a\x1d\xde\x59\x4c\x6e\xb5\x0b\x78" "\x00\x84\xbd\xff\x8e\xd0\xc2\xc1\x30\xa7\x0b\xa0\x81\x39\x45\x89\x17\xed" "\x1d\xcc\xe3\x23\x3b\xe9\xd8\xcd\xd0\xbb", 4096); struct csum_inet csum_1; csum_inet_init(&csum_1); csum_inet_update(&csum_1, (const uint8_t*)0x200000000d62, 16); csum_inet_update(&csum_1, (const uint8_t*)0x200000000d72, 16); uint32_t csum_1_chunk_2 = 0x18100000; csum_inet_update(&csum_1, (const uint8_t*)&csum_1_chunk_2, 4); uint32_t csum_1_chunk_3 = 0x11000000; csum_inet_update(&csum_1, (const uint8_t*)&csum_1_chunk_3, 4); csum_inet_update(&csum_1, (const uint8_t*)0x200000000e6a, 4120); *(uint16_t*)0x200000000e70 = csum_inet_digest(&csum_1); syscall(__NR_write, /*fd=*/r[0], /*buf=*/0x200000000d40ul, /*count=*/0x1142ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; do_sandbox_none(); return 0; }