// https://syzkaller.appspot.com/bug?id=0a16338c4573e63781a4605c5b0da7184982093f // 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 #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif 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 void netlink_add_neigh(struct nlmsg* nlmsg, int sock, const char* name, const void* addr, int addrsize, const void* mac, int macsize) { struct ndmsg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.ndm_family = addrsize == 4 ? AF_INET : AF_INET6; hdr.ndm_ifindex = if_nametoindex(name); hdr.ndm_state = NUD_PERMANENT; netlink_init(nlmsg, RTM_NEWNEIGH, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); netlink_attr(nlmsg, NDA_DST, addr, addrsize); netlink_attr(nlmsg, NDA_LLADDR, mac, macsize); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static struct nlmsg nlmsg; static int tunfd = -1; #define TUN_IFACE "syz_tun" #define LOCAL_MAC 0xaaaaaaaaaaaa #define REMOTE_MAC 0xaaaaaaaaaabb #define LOCAL_IPV4 "172.20.20.170" #define REMOTE_IPV4 "172.20.20.187" #define LOCAL_IPV6 "fe80::aa" #define REMOTE_IPV6 "fe80::bb" #define IFF_NAPI 0x0010 static void initialize_tun(void) { tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK); if (tunfd == -1) { printf("tun: can't open /dev/net/tun: please enable CONFIG_TUN=y\n"); printf("otherwise fuzzing or reproducing might not work as intended\n"); return; } const int kTunFd = 200; if (dup2(tunfd, kTunFd) < 0) exit(1); close(tunfd); tunfd = kTunFd; struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, TUN_IFACE, IFNAMSIZ); ifr.ifr_flags = IFF_TAP | IFF_NO_PI; if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) { exit(1); } char sysctl[64]; sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/accept_dad", TUN_IFACE); write_file(sysctl, "0"); sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/router_solicitations", TUN_IFACE); write_file(sysctl, "0"); int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) exit(1); netlink_add_addr4(&nlmsg, sock, TUN_IFACE, LOCAL_IPV4); netlink_add_addr6(&nlmsg, sock, TUN_IFACE, LOCAL_IPV6); uint64_t macaddr = REMOTE_MAC; struct in_addr in_addr; inet_pton(AF_INET, REMOTE_IPV4, &in_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in_addr, sizeof(in_addr), &macaddr, ETH_ALEN); struct in6_addr in6_addr; inet_pton(AF_INET6, REMOTE_IPV6, &in6_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in6_addr, sizeof(in6_addr), &macaddr, ETH_ALEN); macaddr = LOCAL_MAC; netlink_device_change(&nlmsg, sock, TUN_IFACE, true, 0, &macaddr, ETH_ALEN, NULL); close(sock); } #define DEVLINK_FAMILY_NAME "devlink" #define DEVLINK_CMD_PORT_GET 5 #define DEVLINK_ATTR_BUS_NAME 1 #define DEVLINK_ATTR_DEV_NAME 2 #define DEVLINK_ATTR_NETDEV_NAME 7 static struct nlmsg nlmsg2; static void initialize_devlink_ports(const char* bus_name, const char* dev_name, const char* netdev_prefix) { struct genlmsghdr genlhdr; int len, total_len, id, err, offset; uint16_t netdev_index; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock == -1) exit(1); int rtsock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (rtsock == -1) exit(1); id = netlink_query_family_id(&nlmsg, sock, DEVLINK_FAMILY_NAME, 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); } static int runcmdline(char* cmdline) { int ret = system(cmdline); if (ret) { } return ret; } #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); } static int read_tun(char* data, int size) { if (tunfd < 0) return -1; int rv = read(tunfd, data, size); if (rv < 0) { if (errno == EAGAIN || errno == EBADFD) return -1; exit(1); } return rv; } static void flush_tun() { char data[1000]; while (read_tun(&data[0], sizeof(data)) != -1) { } } #define MAX_FDS 30 //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, loopfd = -1, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } #define XT_TABLE_SIZE 1536 #define XT_MAX_ENTRIES 10 struct xt_counters { uint64_t pcnt, bcnt; }; struct ipt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_entries; unsigned int size; }; struct ipt_get_entries { char name[32]; unsigned int size; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct ipt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_counters; struct xt_counters* counters; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct ipt_table_desc { const char* name; struct ipt_getinfo info; struct ipt_replace replace; }; static struct ipt_table_desc ipv4_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; static struct ipt_table_desc ipv6_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; #define IPT_BASE_CTL 64 #define IPT_SO_SET_REPLACE (IPT_BASE_CTL) #define IPT_SO_GET_INFO (IPT_BASE_CTL) #define IPT_SO_GET_ENTRIES (IPT_BASE_CTL + 1) struct arpt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_entries; unsigned int size; }; struct arpt_get_entries { char name[32]; unsigned int size; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_counters; struct xt_counters* counters; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_table_desc { const char* name; struct arpt_getinfo info; struct arpt_replace replace; }; static struct arpt_table_desc arpt_tables[] = { {.name = "filter"}, }; #define ARPT_BASE_CTL 96 #define ARPT_SO_SET_REPLACE (ARPT_BASE_CTL) #define ARPT_SO_GET_INFO (ARPT_BASE_CTL) #define ARPT_SO_GET_ENTRIES (ARPT_BASE_CTL + 1) static void checkpoint_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; table->replace.size = table->info.size; memcpy(table->replace.hook_entry, table->info.hook_entry, sizeof(table->replace.hook_entry)); memcpy(table->replace.underflow, table->info.underflow, sizeof(table->replace.underflow)); memcpy(table->replace.entrytable, entries.entrytable, table->info.size); } close(fd); } static void reset_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; if (table->info.valid_hooks == 0) continue; struct ipt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, level, IPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_arptables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; table->replace.size = table->info.size; memcpy(table->replace.hook_entry, table->info.hook_entry, sizeof(table->replace.hook_entry)); memcpy(table->replace.underflow, table->info.underflow, sizeof(table->replace.underflow)); memcpy(table->replace.entrytable, entries.entrytable, table->info.size); } close(fd); } static void reset_arptables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; if (table->info.valid_hooks == 0) continue; struct arpt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } else { } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, SOL_IP, ARPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } #define NF_BR_NUMHOOKS 6 #define EBT_TABLE_MAXNAMELEN 32 #define EBT_CHAIN_MAXNAMELEN 32 #define EBT_BASE_CTL 128 #define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) #define EBT_SO_GET_INFO (EBT_BASE_CTL) #define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO + 1) #define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES + 1) #define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO + 1) struct ebt_replace { char name[EBT_TABLE_MAXNAMELEN]; unsigned int valid_hooks; unsigned int nentries; unsigned int entries_size; struct ebt_entries* hook_entry[NF_BR_NUMHOOKS]; unsigned int num_counters; struct ebt_counter* counters; char* entries; }; struct ebt_entries { unsigned int distinguisher; char name[EBT_CHAIN_MAXNAMELEN]; unsigned int counter_offset; int policy; unsigned int nentries; char data[0] __attribute__((aligned(__alignof__(struct ebt_replace)))); }; struct ebt_table_desc { const char* name; struct ebt_replace replace; char entrytable[XT_TABLE_SIZE]; }; static struct ebt_table_desc ebt_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "broute"}, }; static void checkpoint_ebtables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (size_t i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_INFO, &table->replace, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->replace.entries_size > sizeof(table->entrytable)) exit(1); table->replace.num_counters = 0; table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_ENTRIES, &table->replace, &optlen)) exit(1); } close(fd); } static void reset_ebtables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; if (table->replace.valid_hooks == 0) continue; struct ebt_replace replace; memset(&replace, 0, sizeof(replace)); strcpy(replace.name, table->name); socklen_t optlen = sizeof(replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INFO, &replace, &optlen)) exit(1); replace.num_counters = 0; table->replace.entries = 0; for (unsigned h = 0; h < NF_BR_NUMHOOKS; h++) table->replace.hook_entry[h] = 0; if (memcmp(&table->replace, &replace, sizeof(table->replace)) == 0) { char entrytable[XT_TABLE_SIZE]; memset(&entrytable, 0, sizeof(entrytable)); replace.entries = entrytable; optlen = sizeof(replace) + replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_ENTRIES, &replace, &optlen)) exit(1); if (memcmp(table->entrytable, entrytable, replace.entries_size) == 0) continue; } for (unsigned j = 0, h = 0; h < NF_BR_NUMHOOKS; h++) { if (table->replace.valid_hooks & (1 << h)) { table->replace.hook_entry[h] = (struct ebt_entries*)table->entrytable + j; j++; } } table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (setsockopt(fd, SOL_IP, EBT_SO_SET_ENTRIES, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_net_namespace(void) { checkpoint_ebtables(); checkpoint_arptables(); checkpoint_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); checkpoint_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } static void reset_net_namespace(void) { reset_ebtables(); reset_arptables(); reset_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); reset_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } 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 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 do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); initialize_netdevices_init(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); initialize_tun(); initialize_netdevices(); setup_binderfs(); loop(); exit(1); } #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(); checkpoint_net_namespace(); } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } reset_net_namespace(); } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); setup_cgroups_test(); write_file("/proc/self/oom_score_adj", "1000"); flush_tun(); 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)); } } #define FUSE_MIN_READ_BUFFER 8192 enum fuse_opcode { FUSE_LOOKUP = 1, FUSE_FORGET = 2, FUSE_GETATTR = 3, FUSE_SETATTR = 4, FUSE_READLINK = 5, FUSE_SYMLINK = 6, FUSE_MKNOD = 8, FUSE_MKDIR = 9, FUSE_UNLINK = 10, FUSE_RMDIR = 11, FUSE_RENAME = 12, FUSE_LINK = 13, FUSE_OPEN = 14, FUSE_READ = 15, FUSE_WRITE = 16, FUSE_STATFS = 17, FUSE_RELEASE = 18, FUSE_FSYNC = 20, FUSE_SETXATTR = 21, FUSE_GETXATTR = 22, FUSE_LISTXATTR = 23, FUSE_REMOVEXATTR = 24, FUSE_FLUSH = 25, FUSE_INIT = 26, FUSE_OPENDIR = 27, FUSE_READDIR = 28, FUSE_RELEASEDIR = 29, FUSE_FSYNCDIR = 30, FUSE_GETLK = 31, FUSE_SETLK = 32, FUSE_SETLKW = 33, FUSE_ACCESS = 34, FUSE_CREATE = 35, FUSE_INTERRUPT = 36, FUSE_BMAP = 37, FUSE_DESTROY = 38, FUSE_IOCTL = 39, FUSE_POLL = 40, FUSE_NOTIFY_REPLY = 41, FUSE_BATCH_FORGET = 42, FUSE_FALLOCATE = 43, FUSE_READDIRPLUS = 44, FUSE_RENAME2 = 45, FUSE_LSEEK = 46, FUSE_COPY_FILE_RANGE = 47, FUSE_SETUPMAPPING = 48, FUSE_REMOVEMAPPING = 49, CUSE_INIT = 4096, CUSE_INIT_BSWAP_RESERVED = 1048576, FUSE_INIT_BSWAP_RESERVED = 436207616, }; struct fuse_in_header { uint32_t len; uint32_t opcode; uint64_t unique; uint64_t nodeid; uint32_t uid; uint32_t gid; uint32_t pid; uint32_t padding; }; struct fuse_out_header { uint32_t len; uint32_t error; uint64_t unique; }; struct syz_fuse_req_out { struct fuse_out_header* init; struct fuse_out_header* lseek; struct fuse_out_header* bmap; struct fuse_out_header* poll; struct fuse_out_header* getxattr; struct fuse_out_header* lk; struct fuse_out_header* statfs; struct fuse_out_header* write; struct fuse_out_header* read; struct fuse_out_header* open; struct fuse_out_header* attr; struct fuse_out_header* entry; struct fuse_out_header* dirent; struct fuse_out_header* direntplus; struct fuse_out_header* create_open; struct fuse_out_header* ioctl; }; static int fuse_send_response(int fd, const struct fuse_in_header* in_hdr, struct fuse_out_header* out_hdr) { if (!out_hdr) { return -1; } out_hdr->unique = in_hdr->unique; if (write(fd, out_hdr, out_hdr->len) == -1) { return -1; } return 0; } static volatile long syz_fuse_handle_req(volatile long a0, volatile long a1, volatile long a2, volatile long a3) { struct syz_fuse_req_out* req_out = (struct syz_fuse_req_out*)a3; struct fuse_out_header* out_hdr = NULL; char* buf = (char*)a1; int buf_len = (int)a2; int fd = (int)a0; if (!req_out) { return -1; } if (buf_len < FUSE_MIN_READ_BUFFER) { return -1; } int ret = read(fd, buf, buf_len); if (ret == -1) { return -1; } if ((size_t)ret < sizeof(struct fuse_in_header)) { return -1; } const struct fuse_in_header* in_hdr = (const struct fuse_in_header*)buf; if (in_hdr->len > (uint32_t)ret) { return -1; } switch (in_hdr->opcode) { case FUSE_GETATTR: case FUSE_SETATTR: out_hdr = req_out->attr; break; case FUSE_LOOKUP: case FUSE_SYMLINK: case FUSE_LINK: case FUSE_MKNOD: case FUSE_MKDIR: out_hdr = req_out->entry; break; case FUSE_OPEN: case FUSE_OPENDIR: out_hdr = req_out->open; break; case FUSE_STATFS: out_hdr = req_out->statfs; break; case FUSE_RMDIR: case FUSE_RENAME: case FUSE_RENAME2: case FUSE_FALLOCATE: case FUSE_SETXATTR: case FUSE_REMOVEXATTR: case FUSE_FSYNCDIR: case FUSE_FSYNC: case FUSE_SETLKW: case FUSE_SETLK: case FUSE_ACCESS: case FUSE_FLUSH: case FUSE_RELEASE: case FUSE_RELEASEDIR: case FUSE_UNLINK: case FUSE_DESTROY: out_hdr = req_out->init; if (!out_hdr) { return -1; } out_hdr->len = sizeof(struct fuse_out_header); break; case FUSE_READ: out_hdr = req_out->read; break; case FUSE_READDIR: out_hdr = req_out->dirent; break; case FUSE_READDIRPLUS: out_hdr = req_out->direntplus; break; case FUSE_INIT: out_hdr = req_out->init; break; case FUSE_LSEEK: out_hdr = req_out->lseek; break; case FUSE_GETLK: out_hdr = req_out->lk; break; case FUSE_BMAP: out_hdr = req_out->bmap; break; case FUSE_POLL: out_hdr = req_out->poll; break; case FUSE_GETXATTR: case FUSE_LISTXATTR: out_hdr = req_out->getxattr; break; case FUSE_WRITE: case FUSE_COPY_FILE_RANGE: out_hdr = req_out->write; break; case FUSE_FORGET: case FUSE_BATCH_FORGET: return 0; case FUSE_CREATE: out_hdr = req_out->create_open; break; case FUSE_IOCTL: out_hdr = req_out->ioctl; break; default: return -1; } return fuse_send_response(fd, in_hdr, out_hdr); } #define SWAP_FILE "./swap-file" #define SWAP_FILE_SIZE (128 * 1000 * 1000) static void setup_swap() { swapoff(SWAP_FILE); unlink(SWAP_FILE); int fd = open(SWAP_FILE, O_CREAT | O_WRONLY | O_CLOEXEC, 0600); if (fd == -1) { exit(1); return; } fallocate(fd, FALLOC_FL_ZERO_RANGE, 0, SWAP_FILE_SIZE); close(fd); char cmdline[64]; sprintf(cmdline, "mkswap %s", SWAP_FILE); if (runcmdline(cmdline)) { exit(1); return; } if (swapon(SWAP_FILE, SWAP_FLAG_PREFER) == 1) { exit(1); return; } } 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 < 6; 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); reset_loop(); 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, 0x0, 0x0, 0x0}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x20000440, "/dev/fuse\000", 10); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000440ul, /*flags=*/2ul, /*mode=*/0ul); if (res != -1) r[0] = res; break; case 1: memcpy((void*)0x20000240, "fuse\000", 5); memcpy((void*)0x20000400, "./file0\000", 8); memcpy((void*)0x20002740, "fd", 2); *(uint8_t*)0x20002742 = 0x3d; sprintf((char*)0x20002743, "0x%016llx", (long long)r[0]); *(uint8_t*)0x20002755 = 0x2c; memcpy((void*)0x20002756, "rootmode", 8); *(uint8_t*)0x2000275e = 0x3d; sprintf((char*)0x2000275f, "%023llo", (long long)0x4000); *(uint8_t*)0x20002776 = 0x2c; memcpy((void*)0x20002777, "user_id", 7); *(uint8_t*)0x2000277e = 0x3d; sprintf((char*)0x2000277f, "%020llu", (long long)0); *(uint8_t*)0x20002793 = 0x2c; memcpy((void*)0x20002794, "group_id", 8); *(uint8_t*)0x2000279c = 0x3d; sprintf((char*)0x2000279d, "%020llu", (long long)0); *(uint8_t*)0x200027b1 = 0x2c; *(uint8_t*)0x200027b2 = 0; syz_mount_image(/*fs=*/0x20000240, /*dir=*/0x20000400, /*flags=*/0, /*opts=*/0x20002740, /*chdir=*/0, /*size=*/0, /*img=*/0); break; case 2: res = syscall(__NR_read, /*fd=*/r[0], /*buf=*/0x200027c0ul, /*len=*/0x2020ul); if (res != -1) { r[1] = *(uint64_t*)0x200027c8; r[2] = *(uint32_t*)0x200027d0; r[3] = *(uint32_t*)0x200027d4; } break; case 3: memcpy( (void*)0x20004800, "\x69\x1e\x4b\x19\x8a\x6a\x24\x9f\x31\xea\xed\x11\xe2\x17\xec\x2c\x06" "\xe0\x75\xcf\x70\x2f\xdd\x65\xc7\x4b\x75\x1c\x8a\xa8\x91\x9d\xb8\x50" "\xcf\x0c\x01\x53\x17\x40\x1e\x02\xb1\xa0\x55\xa7\xe2\xc8\xf0\xce\xc4" "\x70\x70\x02\x5d\x89\xf2\x83\x8f\x78\x09\xe2\x8e\xf8\x8c\x4e\xfe\x26" "\x92\x5f\x0e\xd6\x55\xb3\x2b\x35\x04\x0a\x41\xcf\x8a\x8a\xf3\x82\x69" "\x1f\xfb\xd0\xaf\xe7\x46\xb0\xf6\x4f\xb0\xd6\xc0\x5e\x14\xa9\x9e\x11" "\x0b\xd9\xca\x78\x17\x70\x07\xd8\xdc\x15\x37\x90\x16\xd7\x62\x10\x5f" "\x0e\xe7\xd8\x61\x0a\x6a\x67\xce\x8f\x05\xf4\xca\xa1\x81\x9e\x37\x23" "\x68\x2f\x49\xc7\x86\x3b\xda\xf0\xee\xbd\x8e\x31\x9a\xcb\x03\xa3\xf1" "\xea\x3e\xa0\xf3\xf6\x26\x79\x40\x9c\xac\xb1\x03\x43\x70\x0d\xe9\x64" "\x97\xe6\xee\x68\x6a\x9d\xc2\xbb\x2f\x8a\x61\x36\xae\xcb\xb7\x58\x23" "\xc1\x5f\x4c\x8a\x83\xd7\xd3\xfc\x12\xd1\xc6\x56\x9a\x71\x07\x58\x5a" "\xb5\x6c\xed\x9d\x0c\x56\x5e\x2d\xf9\x7d\xcc\x2a\xda\xcd\x15\xd3\x9e" "\x62\xc6\xf2\x40\xdf\x01\x1e\xd1\xf2\x55\x98\x67\x7c\x05\x7b\xd7\xd3" "\x50\x20\xb1\xe5\x7d\xdc\x80\x10\xe9\x33\xf3\xbf\xdb\x1a\x15\xf1\x5d" "\x00\x76\x1f\x89\x26\x7b\x83\xd6\x59\x92\x64\x85\xfc\x8e\xe5\xd2\x3b" "\x2d\xdc\x09\x66\x02\xe1\x17\xc4\x8b\xc6\x11\x26\x05\x90\x66\x21\xc5" "\xf9\x8d\x23\x3f\xb5\x76\xab\xec\xd0\xe7\x0a\xfc\x8b\x6f\xd2\xa4\x38" "\xb0\x4e\xb2\xae\x82\x42\xae\x60\x9c\xed\x14\x40\xe9\xb5\xc5\x9e\x2e" "\x32\xf8\x85\x22\x2f\x7a\x3d\x85\x8d\xa8\x6a\x4d\x6c\x28\x37\xc9\xe1" "\xe2\x5c\xea\xea\x47\xc0\x14\x10\xd3\xb7\x8b\x89\xcc\xe5\xd6\xb1\xbf" "\xb0\x0f\x40\xa9\x91\x0c\xe5\x4b\x15\xa8\x67\xb6\xf3\x7a\xf3\x6c\x94" "\xc4\xb3\x84\xb7\x3d\x6c\x5e\xf3\xce\xf8\x25\x20\x6e\xef\x16\x1f\xa0" "\x67\xb8\x1e\xca\xdd\xad\xff\x81\x41\xb2\x7b\x9c\xc2\x0f\x2d\x44\x98" "\x9b\x3a\x86\x7e\x5b\x42\xea\x8d\x98\xb7\xbd\xf1\xb0\x1e\x59\xe0\xe5" "\x54\x95\x97\xaf\xbe\x93\xa4\xbd\x83\xdb\x89\x0c\x58\x86\x85\x55\x31" "\xe2\xdf\xdc\xaa\xab\x9f\x58\x2d\x97\x88\x1a\xfa\xe1\x97\x31\xac\xaa" "\x33\x57\x37\x10\xa2\xe9\x7d\xad\x25\x1c\x3a\x9c\x75\xa2\x50\x4d\xf8" "\x5a\x98\x44\x52\xb8\xff\x81\x9a\x28\x38\x04\xa5\xfc\xac\x4d\x25\x87" "\xfc\x30\x73\xfa\xa7\x82\x11\xcd\x05\x7d\x4f\xda\x93\x0f\xae\xc1\x2d" "\x9d\x1f\xf3\x3b\xaa\xc9\xae\xe9\xc3\x19\x5f\x74\xa1\xe1\x93\xdc\xe4" "\xb9\xec\x5e\xe4\x7a\x61\xce\x95\x93\xbf\xcd\x9f\x52\xf1\x2d\x21\xe1" "\xdd\xc6\xe8\xef\xee\xef\xc7\x40\xec\x71\xd1\xe0\xa0\xdb\x5e\x60\x66" "\x0b\x5a\x68\x9b\xf2\xa3\x3f\x0f\xd8\x2d\x47\x95\x76\xa1\x06\xa6\x3b" "\x94\x98\xe7\x99\x17\xd4\xda\xcc\xea\xb0\x7d\xe1\x16\x98\x2e\xb3\x7c" "\xa2\x05\x95\xff\x62\x14\xa4\x18\x32\x8c\xba\x04\xb6\x8b\x74\x50\x54" "\x4c\x06\xfc\x1b\xd5\x35\xd2\xf6\x27\xc0\xe3\x91\x69\x41\xb5\x46\xe0" "\x9c\x15\xd6\x8c\x1e\xae\x97\x8d\xdd\xb2\x61\xb8\x86\xff\x7c\x47\x84" "\xd5\xe2\xb6\x35\x58\x93\x13\x40\xbc\xbf\xc7\xea\x90\xde\xf1\x74\xa8" "\x92\xea\x47\x97\xd4\xc0\x3b\xf8\x0e\x8f\xb1\xa2\x2e\x21\x1d\x04\x9a" "\x4b\xc6\x70\x8a\x89\x9c\x12\x74\x17\x8b\x39\x27\x10\xac\xee\x09\xc7" "\x2b\x04\x8b\xe6\x60\x95\x54\x02\xd1\x2d\x7a\x9a\x17\x32\x51\xfe\x6c" "\xa1\xe9\xb8\xb9\xc0\xe3\x30\x6f\x05\xfa\x98\x7a\x09\xc9\x70\x93\xb6" "\x15\x9b\x26\xc7\x15\x97\xb3\x1f\x2f\xc3\x53\x5d\x04\xa4\xeb\x18\xd4" "\x33\x35\x88\x32\x10\x46\x31\x1b\x65\x2c\xdb\xf6\x8f\x3a\x4c\x40\x1c" "\xae\x75\x71\x0f\xa7\x59\x86\x55\x3d\x12\x66\xb3\x72\x7a\xfe\x17\x2c" "\xca\x5f\xda\x22\xc5\x0c\x00\x5c\xb5\x7b\x71\x82\x35\x00\x2d\x1d\x60" "\xbb\x8c\xe8\x70\xb5\x40\xb8\x68\x07\x9b\x17\x27\x54\xbf\xdf\xcb\x2e" "\x37\x3c\xf3\xe2\x6c\xba\x1a\xa1\x0d\x02\x45\x6f\x43\x67\xce\x9e\x40" "\x68\x29\x2c\x5b\xf0\x8b\x0b\xbc\x14\x53\x04\x1b\xe6\x96\x53\xeb\x23" "\x17\x15\xa9\xd0\xcd\x0b\x93\xb6\xe7\x00\xa2\xdb\xe1\x8c\xb7\xb8\xd9" "\xf8\x26\xdc\xef\x92\xc7\x9a\xa0\xa6\x18\x5e\xf6\x32\x93\x94\xda\x52" "\x36\x63\xca\x88\xe2\xe6\x5b\xd8\x87\x8e\xe1\xa9\x8b\xf6\x65\xf4\xfb" "\x57\x48\x01\xa7\x74\x29\xab\x23\xfd\xb0\x57\x9a\x68\xd5\xb1\x2a\xca" "\xc7\x84\x42\x53\x23\x6c\xd4\xfc\xf5\x81\x5d\xf6\x1c\x89\x64\x13\xa3" "\x22\xcf\x6f\xd4\x40\x3e\x0d\xa7\x21\x45\x58\x93\x85\x8b\x0c\x08\x4b" "\x5b\x60\xd7\x43\x41\x14\x25\xde\x59\xee\x3d\xf9\xd7\x1f\xed\x97\x9b" "\xd4\x10\x50\xa0\x8f\xc7\x4c\x47\x7d\xc5\x99\x0f\x5e\xcb\xb6\x08\x3b" "\xd8\xff\xdd\x87\xb1\xe6\x03\x9e\x5f\x1b\x19\x39\xe2\xc1\xe7\x3b\x70" "\x63\x15\x1c\x67\x7a\x91\x33\x75\x2e\x5d\x08\xeb\xf9\x3f\x2a\x69\x73" "\x16\x1d\xc3\x20\xea\xce\x38\xe2\x39\xbf\x0c\xc0\x4a\x24\xd1\xfc\xff" "\xaf\x52\x32\xf4\xeb\x30\x65\xdf\xdc\xc3\x68\x97\x95\x51\x57\xa9\xc3" "\xcc\x23\x8c\x72\xab\xe0\x06\xe1\xf4\xe6\x27\x1c\xb6\x8d\x38\x3e\xc0" "\x49\x38\x3a\x0e\x8c\xef\xdd\x2d\x0a\x57\xe9\x10\x82\xec\x03\x32\x83" "\x2e\xb9\xd7\x1c\x1a\x71\x5f\x16\x4d\x5a\x28\xcd\x6c\x73\xda\xc8\x46" "\xc2\x79\xf7\x31\xd8\x3f\x66\x9f\xcb\xc3\x15\x32\xb8\x06\x8a\x8e\x96" "\xec\xc5\xff\x6d\xe9\x2c\x80\x34\x97\x7a\xdd\x86\x94\xcd\xea\x9b\x33" "\x3a\xc6\xbb\x70\xae\x5f\x66\xed\x92\xd4\x3a\x3f\xd3\xf8\x7c\x84\xc9" "\x42\xfd\xa3\xb7\xfa\xb3\xc7\xfc\xb3\xe5\xee\x48\xb4\xe6\x5f\x00\xe7" "\x9f\x97\x57\xd9\xd4\xbc\xbf\x21\xc4\x03\x56\x92\x2e\x01\xbc\x4b\x42" "\x9f\xa1\x50\x2d\x03\xa1\x4e\xea\x94\x24\x35\xda\x98\x22\x1e\x63\x76" "\xb7\xc6\xe7\xa2\x61\xfa\x43\xc4\x32\x95\x95\xac\xdf\x8b\x88\x27\xde" "\x80\x2d\x57\xfe\x03\x25\xa6\x8f\x20\x0f\x34\x1e\x95\xed\xf6\x7a\xb6" "\x49\x6b\x9e\x2d\x53\xf1\x7f\xd2\x47\xf9\x0d\x1d\xe5\x41\x81\xec\x61" "\xcf\xeb\x40\x99\x46\x78\xd0\x94\x7d\x51\x90\xc1\xcb\xcc\x09\x7e\x0f" "\x30\x9f\x0d\x2a\xf7\x2b\x34\x62\x97\x4c\x61\xa3\x37\xc0\xaf\xb5\xf3" "\x10\x28\x92\xda\xac\x23\xf5\x48\x8e\x27\xc8\xd3\xec\x4e\xb0\xb8\x5c" "\x94\x04\x55\x04\x21\x65\xcb\x7c\x11\x2d\xc1\xd4\x39\x7f\x09\x10\x69" "\xa6\xfc\x93\x91\x6c\x44\x5b\x10\xaa\x64\x79\xde\x31\x51\xb3\xff\x54" "\x58\xfd\x58\x69\xd1\xe0\x4d\xe2\xd2\xf6\x6f\xbd\x43\xb8\x74\x36\x42" "\xca\x5f\xd4\x3d\x48\xf5\x67\xef\x50\x9a\x9a\x44\x7b\xe1\xe5\xea\x70" "\x9f\x48\xcf\x35\x43\x3f\xf3\xd8\x19\xc9\xda\x42\xfc\x17\xe0\xac\x53" "\xa2\xec\x22\xb4\xe8\x5b\xae\xb5\x35\xc5\x97\x3d\x41\x21\xb6\x5b\x50" "\x74\xf2\x2e\xc3\x0b\xc6\x86\xba\xac\x71\x9f\x68\x77\x10\xec\x5e\xf0" "\x84\x5c\x9f\xb1\xba\x40\x23\x0b\x64\x81\x84\x2e\xb1\xde\x12\xba\xf0" "\x73\xaa\x53\x6c\x2d\xd9\xd7\xa5\xb8\x17\xef\x79\xaa\x44\xaa\x8d\x18" "\x4e\x32\x58\x38\x2e\xa5\x7c\x2f\x77\x4b\xdd\x0e\xd2\xbe\xfe\x0e\xf6" "\x3e\x52\x66\x8e\xba\xbf\xf0\x75\x57\xc7\x70\xe8\xe2\x43\x56\x10\x09" "\xc4\xdc\x05\xdf\x8d\xe5\xce\x31\x85\x85\x03\x30\x75\xde\xef\x9e\xee" "\xdf\xf5\x8e\x9b\xdd\xab\x8b\xe7\xa8\xf8\x24\xd8\xe4\x69\x84\xd4\x10" "\xce\xa3\xe8\x35\x1b\xa4\x6e\xed\x1d\xe1\x65\x33\xe4\x9b\x3c\xde\xbe" "\x4d\x3d\x46\x2e\x70\x4f\xbf\xb9\xee\xa3\x55\xad\xfe\x97\x97\xf2\xf7" "\x08\x35\x07\xec\xc9\xea\x1d\xcd\x68\x7c\xbf\x63\xa8\xfd\x9e\x50\x48" "\x23\xe0\x4c\xd2\xca\xbb\x75\x2a\x48\xc7\x36\xfd\xad\x39\x5c\x90\xc2" "\x50\xa9\x9a\xf2\xad\x86\x7d\x3d\xd1\x92\x9f\xea\x41\x46\x6e\x1b\x79" "\xe6\x8c\x73\x86\xc6\xda\xcb\x47\x21\xfd\x60\xe3\xd3\x61\x7b\x95\x20" "\x10\x02\x41\x0e\xfc\x55\xb6\xb1\x14\x22\x97\x99\xf4\xce\x14\xd9\xd5" "\xa0\x05\x27\xab\xf8\xab\xd6\x88\x2a\x70\x73\x9d\x0f\x20\xa4\x53\x58" "\x34\xa9\xce\x16\x9a\x0f\x77\x65\x43\x6d\x04\x58\x87\x7a\x5b\xc4\xe8" "\x40\x51\x20\x39\x1a\xf4\xd6\x09\xa6\xb0\xa3\x22\x96\x30\xe7\x09\x78" "\x61\xe4\x72\xec\x0c\xe2\x0e\x8f\x7e\x3e\x4a\xca\xf1\x2b\xd5\x43\x92" "\x30\xd9\x49\x1f\x2f\x43\x0b\x8f\xab\x42\xa6\x86\x66\x6f\x43\x17\x76" "\x45\xce\x67\xef\xb2\x0b\x2c\x11\xfd\x62\xe7\x10\x49\x98\x7a\x6e\xbc" "\x55\xa4\x3f\xf8\x62\xf4\xff\xc4\x6e\xd4\x4b\x3a\x2a\xe0\xe7\x0e\x0b" "\xbd\x8c\xd9\xb9\xc4\x7c\x2e\x82\x17\xe4\x86\xeb\xcf\x0c\x35\xc9\x72" "\xaa\x9e\x17\x53\x9f\x33\x3d\xba\xe9\x64\x43\x66\x77\x86\xba\xb1\xd8" "\xb1\x1c\x8d\x7c\x5a\x50\x7e\x07\x0f\x3c\x45\xdb\xeb\xaa\x83\xde\x3f" "\xb8\x90\x01\x79\xc4\x05\xfc\x9e\x45\x76\xcb\x33\x2e\x2c\xee\x96\xf6" "\x1c\xae\xc5\x27\xfb\xfd\x08\xb3\xbb\x5f\xf6\x75\xad\x13\x9c\xcb\xa4" "\x39\xa3\xb3\x93\xcc\xd7\xd9\x5a\x6b\xc9\xb4\x97\xcc\x99\x79\xf6\xd7" "\x3a\x20\x3d\x17\x43\x3d\x47\x49\x09\xdb\x10\xae\x1a\xe0\x54\x98\x12" "\xa5\x1a\xee\x0b\xd3\x28\x7d\x02\x07\xd0\xb2\x53\xf3\xfc\xf3\x56\x42" "\x44\x06\x4b\xcf\x36\xc5\x29\xa3\xff\xc4\xdb\xf4\x2e\xf8\x23\x19\xfb" "\x3b\x6c\x82\x39\xd8\xba\x80\x0f\x08\x33\x81\xdc\x43\x0b\xb3\x36\xbf" "\x9c\x8f\xb9\x79\x7a\x14\xee\xa9\xb6\xf6\x6d\x58\xb0\x84\xd3\xc5\x96" "\xc8\x8e\x34\xf2\x2f\x8a\xb1\x1a\xc1\x1b\xe6\xe6\xec\xf5\x05\x25\x51" "\x6e\xc8\xd4\xc3\x87\xa7\x26\x89\x71\x64\x28\xba\x6a\x3a\xfa\x0a\x87" "\xd1\x23\xb2\x63\xe8\x0a\x86\x08\xa7\x8c\xee\xf9\x29\x53\x91\xf7\x00" "\xd2\xf4\x84\x9d\xb5\x4a\x49\x6e\x32\xb4\xbd\x37\x84\x3c\xc7\x3d\x7a" "\x83\xdc\x5e\xec\x6a\x01\x5c\x77\xd4\x5a\x32\x3b\xbf\x86\x7f\x98\xc8" "\x4b\xe0\x97\x3e\x3a\x49\xab\xdf\x61\x2a\x9f\x77\x5e\x79\x60\xa1\xf7" "\x4c\x81\x44\xcf\x6a\x8e\xad\xe8\xfe\x93\xf2\x5c\xb5\xaa\xde\xf2\xe0" "\x7d\x2e\x4b\x05\xc8\x37\x5f\x51\xc5\x0d\x4a\x3b\x19\x3d\x11\x11\x98" "\xff\xa9\x06\x59\x41\x35\xee\xdf\xe1\x9b\x87\xd5\xf7\x0a\x32\xcd\x23" "\xdc\xeb\xe0\x4a\xac\xff\x2e\x7d\x91\xaa\xfd\xe4\x54\xa3\xa1\x38\xa9" "\x4f\xc4\x8b\x5b\x8c\xf0\xb0\xbe\xc3\xef\x9e\xc4\x65\x6f\x81\xae\x11" "\x7b\xa9\x0d\x5b\xf9\xa8\x71\x2c\xe4\x45\xb9\xcf\xfb\x58\x27\x83\x08" "\x62\x64\xd4\xdc\xaf\x28\xd5\x7c\x9a\x9f\xc3\xa9\x5b\x29\x03\xe0\x1f" "\x2c\x61\xd3\xb3\x4c\xf5\x29\xd1\xa0\x9e\x15\x23\x18\x0e\x45\xf6\xe3" "\xb6\xb0\x96\xca\x01\x0e\xb7\x2e\x48\x65\xc4\x43\x2c\xed\xa6\xa5\xe4" "\x46\x1a\xcd\x8b\x0b\x19\xfe\x2f\xf0\x24\x11\xe6\x3e\x3d\xf8\x5a\x8c" "\x70\x94\xd5\x56\xef\x8f\x6e\x85\x7c\x3c\xb0\x07\xf7\xef\x36\x13\x21" "\xa6\x24\x79\xe8\xe6\x1f\x41\x1b\x57\x85\x3d\xfe\x5b\x70\x62\xa5\x03" "\x33\xa8\xac\xdc\xd4\x5b\xa7\x95\x28\x4c\xdf\x47\x2e\xd2\x21\xa7\x92" "\x10\x4a\x59\xc7\x0a\xb9\xa2\xd0\xe9\x8e\x78\xa6\x78\xd6\x5c\x00\x58" "\x6f\x59\xe5\x05\x9c\x0e\x24\xf3\xa7\xbc\x63\xaa\x9d\xa3\xf9\x6c\xa5" "\xaa\x59\x70\x16\x7c\x84\x14\x9c\x0b\x36\x6e\x31\xa7\x37\xc3\x7f\xd1" "\x3b\x58\x11\xf0\x11\x11\x15\x13\x57\x42\xab\x69\xa1\x83\x11\xce\xa4" "\xeb\xa9\x3f\x49\x67\xaf\x48\xa8\xe9\x40\x7c\x07\x90\xbe\x7c\x0a\x74" "\x8c\xff\x6d\x74\x2d\x8c\x70\x18\xbf\xc8\xa9\x92\x92\x83\xe4\xeb\x92" "\x9f\x0a\x6e\xf8\x2f\x32\xea\xfe\x8a\xc7\x74\x70\x8f\xf3\xba\xf4\xd7" "\xdd\x8d\x7e\x74\xc0\xd0\x57\x27\x44\x7d\xa1\x76\x76\x81\xfd\xfe\x09" "\x62\xfa\xb0\x1d\x97\x3e\x84\x5c\xd6\x68\x23\xf9\x88\x8c\x59\xa0\x48" "\x0e\x5e\x02\x19\x53\x7a\x5b\x03\xa8\x88\x35\xb9\xc6\x0a\xee\x2a\xdb" "\x1d\x34\x15\x8e\x12\x42\x6a\xd7\xe4\x3c\x6a\xb9\x5c\xbb\xc2\xd8\xc2" "\xba\x8f\x0a\x01\x94\xb5\xa5\x83\xc7\xc1\x5b\x9b\x7e\x4d\x2b\xbe\xe9" "\x21\x8e\x64\xd6\x66\x1c\xc7\x19\x10\x44\xbd\x24\x8c\x59\x2b\x03\x2d" "\xb4\xee\x96\xdd\x26\xa1\xe3\x61\x82\x6f\x93\xf2\x4b\xfd\x3a\x06\x49" "\xe7\xcf\xc8\x79\xad\xc1\x13\x6f\x13\x7b\x9e\x38\x39\xc7\xf3\x9b\x7e" "\xbd\xb4\xb8\xb5\x10\x55\x38\xeb\xa1\xdc\x82\x9f\xe4\xbe\x8c\x9a\x21" "\xa7\xfe\xf4\x0f\xbe\x78\x12\x53\x55\xbc\x53\x0e\x6f\x06\x0b\x4e\x2f" "\xe2\x21\x74\xa7\x20\x83\xf4\x11\xe8\xac\xe1\xb5\x19\x65\x77\xbd\xf3" "\x4c\xd1\xe3\xe1\x7a\xa5\x3f\x7f\xd7\x05\x41\xf6\x03\xcb\xe9\x26\x68" "\xdb\xc1\x60\xb9\x7c\x00\x0a\x3e\x66\xe9\x39\xab\x3b\x95\x08\xae\x84" "\xee\x35\x18\x72\xfd\x25\xe7\xcd\xe4\xb1\x7e\xf6\x8a\x6d\x1d\x69\x74" "\x76\xe9\x76\x42\xcf\x60\xc8\x2f\x9f\x3e\x61\x72\xde\x73\x1b\x22\x25" "\xdc\x4a\xea\xcf\x23\xcf\xa9\x48\x78\xea\x69\x6b\xbc\x11\x37\x8a\x5f" "\x66\x8a\x75\x7d\x07\xb2\x2c\x0c\xd1\x23\x70\x81\xf3\xa5\xcd\x02\xc6" "\x40\xc1\x4b\x76\x2b\xe1\x79\x9e\x9a\xe8\x7a\xbc\xf8\x31\x92\xb3\xe2" "\x7d\xfc\x3e\xe4\xb5\xda\x50\x53\x0e\xda\x56\x59\x96\xb2\xeb\x39\xd7" "\xda\x4b\xb2\xa6\x39\x10\x27\xbf\x7a\x85\x75\x13\x08\x21\x46\x1d\x65" "\xb2\x6b\x4d\xce\xf1\x32\x79\x0b\xf3\x49\x70\x6d\x17\x27\x5b\x86\xb7" "\x92\x93\xba\x49\x1c\x1f\xeb\xc3\x71\x37\xc7\xc6\x86\xf0\x2d\x08\xb2" "\x55\x89\x6a\x30\x7c\xea\x4b\x3e\x8b\x86\x4f\xb2\x1f\xad\xd1\xed\x53" "\x3f\x10\xa1\x68\x18\xc2\xe5\x2b\x7e\x59\x71\x82\xef\xe9\x5d\xbd\x9c" "\x8c\x74\xe2\x00\x1a\xd4\x99\x65\xd9\x48\x81\x66\xe5\xfe\x8b\x17\xa6" "\x3b\xa6\x2d\xe4\x33\xd0\x5e\x51\x90\x4d\x16\xdf\x7f\x03\xdc\x61\x3e" "\xbf\x50\xa6\xf0\xe4\xd0\x8b\xec\x00\x1f\xbf\x03\x5c\x3d\xdf\x60\xa3" "\x12\x8e\xec\x3b\x67\xb7\xa3\x9a\xef\x39\xaa\x44\x2a\xab\x78\xc6\xfa" "\xc4\x83\x57\x89\x05\x5c\x48\x39\x10\x88\x90\xcc\xbb\x86\xef\xd0\xb9" "\x3d\x91\x05\x01\x00\x76\xcb\x5f\xa3\x41\xb1\xd6\x65\xe4\x52\x22\x05" "\x82\x9a\xdd\x1d\xfe\x33\x0b\x66\xd3\x98\xab\x07\x1c\x38\xe4\x31\x9f" "\xaa\xf0\xe7\xf5\x06\x91\x01\x51\x80\x3b\x69\x3a\xa6\x15\x22\x28\x9b" "\x70\x7b\x9e\xcd\xbf\xb3\x1b\xce\x90\xe3\xf2\x15\x6d\x9d\xe5\x17\x69" "\x76\x89\x69\x35\xb6\xa7\xe8\x0a\x5c\x17\xf2\xee\x49\xf7\x9f\x06\xe1" "\x6f\xee\x15\xfe\xad\x5f\x6d\xe3\xd7\xf2\xc5\xe9\xf9\xa0\x20\xe4\x69" "\x0a\xc5\x49\x3d\x6d\xad\x80\xb7\xb2\x34\x7a\x4c\xf1\x96\xa0\xba\xdd" "\x35\x0a\x92\x92\x4c\x93\xa8\xf0\x8c\xf0\x47\x7a\xcf\x11\xd8\x78\x1d" "\xf6\x16\xef\x90\xb1\x40\x19\x74\x4f\xcb\xd8\x10\xd4\xe5\xf3\x46\x5c" "\x2d\xb0\x8c\x13\xb9\xb2\xa4\x12\x49\x7a\xb1\x2b\xcf\x53\xc2\x60\x00" "\x96\xaa\xe7\x85\xa5\x82\x7b\x42\xe6\x40\x32\x33\x3d\x7f\xf4\x5f\x52" "\x51\x32\xf8\xa9\xc2\x76\x70\x17\xb3\x04\x06\x6b\x88\x73\x63\x62\x7d" "\xc3\x03\xbf\x3d\x29\xf1\xf4\xeb\xaa\xbc\x51\x43\x94\x6e\x9a\xb9\x88" "\xe0\xa2\xb2\x29\x60\x77\xc3\xd6\xea\x3a\x26\x09\xea\x2c\x06\x59\x0d" "\x65\x25\xfd\x00\xb6\x06\xf0\xdc\x61\xe2\xd4\x28\x02\xde\x63\x2d\xd6" "\x50\xfc\x6f\xf9\x65\x87\xfc\x2c\xf7\x9c\x22\xb2\x73\xba\x7a\xfe\x8e" "\x31\x50\xe5\x5b\xbd\x53\x84\x3a\x66\xae\x90\xe1\xb9\x87\x58\xfa\x42" "\x89\x77\xab\xc5\xc9\xe0\xe8\x24\xcb\x4a\x56\x9e\x53\xee\x1b\xc6\xab" "\x44\xe9\x6f\xbe\xfa\x47\x88\x04\x1d\x69\x62\xd2\x16\x68\x75\xdb\xa5" "\x9c\x7b\xb9\x04\xb6\xf9\x5f\x56\x64\x99\x92\x76\x03\xa2\xb5\x57\x14" "\x8f\x5d\x56\x4e\xe6\x35\x9e\x72\x77\x79\x80\x67\x64\x32\x6d\xe1\xd6" "\x41\x37\x1d\xb4\x3d\x0e\xd1\x4b\x57\xf2\x15\xeb\xc5\x43\x8a\xf0\x07" "\x38\xb4\x0d\xc2\x28\xd6\x19\x3d\xc8\xea\xbf\xda\xb3\x7b\x0b\x1e\xc2" "\x8f\x62\x17\x64\xb5\xbc\x15\x9c\x95\x5a\xf3\x0e\xba\x90\x5c\x4e\xa3" "\xff\x6f\xb5\x89\x79\x2b\xfc\x11\xa5\xe2\x7e\xba\x8e\xd1\x24\xd7\xfc" "\x36\x7d\x04\x9a\xed\x10\x0c\x3a\xc4\x34\xb3\x88\x06\x1b\x06\x69\x9a" "\x10\xbd\x69\x62\x0b\x1a\x96\x84\x64\x2d\x5e\x97\xe6\xa8\xcc\xc2\x51" "\x84\xcb\x3d\xeb\xf2\x33\xe3\x87\x3f\x0e\x8a\xbe\xfd\x1b\x2e\xac\x7f" "\x9d\xae\xc6\x31\x75\xf1\xb7\x7b\xdb\xd8\xc5\x03\x99\x1d\xd8\xcb\x36" "\x72\x2b\xe1\x3e\xaf\xb0\x29\xe2\x84\xbb\x28\x79\x48\xfa\xcd\x6e\x71" "\xcf\x4b\x51\x7c\x59\x28\x88\xe0\xc6\xbf\xa0\x71\xb5\x77\xc1\x64\x48" "\xaa\xe9\x62\x48\x41\xe7\xee\xe2\x2b\x82\xb4\xc9\xee\x1a\xe7\x5f\x32" "\x5f\x90\xa1\x75\xa8\xd3\x33\x04\x3e\x42\x10\xce\xa1\x0a\x2e\x48\xde" "\x13\x14\x63\xab\xe5\x89\xe3\x45\x62\xab\xab\xfa\xb1\xe2\xda\x57\x2e" "\x63\xe8\x83\x5f\xf7\xa5\x8c\xb2\xb0\x95\x2f\x5c\x96\x9a\xc0\xff\xe0" "\x01\xe4\xb4\xca\x8c\x47\xc5\x1b\xdd\x53\x69\x4c\xb4\x95\xa8\xb7\x57" "\x8a\x5a\xbd\xf9\x90\x97\x0b\x03\x56\xca\x9c\x86\xea\xfe\x0f\x8b\xdf" "\x09\x4d\x9e\xf1\x4d\xe8\x15\xee\x84\x3b\x23\xb5\x95\xb6\x2b\x80\xf7" "\x98\x39\x06\x8d\xfd\x92\x11\xc0\x52\xeb\x12\x5b\x4b\x2e\x19\xd8\xdd" "\x76\xab\x31\xa8\x48\xa8\xd1\x82\x3a\x7a\x71\x5c\x85\x43\xfa\x91\x05" "\x4b\xe8\x79\x12\xa0\x6c\x1a\x46\x09\x44\xe9\x60\x29\x7c\xe7\x22\x85" "\x5b\xa4\x60\xdb\x8d\xb3\xfa\x05\xda\xe5\x19\x1d\x93\xcb\x65\x43\xd6" "\x47\x91\x75\x1c\x96\x86\x67\x87\x1a\x04\xe7\x3b\xcd\xf1\x3b\x5f\x0e" "\xe4\x2d\xbb\xca\xdb\x3a\xad\xb2\x98\x17\x87\xa8\xb4\x14\x0b\xbf\x5d" "\xbf\xb6\x23\x16\xfc\x4d\x01\x8c\x60\xcf\x1f\x21\x31\x4a\xaa\xeb\x84" "\xe9\x16\x3e\x2a\xb8\x60\xdb\xf9\x36\x46\x1c\x28\x0f\xf3\xe2\x52\x14" "\xf4\x4b\x8e\x38\xbd\x8b\x5c\xc5\x5f\xba\x1f\xf2\xc2\xe8\x6f\x6b\x27" "\xbe\x1b\x00\x16\x4c\x48\x52\x77\x55\x8e\xe5\x32\x8c\xf1\xd9\x25\x88" "\x23\x53\x7b\x4c\x32\xfa\x17\xc8\x72\xd8\xfb\x98\xae\x43\xbd\x57\xa9" "\x55\xd7\xeb\x4d\xe5\x0c\x93\xce\x71\x68\x04\xb8\x60\xd7\xdf\xda\x0e" "\x34\x53\xc5\xe5\x42\xcc\xce\x8f\x91\x14\xc2\x05\xac\x92\x09\xb9\x64" "\x68\xfe\x11\xac\x67\xaf\xfa\x39\xd5\x57\x52\xf8\x7d\x04\x7a\x03\x74" "\xab\x0f\x95\x23\xa8\x20\x79\xc4\x8b\xaf\xc4\xdf\x10\x62\xaa\xd5\x55" "\xc0\xf1\x71\x69\x3c\xa4\x87\x69\xdc\xa0\x01\xcf\xfa\x7f\x26\xe9\x7a" "\x3e\x21\x3e\x23\xf7\x5f\x64\x27\x28\xc8\xc6\xb8\xf7\xc6\xe8\x1e\x8f" "\xd7\xd5\x02\x95\x41\xdb\x1e\xd5\x25\xef\xd1\x85\xec\xe2\x9a\x49\x77" "\x3a\xe9\x5a\xf1\x8b\x21\xd3\x7e\x79\x77\x25\xbf\xa2\x61\x9a\x9b\x5f" "\x94\x2c\xf0\xb7\xcd\xa3\x9f\xc0\x49\x65\xd6\x20\x56\x48\xd9\x27\x6b" "\xad\x61\xcf\x3d\x07\x56\x60\x1a\x03\x26\x22\xaa\xcb\x2f\x08\x9f\x15" "\xcb\xf9\xc9\x50\x24\xce\x49\x68\x43\xf4\x66\x2b\xa8\x24\xc9\x95\x38" "\x89\xbc\xc8\xc8\xf8\x7b\x08\x8f\x5e\x84\xa7\x1b\x57\xae\x4e\x44\xd9" "\x95\xf5\x51\x03\x5f\x6c\xe9\xe2\x15\x3c\xaf\xb6\x39\xcd\x5d\x44\x5e" "\x2e\x8a\xd0\xf2\x65\x1b\x23\x43\x6e\x2c\x7d\x70\x77\x8e\x25\x5a\x5e" "\x5b\xa2\xa2\x40\x25\xd7\x06\x4f\x93\x84\x3a\x64\xd0\x3b\xb7\x0b\x9b" "\x79\xdb\xcf\x57\x25\xf7\xfd\xb0\xe5\x4b\xa3\x32\x0a\xda\x25\xfb\x06" "\x59\x7f\xba\x6f\x09\x0e\x86\xdc\xc9\x3f\xd7\x76\x88\xab\x28\x5c\x34" "\x36\xbd\x34\x8b\xa5\xe3\x3d\x84\x06\x52\x79\x0a\xb0\x95\xf5\x51\xfa" "\x4b\x57\xe0\x3c\x2f\x1b\x79\xe8\x53\xbd\xb6\x84\x57\x0e\xa6\xf0\xac" "\x48\xdf\x14\xd3\x65\xb8\xef\x1a\xcf\xb9\xf8\xa3\xf2\x24\xc5\x55\xbb" "\xdf\xa3\x36\xd4\x14\xe7\x9e\x38\x4b\xb7\xf7\x2f\x32\xe2\x03\x86\xe1" "\x20\xcb\xd3\xee\xb8\x27\xbc\xfa\xc1\xe8\xc7\xa7\xb9\xdc\x7b\xb2\xaa" "\xd6\x9d\xf0\xdf\xe9\xaa\x27\xd2\x6b\xce\xa6\x29\x10\x47\xa0\x93\xd9" "\x0f\x46\xed\xb1\xbb\x28\xa7\xbe\x7d\x88\x02\x05\xc8\xef\xff\x8b\xe9" "\x48\xa9\x1b\x74\xf3\xf1\x58\x35\x76\x74\xe5\xcd\xb9\x8f\x4e\x67\x25" "\xfd\xbe\x21\x22\x28\x1a\xb1\xab\x48\x1c\xff\x00\x20\x77\x60\xb0\xe8" "\xbd\x9c\x7c\x03\xca\x96\x2b\xce\xac\x3e\x85\x6c\x77\x90\x9e\xdb\x36" "\xa4\xa3\x02\xd2\x0d\xe1\xdc\x31\x0b\x45\xa7\x2c\x77\xfb\x0f\x29\xd2" "\x8c\x90\xfa\x2c\xe9\x78\x89\x7c\xae\x7b\x7f\x86\xfe\xcb\x43\x7a\xdb" "\xe4\x95\x12\xea\xf6\x4d\x57\xf0\x34\xa9\x8b\x8b\x54\xa4\x49\xf0\x36" "\x98\x09\x54\x3b\x57\xac\x80\xbb\x64\x9f\x43\x98\x24\x87\x5e\xce\x08" "\xe9\x7a\x67\x30\x26\x44\x18\x2f\xfb\x8f\x36\x28\x1b\x21\x19\x4f\xb4" "\x67\x35\x79\xf0\xb6\x26\x36\x96\xcf\xab\x91\xeb\x6a\xd3\x39\x61\x19" "\xc0\x92\x83\x93\x46\xc4\xd6\x00\x6c\x76\xbd\xa1\xc9\xcc\x96\x0b\x9e" "\x42\x9e\xcf\x36\xcb\x14\x4e\x05\xd9\x2d\xe2\x3e\xa8\xab\x89\xf3\x22" "\xa6\x5f\xa7\x86\xab\x61\x50\x9e\x5e\x8c\x10\xa1\xf9\xca\x10\x13\x3b" "\xc8\x72\x71\xa8\x3d\x19\x9f\xfe\x10\x2b\x92\x05\x64\x86\xa7\xe9\xc8" "\xad\xee\x5b\x64\x03\x7b\x2d\x68\x8d\xcb\xa1\x2c\x10\xb7\xed\x27\x19" "\x5a\xd1\xd6\xc5\x36\x3b\xa2\xa5\xd7\xe5\xd2\x1b\xd4\x20\xdc\xc4\x3c" "\xfa\x88\x0b\x78\x61\x80\x07\xb7\x20\x27\x5e\x58\xc6\xba\x61\x69\xc7" "\x8d\xcf\x13\xf7\x14\xf4\xc0\x52\xb4\x9d\x5e\x60\x0c\xda\xce\x72\x5e" "\x84\x61\xe6\x49\xea\xef\xd2\xa8\x72\x30\x3b\x8e\xd8\xf5\x79\xf6\xf1" "\xc3\xdb\x72\xa2\xf3\x9c\x1b\x18\xb0\x46\x87\xfd\xa7\x60\xeb\x8f\x67" "\x57\x78\x22\x7b\x49\x33\xa1\x7e\x93\xa5\xe1\x07\xc0\xa3\xec\xc7\xf7" "\x75\x2c\x50\x43\x92\xbf\x99\xe0\xc5\x87\xa2\xeb\x33\x5f\x9b\x80\x81" "\x31\x44\xaf\x15\x11\x19\xf8\x23\x20\x3c\x49\xa0\x56\x4d\x6d\x9a\x14" "\x05\xe1\x71\x98\x2f\xbe\xd8\x28\xdf\x2d\x34\x7b\x22\xe0\x4f\x27\xc6" "\x84\xf1\x0a\xc6\xb4\xcd\x5f\x6f\xde\x49\xd4\x10\xbd\x10\x72\x1c\xaf" "\x20\x50\x17\x8f\x2c\x66\xdd\x70\x64\x2c\xf0\xf0\x1a\xf5\xa3\x2b\xc6" "\x34\xe3\xd5\xf1\xbf\xc4\x34\x4e\x8e\x91\xd0\x1c\xfc\x6b\x6e\xd6\x30" "\x76\x49\xee\x62\xba\x05\x78\x1e\x40\x91\x38\x7e\xb8\x84\x7a\xe1\x18" "\x19\xa4\x10\x8d\xd2\x4f\x94\x5b\x78\x83\x87\x17\xfb\x78\x84\x80\x1d" "\x49\x4f\x4e\x3a\xe7\x14\x8f\x27\xa9\x38\x88\xc6\x3c\x21\xba\x33\x8e" "\xac\xeb\x72\x61\xb7\x7c\x86\xde\xfe\x82\x1d\x9c\x77\x68\x98\x2a\x56" "\x35\xd3\xb9\x2a\x82\xed\xc0\xf9\xb3\x7e\xd6\x7f\x63\xb4\x34\xb0\x2a" "\xf5\xe9\xa3\xda\x31\x59\x23\xfa\xdc\xe6\x7d\x1a\x37\x69\xf1\x35\x7e" "\xae\x2b\x08\x5f\xae\x0c\x24\xf2\x34\xb7\x23\x3f\x80\xd8\xad\xbd\x2a" "\x85\x40\x5b\xa7\x32\xb2\x97\x8c\x85\xed\xe2\xe5\x65\x75\xe6\x58\xe0" "\x9c\xea\xae\xdd\x70\x9a\xc5\x2c\x5f\x51\xda\x61\x0c\xed\x4d\x9d\x4b" "\x8f\xfe\x36\xa0\x04\x4c\x39\x69\x6d\x92\x31\xca\x4f\x6a\xbf\x60\xba" "\xe8\xcd\x61\xc7\xb8\x77\x8d\x52\x6f\x13\xef\xc8\xe9\xf2\x80\xbd\xa9" "\x9c\xe2\xf0\xf8\x32\x10\x1a\x18\x9a\x80\xed\x31\x5e\xf3\xca\x71\x65" "\xaa\x31\xb0\x1d\xd7\xb5\x2a\x4f\xb8\x7e\x09\x6a\x1f\xc5\xe3\x22\x35" "\xa8\x60\x23\x15\x0b\x5c\xfa\xd6\x6b\xed\x73\xa6\x9d\x4d\x0b\x9e\x05" "\x28\xaa\xcd\xc6\x0a\xac\xec\xdb\x3c\xa7\xa7\xcb\xd4\xb0\x08\x8e\x22" "\x14\x8b\xd4\x0a\x9b\x4a\x4f\x89\xf2\xd8\x82\x07\xb5\x05\xc0\xa9\x2e" "\xdd\xf7\x04\x52\x02\xfd\x9e\x9c\xa5\x9f\x5f\x41\x67\x33\xec\xaa\x07" "\x5d\x32\xd4\x0b\x1d\x08\x77\xaf\x7c\x92\xd3\x3c\x7e\x30\xf2\x74\x37" "\x43\x80\xe5\x1e\xe6\x79\xff\xfa\xfb\xe3\x99\xa1\x86\xcf\xa5\x4d\x7a" "\x52\x82\xec\xdf\xd7\x74\x1e\x4f\xaa\x95\x8e\xbb\xde\x16\x37\xce\xf5" "\x6b\x83\xd8\x93\x57\x65\x2c\x69\xa4\x3d\x72\xf9\x26\xc3\x5b\xbb\x5c" "\x8b\x45\x87\x01\x66\x42\xfb\x1c\xc4\xec\xf9\xb8\xe3\xa9\xdb\x99\x72" "\x97\x4e\x2a\x18\x8b\x41\x12\x89\x78\xdc\xa1\xec\xed\x6f\x33\x12\xc0" "\xa6\xb3\xa9\xe8\x73\xd4\xde\xa8\x44\x73\x15\xfc\x40\x36\x4b\xab\x8f" "\x1c\x3e\x8f\x86\xc3\x43\xb5\x9a\x4c\x3b\x15\x16\x5b\x95\xf8\xc6\xfe" "\xcb\x97\xb6\x57\xc7\x63\xa4\xff\x24\xcf\xfb\xf8\x58\x1f\x7e\xb7\x75" "\xaf\xa9\x20\x16\x64\x17\xd8\x99\x2c\x3d\x85\x4d\x4c\x4a\xd8\xca\xa8" "\x99\x6f\x8b\x62\x29\x6d\x9e\xf2\x0e\x13\x77\xde\xf5\x3a\x66\x6c\x64" "\x01\xc6\x49\x61\x64\x5e\xb2\xd1\xb0\xa3\x0e\x70\xc2\x98\xe8\x5f\x6b" "\x68\x49\xde\xb6\xbb\xec\x63\xba\x7a\x57\xb4\x6a\x1b\xc9\x9e\x4f\x30" "\xc5\xc1\x8a\x92\x4e\xad\x98\x20\x3b\xd7\x28\x29\xfd\x19\x60\x1d\x9f" "\x3c\x0c\xaf\xf4\x46\xe4\xeb\xa6\xd7\x60\x72\x96\x0d\x97\x77\x59\xd9" "\xec\xb6\x1f\xe4\x7f\x36\x78\xc0\x7d\xf5\xc6\x26\xc5\x58\x3d\xb2\x5f" "\xd5\xbc\xa2\xb2\x55\xf1\x19\x35\xc0\xef\xae\x83\x5c\xcf\x48\x81\xa1" "\x9d\x21\xf1\x4a\x4a\xd6\x69\x1a\xf0\x9e\x0e\x60\xd6\x6a\xa5\x97\x0c" "\x3e\x87\xd0\x7a\x71\xa8\x91\x1a\xba\x19\x6b\xbe\x32\x27\x04\x9a\x88" "\xfb\xe3\xa1\x19\x25\x90\xe3\xe4\xee\x1f\x1e\x8a\x13\xcb\xd4\xe8\x8d" "\xab\x20\xa1\x00\x85\xee\x59\xf6\x95\x48\x6d\x17\x02\x32\xf8\x16\x81" "\x87\x27\x76\xd3\x51\x14\x07\x4e\xaa\x33\x10\x2f\x98\xd9\xe2\x95\xc9" "\x3d\x2c\x91\xa8\x6b\x90\x70\x56\x10\xdc\x9d\x6c\x31\x13\xf0\x75\x2e" "\x7c\xdd\x38\x43\x04\x99\xc2\x19\x4e\x80\xec\x3f\x0b\x44\x38\xd3\xf7" "\x58\xef\x91\x92\x3d\x45\x7e\xdb\x69\x15\x05\x79\xa7\x84\x27\xde\x65" "\x81\xd3\x9b\x55\xce\x87\x56\x59\x71\xda\xfa\xb0\xd3\x8d\xa6\x80\xfc" "\x5a\x31\xfb\x11\x50\x0c\x53\x04\x68\xf4\x6c\x57\x7b\xdf\xe8\x43\xdd" "\xfe\xc7\xf3\xa8\xb2\x3e\xc0\xbe\xbe\xfe\x40\x5a\x00\xc1\xce\x88\x64" "\xb7\xa2\xb3\x4c\x48\xed\xb6\xb3\x25\x3a\xb8\x6e\x53\xe9\x2b\x65\x08" "\xa8\x52\x14\xfa\xa6\x3d\x75\x81\x12\xbc\x94\xd1\xc5\xdf\x09\x58\x4f" "\xaf\x56\x25\x49\x75\x34\x15\x49\x9a\xa1\xd1\xd7\x41\x3f\x47\x95\x30" "\x8f\x16\x06\xd8\x63\x89\xa1\x98\x86\x61\x17\xfc\xcf\x26\x7b\x52\xbd" "\xbb\xd0\x93\x0d\x9f\xc8\x98\xb6\x83\xcc\x8e\xb4\xab\x07\x9d\x0e\x8b" "\x4e\x8a\xfc\x2d\xf1\xf2\xa2\x3e\xca\xf8\x2d\x31\x74\x62\x3f\xaf\x32" "\x57\x8e\x10\xc3\x52\xf3\xb0\x46\x20\x7b\xc2\x99\x9c\x29\x2c\x56\x9c" "\x85\x99\x80\x47\xb9\x85\xd1\x4a\x17\xda\xc9\x26\xe7\x45\x9f\xe0\x06" "\x96\x23\xcf\x1e\x92\x58\x2a\xd8\x26\x88\xbd\xa4\x5b\x83\x18\x16\xfd" "\xfa\x87\x22\x71\xb7\xeb\xb5\x8e\x1e\x50\x80\x8a\x82\x1b\xc5\xc1\x6c" "\x3e\x5b\x7b\x3b\x3d\xf9\x4c\x4e\x6c\x48\xaa\x93\xd7\xb4\xec\x84\xcd" "\x93\xa8\x46\xdd\x80\x77\x92\xe8\xdd\xaa\x3b\x48\xcb\x51\xcc\x3a\x3a" "\x39\x53\x0c\x56\x7f\x37\xfd\x61\x85\x45\xaf\x78\x11\xf6\xae\x3f\x69" "\xa6\x94\x5c\x14\x31\x6f\x73\x44\xc8\xa5\xec\xbb\x56\x86\x37\x8f\xf3" "\xd0\x39\xd9\x40\x84\x65\x08\x93\x3b\xb3\xa0\xfb\x73\xba\x6f\x6f\x06" "\x20\xb4\x62\x3f\xe4\xc7\x55\x1b\x54\xb7\xc4\x3f\x25\x97\x77\x26\x50" "\xc8\x5c\xa1\xd7\x1c\x44\xe6\x0f\xd2\xa3\xf1\x2d\x1d\xfc\x09\x41\xc9" "\x1f\x81\xec\x41\x38\x2c\x8b\xc1\xcc\xea\x86\x3d\x6b\x35\x6b\x6c\x81" "\xbd\x4e\x49\x33\x5d\xec\x13\x0a\x83\x00\x0e\x36\xd8\x08\x89\xa8\xf9" "\x8e\x41\xe8\xb6\x7c\x71\xf9\x64\x30\x6e\xc1\x83\x64\x19\x05\x32\x0e" "\xa9\x1f\x8b\x0e\x65\x54\x32\xb4\x7f\x21\x1c\xbe\x7a\x6d\x92\x30\x5c" "\x38\xe6\xaa\x38\x04\x19\x1b\x9f\x57\x2a\x16\xcc\x6d\x81\x11\x33\xf6" "\x16\x43\x35\xe7\x23\xc5\x8a\xbe\xdd\x97\xd4\x9c\x86\x52\x49\x10\xd6" "\xd3\xfe\x59\xfe\x3d\x80\xac\x96\xa3\x54\x8c\x29\xfc\xa4\xe7\x51\x35" "\xf7\xaf\x58\x90\x0d\x41\xdb\x87\xa8\x6f\x09\x5f\x41\x7c\x74\x62\x61" "\xd4\x64\xa1\x12\x10\xc5\x4b\x8c\xf9\xc3\xe7\x8d\xc8\x09\xec\x40\x32" "\x15\xcf\x76\x36\x54\xa8\xb8\x7f\x76\x71\xe3\x33\x8e\xbb\x56\x06\xaa" "\x5d\x77\x8d\x34\xfc\x9f\x01\xa6\xb4\xb2\x93\xc8\xf3\xeb\xf2\xcc\xbf" "\x29\x93\x49\xa1\x9f\xec\x4e\x00\x93\x7d\x5c\x30\xff\x39\x6c\x82\x91" "\x7d\xae\xe3\x07\x47\x42\x9f\x0b\x1e\xab\x3a\xb5\xf8\x82\x18\xdf\xfb" "\x83\x40\x90\xea\x1c\x22\xd2\x39\xa6\x2b\x29\xce\x78\x50\xf2\xb3\x74" "\xa0\xe3\xce\xb1\xc0\xd0\x07\x61\x60\x8c\x8b\xbc\x97\x15\x29\x09\x63" "\x95\x46\x38\x0b\xec\x21\xbe\x8d\x93\xf9\x81\x57\xaf\xf1\x97\x5e\x10" "\x51\x76\xda\x5d\x1b\x33\xdd\x5f\x4f\x72\x6a\x83\x97\x9c\x30\x7c\xbc" "\x8d\x10\x52\xb1\x28\xc9\x43\x8e\xea\x6c\x44\xeb\x34\xa0\xfb\x31\x5a" "\x38\x4e\x00\xa6\xb5\xbd\xcb\xfa\x25\xff\xf6\x25\x3b\x06\xcc\x51\x7b" "\xfb\x60\xd2\xb0\x48\x1e\xc2\x85\x9d\xab\x87\x24\x67\xcd\x82\x8c\xd7" "\x9a\xad\x67\xbd\xf4\x99\xeb\xe0\x7f\x61\x82\x66\x7c\xc4\xa6\x5b\xa8" "\x2a\x2c\x8c\xcf\x88\xf5\x9c\xcb\xfd\x24\x2c\x04\x2b\x9c\x58\x22\x73" "\x5f\x75\x97\xdf\x5f\x54\x7c\x7b\xbc\x1f\xa7\x4a\xe5\xcc\x38\xf5\xf1" "\xfe\x90\x65\xdc\x5c\x9b\xf6\x87\x8f\x45\x7e\x95\xad\xcc\x79\xa1\x54" "\x53\x76\xa2\x6b\x0b\x3e\xf7\xc0\xee\x38\x72\x19\xe5\x57\x1a\xaf\x92" "\x25\xc6\x15\x97\xb2\x17\x42\x54\xa9\xa2\xc7\x80\xb9\x28\x3c\x9d\xc0" "\x2f\x2e\xc2\xa4\x0f\xc6\xc6\xe9\xeb\x53\x92\x99\x5f\x16\xbb\x11\x5f" "\x18\x54\x6b\x70\x29\x5c\x91\xa9\x83\xab\x93\x59\x2b\x86\x5b\xde\x39" "\x7c\x33\x3d\x01\x57\xc8\xcc\x21\x27\xe4\x6c\xa7\xf3\x54\xfe\x53\x1c" "\xf5\xd0\x8f\xfd\x32\xc7\xb6\xa9\xee\x93\xb0\xf6\x62\x20\x97\xd0\x34" "\xeb\x33\xcc\xac\x5b\xfc\x18\xd2\xb2\x2c\xc7\xc5\xf6\xea\x21\x7f\x89" "\x9b\x92\xa8\xbd\x51\x9b\x99\xd0\x84\x41\x39\xeb\xfe\x44\x4d\xac\x90" "\x80\xc4\xbb\xa3\x03\x08\xee\x34\xe5\x86\x02\x5e\x53\xd1\x75\x70\x01" "\x22\x96\xa3\x8d\x65\xc8\xc4\xb6\x48\x5a\xdb\x4b\x0c\xe9\x02\x3b\x16" "\x22\x8d\x6a\x54\x5e\x7a\xfc\xf1\x91\x9c\x26\x46\xed\x97\xa8\xa3\x6d" "\xbf\xe1\x70\xa4\x53\x3a\x4c\xe0\x82\xa7\xed\x50\x43\xe8\xb9\xc3\xc5" "\x03\x25\x6f\x33\xa7\x7b\xd6\x56\x15\xeb\xcd\x04\x23\xca\x0d\xda\xb8" "\x94\x3d\x37\x10\xd0\x96\x2b\x75\xd4\x86\xcc\x26\x93\x6d\x84\x0f\x9e" "\xe5\x59\xd9\xc7\x4e\x21\xd8\xe1\x94\xc1\x51\xb5\xf4\x04\x57\x47\x5a" "\x45\x30\x44\xe5\xfd\x79\x5a\x70\xf5\x21\x75\xda\xce\x94\x77\xb1\xa5" "\x6d\x6e\x16\xfa\x95\x21\x0a\x64\x41\x00\x6b\x69\x2f\x28\x8c\x01\xd3" "\x58\xaf\x84\xf2\x2e\x86\xb3\xc8\xa7\xf2\xb3\x9e\x54\xb7\x82\x3a\xda" "\x40\xdb\xc5\x66\xf9\x9b\xf0\xc2\x8e\xd2\xa4\xc8\x91\x0e\x6f\x4b\x1e" "\xa0\xf4\xdc\x13\xe0\x33\xbb\xd2\x26\xf7\x0d\xf4\x2d\x8f\x27\x6e\xef" "\xff\xc7\xc0\x36\xc5\x3f\x56\x95\x2b\x13\x24\x9f\xbc\xc3\xcb\x35\xa7" "\xc5\xad\x4f\x06\x6e\x16\xfa\x44\x65\x44\x9a\x5a\x54\xda\xae\xcc\xcd" "\xd3\xed\xd9\x80\x5e\xef\xc5\x0c\xbe\xa5\xf9\x87\xef\x89\x34\xc3\x1e" "\x75\xea\x93\x3b\x3b\xad\xcc\x98\x09\xf1\xc3\xca\x69\xac\x27\x55\xf4" "\xd2\x1f\xd0\xd9\x4e\x3d\xbe\xe7\xb7\xfe\x66\xfd\xe1\x94\x61\x60\x8d" "\x23\xf4\xd0\x4a\xb9\x8f\x97\x3d\x07\x3b\x0d\x50\xeb\xef\xb8\xb3\xfc" "\xe7\x29\xee\xca\xe1\xea\x36\x94\x06\xba\xa6\x89\xdb\x34\xd0\xb4\x90" "\x8f\x7e\x6f\x03\x9e\xd5\x91\xfb\xd1\x1a\x06\xfd\xa1\xb9\xc2\x17\xdf" "\xf8\xe1\x84\xbf\xa6\x12\xfe\x6e\xf3\x46\x67\x8a\x92\x34\x1d\xbf\x02" "\x81\xd8\xcc\x21\x7d\x14\x82\x60\x15\xd0\xb8\x27\x5e\xe1\x6d\x2b\xc4" "\x5c\xb0\x53\xff\xc7\x44\x46\x13\xe8\x61\x13\xcd\xb1\x55\xd6\x08\x90" "\x79\x07\xb6\xe1\x90\x85\x9d\xc1\x3e\x77\xae\x4c\x75\x7c\xfb\x34\xa6" "\x3f\x59\x4f\x96\x5b\x18\x87\x87\x29\xe7\x5b\x14\x94\x5b\xb5\x5b\x8a" "\xc8\xf4\x7b\x81\x17\x5b\x8a\xdf\x65\xff\x15\x27\xfe\xc9\x4e\x61\x9a" "\x2f\xbd\x57\x82\x85\xa0\xe6\xd5\x8f\xc7\xc7\x95\xc6\x21\x74\x4b\xa8" "\xb9\x97\x7b\x6b\x59\x5e\xc8\x69\x9f\x9f\x98\x62\x47\xa4\x32\x93\x7a" "\x2d\xf6\x87\xaf\x6f\x37\x58\x3b\xec\x45\xc3\xb7\xc5\x83\xd8\x62\xe7" "\xbe\x07\x02\xf8\xa8\x36\x96\xb3\x6d\xa2\xe2\x5a\x8a\x83\x9c\x52\xdb" "\x94\x99\xd6\xc5\xd3\xf1\x88\x24\x23\x79\xb6\x58\x9f\x43\xf5\xa5\xec" "\x7a\x06\x94\x16\xe7\xce\x07\xf7\x1f\x65\xcf\xfc\x46\x9d\xe9\x28\xad" "\xbc\x9f\x40\xf7\xbd\xba\xe4\xb2\x3c\xb5\x51\x82\xf2\xb1\x24\x5f\x92" "\x55\xd9\x9e\xbe\xde\x69\x85\xfa\x5d\x9e\x0b\x41\x3b\x1f\xbc\x64\x0f" "\xf8\x00\xfc\xa1\xf7\xa8\xb0\x2d\x7f\x28\x3a\x2f\x25\x6e\xdc\x8e\x05" "\x2c\x28\x4e\xf3\x45\xd7\xc0\x8f\x3f\x1f\xc6\x96\x7d\x66\x75\x66\x1a" "\xe8\xe7\x15\x6a\x46\xa9\x70\x52\x3f\x68\xb7\x68\xac\x29\xd7\xab\x24" "\xcb\x46\x8f\x14\x7c\x59\x5f\x8e\x49\x18\x0c\xce\x49\xec\x4c\xc1\x8a" "\x3e\x58\xa2\xe5\x9b\xed\x8a\x34\xab\x91\x04\x81\x8c\x93\xc5\x7b\x5b" "\xca\xc5\xe8\x39\x89\x7d\xd5\xe1\xaa\xf7\x3b\x73\x50\x9a\xeb\x2f\xdc" "\x21\x15\xb0\x65\x81\x28\x1d\xab\x51\x36\xc1\x13\xa9\xd1\x93\xc5\x2c" "\x21\xf3\x69\x50\x08\xe4\x82\x1d\x4c\xe9\x0f\xb3\x0c\x57\xa3\x16\xb0" "\xbc\x07\x9e\xec\x44\xd7\x56\xda\xda\xe7\x0e\x22\xda\xf7\x65\x59\x49" "\x22\x14\x08\x71\x8c\xce\x39\x96\xfd\x16\x51\x3e\xd0\xb6\xba\x2c\x28" "\x9b\x38\x5b\xc9\xaf\xdb\xa1\x88\x63\x78\x46\x96\x0f\x74\x07\xcb\x91" "\x6d\x72\xd0\xa9\xea\x5c\xd4\xeb\x6b\xef\xdd\xbd\x9a\x66\x48\x02\x4b" "\x77\x84\x5c\x65\x97\x78\xb9\x19\x32\x93\xc5\xd5\xf9\x93\x1f\x09\x85" "\x20\x36\xd9\xba\x0e\xf5\xc3\x35\x87\x47\xd4\xbf\xfb\x0e\x5d\x20\xed" "\xec\x12\x35\x6b\x0b\xe1\x5a\xa1\x75\x07\xeb\xf9\x47\xa0\x00\x2a\xcd" "\xa9\x4f\x1e\x04\x03\x78\xc4\xda\xd4\x0b\x6a\xd8\x15\x28\xf9\x3c\xc2" "\xfe\xbd\x0c\xbb\x47\xf0\x30\x9f\xb7\xb4\xeb\x58\xa5\x0f\x01\x18\xc9" "\xb2\xf8\xc1\x58\xe5\x08\xa2\x29\x3b\x67\x75\xba\x69\x9c\x36\x4e\xb4" "\x57\xa6\xcf\xcc\x68\xac\xa6\x52\xe7\xa1\xc8\x45\x8c\xa0\xf9\x22\x64" "\xb3\x63\x83\x96\x50\x89\xa9\x4b\x7e\x02\xcc\x08\xb5\x73\xda\x17\xa3" "\x75\x75\xed\xa9\xa0\x42\x77\x66\x69\x7b\x45\x95\x11\x0b\x03\xc8\x19" "\x31\x5b\xc0\xb9\x53\x8f\x7b\x77\x9a\x6d\x0e\x1b\x6b\x31\x1e\xab\xd6" "\xee\x20\x83\xa4\xac\xe9\xb2\xb0\xdf\x6f\xf6\xc4\x95\x81\x9e\xb4\x43" "\x40\xa4\x53\x7f\x20\xc0\x0b\xe1\xff\xba\x15\xd4\x0f\xbd\xaa\xa2\xde" "\xf4\x02\x1b\x86\x4d\x58\xa4\x08\x2f\xb1\xef\x9f\x9b\xe2\xae\x47\xe9" "\xce\xbf\xd6\x46\xe9\x3a\x1b\xae\x12\xf9\x4a\xf7\x7d\x29\x05\x51\x87" "\x41\x23\xbf\x84\xb1\x0b\xef\x35\xe4\x19\xd4\xd1\x5f\x03\xf0\x89\xe3" "\xed\xf8\x52\x35\xa9\x00\x83\xd2\xb4\xba\x51\x77\xed\x57\xbd\xcb\x88" "\xec\x5d\x5a\xec\x2c\x5e\x0e\x80\x3b\xa6\xdf\x6e\x8f\x90\x0f\x8a\x62" "\xe3\xe9\xa0\x78\x5a\xa7\x57\x0b\xd9\xba\xda\x4e\xec\xf1\x96\x0c\x8f" "\x25\x45\x4e\x21\xb0\xce\x99\x1f\x24\x4e\x6a\xd3\xb8\x4f\xa2\xf9\xd3" "\x04\x40\x03\x8b\xa6\xe6\xd2\x4e\x5d\x70\x5e\x46\x6c\xaf\xff\xbe\x10" "\xb3\x87\xe1\x30\x35\xfe\x49\xcf\xe3\xac\x59\xd8\xd3\xac\xa4\x18\x00" "\x98\xba\xf0\xe1\xbd\xb4\x05\xe9\xc6\x25\x8f\x22\x77\x09\xdc\x2e\x0c" "\x6f\x3c\x59\x0b\x82\xb9\x2f\x99\x03\x0b\x00\x5b\x9a\x66\x3f\xb8\x01" "\xce\x39\x5d\xe1\x34\x5b\xcb\xe4\x6b\x3a\x66\xdb\x00\xb5\x70\x7c\x0e" "\x4c\x25\xa2\x6c\xd1\xda\x72\x9d\xd4\x46\x0a\x4a\xc1\x39\x5a\xf6\x0d" "\xf1\xf1\xea\x00\xd9\x19\x26\xf8\xdd\x0f\xd3\x29\x03\x52\x47\x88\xf1" "\x7f\x5f\x72\xc3\x0c\x63\x51\x5f\xd9\xb7\x1a\x1b\x90\xdb\x10\xb3\x31" "\x9c\xa0\x32\x9d\x98\x2c\x8f\x54\xcd\x4b\x7c\xa0\x12\x68\x5f\x8f\x3e" "\xcc\x7f\x37\xc6\x17\x52\xda\x31\x9b\xf5\x2c\x4b\x69\x60\xca\xe7\xd0" "\x67\xa4\xa0\x80\x3d\x24\xad\x6c\x48\xfe\x29\x26\x19\x93\xda\x6b\xd2" "\xb0\x5e\xcf\x11\xbb\x73\x1e\x98\x07\x77\xde\x00\xf3\x52\x6d\x40\x91" "\xc7\x6f\x16\x9e\x1f\xb9\xb3\x8f\x2a\x58\xd0\x01\x33\xf4\xf5\xaa\x10" "\x60\x42\x38\x34\xd3\x3b\x81\xe9\x77\xa0\xff\x28\x90\xa3\x98\x80\x17" "\x31\x1c\x7f\x9e\x8e\xab\xe6\x27\xc2\x94\xe6\x03\xea\x25\x4d\x5f\xbc" "\x6a\xc7\xcd\xb2\x9a\xf7\x65\xa8\x94\x2c\x1a\xfb\x41\x2b\x1f\x4c\xe3" "\x2f\xd8\x2b\x6e\x7a\x83\xa3\x6d\xb5\xa6\x73\xaa\xbd\xf1\x0b\x64\x55" "\x89\x6d\xa1\x13\xc3\xfb\xd3\x42\x63\x02\xb6\xdf\xf9\x0a\x85\x5e\x26" "\xf5\x5c\xef\x78\x28\x91\x74\x01\xf7\x24\x46\x7d\x0e\x8a\x3e\x48\x3a" "\xee\xc9\xde\xcf\x13\x6d\xb3\x77\x39\x04\x36\xce\x05\xe9\x84\x43\xbc" "\x79\x93\x14\x31\xed\x9f\x34\xe0\x0d\x64\x77\x29\xda\xbd\xc2\x2b\xc3" "\xff\x7c\xc5\x59\x20\xbd\x32\x17\xac\xd6\x5e\xd3\xfd\xba\xfb\xb2\xdc" "\x16\x93\x1b\x26\x67\x4e\xd4\x8f\x95\x14\x5e\x87\x81\xaa\x21\x13\xf1" "\x9d\x26\xb1\x5a\x64\xd5\xa8\xde\x00\xd2\xda\x7f\xcf\xf3\x5f\xa6\x03" "\xbb\x45\xeb\xb1\xa0\x64\x35\x44\xc8\xa7\x63\x1f\x15\x88\x56\x08\x2f" "\x81\x43\xe5\xa1\x42\x5d\xe7\xeb\x3d\x9e\xbe\x46\x7c\xc5\x21\x84\x3a" "\x5f\xe2\x1b\x3b\xed\x4c\x40\x19\x9e\x67\xaa\xff\x14\x39\x16\x7e\x17" "\xbb\x63\x0e\xae\x80\xb1\x37\xb4\x19\xa5\x2c\x22\x41\x97\xa6\xed\x61" "\x51\xd2\x50\x15\x58\x34\x8d\xc3\x4c\xd4\xfa\xaf\xf5\x36\x10\x7c\xf7" "\x68\x05\x4a\x67\xe6\xc3\xdb\x1c\xcc\x25\xe7\xe9\xf7\x50\x79\xde\x69" "\x52\x4d\xca\x92\x97\xd9\xa2\x64\x51\xc7\xe5\x6e\x45\x0d\xe4\xd1\x11" "\xc7\x5a\xfc\xb2\xcb\x6f\xc9\xc4\xac\x84\xb5\xfd\xe8\x39\x7d\x55\xf6" "\xe4\xb2\xab\xe0\x28\xcb\xfb\x90\xc4\x72\x71\xfc\x96\x1b\x4b\xf8\x91" "\xb4\x97\xed\xdc\xba\xa3\x6a\x62\xd3\x72\x8d\x18\xc2\xe2\xaa\xfe\xb8" "\xce\x4d\x67\xc9\x32\x03\xe0\x61\xf3\x8e\x30\xd6\xa3\x54\xd8\x60\xf9" "\x08\x87\xe8\x03\x1d\x7d\x41\x6b\xc6\xdc\xfd\x09\xd2\x45\xed\x10\xe9" "\xa3\x4c\xe2\x71\xa2\x4b\xe5\xa1\x90\x0c\x23\x88\xdd\x61\x9f\xf3\x61" "\xc1\x49\x4b\xa8\x06\x7a\x96\x05\xc4\x50\xef\x5e\x6c\xb7\xab\xdc\x70" "\x90\x1c\x7d\xe2\x4c\xf7\x70\x4b\x99\x72\x43\x6b\xf6\xbd\x03\x2d\x95" "\xab\xcd\xbf\xb5\x66\x65\x31\x42\x44\x3f\x8b\xdb\x4d\x09\x50\x40\xdb" "\x5f\x86\x2a\x57\xec\x06\x40\x35\xfa\x39\x23\x71\x6b\x3a\x2b\xc2\xda" "\x09\xf3\xe0\xba\xe7\x4c\xa7\xa9\x25\x97\x95\xcc\x37\x6e\xb0\x22\x5e" "\x54\x85\xdb\xf9\x4b\xc1\x75\x43\x6b\xe5\xf0\x9b\x7f\x74\xac\xda\x8b" "\x7a\x0d\xc2\xe8\x66\x9b\xcc\xc7\x8f\x2a\x58\x5d\xbe\xe1\xca\x44\x85" "\x8d\xe0\x27\x1d\x61\xd5\xd5\xa0\x2c\xac\x64\x39\x7b\x75\x6e\xd7\x94" "\x49\x43\x37\xe6\x5d\x12\x0e\x44\x7c\x96\x0c\xb8\x51\x9b\xf0\xfa\x1c" "\x8e\x00\xb9\x13\x91\xc1\xff\xbc\xf7\x2b\x33\xb8\x1f\xa4\xdd\xf5\x8c" "\x84\xe6\xf2\x03\x29\xaa\x6f\xbc\x17\x19\xc5\x47\xc4\x58\x50\x1c\x74" "\xaf\x97\x42\xd6\x38\xf9\xcc\x2f\x85\xba\x1d\x81\x5c\xd9\x53\x80\xcb" "\xcd\x35\x80\x65\x7c\xba\xcb\xfa\x06\x6b\xf3\xa5\x4a\xdf\x62\x49\x8d" "\x63\xb4\x74\x29\x5d\x19\x07\xca\x86\x40\xee\xed\x40\x6a\x21\x8a\xfb" "\xf0\x6d\x2f\x7c\x2f\x37\x79\x82\x96\xe6\x28\xe1\x39\xab\x71\x5c\x8b" "\x6d\x46\xb9\x97\x17\x16\xf6\xa3\x93\x9b\x71\x79\x11\x4a\x03\xb3\xb7" "\x5c\x94\x8b\xaf\xab\xbc\x59\x8f\x10\x49\xaf\x16\x54\xc8\xa6", 8192); *(uint64_t*)0x20000b80 = 0; *(uint64_t*)0x20000b88 = 0; *(uint64_t*)0x20000b90 = 0; *(uint64_t*)0x20000b98 = 0; *(uint64_t*)0x20000ba0 = 0; *(uint64_t*)0x20000ba8 = 0; *(uint64_t*)0x20000bb0 = 0; *(uint64_t*)0x20000bb8 = 0x20000500; *(uint32_t*)0x20000500 = 0x18; *(uint32_t*)0x20000504 = 0; *(uint64_t*)0x20000508 = 0x3ff; *(uint32_t*)0x20000510 = 2; *(uint32_t*)0x20000514 = 0; *(uint64_t*)0x20000bc0 = 0; *(uint64_t*)0x20000bc8 = 0; *(uint64_t*)0x20000bd0 = 0; *(uint64_t*)0x20000bd8 = 0x20000640; *(uint32_t*)0x20000640 = 0x90; *(uint32_t*)0x20000644 = 0; *(uint64_t*)0x20000648 = 0x80; *(uint64_t*)0x20000650 = 5; *(uint64_t*)0x20000658 = 2; *(uint64_t*)0x20000660 = 0xc6cd; *(uint64_t*)0x20000668 = 0x200; *(uint32_t*)0x20000670 = 8; *(uint32_t*)0x20000674 = 3; *(uint64_t*)0x20000678 = 6; *(uint64_t*)0x20000680 = 0xfffffffffffffe00; *(uint64_t*)0x20000688 = 0x8000000000000000; *(uint64_t*)0x20000690 = 0x101; *(uint64_t*)0x20000698 = 5; *(uint64_t*)0x200006a0 = 0xfffffffffffffeff; *(uint32_t*)0x200006a8 = 0x362; *(uint32_t*)0x200006ac = 9; *(uint32_t*)0x200006b0 = 0; *(uint32_t*)0x200006b4 = 0x8000; *(uint32_t*)0x200006b8 = 5; *(uint32_t*)0x200006bc = r[2]; *(uint32_t*)0x200006c0 = r[3]; *(uint32_t*)0x200006c4 = 0x8001; *(uint32_t*)0x200006c8 = 6; *(uint32_t*)0x200006cc = 0; *(uint64_t*)0x20000be0 = 0; *(uint64_t*)0x20000be8 = 0x20001040; *(uint32_t*)0x20001040 = 0x668; *(uint32_t*)0x20001044 = 0; *(uint64_t*)0x20001048 = 9; *(uint64_t*)0x20001050 = 5; *(uint64_t*)0x20001058 = 1; *(uint64_t*)0x20001060 = 7; *(uint64_t*)0x20001068 = 6; *(uint32_t*)0x20001070 = 0x6c2; *(uint32_t*)0x20001074 = 0x7fffffff; *(uint64_t*)0x20001078 = 3; *(uint64_t*)0x20001080 = 4; *(uint64_t*)0x20001088 = 0x80000000; *(uint64_t*)0x20001090 = 3; *(uint64_t*)0x20001098 = 3; *(uint64_t*)0x200010a0 = 3; *(uint32_t*)0x200010a8 = 0xfffffa1e; *(uint32_t*)0x200010ac = 0x8000; *(uint32_t*)0x200010b0 = 1; *(uint32_t*)0x200010b4 = 0x8000; *(uint32_t*)0x200010b8 = 0; *(uint32_t*)0x200010bc = 0; *(uint32_t*)0x200010c0 = 0; *(uint32_t*)0x200010c4 = 7; *(uint32_t*)0x200010c8 = 0x4f8; *(uint32_t*)0x200010cc = 0; *(uint64_t*)0x200010d0 = 5; *(uint64_t*)0x200010d8 = 0x80000000; *(uint32_t*)0x200010e0 = 4; *(uint32_t*)0x200010e4 = 2; memcpy((void*)0x200010e8, "^-.*", 4); *(uint64_t*)0x200010f0 = 5; *(uint64_t*)0x200010f8 = 1; *(uint64_t*)0x20001100 = 0xfff; *(uint64_t*)0x20001108 = 0xfffffffffffffffa; *(uint32_t*)0x20001110 = 0x5c; *(uint32_t*)0x20001114 = 0x100; *(uint64_t*)0x20001118 = 0; *(uint64_t*)0x20001120 = 0x8001; *(uint64_t*)0x20001128 = 0x101; *(uint64_t*)0x20001130 = 0x92fc; *(uint64_t*)0x20001138 = 5; *(uint64_t*)0x20001140 = 0x5eb; *(uint32_t*)0x20001148 = 0; *(uint32_t*)0x2000114c = 3; *(uint32_t*)0x20001150 = 5; *(uint32_t*)0x20001154 = 0x8000; *(uint32_t*)0x20001158 = 9; *(uint32_t*)0x2000115c = 0; *(uint32_t*)0x20001160 = r[3]; *(uint32_t*)0x20001164 = 8; *(uint32_t*)0x20001168 = 0xfffffffe; *(uint32_t*)0x2000116c = 0; *(uint64_t*)0x20001170 = 0; *(uint64_t*)0x20001178 = 1; *(uint32_t*)0x20001180 = 0x12; *(uint32_t*)0x20001184 = 5; memcpy((void*)0x20001188, "svcrdma_post_send\000", 18); *(uint64_t*)0x200011a0 = 6; *(uint64_t*)0x200011a8 = 2; *(uint64_t*)0x200011b0 = 5; *(uint64_t*)0x200011b8 = 0x1f; *(uint32_t*)0x200011c0 = 3; *(uint32_t*)0x200011c4 = 0x80000001; *(uint64_t*)0x200011c8 = 0; *(uint64_t*)0x200011d0 = 0xffffffffffff2d5b; *(uint64_t*)0x200011d8 = 2; *(uint64_t*)0x200011e0 = 8; *(uint64_t*)0x200011e8 = 0x9110; *(uint64_t*)0x200011f0 = 0xfff; *(uint32_t*)0x200011f8 = 0x800; *(uint32_t*)0x200011fc = 0x95a773c; *(uint32_t*)0x20001200 = 1; *(uint32_t*)0x20001204 = 0x1000; *(uint32_t*)0x20001208 = 0x80000000; *(uint32_t*)0x2000120c = r[2]; *(uint32_t*)0x20001210 = 0; *(uint32_t*)0x20001214 = 0xffff; *(uint32_t*)0x20001218 = 6; *(uint32_t*)0x2000121c = 0; *(uint64_t*)0x20001220 = 2; *(uint64_t*)0x20001228 = 0x8001; *(uint32_t*)0x20001230 = 1; *(uint32_t*)0x20001234 = 0x611e; memset((void*)0x20001238, 0, 1); *(uint64_t*)0x20001240 = 6; *(uint64_t*)0x20001248 = 3; *(uint64_t*)0x20001250 = 0xe96; *(uint64_t*)0x20001258 = 0xd2a; *(uint32_t*)0x20001260 = 8; *(uint32_t*)0x20001264 = 0x1426; *(uint64_t*)0x20001268 = 5; *(uint64_t*)0x20001270 = 0x100000001; *(uint64_t*)0x20001278 = 7; *(uint64_t*)0x20001280 = 0xfffffffffffffff8; *(uint64_t*)0x20001288 = 3; *(uint64_t*)0x20001290 = 4; *(uint32_t*)0x20001298 = 7; *(uint32_t*)0x2000129c = 0x80; *(uint32_t*)0x200012a0 = 0x80000000; *(uint32_t*)0x200012a4 = 0x2000; *(uint32_t*)0x200012a8 = 5; *(uint32_t*)0x200012ac = r[2]; *(uint32_t*)0x200012b0 = r[3]; *(uint32_t*)0x200012b4 = 0xffffff80; *(uint32_t*)0x200012b8 = 1; *(uint32_t*)0x200012bc = 0; *(uint64_t*)0x200012c0 = 0; *(uint64_t*)0x200012c8 = 0; *(uint32_t*)0x200012d0 = 0xa; *(uint32_t*)0x200012d4 = 0xae; memcpy((void*)0x200012d8, "/dev/fuse\000", 10); *(uint64_t*)0x200012e8 = 4; *(uint64_t*)0x200012f0 = 0; *(uint64_t*)0x200012f8 = 9; *(uint64_t*)0x20001300 = 0x7ba8b415; *(uint32_t*)0x20001308 = 4; *(uint32_t*)0x2000130c = 0xffffffc1; *(uint64_t*)0x20001310 = 5; *(uint64_t*)0x20001318 = 4; *(uint64_t*)0x20001320 = 0x3ec; *(uint64_t*)0x20001328 = 0x20; *(uint64_t*)0x20001330 = 4; *(uint64_t*)0x20001338 = 0x8000000000000000; *(uint32_t*)0x20001340 = 8; *(uint32_t*)0x20001344 = 3; *(uint32_t*)0x20001348 = 8; *(uint32_t*)0x2000134c = 0x4000; *(uint32_t*)0x20001350 = 0xfffffffa; *(uint32_t*)0x20001354 = 0; *(uint32_t*)0x20001358 = 0; *(uint32_t*)0x2000135c = 0x80000000; *(uint32_t*)0x20001360 = 3; *(uint32_t*)0x20001364 = 0; *(uint64_t*)0x20001368 = 3; *(uint64_t*)0x20001370 = 7; *(uint32_t*)0x20001378 = 0x12; *(uint32_t*)0x2000137c = 2; memcpy((void*)0x20001380, "svcrdma_post_send\000", 18); *(uint64_t*)0x20001398 = 6; *(uint64_t*)0x200013a0 = 1; *(uint64_t*)0x200013a8 = 0x80000000; *(uint64_t*)0x200013b0 = 8; *(uint32_t*)0x200013b8 = 0x8000; *(uint32_t*)0x200013bc = 0x101; *(uint64_t*)0x200013c0 = 3; *(uint64_t*)0x200013c8 = 3; *(uint64_t*)0x200013d0 = 6; *(uint64_t*)0x200013d8 = 4; *(uint64_t*)0x200013e0 = 7; *(uint64_t*)0x200013e8 = 3; *(uint32_t*)0x200013f0 = 1; *(uint32_t*)0x200013f4 = 0xbbb; *(uint32_t*)0x200013f8 = 0x7fff; *(uint32_t*)0x200013fc = 0x1000; *(uint32_t*)0x20001400 = 0x7fff; *(uint32_t*)0x20001404 = r[2]; *(uint32_t*)0x20001408 = r[3]; *(uint32_t*)0x2000140c = 6; *(uint32_t*)0x20001410 = 0x40; *(uint32_t*)0x20001414 = 0; *(uint64_t*)0x20001418 = 3; *(uint64_t*)0x20001420 = 8; *(uint32_t*)0x20001428 = 2; *(uint32_t*)0x2000142c = -1; memcpy((void*)0x20001430, "fd", 2); *(uint64_t*)0x20001438 = 0; *(uint64_t*)0x20001440 = 1; *(uint64_t*)0x20001448 = 0x39; *(uint64_t*)0x20001450 = 4; *(uint32_t*)0x20001458 = 6; *(uint32_t*)0x2000145c = 0x1f; *(uint64_t*)0x20001460 = 5; *(uint64_t*)0x20001468 = 8; *(uint64_t*)0x20001470 = 0x4dea; *(uint64_t*)0x20001478 = 4; *(uint64_t*)0x20001480 = 5; *(uint64_t*)0x20001488 = 9; *(uint32_t*)0x20001490 = 0; *(uint32_t*)0x20001494 = 0x9c; *(uint32_t*)0x20001498 = 0x41; *(uint32_t*)0x2000149c = 0x4000; *(uint32_t*)0x200014a0 = 6; *(uint32_t*)0x200014a4 = 0; *(uint32_t*)0x200014a8 = r[3]; *(uint32_t*)0x200014ac = 0xd82; *(uint32_t*)0x200014b0 = 5; *(uint32_t*)0x200014b4 = 0; *(uint64_t*)0x200014b8 = 1; *(uint64_t*)0x200014c0 = 0x56d; *(uint32_t*)0x200014c8 = 0; *(uint32_t*)0x200014cc = -1; *(uint64_t*)0x200014d0 = 4; *(uint64_t*)0x200014d8 = 2; *(uint64_t*)0x200014e0 = 0x8000000000000000; *(uint64_t*)0x200014e8 = 0; *(uint32_t*)0x200014f0 = 0x20; *(uint32_t*)0x200014f4 = 1; *(uint64_t*)0x200014f8 = 5; *(uint64_t*)0x20001500 = 0x8001; *(uint64_t*)0x20001508 = 3; *(uint64_t*)0x20001510 = 0xfff; *(uint64_t*)0x20001518 = 1; *(uint64_t*)0x20001520 = 0x4f33; *(uint32_t*)0x20001528 = 0xc00000; *(uint32_t*)0x2000152c = 0xb9; *(uint32_t*)0x20001530 = 5; *(uint32_t*)0x20001534 = 0x6000; *(uint32_t*)0x20001538 = 0x401; *(uint32_t*)0x2000153c = r[2]; *(uint32_t*)0x20001540 = 0; *(uint32_t*)0x20001544 = 1; *(uint32_t*)0x20001548 = 2; *(uint32_t*)0x2000154c = 0; *(uint64_t*)0x20001550 = 5; *(uint64_t*)0x20001558 = 0x3f; *(uint32_t*)0x20001560 = 7; *(uint32_t*)0x20001564 = 1; memcpy((void*)0x20001568, "user_id", 7); *(uint64_t*)0x20001570 = 1; *(uint64_t*)0x20001578 = 1; *(uint64_t*)0x20001580 = 0x2c; *(uint64_t*)0x20001588 = 8; *(uint32_t*)0x20001590 = 1; *(uint32_t*)0x20001594 = 0xd7ad; *(uint64_t*)0x20001598 = 2; *(uint64_t*)0x200015a0 = 0xfffffffffffffffe; *(uint64_t*)0x200015a8 = 0; *(uint64_t*)0x200015b0 = 0xd9; *(uint64_t*)0x200015b8 = 0x5f8; *(uint64_t*)0x200015c0 = 9; *(uint32_t*)0x200015c8 = 8; *(uint32_t*)0x200015cc = 2; *(uint32_t*)0x200015d0 = 0xafaf; *(uint32_t*)0x200015d4 = 0x4000; *(uint32_t*)0x200015d8 = 4; *(uint32_t*)0x200015dc = 0; *(uint32_t*)0x200015e0 = 0; *(uint32_t*)0x200015e4 = 0x1ff; *(uint32_t*)0x200015e8 = 6; *(uint32_t*)0x200015ec = 0; *(uint64_t*)0x200015f0 = 3; *(uint64_t*)0x200015f8 = 0xfff; *(uint32_t*)0x20001600 = 5; *(uint32_t*)0x20001604 = 4; memcpy((void*)0x20001608, "fuse\000", 5); *(uint64_t*)0x20001610 = 0; *(uint64_t*)0x20001618 = 1; *(uint64_t*)0x20001620 = 0x10000; *(uint64_t*)0x20001628 = 0x81; *(uint32_t*)0x20001630 = 7; *(uint32_t*)0x20001634 = 3; *(uint64_t*)0x20001638 = 1; *(uint64_t*)0x20001640 = 0x10001; *(uint64_t*)0x20001648 = 7; *(uint64_t*)0x20001650 = 0xffff; *(uint64_t*)0x20001658 = 0x100000001; *(uint64_t*)0x20001660 = 1; *(uint32_t*)0x20001668 = 5; *(uint32_t*)0x2000166c = 0x401; *(uint32_t*)0x20001670 = 3; *(uint32_t*)0x20001674 = 0xc000; *(uint32_t*)0x20001678 = 1; *(uint32_t*)0x2000167c = r[2]; *(uint32_t*)0x20001680 = r[3]; *(uint32_t*)0x20001684 = 0x3ff; *(uint32_t*)0x20001688 = 0; *(uint32_t*)0x2000168c = 0; *(uint64_t*)0x20001690 = 6; *(uint64_t*)0x20001698 = 4; *(uint32_t*)0x200016a0 = 0; *(uint32_t*)0x200016a4 = 8; *(uint64_t*)0x20000bf0 = 0; *(uint64_t*)0x20000bf8 = 0; syz_fuse_handle_req(/*fd=*/r[0], /*buf=*/0x20004800, /*len=*/0x2000, /*res=*/0x20000b80); break; case 4: *(uint32_t*)0x20000000 = 0x50; *(uint32_t*)0x20000004 = 0; *(uint64_t*)0x20000008 = r[1]; *(uint32_t*)0x20000010 = 7; *(uint32_t*)0x20000014 = 5; *(uint32_t*)0x20000018 = 0; *(uint32_t*)0x2000001c = 0; *(uint16_t*)0x20000020 = 0; *(uint16_t*)0x20000022 = 0; *(uint32_t*)0x20000024 = 0; *(uint32_t*)0x20000028 = 0; *(uint16_t*)0x2000002c = 0; *(uint16_t*)0x2000002e = 0; memset((void*)0x20000030, 0, 32); syscall(__NR_write, /*fd=*/r[0], /*arg=*/0x20000000ul, /*len=*/0x50ul); break; case 5: memcpy((void*)0x200001c0, "./file0/file0\000", 14); syz_mount_image(/*fs=*/0, /*dir=*/0x200001c0, /*flags=*/0, /*opts=*/0, /*chdir=*/0, /*size=*/0, /*img=*/0); 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(); setup_swap(); use_temporary_dir(); do_sandbox_none(); return 0; }