// 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 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; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } 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, 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 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_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_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, 2, &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) { } } #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, 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; #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, 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_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"); } } #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, 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", 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_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_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 mount_cgroups(const char* dir, const char** controllers, int count) { if (mkdir(dir, 0777)) { return; } char enabled[128] = {0}; int i = 0; for (; i < count; i++) { if (mount("none", dir, "cgroup", 0, controllers[i])) { continue; } umount(dir); strcat(enabled, ","); strcat(enabled, controllers[i]); } if (enabled[0] == 0) { if (rmdir(dir) && errno != EBUSY) exit(1); return; } if (mount("none", dir, "cgroup", 0, enabled + 1)) { if (rmdir(dir) && errno != EBUSY) exit(1); } if (chmod(dir, 0777)) { } } static void mount_cgroups2(const char** controllers, int count) { if (mkdir("/syzcgroup/unified", 0777)) { return; } if (mount("none", "/syzcgroup/unified", "cgroup2", 0, NULL)) { if (rmdir("/syzcgroup/unified") && errno != EBUSY) exit(1); return; } if (chmod("/syzcgroup/unified", 0777)) { } int control = open("/syzcgroup/unified/cgroup.subtree_control", O_WRONLY); if (control == -1) return; int i; for (i = 0; i < count; i++) if (write(control, controllers[i], strlen(controllers[i])) < 0) { } close(control); } static void setup_cgroups() { const char* unified_controllers[] = {"+cpu", "+io", "+pids"}; const char* net_controllers[] = {"net", "net_prio", "devices", "blkio", "freezer"}; const char* cpu_controllers[] = {"cpuset", "cpuacct", "hugetlb", "rlimit", "memory"}; if (mkdir("/syzcgroup", 0777)) { return; } mount_cgroups2(unified_controllers, sizeof(unified_controllers) / sizeof(unified_controllers[0])); mount_cgroups("/syzcgroup/net", net_controllers, sizeof(net_controllers) / sizeof(net_controllers[0])); mount_cgroups("/syzcgroup/cpu", cpu_controllers, sizeof(cpu_controllers) / sizeof(cpu_controllers[0])); write_file("/syzcgroup/cpu/cgroup.clone_children", "1"); write_file("/syzcgroup/cpu/cpuset.memory_pressure_enabled", "1"); } static void setup_cgroups_loop() { int pid = getpid(); char file[128]; char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/pids.max", cgroupdir); write_file(file, "32"); snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(file, sizeof(file), "%s/memory.soft_limit_in_bytes", cgroupdir); write_file(file, "%d", 299 << 20); snprintf(file, sizeof(file), "%s/memory.limit_in_bytes", cgroupdir); write_file(file, "%d", 300 << 20); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); } static void setup_cgroups_test() { char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (symlink(cgroupdir, "./cgroup")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.cpu")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.net")) { } } static void initialize_cgroups() { if (mkdir("./syz-tmp/newroot/syzcgroup", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/unified", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/cpu", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/net", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/syzcgroup/unified", "./syz-tmp/newroot/syzcgroup/unified", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/cpu", "./syz-tmp/newroot/syzcgroup/cpu", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/net", "./syz-tmp/newroot/syzcgroup/net", NULL, bind_mount_flags, NULL)) { } } static void setup_common() { 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, NULL)) { } } 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 = 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 real_uid; static int real_gid; __attribute__((aligned(64 << 10))) static char sandbox_stack[1 << 20]; static int namespace_sandbox_proc(void* arg) { sandbox_common(); write_file("/proc/self/setgroups", "deny"); if (!write_file("/proc/self/uid_map", "0 %d 1\n", real_uid)) exit(1); if (!write_file("/proc/self/gid_map", "0 %d 1\n", real_gid)) exit(1); initialize_netdevices_init(); if (unshare(CLONE_NEWNET)) exit(1); write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); initialize_netdevices(); 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(NULL, "./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); initialize_cgroups(); 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_binderfs(); drop_caps(); loop(); exit(1); } static int do_sandbox_namespace(void) { setup_common(); real_uid = getuid(); real_gid = getgid(); mprotect(sandbox_stack, 4096, PROT_NONE); int pid = clone(namespace_sandbox_proc, &sandbox_stack[sizeof(sandbox_stack) - 64], CLONE_NEWUSER | CLONE_NEWPID, 0); return wait_for_loop(pid); } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; retry: while (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } 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_loop() { setup_cgroups_loop(); } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); setup_cgroups_test(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } static void setup_binfmt_misc() { if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0)) { } write_file("/proc/sys/fs/binfmt_misc/register", ":syz0:M:0:\x01::./file0:"); write_file("/proc/sys/fs/binfmt_misc/register", ":syz1:M:1:\x02::./file0:POC"); } static void setup_sysctl() { char mypid[32]; snprintf(mypid, sizeof(mypid), "%d", getpid()); struct { const char* name; const char* data; } files[] = { {"/sys/kernel/debug/x86/nmi_longest_ns", "10000000000"}, {"/proc/sys/kernel/hung_task_check_interval_secs", "20"}, {"/proc/sys/net/core/bpf_jit_kallsyms", "1"}, {"/proc/sys/net/core/bpf_jit_harden", "0"}, {"/proc/sys/kernel/kptr_restrict", "0"}, {"/proc/sys/kernel/softlockup_all_cpu_backtrace", "1"}, {"/proc/sys/fs/mount-max", "100"}, {"/proc/sys/vm/oom_dump_tasks", "0"}, {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/kernel/keys/gc_delay", "1"}, {"/proc/sys/vm/oom_kill_allocating_task", "1"}, {"/proc/sys/kernel/ctrl-alt-del", "0"}, {"/proc/sys/kernel/cad_pid", mypid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) printf("write to %s failed: %s\n", files[i].name, strerror(errno)); } } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { int i, call, thread; for (call = 0; call < 11; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { setup_loop(); int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: res = syscall(__NR_socket, /*domain=*/0x10ul, /*type=*/3ul, /*proto=*/0); if (res != -1) r[0] = res; break; case 1: *(uint64_t*)0x20000200 = 0; *(uint32_t*)0x20000208 = 0; *(uint64_t*)0x20000210 = 0x200001c0; *(uint64_t*)0x200001c0 = 0x20000000; *(uint32_t*)0x20000000 = 0x30; *(uint16_t*)0x20000004 = 0x10; *(uint16_t*)0x20000006 = 1; *(uint32_t*)0x20000008 = 0; *(uint32_t*)0x2000000c = 0; *(uint8_t*)0x20000010 = 0; *(uint8_t*)0x20000011 = 0; *(uint16_t*)0x20000012 = 0; *(uint32_t*)0x20000014 = 0; *(uint32_t*)0x20000018 = 0; *(uint32_t*)0x2000001c = 0; *(uint16_t*)0x20000020 = 8; *(uint16_t*)0x20000022 = 0x1b; *(uint32_t*)0x20000024 = 0; *(uint16_t*)0x20000028 = 8; *(uint16_t*)0x2000002a = 0x29; *(uint32_t*)0x2000002c = 0x7adaa; *(uint64_t*)0x200001c8 = 0x30; *(uint64_t*)0x20000218 = 1; *(uint64_t*)0x20000220 = 0; *(uint64_t*)0x20000228 = 0; *(uint32_t*)0x20000230 = 0; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x20000200ul, /*f=*/0ul); break; case 2: syscall(__NR_sendmmsg, /*fd=*/-1, /*mmsg=*/0ul, /*vlen=*/0ul, /*f=*/0xc001ul); break; case 3: res = syscall(__NR_socket, /*domain=*/0xaul, /*type=*/1ul, /*proto=*/0x106); if (res != -1) r[1] = res; break; case 4: *(uint16_t*)0x20000180 = 0xa; *(uint16_t*)0x20000182 = htobe16(0x4e23); *(uint32_t*)0x20000184 = htobe32(0); *(uint64_t*)0x20000188 = htobe64(0); *(uint64_t*)0x20000190 = htobe64(1); *(uint32_t*)0x20000198 = 0; syscall(__NR_bind, /*fd=*/r[1], /*addr=*/0x20000180ul, /*addrlen=*/0x1cul); break; case 5: syscall(__NR_listen, /*fd=*/r[1], /*backlog=*/0); break; case 6: res = syscall(__NR_socket, /*domain=*/0xaul, /*type=*/1ul, /*proto=*/0x106); if (res != -1) r[2] = res; break; case 7: *(uint16_t*)0x200000c0 = 0xa; *(uint16_t*)0x200000c2 = htobe16(0x4e23); *(uint32_t*)0x200000c4 = htobe32(0); *(uint64_t*)0x200000c8 = htobe64(0); *(uint64_t*)0x200000d0 = htobe64(1); *(uint32_t*)0x200000d8 = 0; syscall(__NR_connect, /*fd=*/r[2], /*addr=*/0x200000c0ul, /*addrlen=*/0x63ul); break; case 8: res = syscall(__NR_accept, /*fd=*/r[1], /*peer=*/0ul, /*peerlen=*/0ul); if (res != -1) r[3] = res; break; case 9: syscall(__NR_recvfrom, /*fd=*/r[2], /*buf=*/0x20000700ul, /*len=*/0xe75aul, /*f=*/0ul, /*addr=*/0ul, /*addrlen=*/0ul); break; case 10: *(uint64_t*)0x20001540 = 0; *(uint32_t*)0x20001548 = 0; *(uint64_t*)0x20001550 = 0x20000580; *(uint64_t*)0x20000580 = 0x20001c80; memcpy( (void*)0x20001c80, "\xe0\xa8\x98\x59\x94\xaf\x17\x67\xd5\x2b\x44\xee\x04\x12\x5a\x14\x14" "\xe3\xa5\xfa\x6e\x85\x63\x0c\xfc\xc6\xe0\xb6\xa0\xe6\xc2\x01\xd8\x76" "\xf0\xa5\x5c\x20\x65\x0a\xbc\xd1\x10\xf5\xc3\xa5\xd2\x2e\xf0\x8c\x6e" "\x01\x73\x3d\xac\x21\xc0\x2b\x29\xd4\x65\x82\x63\x72\x80\x47\x11\xdc" "\xbf\x87\x25\xc3\x21\x3d\x7c\x86\xc3\xb8\xb7\x46\x96\x56\x3c\x8a\x17" "\xf9\xe9\x36\xe2\x83\x92\x7e\xf8\x77\xef\x68\x84\xa4\xac\xdf\x36\xc6" "\x7d\xe9\xb1\x2c\x65\xfa\x7a\xfd\xd5\xfa\xaf\x19\xf9\x27\x4a\xe0\x22" "\xd9\xcb\x3b\x18\x69\x34\x49\xc6\xc7\xa4\xb6\xf8\x22\x08\x34\x44\x10" "\x24\xea\x32\x46\x0b\x81\x61\xe7\xc9\xbc\x71\x25\x3b\x90\x68\x93\x20" "\x20\x61\x1f\x41\xc8\x78\x81\xd7\x15\x63\x95\xd2\xfb\xd8\xed\x0f\x80" "\xe1\x07\xc9\x89\x46\x79\xc4\xb3\x8f\xc6\x8c\xd4\x58\x9c\x72\x39\x54" "\x67\x4c\x43\x4b\x7d\xee\xa7\x0b\xee\x84\x19\x31\xdc\xe9\xa9\x72\x38" "\x1e\x63\x28\xfb\x68\x12\x71\xd0\x7a\xb9\x6d\xb8\xab\xe3\x36\x25\xe4" "\xf0\xfa\x29\x8d\x5e\x1f\x2c\xfc\x10\x05\x4c\x93\x43\xee\xfa\x2c\x23" "\x01\x86\x41\x77\x4e\xb0\x79\xa8\x16\xf8\xbf\x4a\x0f\x45\x40\x52\x04" "\x72\x41\xce\xa6\x3b\x66\x35\xd0\x36\x61\x14\x8e\x5f\x90\xa0\x5c\xc9" "\xa8\xf4\x5d\x68\xe0\x37\x88\x48\x3c\x6b\xd9\xf4\x42\x48\xac\x03\x77" "\x0c\x02\x66\x85\x33\xd0\x67\x0d\xd7\x80\x9e\xc3\x5d\x01\xa6\x30\x8a" "\x08\xf4\x4b\x88\x3e\x37\x18\x9a\x89\x7a\x0c\x99\x4e\x2b\x60\xcf\x96" "\x4d\xc0\x62\xe7\xed\xc1\x8b\x5d\xcc\x05\x1d\x56\x81\xe9\x58\x04\x33" "\xa7\x55\x5e\xc1\xb9\x76\x12\x20\x8c\xdf\x3e\x89\xc0\xaf\xa2\x76\x5e" "\xf2\x0a\x83\x69\x8e\xdb\x47\x14\xbf\x62\x86\x51\x93\x33\x38\x1a\x1a" "\x61\x2e\xe9\xdc\xbf\xf6\xd7\x16\xae\x5e\xd4\x8b\xc4\x9a\x55\x23\x36" "\x4e\x6b\x6a\x47\xed\x3e\xe8\x4d\xb1\x48\x80\x13\xb4\xaa\x8b\xdb\x9b" "\xd5\x18\x79\x9e\x16\xc6\x1c\xb6\x09\x57\xf9\xd8\x24\xb6\x4e\xb6\x21" "\x21\x86\x5d\x6a\x99\x10\x75\xb4\x2b\x3c\x8f\x47\x4b\xfa\x40\x5e\xc1" "\x08\xda\x0d\xe5\x06\x8c\x1f\x6d\xc1\x75\xc5\x7b\xc2\x39\x16\xb2\xff" "\x33\xdc\xa1\x3f\x26\x84\x1f\xae\x1f\x94\xf7\x3d\x7b\xec\x1a\x19\x83" "\x14\x95\xe9\x2e\xd9\xd1\xc8\x26\xbd\x54\xed\x53\xea\xd3\xb6\x2d\xc6" "\x8e\xeb\xbb\x80\xe4\x1f\xc9\x88\xf4\x77\x5b\x01\x7e\xd7\x79\x80\xcd" "\x46\x12\x18\x6b\x71\x4b\x7b\xb8\x26\x2a\x5b\xef\x17\x7a\xdf\xcd\xa2" "\x67\xfe\xf6\xc5\x54\xbf\x6d\x8c\x3f\xd1\xe6\x54\xec\x76\x26\xc6\x94" "\x78\xcc\xd0\xf8\x45\x67\x39\xb1\x82\x1a\x28\x81\x94\xea\xb3\x1a\x12" "\x69\xa9\x96\x25\x25\x24\x7f\x52\xea\x1c\x57\x10\x4e\xdf\x86\x68\xca" "\xdb\x58\xca\xc2\xea\x65\x60\x35\xba\xc0\xf7\x12\x78\x76\x5f\xec\xbd" "\x59\x5f\x11\x83\xd3\xea\xe5\x08\x80\x1f\x2d\xf4\x37\x29\x81\xb1\x98" "\xe2\xbe\xbd\x34\xed\xfe\x65\x16\x33\xe7\xf4\x53\x6c\x65\xa9\x11\xfc" "\xc1\xfe\x07\x49\x49\x45\x7c\x2d\xd6\xc1\x3b\xfd\x41\x38\x90\x58\x80" "\x24\x1e\x00\xf9\xd1\x82\x9c\xa9\x45\x9e\xea\x42\x8d\x38\xd7\x01\x45" "\xf7\x7a\x94\x3f\xac\x6f\xa1\x5b\xce\xf8\x5a\x5c\xd2\x3b\xd0\x4f\xfd" "\xd9\x52\x9e\x3d\x56\xcd\x0c\xb3\x0c\x45\xe2\x11\xd2\x0d\xed\x31\x3a" "\xb3\x9f\x7e\xd4\x5a\x02\x94\x1a\x60\x0a\x72\x56\xc5\x34\xac\x6d\xc4" "\xbc\x82\xd8\xe2\xe0\xb6\xa5\x19\x94\x0b\x55\xe7\x54\x8e\x74\x2f\x1c" "\x33\x7c\xa2\x68\xe3\xdd\x7d\x42\xb6\x54\xd8\x08\x62\x65\x1f\x61\x25" "\x05\x75\x7d\xb3\xeb\x4b\xf6\x03\xb6\x25\xe7\x0e\x73\x4b\xf3\xf7\xf5" "\x3e\x10\xc3\xd0\xe3\x79\xf2\xc4\x60\xe2\x86\xdb\xe3\x85\xa1\x02\xc7" "\x47\x0a\xc6\xa7\x32\xfe\x1f\xd3\x55\x99\x63\xaf\x57\x64\xbd\x2b\x4b" "\x91\x0f\x0a\xe5\x4a\x6d\xf0\x4a\x76\xe9\x43\x1e\x72\x50\x9f\x21\x2f" "\xa6\xe9\x9d\x4b\xb1\xb3\x20\xe5\x95\xb9\x3f\x0d\x72\x8f\x13\x41\x79" "\x31\x96\xa5\xa7\x2b\x72\xb7\xc3\x40\xe5\x49\x7a\x11\xd5\x20\xfd\xb6" "\x7b\x55\x01\xe1\xbb\xaa\xb0\x70\x7b\xfb\x13\xfb\x85\xba\x45\x06\x28" "\x24\x8f\x2f\x47\xe5\xe7\x79\x45\x99\x20\x7b\xf7\x9c\x2c\x86\xea\x91" "\xcf\x6b\x07\xfa\xa0\xc6\xf2\xa8\x5e\xdf\xea\x6b\x5f\x6f\xcc\x2f\x44" "\xcd\x29\x0b\xde\xca\xe7\x08\xda\x2e\x7c\xf1\xc5\x05\x35\x83\x18\x96" "\xb7\x3d\xb8\x89\x74\xde\x1c\xeb\xd5\xa5\x6e\x81\x90\x4e\x9a\xbf\xee" "\x06\x83\xd8\x61\x45\xca\xc6\x23\x44\x27\xfc\x8d\x03\x28\x9a\x92\x08" "\x74\xeb\x73\x2a\x1c\x95\x56\xcc\x62\xae\xbc\x40\x04\xdd\x90\x56\xbf" "\x16\xfa\xb3\x3e\x37\xe0\x53\x28\x4e\x98\x24\x8c\xb7\xf4\x1e\x89\x2c" "\xbb\x93\x99\x87\x41\xb4\x42\x6a\xb3\xea\x2f\x8c\x36\xc0\xf8\xbc\x1c" "\x5a\x1c\xca\x54\xb1\x63\xf0\x31\xed\x42\x2f\x74\xde\x7a\xdf\xbd\x77" "\xeb\x21\x2c\x86\x0b\xe5\x23\x1a\xba\x04\xdb\x09\x2f\xf9\xa9\x5d\x91" "\x05\xb4\xc4\xee\x0d\x73\xc1\x3e\xbf\xa1\x40\x48\xe4\xbd\x93\x86\x09" "\x53\x67\x78\x87\x1c\xf7\x79\xe2\x0d\x6b\x4b\x63\xe3\x34\x05\xfd\x52" "\xd0\xb0\xbd\x2a\x79\x41\xab\x6b\x36\x90\x02\xc7\x32\x08\x39\xce\xfa" "\x00\x6f\x10\x5a\x9f\x9f\x06\x0a\xb9\x4c\xe6\x06\x9c\x5e\x4a\x94\x25" "\x99\xfb\x1e\x9a\x1f\x86\x74\x35\x9b\xba\x66\x16\xc0\x23\xed\x8c\x6f" "\x01\xf6\x0e\x28\x0b\x16\x99\xc7\xea\x5b\xc9\xb5\x62\x84\xb0\x0b\x5a" "\xe7\x91\x1c\x6f\x18\xcb\x3c\x65\xbb\xbf\xe7\x10\x6f\x69\xfd\x7e\x2f" "\xf8\x09\x1d\x8a\x14\xc8\x48\x86\x92\x12\xfa\xfc\xd5\x08\x06\xf1\x54" "\x69\x4c\x7b\xf5\xfa\x22\xf8\x57\xba\xb5\xe5\xbc\xa1\x5e\xff\x46\x03" "\xfb\x18\x73\x73\x4a\x6b\xf1\x95\x62\x34\x92\x2b\xdb\xef\x5f\x1d\x92" "\xd9\xec\x8b\x58\x80\x72\xbe\xfe\x4c\xc5\xd8\x95\x70\xc2\xe5\xce\x80" "\x06\xd9\x01\xa6\x12\x10\xe8\xc2\x32\x0c\xbf\xb8\x01\x02\xe4\xda\x9f" "\x05\x92\x28\x8a\xff\x72\xde\x94\x60\xde\xf0\xa4\xb1\xd5\xf4\x18\x5a" "\xae\x57\x3c\xde\x26\x2c\xf7\xd0\xa2\x8a\xeb\x74\x83\xb1\x54\x38\x68" "\x8c\xfc\x77\x98\x4d\x0b\xbf\xc3\x6c\xbd\x91\x2d\x4d\x30\x19\x1c\x14" "\x44\xf8\xd5\x38\xcc\xee\xf6\xf6\x28\xa7\x36\x16\xbc\xcf\x78\x7d\xb7" "\x93\x9a\xce\x25\xf9\x7f\xc9\x87\x72\x6c\x0e\x05\x04\x66\x96\x75\x67" "\xc0\xf9\x80\x0d\x93\x72\xdf\xce\x70\x82\x9a\x67\x97\x5f\xd7\x6d\xe1" "\x2f\x4d\xf3\x74\x7e\x52\x4a\x0d\xd1\x56\xf2\x27\xcd\xa8\x85\xed\xb9" "\x45\xf6\x73\xc6\x80\x87\xad\x79\x55\xac\x44\xdc\x45\xac\x21\x1a\x78" "\x9f\x8b\xc0\x7f\x7c\xa6\x62\x57\xbb\x3c\xbd\x2d\x5e\xcb\xe9\x95\xbe" "\x6d\x20\xc9\x63\xc1\x6f\xc6\xf1\x2b\xa8\x86\x15\x46\x72\x8f\x95\x55" "\xc8\xd8\xdb\x92\x58\x5c\xea\xaf\xb5\x5b\xe0\x16\xb7\x59\x06\x48\x30" "\xe2\x19\xee\xb2\x43\x54\xd5\xba\x15\xa6\x53\x73\x2e\x6b\xae\xad\x1d" "\xc7\x20\x10\xbb\xda\x43\x9d\x09\x2c\xda\xb2\x9b\x37\xf6\x5f\xe0\x01" "\xad\xac\x89\xee\x6f\x5d\x66\x76\x4f\xa7\x3a\xba\x4f\x6a\x1f\xa6\x03" "\x7a\x52\x31\x24\x78\xfb\x69\x5b\x2a\xd3\xaf\x6a\x65\xdb\xca\xdf\x6e" "\x46\xf9\x81\x60\x85\xfc\x7b\x47\x32\xfe\x3b\x04\x85\x2a\x0e\xc2\xa5" "\x87\x0d\x6d\x57\x06\xf1\x38\xe3\xca\xe4\xf7\x86\x5c\xee\x8e\x7e\x8c" "\x39\xca\x43\x11\x84\x94\xad\x87\x1e\x3c\x49\xda\x7b\x06\x89\xb6\x7d" "\x33\x52\x1f\xbb\xbf\x4a\x98\xc3\xeb\x07\x50\x9a\xa1\x39\xa3\x44\x38" "\xa9\x9a\xc4\x37\xe7\x88\x2e\xfa\xd3\xb9\xfe\xf5\x2c\xb6\x83\xb6\xb5" "\x98\xe6\xc2\x1c\xbe\x1d\x0c\x81\x7b\x91\xf5\x3a\xc0\x98\xff\x1d\xb7" "\x1c\x03\x63\x33\xf7\xc2\xfe\x16\x8e\x69\x3e\xb7\xc2\xb3\x29\x2b\x1e" "\x44\x20\x7e\xe0\xb6\xae\xc7\x29\x87\xb0\x14\x69\x13\xee\xd4\x0c\xf9" "\x9e\x69\x11\x2e\xcb\x5b\x90\xdc\x73\xff\x09\xd5\xe2\xf9\x71\x10\x28" "\xeb\x61\xca\x80\x20\xbd\xee\x46\x15\x4f\xc3\xc6\x81\xc5\x44\x71\xb2" "\xb6\xe7\x02\xd7\xcf\x0d\xd2\xa9\x25\x30\xa5\xd8\xe5\xf7\x2f\xb9\x0e" "\x96\x73\x44\x12\x23\x5b\x23\x1c\xb8\xef\x2a\xdb\x16\x26\x69\x61\xe7" "\xd0\xe8\x23\xa7\xff\x29\x5a\x72\x18\x60\x3a\x78\x0c\x29\x8a\x49\xcd" "\xa3\x3c\x56\xac\x75\x41\x5a\x5e\x2d\x1a\x67\x22\x9d\x2d\x05\x87\xec" "\x18\x47\x73\x73\x49\x39\x13\xc9\xfb\xff\xb2\x95\xa2\xe1\x86\x8e\xbe" "\xce\xb6\xb7\xed\xe3\x5f\x0b\xd9\xc4\x28\x52\xde\x63\x6e\xf8\x54\xf3" "\x37\x8e\x80\x14\x72\x80\xf8\x51\x50\x38\xf0\x90\x6e\xd2\xa6\x04\xbc" "\xc7\x7f\x64\x27\x0c\xec\xae\xda\x42\xc9\x2a\xfa\x82\x75\x62\x02\xc8" "\xf7\x2a\x60\xa5\x46\x16\xbf\x89\x77\x7d\x5a\xdb\xb3\x67\x92\xe1\x36" "\xf0\xf1\x50\x6c\x81\x98\xdf\x09\x86\xd1\xd5\xd0\xa0\x7a\x3a\x49\x56" "\x48\x91\x5d\xf7\x43\xa7\x40\x30\xfd\xb7\x94\x9d\xfa\xbf\xdf\x0d\xb6" "\x28\x76\x7a\x23\xfb\xae\xc2\xbd\x57\x6f\xa9\x50\xe9\x18\xd4\xde\x43" "\xe3\x13\xd3\x06\xbe\xe3\x37\x81\xc7\xe3\xa1\xa6\x43\xbe\x2b\xc2\x79" "\x2a\x04\xe3\xea\x9e\x47\xdb\x14\x5a\xa0\xcd\x28\xad\x0b\xc4\x0d\xd8" "\xe7\x95\x60\x3a\xd5\x01\x72\x4c\xac\xeb\x7c\xc1\x68\x7d\xc8\x97\x09" "\xa7\xb5\xe8\x3d\xec\x2f\xc2\xf3\xad\xac\xc4\x2b\x87\x7b\x46\x51\x04" "\x24\x96\xb5\x73\x59\x6a\x75\x69\x09\xfc\x9e\x86\x07\x33\xea\xa4\x38" "\x61\xe1\x80\x16\x69\x15\x83\xf0\xc5\x3d\xdd\xe3\x21\x0d\x99\x30\xe1" "\x6e\x7d\x62\x79\x54\x43\x06\xa0\x1f\x3a\x7b\xb2\x18\x98\xea\x0a\xc6" "\x73\x06\x94\x12\xe8\x33\x6e\xb8\x29\x16\xaf\x25\x8f\xbe\xf7\x68\x49" "\x5b\xdf\x38\x9f\x1b\xd0\x4f\x5a\x3b\x8a\x94\x07\x5d\x7b\xbd\x18\xe7" "\x1a\xb8\x66\x6d\x48\xc4\x76\xc2\x32\xcb\x70\x83\xc1\x7c\x5d\xab\x97" "\x48\x0d\x49\x96\xba\xc6\xf3\x27\xbd\xff\xe5\x0d\x57\x8f\xe2\x61\xdf" "\x00\x64\x89\x91\x02\xbf\x87\xe5\xd1\xa1\xaa\x2c\xa7\x2f\xfe\x50\x72" "\x26\x5e\xa1\xaf\x4d\x81\xd0\x0f\xf3\x96\x24\x5d\x55\x05\x98\xb7\x59" "\x31\x5a\x4c\x7b\x3f\x30\x03\x44\xe4\x51\xb1\x44\x17\x9a\xfc\x9b\xcf" "\x52\xc4\xd9\x8f\xf6\x7e\xac\xc5\x5b\x0c\x7a\x39\x25\x08\x2c\x36\x14" "\xa7\x60\x5a\x44\x07\xf2\x35\x1f\xac\xe6\xed\x35\x89\xb4\x5b\xe6\x62" "\xd8\x91\x9b\xf1\x42\x07\xbd\xb2\x88\x50\x99\x1f\xda\x95\xdd\xe6\x82" "\xc3\xc3\xc8\xcf\xf1\xee\xe1\x7d\x4d\xfd\xe4\x05\xd2\x48\xd0\xfb\xf4" "\x60\x16\x90\x33\xf4\xd4\xf7\x9e\x03\x2f\xa1\x32\x59\x4f\x3f\xe5\x55" "\x27\xb4\x37\x63\xce\xe1\x6a\x82\x8b\xad\xca\x7b\x47\x8a\xde\x7a\x49" "\xc7\x22\xac\x44\xdc\x98\x21\x38\x1d\x33\x28\xbd\xcb\x28\xb1\xcb\x5a" "\xe6\x28\x0a\x07\xc6\x7d\x7e\x96\xdf\x99\x49\xd6\x82\x8a\x1f\xc7\xfb" "\x3d\xff\x5a\xd5\x78\x5e\x19\xe8\x99\x90\x4a\xa3\x9d\x79\x62\x6a\x2b" "\x83\x61\x4d\xaa\x61\xac\xf9\xef\x7e\x6d\x88\x62\xdc\x77\xc0\xcf\x37" "\x57\x2e\x89\x5e\xd0\xc1\xa8\x35\x52\x6b\x44\xa3\x9e\xd1\xbf\xcf\x3b" "\x42\x3e\xd5\x1e\x5d\x72\x9f\x8c\xe9\x9b\x2c\x58\x53\xaa\x9f\x05\xaa" "\xc1\xa2\x7f\x62\xf6\xf4\x3e\x00\x51\x47\x48\xb2\xb1\x94\xe6\x8f\xd7" "\x20\x5b\xc2\xb6\xab\x69\xe1\x24\x13\xd6\x29\x97\x44\xef\xa2\x71\x9a" "\xac\x39\x27\x9c\xae\x00\x16\x73\xf0\x79\x25\xe2\x2c\x0c\xbd\x86\x9b" "\xb9\x3d\x33\x11\xa3\x92\x0f\x66\xb3\xdc\xa5\xa5\x7c\xa6\x1a\x10\x0e" "\x50\x4b\x15\x29\xc7\xe6\x0e\x1a\x98\x01\x11\x37\x01\xa4\x6d\x54\x42" "\x00\x55\x3b\x9c\x0e\x31\xed\xb8\x94\x0e\xe9\xb5\x2c\xb4\x14\x01\x2c" "\x78\x97\x1a\x12\x6f\x9d\xe3\x70\x19\x1a\x32\xcf\x10\xcb\xe6\x49\x68" "\x1a\xa2\xcc\x4f\xa1\xc7\xbe\x82\xf8\x88\x47\x3a\x4e\x64\xa5\xc7\x3f" "\x9b\xa1\x46\x8d\xeb\x88\x71\xf2\x5d\xe2\x3c\x58\x5a\xd0\xca\x63\xe1" "\x04\xea\x71\x8e\xd2\x77\x31\x53\x9a\x60\x8b\x0e\x5f\x5a\x5d\xe5\x38" "\x2c\xfe\xa4\x74\x28\x7e\x3f\x64\xf6\x48\xf5\xa1\xe7\xd0\x0b\x9c\x69" "\xa2\xc1\x3d\x65\xa8\x94\xa6\x2c\xa2\xa3\xa7\x22\xbd\x17\xea\x5a\x9d" "\xfd\xaf\x4b\x06\xc1\xf4\x1f\x81\x65\x62\x28\x54\x4a\x53\x61\x9f\x56" "\x5a\x46\x55\xfa\x56\x26\xd7\x81\x6a\xc5\xbf\x8c\x87\x72\x2c\x34\x28" "\xa1\xcd\x98\x92\x5b\x6e\x48\xb0\x68\x3d\x0f\x7c\x05\x80\x51\xd5\x38" "\x51\xc5\x2f\x9a\x5c\x3a\x56\xc0\x9a\x83\xcb\x0e\xc7\xd1\x0c\x18\x5a" "\xed\xc7\x42\x9e\x9c\x71\xa6\x57\x99\x3b\x52\x0e\x25\xb8\x29\xf8\x77" "\x0a\x8f\x14\xec\xcd\x5b\x8f\x71\xe2\x0a\x3e\x73\xf2\x23\x27\x42\x8d" "\x6a\xfb\x94\x63\x27\x43\x07\x74\xee\xad\x92\x0c\xfd\xe5\x73\x2a\xce" "\x5f\x2f\x00\x65\xdd\x14\x15\xd1\xe3\x11\x88\x3c\xed\x8a\xef\xb0\xca" "\xd4\x43\x72\xd3\x28\xad\xf4\x66\xa9\x7b\x63\xf0\x37\x65\x2e\xfe\x56" "\x01\x87\x3b\x0c\x3e\xb9\x5e\x95\xe7\x92\x5f\x5b\xdb\x8a\x55\xc4\x4e" "\xad\x49\xa7\x0d\xa9\x93\xfa\x39\x75\xb2\xd1\x8b\x01\x6a\x18\x62\x89" "\x98\x1d\xe7\xb0\xa0\x52\x0c\xd5\x1c\xf4\x24\x17\x8d\x13\x3d\x34\xbd" "\xbe\x47\x66\xa2\x9a\x65\xc2\x97\xfa\x8a\x19\x50\xff\xbb\x2a\x0f\x6a" "\xd4\x3a\x09\x1e\x75\xbf\xad\xbb\x07\xf6\x46\xee\xe6\xf0\xf6\x4f\x27" "\x40\xe9\xb1\x2c\xc5\xc1\x9e\x19\xfa\xd4\x2f\x78\x64\xaa\x98\xdb\x8e" "\x57\x84\x3f\x8b\x62\x8d\x9a\x79\x74\x72\x9f\x9b\x82\xd3\xa7\x1e\x4e" "\x71\xf4\x4d\x4f\x36\x62\x27\x79\xd1\xa5\x48\x7e\x7c\xff\x8a\xc4\x6e" "\x37\xc4\xc9\xe0\xa7\x21\xa2\x1e\x0b\x49\x3f\x08\x54\xaa\x1f\x71\x11" "\xc0\xc3\x05\xb6\xc5\x84\x2c\x14\xd8\x19\x08\x69\x62\x2e\x8b\x59\x9c" "\xb6\xcf\x5b\x0f\x34\xa6\x11\xd9\x4b\xba\x4b\xc7\x4b\xc6\x2b\xe2\x91" "\xb8\x06\xb0\xdc\x2f\xe7\x14\x44\xd0\xfb\xa5\x7e\x92\x87\x05\xd3\x5a" "\x23\x04\x7e\x92\x5a\x55\xbe\x6b\xe8\xa3\xda\x76\xca\x21\xac\x86\x12" "\x4e\x13\x30\xe6\xce\x6b\xe7\xa6\x45\xae\x7d\xce\x4e\x3c\xba\x91\x88" "\x41\xff\xbc\xea\x01\x0a\x6d\x69\x7b\x83\x17\x32\xfe\x90\x09\x51\xa6" "\xbf\x13\x44\xc4\x1a\x71\x60\xa6\xfb\x8f\x0a\x3b\x11\x93\x28\xe4\xaa" "\xc0\xe3\xac\x4e\xe2\x68\x50\xa2\x84\x8a\x04\xfa\x07\x15\xb2\xf1\x72" "\x4e\xc4\xbd\x98\x87\xce\x75\x26\x46\x32\x38\x6d\x45\x3f\x9d\x2a\x06" "\x1c\xa8\x84\x9a\x8d\x45\xf7\x89\x7b\x37\x05\x32\x67\xd8\x29\x67\xfc" "\xa4\xcc\x62\xfe\xa4\xab\x9d\xc3\x3c\x68\xde\x5b\x50\x55\xf6\xc7\x1d" "\x9c\xc2\xf3\x9e\x2d\x5e\x75\xda\x6f\x1c\xf7\x72\x66\x7e\x0a\x08\xbe" "\xc5\x23\x59\xca\x47\xf7\x91\xaf\xe4\xe1\x1e\x97\x92\x07\x76\xe8\x7c" "\x56\x15\x07\x37\x14\xaa\xc8\xe9\xdd\x1a\x39\xde\x37\x23\x1a\x35\x0a" "\xd7\xe3\xe7\xaa\x32\x72\xbb\x81\x49\x9b\x08\x29\x83\x66\x71\x19\x97" "\xe6\x69\x18\x64\x41\x33\x2f\x01\x79\x69\x2e\x78\x34\x53\x4e\x94\x99" "\x8f\xff\x28\xfb\xfe\xbb\x25\x14\xe4\xe4\xb6\x71\x0c\x24\x6b\xf0\x02" "\x30\x5c\xfc\xfd\xb3\xdb\xc8\xce\xf0\x36\x14\xe9\xc5\xfb\x12\x32\xa3" "\x85\xd7\x88\x16\x3f\x58\x3b\x5f\x98\x31\x9b\xfb\xd8\xd8\xdd\xff\x2a" "\x81\xfb\x85\xe9\x58\x19\xe2\x45\xde\x15\xd8\x02\x18\x97\xba\x3f\xe1" "\x81\x97\xc4\x99\x23\xdd\xe7\xed\x26\x97\x83\xb6\x1f\x14\x6b\x55\xee" "\xc3\x98\xc0\x57\x6d\xcd\x18\x34\x3a\x88\x9c\x71\x20\xc5\xd2\xa8\xed" "\x18\x66\x6a\xdd\xff\x6d\x7f\x86\x5e\x24\x88\x81\x46\xa0\xa7\x14\xb1" "\x06\x4f\x54\x8f\x59\x21\xdb\x43\xc6\xac\xcc\x91\x64\x03\xa9\x15\x18" "\xb6\x56\x39\xab\x46\x1a\xdb\x73\x0b\xb9\x5d\x07\xcd\x75\x40\x03\x07" "\x1b\x31\x7a\x68\xac\x15\x82\xe4\x13\x6b\xe7\xd0\x06\xab\x4b\xfc\x90" "\xa9\x99\x33\x0b\x79\x07\x9c\xd5\x28\x6a\x66\x35\x5d\xd8\x90\x03\x06" "\xd7\xfa\x57\xdb\x30\x8d\xba\x51\x65\xc4\xe0\x46\x20\xb0\x25\x18\xb1" "\x51\xbf\x5d\xcf\x7d\x19\x83\x93\x19\xfd\x44\xa7\x30\xb0\xee\x27\x88" "\xce\x62\xeb\x24\x2c\x38\xc2\x55\xfc\x1b\x4f\xf7\x9c\x7f\x8a\xbd\xcf" "\x6f\x99\x7a\xe2\x34\x4b\xc3\xba\x3d\x74\xaa\x73\xfe\xbd\x70\x8f\x8e" "\x57\x93\x24\x20\x5a\x87\x21\x15\xf2\x6f\xb8\x56\xb8\x1d\x04\x7b\x59" "\x5b\x2e\x18\x22\xd0\x2e\x33\x8a\xbe\x7d\xbf\x44\xc8\x91\x63\xf7\x53" "\x8f\xcb\xd5\x71\x70\x52\x77\x4b\xa2\x98\x55\x63\x5b\xba\x48\x62\x68" "\x06\xad\x50\x5a\xbb\x88\xd6\xb8\x5e\x22\xf6\x0a\x33\x9d\xa1\xbe\xa7" "\x4b\x23\x1a\x91\x33\x97\x22\x36\xef\xfd\x86\xe9\xc3\xdb\x9c\x70\x05" "\x66\xad\xab\x9c\xb3\x2c\x47\x4a\x1b\xb1\xf0\x20\x6c\xef\x70\x7a\x89" "\x94\xd4\x71\x0c\x11\xb9\x94\x64\xfb\x66\x6b\x2d\x29\x27\x76\xaf\xd8" "\xd4\x2d\xab\x3a\xd9\xa4\xeb\x12\x0d\x63\xf7\xe2\xa5\x4a\x1f\x3a\x6f" "\x07\xc5\xba\x3d\x33\x33\x97\xa6\x65\x73\x33\xdf\xe0\x78\x34\x90\xe3" "\x84\x9e\xfc\x7e\x5a\xc3\xe8\x2a\xaf\xc6\x4b\xe6\x49\xcc\x31\x2a\x04" "\x12\x88\x9b\xf5\xec\xc3\x48\x81\x74\x1c\xbc\x8e\x8f\x19\xef\x0f\x17" "\x02\x09\x3f\x2e\x9b\x84\x43\xad\x68\x51\x4e\x11\xf5\x41\x85\xdf\xe6" "\x6e\x27\x9d\xdc\x66\x34\x87\xc1\x66\x18\xb6\x53\x95\xe4\x6d\xbd\x9f" "\x80\xc7\xe6\xa3\x02\xb6\x86\xc8\xd2\xb7\x27\x4a\xc4\xd9\x35\x89\xb5" "\xce\xc6\xec\x66\x5b\x31\x6a\x29\x2e\x26\x83\x4b\x9b\x69\xe1\x89\x61" "\x7a\x0d\x5d\xb6\x4a\x13\xa7\x14\x10\x34\x3c\xc8\x0f\xc0\xb1\x0e\xbd" "\xed\xcc\x6e\x93\x3c\x52\xf9\x88\x94\xfc\x78\x77\x1b\xdc\x77\xcf\xc2" "\x50\xec\xdd\xfd\x04\xee\xc6\xc6\x91\x35\x65\x3c\x9a\xde\x98\x9b\x0b" "\xfd\x57\xb4\xb3\x8b\xa9\x31\xaf\x6f\xbd\xce\x5f\x3b\x3e\xa1\xf3\x94" "\xdb\xc1\x2e\x9a\xf5\xc4\xb1\x59\x1e\xcf\x3c\x8d\xf0\x9d\xb5\x05\xff" "\xdb\x7b\x25\x93\xfb\x61\x0f\x56\x89\x3e\x91\x20\x79\xc3\x03\x98\x6f" "\xc1\x8b\xc1\x8f\x81\x69\x9d\x54\x6e\x86\xa2\xf2\x51\xc9\xeb\x6e\x2e" "\x65\x5d\xa3\x62\x42\x26\xa2\x59\x5f\x0e\x98\x0f\xb3\x00\xb0\x8c\xef" "\x30\x10\x8c\x43\x6b\x75\xa0\xc4\xea\xea\x63\x22\x63\xa1\xd0\x08\x92" "\x88\xe9\x0a\x98\x52\x0b\x36\xb0\x3e\x1f\xb3\x15\x60\x78\x3c\xcd\xb3" "\xc1\x6b\x8b\x23\x16\xde\x79\x08\x3e\x1a\x1b\x39\xa9\xe2\x8d\x88\x98" "\xd1\x2b\xbd\xd6\x7e\x88\x34\x69\x46\x47\xc5\xaa\xa7\xf5\x83\xcc\x0e" "\x85\x81\x8f\x9e\x53\x23\x05\x89\x4e\x0f\x66\x00\x18\x45\x96\x14\x38" "\x07\x4a\x6b\x64\x89\x32\xc6\xec\xc5\x10\x2d\xcf\x0a\xeb\x1d\x19\x04" "\xb9\x5b\x3a\xf1\x5c\x60\xbd\x53\x3d\x13\xba\x2f\x66\xf6\x53\x9d\x35" "\xcb\x51\xaa\xff\xd2\x43\x01\x71\xd5\x79\x23\x14\xf5\x35\x9d\xed\x03" "\x69\x16\xe2\x86\x21\xb1\x49\x05\xec\xa1\x37\x42\x9f\x09\x17\x8c\x3f" "\x4a\xa7\x1e\xd4\x58\x1d\x98\x19\x39\xb9\x14\x2a\xc9\xdb\x39\x46\x4c" "\xdb\xd4\x7f\xf7\xfa\x48\x96\xf6\x77\x80\x5d\xee\x0b\xfd\xca\xbc\xc7" "\x44\xbf\xad\xb1\xce\xdb\xa1\xce\x2e\xf9\x7b\x9e\xcf\xd5\xb9\x83\x28" "\xe0\x9f\x7c\x6c\x0e\x9f\x37\xb0\x17\x8f\x5f\xcb\xe4\x84\xc2\xd6\x60" "\x86\xfd\x91\x17\x03\xb4\xb8\xc8\x74\x8d\xb9\xeb\x7b\xa7\xdc\x26\x69" "\x9d\xf5\x16\x80\x0d\x41\xad\x66\xe5\xd2\x7d\xf5\x82\x1c\x9e\x5c\xde" "\x81\xdd\xa8\x46\xfb\x97\x8a\xfd\x13\xa8\x70\x01\x15\x60\x51\x0a\x47" "\x77\x06\xc8\xeb\x66\x61\x7f\xd4\x61\x8c\xa8\x0b\x6d\x87\xbb\x62\x3b" "\x29\xab\x1f\xfa\x96\xd9\xf4\xf9\x8c\xdb\x8f\xb8\x7b\x0d\x23\xd9\x80" "\xdf\x08\xb6\xa6\xd5\x06\xfe\xe6\xf7\xae\x95\xa5\xce\x7d\x53\x99\x9a" "\x51\x66\x8f\xb8\x3c\xea\xb6\x5d\x90\xbc\xf7\x9d\x7f\xd4\xa1\xbd\xa6" "\xb3\x70\x94\x9d\x02\x4a\x06\xab\xd3\x6d\x49\xd5\x07\xdd\x00\xd3", 4096); *(uint64_t*)0x20000588 = 0x1000; *(uint64_t*)0x20000590 = 0x20000340; memcpy((void*)0x20000340, "\xf1\xd0\xd8\xbc\x12\xa7\x64\xf9\xa0\x11\x53\xa9\xe8\x9c\x73\xc7" "\xa2\x85\xea\xb8\xa8\x46\x07\x20\x6f\x3d\xbf\x41\xee\x91\x49\x8a" "\xf9\x13\xd2\x1f\x1c\x8e\xd2\x91\x8a\xc4\x88\x3a\x16\xff\x74\xcb" "\x88\x87\xac\xc4\x4a\xd7\x6f\xc2\x3f\x46\x71\x80\x1d\xb1\xc6\xa6" "\xf4\xf2\x73\xd2\x69\x85\xec\x0e\x71\x2e\xfe\xa7\x77\xb4\xaa\x90" "\xc1\xdd\x49\x03\x62\x9d\x52\xae\x22\x93\x5a\xd0\xac\x09\x12\xbc" "\xd1\xe9\x31\x18\xf8\xaf\xe9\xdb\xd7\x52\x27\x3d\x38\x10\x83\xdc" "\x18\xdc\x32\x70\xcd\x3b\x88\xb3\x8c\xa0\x4b\x67\x46\x70\xc8\x9d" "\x1d\xb8\xb0\xf2\x55\x12\xb2\x80\x86\x25\x14\x7c\x2b\xd4\xa4\xeb" "\x5c\x7c\x3c\x67\x85\xd9\x2b\x58\x63\xbb\xa7\xb6\x72\x7d\x48", 159); *(uint64_t*)0x20000598 = 0x9f; *(uint64_t*)0x200005a0 = 0x20000280; memcpy((void*)0x20000280, "\x89\xf2\xda\xd1\x52\xe8\x88\xb3\x8c\x17\x03\xca\xf6\xc5\x3c\xb5" "\x9b\x05\xdd\xd7\x8f\xeb\xff\x0c\x29\x60\xe7\xbb\xa2\xef\x6f\x72" "\x17\x92\xa7\xe7\xe8\xac\x4e\x5d\x9d\x39\x01\xa9\x38\x28\xf9\x6d" "\xbd\x8f\x74\xff\x7a\x07\xcf\xb3\x5a\xea\x7d\x5c\x24\x2d\x77\xf9" "\x50\xb0\xe3\x1c\xc4\x0b\x2b\x21\xb6\xdc\xc0\xf3\xc0\xee\xc6\xd5" "\xf9\x69\x5e\x40\x48\xe6\xcd\x90\x61\xe4\x29\x1b\x54\x34\x7e\x88" "\x65\x6c\x69\x4d\xa4\x76\xdb\x5e\xf0\xe8\x99\x26\x53", 109); *(uint64_t*)0x200005a8 = 0x6d; *(uint64_t*)0x200005b0 = 0x20000140; memcpy((void*)0x20000140, "\xef\x8b\xd1\x72\x1f\xa0\xc7\x54\xd2\xbf\x34\x0c\xb2\x51\x41\xaa" "\xc4\x05\xd3\xe1\xf0\xe9\xad\xf8\xd6\x91\x6c\xab\x67\xc8\x12\x2d" "\x7d\x19\x67\xe1\x39\x79\x87\x0e\x91\x97\xbf\x98\x8e\x13\x1e", 47); *(uint64_t*)0x200005b8 = 0x2f; *(uint64_t*)0x200005c0 = 0x20002c80; memcpy( (void*)0x20002c80, "\x12\x59\x3d\x70\xdb\x84\xdc\x86\xb9\x25\xfb\x32\x0b\x7d\x25\x3a\xbf" "\x2e\x95\x19\xde\x7b\x19\x1c\xc0\x7b\x6d\x05\xcb\xb3\x3a\xa9\xc0\xb5" "\xdb\x65\x69\x51\xf9\x50\x23\x4a\x3f\xde\x0e\x7c\xe9\x03\x5c\xfa\x20" "\xbf\x54\xfa\x66\x1c\x72\xd5\xfe\x86\x46\x2f\xbe\xb8\x91\x7e\x85\x8d" "\xa0\x2d\xd8\x8d\x07\x50\x88\x55\xdc\x68\x5f\xcf\xc6\xae\x30\x4b\x99" "\xbf\xdf\x28\xa6\xf4\xaf\xdd\x32\xa9\x57\x10\xe7\x7c\xd4\x74\xee\x5a" "\x32\x28\x13\x61\x89\x45\x0f\x3a\x34\xcd\xb2\x87\x82\x21\xc3\x29\x82" "\xbb\x11\x7f\x68\xc6\x9a\xf5\x38\xc3\xe6\x7c\x54\xfb\xfa\x9f\x44\xd9" "\x77\x76\x1a\x6d\xd3\xf3\x34\xed\xf2\x2e\xe4\x79\xc4\x52\x11\x56\x01" "\x76\x37\xf2\x13\x74\x15\x99\xb6\xdd\x9c\x6f\x1d\x50\xc0\x9b\x97\xe4" "\x42\xf7\xab\x6c\x7b\x6c\x4e\x40\xfa\x45\xe8\xd4\x67\xb2\x74\x4a\xf1" "\xd4\x97\x37\xd6\x0f\xca\xaf\x4b\x90\x5d\xd4\x58\x4c\x4a\x8b\x9a\x29" "\x96\x0b\x31\x71\xda\xf1\x08\x06\xb2\x05\x09\x10\xe2\x2f\xff\x47\x9c" "\xdb\x0a\x7f\x44\x4d\x80\x42\x79\x48\x34\xdb\x75\xdb\xe1\xb9\x50\x28" "\xa2\x72\x9b\x79\xb0\x6e\x3d\x47\x92\x28\xf7\xfb\x64\xa3\xb2\xc8\x8b" "\x0d\xd6\x5e\x7e\xb8\x4e\x28\xcc\x37\x4b\x30\x2c\x2c\x15\x69\xb2\x39" "\x09\x80\xa3\x12\x77\xb9\x84\xaf\xce\x25\xc4\xec\x02\xe3\x3a\x37\xe1" "\x23\x28\x36\x2b\x31\x24\x02\xb9\x34\x43\x10\x8b\xb6\x6b\xe2\xf0\xc8" "\xd5\x4a\xa3\x29\x93\xe8\xe2\x6d\xd4\x38\xf2\xe0\x9c\x05\x91\x2e\x8b" "\xab\x83\xdd\x35\x7c\x1b\xe7\xa1\x87\x0e\xf3\xf4\x09\x90\x01\x41\xc4" "\xd3\x12\xae\xf6\x3f\xce\xf7\x7c\x48\x50\x3a\xc9\x54\xb3\xbd\xa1\x79" "\x98\x66\x56\xdc\x50\x85\x71\xba\x7c\xac\xb9\xad\x39\x2b\xf6\x07\x49" "\x2a\xdf\x31\x26\x1e\x5a\x2f\x40\x53\x2d\x7c\x9c\x62\x5a\x73\xeb\x66" "\xba\xcc\x94\x5b\x80\xa2\xcd\x66\x06\xff\x6e\x30\xe0\x9c\x46\x06\x8a" "\x49\x40\x14\x37\x25\x84\xe6\x8a\x00\xa5\xae\x6b\x9f\xd8\xce\x3d\x2a" "\xa6\x62\x94\x6e\x4f\xdc\x9a\x73\xe2\x35\x00\x2b\xc5\x06\x33\x19\xdf" "\x29\xc0\x64\x34\x5f\x55\x3d\xa1\x28\x83\xf8\x75\xeb\x6b\x7c\x6b\x10" "\x2d\x89\x32\x3d\xb4\xe6\x5a\x9b\x4a\x9d\x87\x34\x40\x07\xed\x7a\x09" "\x9b\xae\x9d\xd9\x59\xc3\x9d\x57\x63\x50\x3f\x0a\xba\x1b\x58\xf9\xb5" "\x5a\x6b\x7e\x7e\xbe\x54\x50\xf6\xd4\x32\xb2\x38\x9a\x09\x59\xb3\xa0" "\xd8\x86\x8f\x5f\x84\xdb\x8f\xf4\x23\x53\x1c\xb8\xea\x2b\x78\xab\x32" "\xe9\x4e\x1e\x45\x4c\x48\xaf\x0c\xf6\x52\xa0\x65\xaa\xb4\x7b\xd6\x1c" "\x86\xae\xf7\x7e\x70\x68\xa1\x1d\xd5\x21\xc8\x14\x1c\xf1\x6e\x0c\xaa" "\x00\xc4\xf0\x8b\xfd\xf1\x59\x0e\x6c\x86\x85\xba\x4f\xbb\x3f\xc4\xe0" "\xb2\x83\x42\x79\xba\xff\x94\x49\x35\xe7\x65\x6f\xf9\x03\xe7\xca\xa8" "\x12\xb9\x15\x75\xf4\x15\xaa\xfa\xc0\x33\x9c\x29\x07\x62\xcd\x72\x1c" "\x48\xaf\x98\x67\x1b\x3b\x00\x02\xfa\x6e\x8b\xfa\xf8\xea\xcd\x9b\x1d" "\x93\xb4\x27\xd2\x4a\x56\x51\x24\xf4\x25\x6d\x6f\x88\x9e\x95\x48\x01" "\x9a\x4e\x2a\x70\x05\x2c\xd7\x18\x43\xaf\x27\x9d\x5b\xb7\x54\xd9\x07" "\xd9\x90\xca\x1b\xa2\xb0\x61\x85\xf8\x84\x84\xfb\xd0\x0e\x74\xd3\x0e" "\xdb\xd1\x96\xf1\xa0\x85\x53\xad\x38\x31\xf0\x48\x2a\x7e\x00\x74\x32" "\xda\x83\x94\x3d\xc6\x60\xc3\x17\x48\x56\x24\x5b\x5e\xed\x1a\x95\xa2" "\x25\x39\xfa\x99\x02\x11\xdd\xc0\xc2\xec\xac\x7a\x30\xfc\xea\xe4\x31" "\xaa\x23\xc2\xf6\x23\x31\x3a\x55\x96\xea\xe1\x60\xac\xb7\x22\x5a\x4d" "\xfd\xcf\x9c\x8f\x07\x3d\x3d\x61\xa9\x75\xa6\x40\x80\xf1\x0e\x6b\x6d" "\xcb\xf3\x22\x5c\x1a\x2e\x71\xa0\xb7\x6f\xca\x96\x7a\x91\xb4\xc5\x2e" "\x0d\x27\xc6\x8a\xa5\x6d\xaf\xf6\xa6\x97\x9d\x0d\x8c\x82\x63\x4f\xba" "\xfc\x98\x99\xaf\xa3\x20\xa1\xfb\x57\x81\xed\xc9\xfc\xb5\xe6\xec\xb1" "\x0d\x8e\xb4\xa9\x84\x79\x79\x84\x4d\xd5\x69\x65\xf0\x27\x70\xb3\x59" "\x2a\x43\x3e\x38\xbf\xd9\x66\x34\xf0\x25\xd6\xad\x5d\xc2\x56\xb8\x74" "\x4f\xef\xca\xd5\xa2\xb1\xfb\xf9\xed\xe7\xb0\xf0\x7d\xcf\x61\x65\x83" "\xf7\x3a\x86\x4c\xc0\x25\x41\xd6\x0f\x2a\xe6\xd5\x33\x87\x05\xe0\xea" "\xd5\xcd\x5f\x66\x8d\xe0\x28\x02\xe5\x35\xa6\x6c\x1d\x20\x20\xf8\xcd" "\x42\x95\x6d\x5c\x16\x5b\xe1\x07\x8f\xd7\x16\x36\x45\xd3\x41\xbe\xdb" "\xe9\x7c\xbb\xfe\xa9\xf7\x0d\x73\x1d\xd5\xde\xb2\x48\xdf\x94\x8a\x56" "\x23\xc1\x32\x52\x29\x95\xa4\x6a\x16\xf9\xc6\x49\xcf\xe2\xbd\x6b\x13" "\xdc\xd2\x4e\xde\x42\xda\x4f\xa7\x60\xf5\xd3\x69\xe0\x91\xd4\xdd\xc5" "\xb8\x4c\x3e\x11\xea\x80\x0e\xfc\x43\x3f\x5e\x6d\x85\x3d\x1e\x41\xb3" "\xfc\x54\x7a\x4e\xc6\x7f\xae\x3f\x1a\x35\xd7\x13\x35\xfc\x91\x46\x65" "\xd3\x77\x89\xc8\xf6\x91\x61\x1b\xf2\xdc\xf1\x6c\xa9\xec\xcb\x5a\x80" "\xd2\xe3\x5a\x9c\x34\xb5\xa9\xdc\x3a\x78\xb2\xd1\xe6\xe2\x85\x7d\xbb" "\x4a\x65\x67\x04\x91\x1b\x59\x36\xa6\xea\x88\xaa\xc0\x3a\xf6\xe9\x24" "\x84\x4b\xc8\xef\x0d\x9d\xe2\x9b\x62\x23\x02\xad\x3b\x16\xb4\xa0\x03" "\xa1\x57\x34\xe4\x4c\x2a\x55\xe1\x03\x44\xfc\xf7\x65\xaa\x53\xbf\x45" "\x74\xab\xe5\x18\xf9\xc3\x84\x33\xa0\xa5\xce\x1e\xbf\x5c\xa5\xef\x71" "\xae\x7b\x39\x13\x6b\x72\x11\x01\x3d\x49\xd8\x77\x85\xe3\x51\xb6\x3c" "\x50\xde\xe4\xee\x28\xbe\x69\xe6\x24\x66\x93\xe2\xda\xcb\xee\xa6\xb2" "\xcb\xa6\x46\x7c\x9f\x61\x8a\xec\x8b\x8a\x01\x02\x5b\xe1\x7e\x84\x51" "\x52\x77\xea\x35\x87\x56\xf5\x44\xf4\x54\x41\x50\x6d\xe2\x11\xab\xf6" "\xbe\x9b\xa4\xd9\xe2\x9b\x16\x30\xc3\xce\x9b\xf7\xe8\xc8\x15\xbb\x78" "\xda\x7d\xc6\xf1\xe6\x0f\x67\x07\x76\x04\xa0\x87\xc5\x02\xf4\x0a\x7f" "\x6b\xce\xbb\xf3\x85\xc5\xbf\xab\xcd\xe4\x6b\xe3\x91\x7e\x7b\x25\x86" "\x4e\xdc\xd5\x48\x4c\xcd\xd4\x47\x91\x2d\x91\xf0\xfc\x95\xb9\xa7\x28" "\x1b\x09\x70\x33\x37\x57\xf0\x97\x9a\xd8\x87\x5f\x07\xd4\x68\x8f\x46" "\xdf\xd4\x6c\xbe\xfe\xee\x1c\x09\xf6\x6f\x0f\xdf\xed\xc5\xc7\xac\xe8" "\x16\x34\xfd\x82\x4d\x7b\x8d\x32\x2a\x67\xb0\xff\x47\x7b\x82\xbd\xfa" "\x06\x25\x90\x92\xce\x24\xfe\xd3\x5a\x3b\xed\xe5\xac\x6a\x77\xc3\x43" "\x1c\x0d\x7d\xaf\x5b\xb5\x76\xb7\x23\xc1\x80\x2a\xd0\xf9\x35\x8f\xec" "\x36\x61\x0b\x8a\xdc\xba\x18\x13\x98\x4c\x07\x34\x58\x5e\xd8\xab\xc3" "\x35\xdc\xad\xca\xce\x2e\x8a\x01\x98\x25\x9e\x4a\xf4\x35\x46\xe2\xc7" "\x83\xb2\x0d\x8f\x8d\xa0\x04\x05\x25\xae\x11\x3c\xe9\xb3\x7f\x02\x09" "\x9f\x1f\x1b\xf0\x82\x36\x08\x8b\x92\xf2\x0f\x07\x84\xac\xaa\xdb\x5b" "\xa9\x00\xd5\x8a\x86\xc5\xcc\xf6\x68\x88\xb6\x4e\xdf\x73\x65\x9e\x49" "\xd3\x6d\xa2\x9e\xfd\x8d\x2b\x86\xa2\x72\x77\xb2\x10\xea\x95\x28\x08" "\xcb\xcc\xfb\x38\x0a\xf0\xbb\xe5\x6b\x64\x07\x9b\x7b\xb0\x21\x4a\x6b" "\xcf\x25\xd0\x95\xff\xb9\x48\x73\xf2\x19\x87\x0f\x46\xd7\x93\xeb\x5d" "\x2a\xd6\x76\xb3\xd8\x96\xff\xe4\xd7\xd8\x6a\x23\x7e\xff\x88\x41\xcb" "\xa4\xac\xa5\xcb\x1d\x6c\x9b\xf2\x33\xd3\xc4\x56\xb8\x5e\xde\xe1\xb3" "\x66\x76\xde\xbb\x7d\xf3\x3a\xf2\x68\xb2\x25\x5f\x33\x92\x02\x15\xbd" "\x84\xfd\x11\x00\x0a\x4d\x8e\x35\x6a\xdc\x97\x63\x49\x84\x90\x67\x38" "\x3e\xec\x47\x8a\x93\xdd\xa0\x65\xe9\x8b\xf9\x65\x03\xae\xf7\x19\xd6" "\x7e\xbb\x9e\x13\x7c\x13\xc4\x5c\x15\xe7\xd2\xc3\xdb\x1a\xc9\x61\xff" "\xd5\x55\xcd\xf1\x88\xa1\x8e\xde\x65\x2f\x19\xb2\x9d\xf8\xa9\x89\xad" "\xc4\x2a\x09\xc0\xef\xb9\x23\xfc\xf5\x42\x02\x33\x27\x24\x73\x83\x56" "\x6b\xe5\xa1\x25\xc0\xb4\xcd\x4d\x0f\x2a\x92\x6d\x07\xcf\xe8\xa1\xa1" "\x55\x96\xf8\x9f\xa7\xbf\x9a\x34\xee\x64\x7f\x1f\x1c\xd8\x8f\xe3\x17" "\x7d\x2c\x8e\x47\x07\x40\x71\xeb\xe8\xaa\x2b\xcd\x86\x4f\x1a\x84\x93" "\x25\xf9\x56\xc2\xdb\x0b\xe1\xc9\xc6\x88\xdc\x34\x8c\xcf\x75\x99\xe9" "\xf8\x8c\x9b\x37\xae\x89\x73\x07\x0c\x1d\x28\xba\xef\x36\xa7\x4a\xeb" "\x74\x28\x4e\xa5\xe2\xfa\x84\x90\x31\xf5\x31\xbd\x26\xbb\xd0\xae\x22" "\xcb\x4f\x00\x9c\xdd\xd9\x0f\x7a\x42\x11\x54\x79\x49\xf6\xea\x34\xb5" "\xdd\xe0\x26\x0e\xdf\xd8\x30\xce\x57\x44\xcf\xc3\x60\x24\xbb\x82\x13" "\x1b\x94\xbc\x9b\x1a\x6b\x79\xda\xaf\xc5\x7f\x1c\xef\x25\x46\x05\xe1" "\x2c\x2f\x99\x31\x55\x1e\x6f\xf7\xd3\xb2\x57\x16\xa8\x30\x49\x13\x69" "\x09\x5b\xbb\xd2\x10\xbf\x44\xa7\xd5\x79\x5e\x1c\x1d\xce\x37\xdc\xf7" "\x58\x9a\x2d\xd4\xcf\xa6\x44\x76\xfe\x80\x97\x0f\x3e\xc7\x4a\x81\x4d" "\x47\xa5\xf3\xbd\x8e\x34\x64\x65\x67\xdd\x95\x78\xd1\xd2\x69\xeb\x9f" "\x9c\x3d\x67\x6b\xf7\xe8\xf6\x56\xdb\x90\x0d\x59\x12\xb7\xf0\x12\xae" "\xcc\xaa\x9c\x5e\x1e\x19\x91\x8b\x73\x1e\xd7\x41\xcd\xa7\x69\xdd\xc0" "\x05\xb4\xc1\xa4\x99\x76\x19\x2b\xd0\x5d\xd2\x49\x13\xfb\x91\x32\x82" "\x44\x87\xee\x98\x95\xcf\x94\xba\x13\xd7\xd6\x7b\x83\x3c\xcd\x6a\xee" "\x1d\xe2\xc8\x23\x07\x57\xbf\xe2\xaf\x71\x21\x7a\x26\x41\x69\x22\xb1" "\x3c\x7b\x00\xe9\x82\xf4\x25\x1e\x55\x60\x6d\x6f\xe9\x93\xcd\xca\xdf" "\x49\x9b\xb0\x7a\x83\x5b\x36\xb1\xc3\xfb\x18\xc8\x6b\xee\xda\x00\x76" "\xa3\x11\x9f\x34\x83\xb5\xbd\xcc\x65\xe5\xc8\xec\xef\xcc\xe3\x72\x18" "\x19\xfe\x2a\xe7\xca\x81\x44\x79\xc6\x78\xd8\xf8\x41\xd8\xc8\x60\x3b" "\xc2\xd0\x55\x25\x4a\xef\x15\xf9\x2e\xc1\x13\x5e\x19\x69\x12\xda\xb7" "\xec\xe6\x6c\xb9\x01\xef\xe0\xb4\x7a\x02\x20\x2a\x6d\x60\xf9\x46\x08" "\xd8\xe7\x8b\x25\x23\xd0\xb9\x58\x4d\x15\x64\xc9\xef\x5c\xc7\xe4\x03" "\x6e\x57\xb5\x3b\xa3\xcd\xd0\x7f\xe1\x69\xda\x60\xe1\x75\x2c\x81\x1e" "\x5a\xc5\x41\x26\x37\x18\x5b\xbf\x58\xf7\xc3\xc9\xeb\x43\x9f\xcc\xdc" "\xb0\xa1\x0e\x20\xee\x56\xb6\x8b\x4e\x92\x6b\xf5\x3a\x14\x3d\xfe\x59" "\xe3\x47\x89\xca\x96\xf9\x58\xe3\x65\xf0\x1f\x60\x1d\x7e\x77\x34\x08" "\x0b\x37\x30\x9a\x3e\xbc\x3e\xaf\xb4\xb9\x72\xc0\xbf\x88\x96\xac\x90" "\xa1\x07\x9c\x04\x11\x44\x78\xc4\x1d\x76\x33\x94\xc6\xca\xb8\x6a\xe8" "\x0d\x93\xea\x2b\x80\x30\xd9\x62\xb0\x60\xc4\x0b\x87\x00\x43\x1b\xc5" "\x5f\xe5\xec\xd8\x23\x8f\x35\x97\x69\x0b\xf0\xad\xfa\x3e\xda\xe1\xe6" "\x02\xe1\x3f\xdd\x0b\xd9\x1b\x9a\xfc\x79\xd2\x21\x4f\x7b\x0e\x5a\xaa" "\x52\xca\x59\x66\x18\x9b\xa7\xc2\x16\xff\xe9\x1b\x34\x14\x9d\x8e\xb9" "\x99\x6d\x98\xa6\xbc\x86\x8f\x5e\xd6\x36\x7f\x6f\x33\x50\x8f\x00\xc0" "\x2a\x71\x5f\xaf\x5e\x16\x23\xc4\x9b\x4d\x86\x6a\x41\x85\xc5\x83\x1a" "\xd8\xb4\x32\x18\x4c\x4a\xa0\x60\x51\x56\x5b\xef\x76\x6e\x67\x10\x68" "\x7c\x34\xbb\x3d\xd0\x76\xbc\x9b\x48\x48\x46\xa7\x83\x12\xbf\xd4\xb6" "\xc3\xcd\xaf\x32\x41\xdd\x23\x6c\x84\xf0\x9b\x09\x23\xfa\xfb\x31\xf4" "\x91\x4c\xef\x97\x42\x4c\x8b\xa9\x8f\xf5\x5f\x4f\x3d\x18\xab\x6c\xc6" "\xfd\xf3\xe8\xe7\x30\xd5\x8a\xf7\x3b\xb2\x17\xfc\x2c\x30\x75\xc8\x5f" "\xf7\x69\x40\x84\x38\x8b\x91\xa5\xb6\x43\x2c\x79\xa7\xcc\x6a\xae\xac" "\xb4\xe1\x6f\x65\x64\xbe\x1a\x16\xaf\x09\x14\x7e\x10\xcf\xd1\xd9\x19" "\xc5\x5c\x22\x38\x90\x15\x16\x48\x09\xab\xf5\x00\x8d\x4c\x17\xa8\x8a" "\x27\x7a\x2e\x03\x4c\x96\xd2\xe6\xe0\xfd\xcd\xdc\xc9\x1b\x43\x69\xbc" "\x50\xe5\xaf\x72\x7d\x6f\x60\x96\x93\x54\x53\x2b\xed\x60\xf8\x8d\x39" "\x8e\x52\x09\xe8\xac\x18\x40\x18\x29\xfa\xe2\x12\x53\x2c\xf4\x01\xaa" "\xfa\xc4\x4b\x54\xb5\xb9\x08\x06\x69\xd2\xf6\x8f\x4a\x38\xa5\x46\xd9" "\xce\xf8\x37\x1a\x6e\x18\x32\x2d\x52\xed\x8c\x81\xee\xf9\x18\x6d\x78" "\xc4\xe4\x56\xcd\x84\xef\xdd\x75\x69\x80\xdd\xa9\x21\xe8\xd5\x41\x27" "\x30\xb2\x99\x69\x03\x8f\xcf\xa2\x5a\x68\x69\x01\xb3\xbb\x3f\x27\x96" "\x90\xbe\x2c\x72\x86\x34\x91\xa6\x01\x69\xb8\x74\x87\x24\x4e\xe8\x8a" "\x71\x97\x96\xe2\x89\x6e\xc4\xc7\xa2\xba\x78\x0d\x2c\xf1\x6e\x50\x92" "\x5c\xa2\x52\x11\x9d\x3d\xe6\xa6\x2f\x15\x12\x26\xf1\x1f\xc2\x39\x57" "\x11\xfa\x7f\x72\x2e\x5a\xa5\x8f\x5b\x5e\xf0\x11\xad\x34\x99\x30\xb4" "\xaa\x4f\x18\x54\x7c\x0b\x38\x7a\x76\x73\x67\x78\x69\x3b\x42\x93\x37" "\x48\x41\x6c\xaf\x5f\x09\xcd\xcb\xd0\x04\x12\x53\xbe\xfc\x85\x9a\x12" "\x4e\x0d\x62\x6e\x46\x4b\xe9\xaa\x0e\xc8\x1e\xe3\x65\x8e\x38\x23\xaf" "\x9b\x94\x95\xea\x67\x85\xe9\x88\x76\xa9\x50\x1d\x57\xf8\x5a\xf7\xfd" "\xea\x7f\xb5\x6f\x4e\xf5\xde\x06\xa5\xd0\x90\xf8\x6f\xe4\x02\x53\x4c" "\x58\xf8\xfa\x10\x6c\x27\xf6\xb4\x5c\x0c\x7f\xec\x36\x8e\x5d\x6a\xa1" "\xd4\xac\xa5\x08\x69\x41\x38\x4c\xda\x33\x21\x2f\xdc\x8f\x6e\x19\x7c" "\x90\x45\xdd\x57\x7b\x17\x0d\x7b\x2c\x67\xf9\x3c\xf6\x9a\xb5\xbf\x97" "\xa4\x52\xa8\xb1\x44\xd5\x1a\x25\x85\xe1\x07\xff\x9b\x81\x68\x40\x85" "\x95\x0c\xa8\xec\xd4\xe0\xd8\xf2\xb6\xe9\x99\x1d\x22\xf5\x96\x1c\x7e" "\xbd\x3d\xa9\x73\x43\xb8\x84\xa3\x40\x22\xea\xc5\xb7\xb4\xd3\x01\xc2" "\x58\x0a\x15\x49\xca\xc8\x9a\x56\xa2\x9d\x84\x2e\x61\x99\xa8\x17\x4b" "\x25\xc5\x55\x95\x7e\x76\xe2\x8c\xe5\xdb\x4a\x9e\x76\x69\x63\x2b\xf3" "\x64\x8d\x32\x92\x5c\x5c\x8f\x14\x42\xb0\x14\x22\x60\xf7\x4b\xd5\x69" "\x2e\x04\x64\x69\x10\x86\x59\x1a\xba\xcc\xa3\xcc\xbf\x5e\xb7\x68\xf6" "\xde\xa0\x58\x56\xa9\xad\xc9\xd9\xdf\xea\x5f\xb0\x3c\x1e\x93\x48\x8e" "\xca\xcd\x13\xb4\xa2\x02\x75\x7a\x00\x3b\xf6\x81\x50\x1d\x6e\x5b\xdf" "\x82\xe9\xa1\xbe\x05\xba\xf9\x44\x3a\x38\x14\x7a\xcf\xf3\xb7\xc3\x6a" "\x89\x0b\xa9\xab\xb6\x8c\xf3\x6d\xbc\xce\x9d\xd4\xa7\x33\x3d\x6b\x65" "\x8d\xbe\x01\x19\xda\x03\x8e\x0c\x82\x72\xda\x45\xae\xa3\xe7\xf2\x39" "\x49\x75\x29\x45\x64\xad\x45\x1c\x1e\x50\x3d\x57\xf5\x63\xcd\xe9\x84" "\x21\xe2\xf0\x35\xc3\x83\x23\x23\xe4\xd1\xd4\xde\xe4\xa0\xce\xe1\xa2" "\x2d\x66\x51\x5c\x4b\x95\xba\xe0\x18\x45\xe1\xcd\xe3\xbd\xfe\xd4\x7e" "\x3a\xab\x5c\x8d\x61\x8f\x96\x1e\x4a\xfe\x41\x13\x01\x53\xbc\xee\x50" "\xac\xba\x9a\xb1\x5d\x39\xd6\xa7\x72\x9c\x8a\x92\x26\x16\xb0\x6b\x8d" "\x1b\x68\xf3\x88\xea\xa1\xbc\xa2\x0e\xf9\x52\x55\x6d\x08\xa4\x09\x9a" "\xed\x1e\xd4\x3d\xc8\x97\xe4\x72\x04\x38\xb0\x24\x54\x09\xbe\xbb\xad" "\xdb\x98\x22\x3e\x44\xac\xdb\xed\x83\x96\x9e\x2e\x29\x26\xe5\xfc\xcd" "\x04\x2d\xcc\xbf\x68\x74\x05\x2c\xc4\x8b\x22\x23\x6d\x6f\xa1\x7d\x99" "\x0b\x97\xba\x84\x80\xe8\xdd\x7d\x0d\x5a\x1e\x8d\xe7\x45\x4d\x18\x5a" "\x58\x0b\x79\xce\xe9\xee\x30\x7a\x03\x90\x0e\xcb\xfc\x72\xf8\x20\x6c" "\x85\xad\x43\xb2\xbe\x12\xaf\x7d\x95\x1e\x12\xf5\x40\xfa\x4a\x06\xce" "\xc3\x5c\x74\x14\x1d\x5a\x77\xfd\x9e\x4e\x24\x81\xf3\xe8\xb3\x51\xe4" "\x4d\x47\xb0\x43\x78\x7d\xc8\x25\x35\xa9\x88\xa7\xd7\x71\x45\xc8\x60" "\xa8\x6f\xb2\xd8\xc1\xc9\xb2\xe4\x8c\x7f\x07\xf5\xe6\xa1\xb3\xb0\x99" "\xbf\x32\x4d\x5c\x78\xca\x15\x3c\x41\x1b\xa2\x8f\xef\xfe\xbc\x3c\x6e" "\x45\x82\xef\xa0\xb8\xcc\x25\xae\x58\x61\xe4\x75\x9f\x36\xd0\x7c\x48" "\x8d\xef\xae\xc0\x3a\xd5\xd6\xe2\x1f\x6a\x6c\xe7\x2d\xf1\x03\x3c\x28" "\xee\x17\x10\x60\x25\x69\x79\x20\x6e\x51\x68\x91\x68\x78\x53\xe9\x3c" "\x03\x24\x33\xd3\x37\xb2\xac\xed\x17\xa5\xf5\x3e\xfd\x81\x08\x2c\x3c" "\x45\x8b\xc0\x40\x82\xed\x31\x46\x8b\x74\xef\xd6\xea\x1f\x10\xc1\xd8" "\xb4\x12\x1c\x4f\x94\x69\x8d\xf3\x30\x6c\x64\xf3\x2a\x19\xae\xac\x72" "\xdc\x26\x6a\xae\x71\xe9\xc6\xc0\x01\x72\x52\x2c\xb4\x9a\xe7\x16\x36" "\xc5\xe8\x14\x4e\xa6\x3d\xe8\xd1\x88\x39\x55\x35\xd2\x7b\xce\x96\x41" "\xa2\x1f\x53\x51\xa1\x70\x73\xa1\xae\x2c\xcc\xa8\xb9\x79\x17\x8d\x51" "\x7a\xe4\x89\x70\x6d\x19\x05\x00\x73\xa4\x77\x9c\x4b\x24\xef\xc0\x5c" "\x12\xdd\xaf\xb9\xf1\xd4\xb4\xe7\x2f\xd6\x91\xd1\x23\x06\x87\x41\xeb" "\x35\x20\x04\xe5\x4f\x42\x41\x11\x16\x3d\x36\x5e\x1a\x06\x50\xe0\x84" "\x44\xa5\xe8\x5a\xf0\x68\xf8\xee\x67\x02\x7a\x17\xe5\x80\x1b\x46\xae" "\x41\xdd\x5b\xf2\xf4\x8d\xa0\x28\x1c\x80\x7e\xf1\xd5\xdb\xd6\xaf\xd9" "\xe7\x02\x8a\x6d\xa5\x65\x95\x71\x43\x44\xe8\xfe\xd3\x87\xf9\x09\x5a" "\x46\x88\x0c\x2d\x47\xd7\x7b\x51\x5a\xd5\x64\x31\x5a\xbd\x11\x70\xde" "\x71\xbb\xfc\xf0\xdb\xaf\x4e\x76\xcc\xc7\xbc\xc4\xf7\x88\xd8\x8e\x82" "\x03\x86\x33\xe8\xf8\x4e\x50\xa6\xd6\xd7\x2d\xd6\x70\x39\x9a\xae\xf3" "\xb4\xe1\x84\xcd\x2e\xc2\x3d\x20\x54\xac\xbc\xce\x1e\x27\x7a\x6d\xc3" "\x3f\x92\x30\xb6\x46\x12\xf7\x5b\x91\xff\x97\x2f\x88\x72\xab\x4e\x91" "\xea\x8a\xa8\xde\x91\xbf\x44\x27\xa9\x59\x5e\x73\xf8\xcd\x0f\x46\x84" "\x5c\xd8\x36\x01\x21\x68\x48\x71\x93\xff\x4d\x07\x21\x90\x6a\x0b\xf8" "\x08\x96\x07\x83\xf3\x52\xb6\xaa\x7d\x00\x46\xd0\x67\x60\xf6\x75\x78" "\xc6\x5b\x06\x5e\x4d\xe7\x50\xea\x24\x45\x27\xa5\xe2\x8d\x16\x80\xf3" "\x7a\x79\xc6\xc5\xee\x2b\x02\x9a\xb7\x5f\x98\x59\xc4\x22\x6d\xa0\x78" "\xf3\x36\x86\x98\x6a\xc0\x6f\x73\x09\x18\xad\x12\x8a\x69\xf8\x2c\x88" "\xf3\xf7\x50\xb3\xf2\xa1\xf8\x08\xf1\xed\x92\x3f\xac\xbc\x28\xc6\x85" "\x97\x10\x0e\x87\x7c\xee\x71\x6a\x37\xfc\x39\x03\x63\x48\xd2\x0f\x48" "\xf9\x4a\xd2\xac\xe6\x13\x8c\x65\x5d\x08\x80\x14\x23\x7c\x3b\xa0\xc6" "\x96\x1f\x5a\x68\x4d\x12\x1b\x87\x6e\x69\x99\xd8\x4a\xe1\x54\xa5\x99" "\xc7\x17\x7c\x8d\xfd\xb3\x30\x92\xe4\x3b\x65\x55\x84\x81\xca\xac\xc8" "\x6d\xf6\x06\xa1\x4c\x5a\xcd\xbc\x4b\xa5\xdc\x32\xf4\xb7\x32\x26\x8e" "\x38\xe9\xb9\x9b\x3e\x00\x30\x42\x5e\x80\x18\xa1\x12\x3f\x39\x1c\x07" "\xff\xcc\xab\x69\x91\x81\xf5\x27\x18\x1b\x9f\x8e\x7f\xe0\xeb\x73\x70" "\xbc\x67\xc6\x11\x4d\x36\xb8\x24\xc1\x07\x5d\x56\x8e\x51\x75\xd7\xe5" "\x8e\x55\xce\x72\xd2\xe8\xa1\xe7\x59\x4d\x3b\x05\x74\x0b\x62\x4b\x06" "\x5e\x0f\x39\x00\x3f\x75\x35\xe4\x5e\x79\xd6\xa7\x01\xe7\x7c\xd0\x80" "\x5a\x33\xbb\x55\x6c\x8d\x50\x76\x63\x96\x3c\x76\xf5\x38\xa0\xcb\x30" "\x61\x82\xb6\x75\xd4\x5c\xe4\x1e\x22\xd1\xe9\x82\xd4\x8b\x93\xc9\xac" "\x2b\x73\x48\x1d\x03\x42\x26\x4e\x6b\x2d\x71\x64\xeb\x6e\x4d\x56\x02" "\xe1\xac\xbf\x52\x3a\xde\x02\xed\xb9\xc8\x20\x70\x0e\xd7\x3f\xbd\x34" "\xe2\x81\x2a\xb7\x04\xce\xb4\x99\x8c\xb7\xc5\x1f\xee\xb1\xd4\xa7\x9e" "\x72\xb9\xb7\x51\x26\x44\xce\xac\xa3\xd8\x04\xc9\x04\x94\xd0\x77\x6c" "\xc3\x7f\xe1\x96\xc0\xd2\x23\x44\xe6\x06\x93\x7a\xa6\x82\x9b\x24\xb1", 3910); *(uint64_t*)0x200005c8 = 0xf46; *(uint64_t*)0x20001558 = 5; *(uint64_t*)0x20001560 = 0; *(uint64_t*)0x20001568 = 0; *(uint32_t*)0x20001570 = 0; *(uint32_t*)0x20001578 = 0; *(uint64_t*)0x20001580 = 0; *(uint32_t*)0x20001588 = 0; *(uint64_t*)0x20001590 = 0x20000bc0; *(uint64_t*)0x20000bc0 = 0x20000ac0; memset((void*)0x20000ac0, 150, 1); *(uint64_t*)0x20000bc8 = 1; *(uint64_t*)0x20001598 = 1; *(uint64_t*)0x200015a0 = 0; *(uint64_t*)0x200015a8 = 0; *(uint32_t*)0x200015b0 = 0; *(uint32_t*)0x200015b8 = 0; *(uint64_t*)0x200015c0 = 0; *(uint32_t*)0x200015c8 = 0; *(uint64_t*)0x200015d0 = 0x20001340; *(uint64_t*)0x20001340 = 0x200011c0; memset((void*)0x200011c0, 252, 1); *(uint64_t*)0x20001348 = 0x1e6a8; *(uint64_t*)0x200015d8 = 1; *(uint64_t*)0x200015e0 = 0; *(uint64_t*)0x200015e8 = 0; *(uint32_t*)0x200015f0 = 0; *(uint32_t*)0x200015f8 = 0; syscall(__NR_sendmmsg, /*fd=*/r[3], /*mmsg=*/0x20001540ul, /*vlen=*/3ul, /*f=*/0ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); setup_sysctl(); setup_cgroups(); setup_binfmt_misc(); use_temporary_dir(); do_sandbox_namespace(); return 0; }