// https://syzkaller.appspot.com/bug?id=ad69d1c3f76bf1db050797e8f0a19612804da71e // 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 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); } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) 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 void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); netlink_init(nlmsg, RTM_NEWLINK, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); if (name) netlink_attr(nlmsg, IFLA_IFNAME, name, strlen(name)); netlink_nest(nlmsg, IFLA_LINKINFO); netlink_attr(nlmsg, IFLA_INFO_KIND, type, strlen(type)); } static void netlink_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 WIFI_INITIAL_DEVICE_COUNT 2 #define WIFI_MAC_BASE \ { \ 0x08, 0x02, 0x11, 0x00, 0x00, 0x00 \ } #define WIFI_IBSS_BSSID \ { \ 0x50, 0x50, 0x50, 0x50, 0x50, 0x50 \ } #define WIFI_IBSS_SSID \ { \ 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 \ } #define WIFI_DEFAULT_FREQUENCY 2412 #define WIFI_DEFAULT_SIGNAL 0 #define WIFI_DEFAULT_RX_RATE 1 #define HWSIM_CMD_REGISTER 1 #define HWSIM_CMD_FRAME 2 #define HWSIM_CMD_NEW_RADIO 4 #define HWSIM_ATTR_SUPPORT_P2P_DEVICE 14 #define HWSIM_ATTR_PERM_ADDR 22 #define IF_OPER_UP 6 struct join_ibss_props { int wiphy_freq; bool wiphy_freq_fixed; uint8_t* mac; uint8_t* ssid; int ssid_len; }; static int set_interface_state(const char* interface_name, int on) { struct ifreq ifr; int sock = socket(AF_INET, SOCK_DGRAM, 0); if (sock < 0) { return -1; } memset(&ifr, 0, sizeof(ifr)); strcpy(ifr.ifr_name, interface_name); int ret = ioctl(sock, SIOCGIFFLAGS, &ifr); if (ret < 0) { close(sock); return -1; } if (on) ifr.ifr_flags |= IFF_UP; else ifr.ifr_flags &= ~IFF_UP; ret = ioctl(sock, SIOCSIFFLAGS, &ifr); close(sock); if (ret < 0) { return -1; } return 0; } static int nl80211_set_interface(struct nlmsg* nlmsg, int sock, int nl80211_family, uint32_t ifindex, uint32_t iftype) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL80211_CMD_SET_INTERFACE; netlink_init(nlmsg, nl80211_family, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, NL80211_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(nlmsg, NL80211_ATTR_IFTYPE, &iftype, sizeof(iftype)); int err = netlink_send(nlmsg, sock); if (err < 0) { } return err; } static int nl80211_join_ibss(struct nlmsg* nlmsg, int sock, int nl80211_family, uint32_t ifindex, struct join_ibss_props* props) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL80211_CMD_JOIN_IBSS; netlink_init(nlmsg, nl80211_family, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, NL80211_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(nlmsg, NL80211_ATTR_SSID, props->ssid, props->ssid_len); netlink_attr(nlmsg, NL80211_ATTR_WIPHY_FREQ, &(props->wiphy_freq), sizeof(props->wiphy_freq)); if (props->mac) netlink_attr(nlmsg, NL80211_ATTR_MAC, props->mac, ETH_ALEN); if (props->wiphy_freq_fixed) netlink_attr(nlmsg, NL80211_ATTR_FREQ_FIXED, NULL, 0); int err = netlink_send(nlmsg, sock); if (err < 0) { } return err; } static int get_ifla_operstate(struct nlmsg* nlmsg, int ifindex) { struct ifinfomsg info; memset(&info, 0, sizeof(info)); info.ifi_family = AF_UNSPEC; info.ifi_index = ifindex; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) { return -1; } netlink_init(nlmsg, RTM_GETLINK, 0, &info, sizeof(info)); int n; int err = netlink_send_ext(nlmsg, sock, RTM_NEWLINK, &n, true); close(sock); if (err) { return -1; } struct rtattr* attr = IFLA_RTA(NLMSG_DATA(nlmsg->buf)); for (; RTA_OK(attr, n); attr = RTA_NEXT(attr, n)) { if (attr->rta_type == IFLA_OPERSTATE) return *((int32_t*)RTA_DATA(attr)); } return -1; } static int await_ifla_operstate(struct nlmsg* nlmsg, char* interface, int operstate) { int ifindex = if_nametoindex(interface); while (true) { usleep(1000); int ret = get_ifla_operstate(nlmsg, ifindex); if (ret < 0) return ret; if (ret == operstate) return 0; } return 0; } static int nl80211_setup_ibss_interface(struct nlmsg* nlmsg, int sock, int nl80211_family_id, char* interface, struct join_ibss_props* ibss_props) { int ifindex = if_nametoindex(interface); if (ifindex == 0) { return -1; } int ret = nl80211_set_interface(nlmsg, sock, nl80211_family_id, ifindex, NL80211_IFTYPE_ADHOC); if (ret < 0) { return -1; } ret = set_interface_state(interface, 1); if (ret < 0) { return -1; } ret = nl80211_join_ibss(nlmsg, sock, nl80211_family_id, ifindex, ibss_props); if (ret < 0) { return -1; } return 0; } static int hwsim80211_create_device(struct nlmsg* nlmsg, int sock, int hwsim_family, uint8_t mac_addr[ETH_ALEN]) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = HWSIM_CMD_NEW_RADIO; netlink_init(nlmsg, hwsim_family, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, HWSIM_ATTR_SUPPORT_P2P_DEVICE, NULL, 0); netlink_attr(nlmsg, HWSIM_ATTR_PERM_ADDR, mac_addr, ETH_ALEN); int err = netlink_send(nlmsg, sock); if (err < 0) { } return err; } static void initialize_wifi_devices(void) { int rfkill = open("/dev/rfkill", O_RDWR); if (rfkill == -1) { if (errno != ENOENT && errno != EACCES) exit(1); } else { struct rfkill_event event = {0}; event.type = RFKILL_TYPE_ALL; event.op = RFKILL_OP_CHANGE_ALL; if (write(rfkill, &event, sizeof(event)) != (ssize_t)(sizeof(event))) exit(1); close(rfkill); } uint8_t mac_addr[6] = WIFI_MAC_BASE; int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock < 0) { return; } int hwsim_family_id = netlink_query_family_id(&nlmsg, sock, "MAC80211_HWSIM", true); int nl80211_family_id = netlink_query_family_id(&nlmsg, sock, "nl80211", true); uint8_t ssid[] = WIFI_IBSS_SSID; uint8_t bssid[] = WIFI_IBSS_BSSID; struct join_ibss_props ibss_props = {.wiphy_freq = WIFI_DEFAULT_FREQUENCY, .wiphy_freq_fixed = true, .mac = bssid, .ssid = ssid, .ssid_len = sizeof(ssid)}; for (int device_id = 0; device_id < WIFI_INITIAL_DEVICE_COUNT; device_id++) { mac_addr[5] = device_id; int ret = hwsim80211_create_device(&nlmsg, sock, hwsim_family_id, mac_addr); if (ret < 0) exit(1); char interface[6] = "wlan0"; interface[4] += device_id; if (nl80211_setup_ibss_interface(&nlmsg, sock, nl80211_family_id, interface, &ibss_props) < 0) exit(1); } for (int device_id = 0; device_id < WIFI_INITIAL_DEVICE_COUNT; device_id++) { char interface[6] = "wlan0"; interface[4] += device_id; int ret = await_ifla_operstate(&nlmsg, interface, IF_OPER_UP); if (ret < 0) exit(1); } 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 static long syz_genetlink_get_family_id(volatile long name, volatile long sock_arg) { bool dofail = false; int fd = sock_arg; if (fd < 0) { dofail = true; fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (fd == -1) { return -1; } } struct nlmsg nlmsg_tmp; int ret = netlink_query_family_id(&nlmsg_tmp, fd, (char*)name, dofail); if ((int)sock_arg < 0) close(fd); if (ret < 0) { return -1; } return ret; } 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 = 0; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } initialize_tun(); initialize_wifi_devices(); 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_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); 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); } #define NL802154_CMD_SET_SHORT_ADDR 11 #define NL802154_ATTR_IFINDEX 3 #define NL802154_ATTR_SHORT_ADDR 10 static void setup_802154() { int sock_route = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock_route == -1) exit(1); int sock_generic = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock_generic < 0) exit(1); int nl802154_family_id = netlink_query_family_id(&nlmsg, sock_generic, "nl802154", true); for (int i = 0; i < 2; i++) { char devname[] = "wpan0"; devname[strlen(devname) - 1] += i; uint64_t hwaddr = 0xaaaaaaaaaaaa0002 + (i << 8); uint16_t shortaddr = 0xaaa0 + i; int ifindex = if_nametoindex(devname); struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL802154_CMD_SET_SHORT_ADDR; netlink_init(&nlmsg, nl802154_family_id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, NL802154_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(&nlmsg, NL802154_ATTR_SHORT_ADDR, &shortaddr, sizeof(shortaddr)); int err = netlink_send(&nlmsg, sock_generic); if (err < 0) { } netlink_device_change(&nlmsg, sock_route, devname, true, 0, &hwaddr, sizeof(hwaddr), 0); if (i == 0) { netlink_add_device_impl(&nlmsg, "lowpan", "lowpan0"); netlink_done(&nlmsg); netlink_attr(&nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(&nlmsg, sock_route); if (err < 0) { } } } close(sock_route); close(sock_generic); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); close_fds(); 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[7] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0xffffffffffffffff, 0x0}; void execute_one(void) { intptr_t res = 0; syscall(__NR_socket, 0x10ul, 3ul, 0x10); res = syscall(__NR_socket, 0x10ul, 3ul, 0x10); if (res != -1) r[0] = res; res = syscall(__NR_socket, 2ul, 2ul, 0x88); if (res != -1) r[1] = res; memcpy((void*)0x20000180, "wlan1\000\000\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, r[1], 0x8933, 0x20000180ul); if (res != -1) r[2] = *(uint32_t*)0x20000190; memcpy((void*)0x200022c0, "nl80211\000", 8); res = -1; res = syz_genetlink_get_family_id(0x200022c0, -1); if (res != -1) r[3] = res; *(uint64_t*)0x20000080 = 0; *(uint32_t*)0x20000088 = 0; *(uint64_t*)0x20000090 = 0x20000100; *(uint64_t*)0x20000100 = 0x20000040; *(uint32_t*)0x20000040 = 0x2c; *(uint16_t*)0x20000044 = r[3]; *(uint16_t*)0x20000046 = 1; *(uint32_t*)0x20000048 = 0; *(uint32_t*)0x2000004c = 0; *(uint8_t*)0x20000050 = 0x37; *(uint8_t*)0x20000051 = 0; *(uint16_t*)0x20000052 = 0; *(uint16_t*)0x20000054 = 8; *(uint16_t*)0x20000056 = 3; *(uint32_t*)0x20000058 = r[2]; *(uint16_t*)0x2000005c = 8; *(uint16_t*)0x2000005e = 0x26; *(uint32_t*)0x20000060 = 0x96c; *(uint16_t*)0x20000064 = 8; *(uint16_t*)0x20000066 = 0x57; *(uint32_t*)0x20000068 = 0x80; *(uint64_t*)0x20000108 = 0x2c; *(uint64_t*)0x20000098 = 1; *(uint64_t*)0x200000a0 = 0; *(uint64_t*)0x200000a8 = 0; *(uint32_t*)0x200000b0 = 0; syscall(__NR_sendmsg, r[0], 0x20000080ul, 0ul); memcpy((void*)0x20000280, "nl80211\000", 8); res = -1; res = syz_genetlink_get_family_id(0x20000280, -1); if (res != -1) r[4] = res; res = syscall(__NR_socket, 0x10ul, 3ul, 0x10); if (res != -1) r[5] = res; memcpy((void*)0x20000000, "wlan0\000\000\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, r[5], 0x8933, 0x20000000ul); if (res != -1) r[6] = *(uint32_t*)0x20000010; *(uint64_t*)0x20002140 = 0; *(uint32_t*)0x20002148 = 0; *(uint64_t*)0x20002150 = 0x20002100; *(uint64_t*)0x20002100 = 0x20002300; *(uint32_t*)0x20002300 = 0x8b4; *(uint16_t*)0x20002304 = r[4]; *(uint16_t*)0x20002306 = 1; *(uint32_t*)0x20002308 = 0; *(uint32_t*)0x2000230c = 0; *(uint8_t*)0x20002310 = 0x66; *(uint8_t*)0x20002311 = 0; *(uint16_t*)0x20002312 = 0; *(uint16_t*)0x20002314 = 8; *(uint16_t*)0x20002316 = 3; *(uint32_t*)0x20002318 = r[6]; *(uint16_t*)0x2000231c = 8; *(uint16_t*)0x2000231e = 0xb7; *(uint32_t*)0x20002320 = 0x1c; *(uint16_t*)0x20002324 = 8; *(uint16_t*)0x20002326 = 0xb7; *(uint32_t*)0x20002328 = 0x3d; *(uint16_t*)0x2000232c = 8; *(uint16_t*)0x2000232e = 0xa0; *(uint32_t*)0x20002330 = 0; *(uint16_t*)0x20002334 = 8; *(uint16_t*)0x20002336 = 0x26; *(uint32_t*)0x20002338 = 0x97b; *(uint16_t*)0x2000233c = 0x44; STORE_BY_BITMASK(uint16_t, , 0x2000233e, 0xb9, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000233f, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000233f, 1, 7, 1); *(uint16_t*)0x20002340 = 0x10; *(uint16_t*)0x20002342 = 0xba; *(uint16_t*)0x20002344 = 0x8b; *(uint16_t*)0x20002346 = 2; *(uint16_t*)0x20002348 = 1; *(uint16_t*)0x2000234a = 3; *(uint16_t*)0x2000234c = 0x7f; *(uint16_t*)0x2000234e = 4; *(uint16_t*)0x20002350 = 8; *(uint16_t*)0x20002352 = 0xba; *(uint16_t*)0x20002354 = 5; *(uint16_t*)0x20002356 = 0; *(uint16_t*)0x20002358 = 8; *(uint16_t*)0x2000235a = 0xbb; *(uint16_t*)0x2000235c = 9; *(uint16_t*)0x2000235e = -1; *(uint16_t*)0x20002360 = 0xe; *(uint16_t*)0x20002362 = 0xbb; *(uint16_t*)0x20002364 = 4; *(uint16_t*)0x20002366 = 6; *(uint16_t*)0x20002368 = 8; *(uint16_t*)0x2000236a = 0x8000; *(uint16_t*)0x2000236c = 0x8001; *(uint16_t*)0x20002370 = 0xe; *(uint16_t*)0x20002372 = 0xba; *(uint16_t*)0x20002374 = 0x80; *(uint16_t*)0x20002376 = 0xaa; *(uint16_t*)0x20002378 = 5; *(uint16_t*)0x2000237a = 1; *(uint16_t*)0x2000237c = 4; *(uint16_t*)0x20002380 = 8; *(uint16_t*)0x20002382 = 0xb7; *(uint32_t*)0x20002384 = 0x41; *(uint16_t*)0x20002388 = 4; *(uint16_t*)0x2000238a = 0xb8; *(uint16_t*)0x2000238c = 0x7f4; STORE_BY_BITMASK(uint16_t, , 0x2000238e, 0xb9, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000238f, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000238f, 1, 7, 1); *(uint16_t*)0x20002390 = 0x12; *(uint16_t*)0x20002392 = 0xbb; *(uint16_t*)0x20002394 = 0x1ff; *(uint16_t*)0x20002396 = 0x200; *(uint16_t*)0x20002398 = 9; *(uint16_t*)0x2000239a = 1; *(uint16_t*)0x2000239c = 8; *(uint16_t*)0x2000239e = 0x100; *(uint16_t*)0x200023a0 = 4; *(uint16_t*)0x200023a4 = 0x129; *(uint16_t*)0x200023a6 = 0x7f; *(uint8_t*)0x200023a8 = 0x37; *(uint8_t*)0x200023a9 = 0x83; *(uint8_t*)0x200023aa = 0x81; *(uint8_t*)0x200023ab = 5; memcpy((void*)0x200023ac, "\x0f\x00\xa8\xf4\xcf\x60\x39\xac\x4b\x6a\xb2\x45\x8e\x3f\x36\x16", 16); memcpy((void*)0x200023bc, "\x6c\xf8\x34\x33\x2e\xae\xd8\x93\x5d\x22\x91\x83\x2f\x75\xac\xee\x6c" "\x4d\xcc\x57\x3f\x4a\x0f\x4e\x94\x57\xcc\x01\x31\x6e\xc3\x07", 32); memcpy((void*)0x200023dc, "\xa1\x72\x76\x66\x8d\x73\xd1\x09\x1f\xa8\x47\xdb\x98\xb0\xa6\xc9\x18" "\x1c\x90\x09\xbe\xdf\x73\x89\x08\x8a\xab\x36\x80\x3c\x46\xfc", 32); *(uint8_t*)0x200023fc = 2; *(uint8_t*)0x200023fd = 0; *(uint8_t*)0x200023fe = 3; *(uint8_t*)0x200023ff = 0; *(uint8_t*)0x20002400 = 1; *(uint8_t*)0x20002401 = 0x27; memcpy((void*)0x20002402, "\x37\x2e\xe5\xf5\x42\xcd\x5a\x3e\x08\xc3\x06\x92\x83\xd2\x95\xa4\xb0" "\x9c\x97\x8e\xc5\xa4\x83\x9a\x7a\x14\xc6\x80\xec\x4a\x5a\xde\x0d\xb4" "\xea\xe0\x49\x86\xe9", 39); *(uint8_t*)0x20002429 = 1; *(uint8_t*)0x2000242a = 0; *(uint8_t*)0x2000242b = 1; *(uint8_t*)0x2000242c = 0; *(uint8_t*)0x2000242d = 0x82; *(uint8_t*)0x2000242e = 0x72; STORE_BY_BITMASK(uint8_t, , 0x2000242f, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000242f, 1, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000242f, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000242f, 0, 3, 3); STORE_BY_BITMASK(uint8_t, , 0x2000242f, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x2000242f, 0, 7, 1); *(uint8_t*)0x20002430 = 0xa; *(uint8_t*)0x20002431 = 0x40; *(uint32_t*)0x20002432 = 0x401; *(uint8_t*)0x20002436 = 8; *(uint8_t*)0x20002437 = 2; *(uint8_t*)0x20002438 = 0x11; *(uint8_t*)0x20002439 = 0; *(uint8_t*)0x2000243a = 0; *(uint8_t*)0x2000243b = 0; *(uint32_t*)0x2000243c = 0x20; *(uint32_t*)0x20002440 = 7; *(uint32_t*)0x20002444 = 4; *(uint8_t*)0x20002448 = 8; STORE_BY_BITMASK(uint8_t, , 0x20002449, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002449, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002449, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002449, 0, 3, 5); *(uint8_t*)0x2000244a = 8; *(uint8_t*)0x2000244b = 2; *(uint8_t*)0x2000244c = 0x11; *(uint8_t*)0x2000244d = 0; *(uint8_t*)0x2000244e = 0; *(uint8_t*)0x2000244f = 1; *(uint32_t*)0x20002450 = 2; STORE_BY_BITMASK(uint8_t, , 0x20002454, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002454, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002454, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002454, 0, 3, 5); *(uint8_t*)0x20002455 = 8; *(uint8_t*)0x20002456 = 2; *(uint8_t*)0x20002457 = 0x11; *(uint8_t*)0x20002458 = 0; *(uint8_t*)0x20002459 = 0; *(uint8_t*)0x2000245a = 1; *(uint32_t*)0x2000245b = 2; STORE_BY_BITMASK(uint8_t, , 0x2000245f, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000245f, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000245f, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000245f, 0, 3, 5); memset((void*)0x20002460, 255, 6); *(uint32_t*)0x20002466 = 6; STORE_BY_BITMASK(uint8_t, , 0x2000246a, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000246a, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000246a, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000246a, 0, 3, 5); *(uint8_t*)0x2000246b = 8; *(uint8_t*)0x2000246c = 2; *(uint8_t*)0x2000246d = 0x11; *(uint8_t*)0x2000246e = 0; *(uint8_t*)0x2000246f = 0; *(uint8_t*)0x20002470 = 1; *(uint32_t*)0x20002471 = 7; STORE_BY_BITMASK(uint8_t, , 0x20002475, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002475, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002475, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002475, 0, 3, 5); memset((void*)0x20002476, 255, 6); *(uint32_t*)0x2000247c = 3; STORE_BY_BITMASK(uint8_t, , 0x20002480, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002480, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002480, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002480, 0, 3, 5); memset((void*)0x20002481, 255, 6); *(uint32_t*)0x20002487 = 0x1ff; STORE_BY_BITMASK(uint8_t, , 0x2000248b, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000248b, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000248b, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000248b, 0, 3, 5); memset((void*)0x2000248c, 255, 6); *(uint32_t*)0x20002492 = 5; STORE_BY_BITMASK(uint8_t, , 0x20002496, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002496, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002496, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002496, 0, 3, 5); memset((void*)0x20002497, 255, 6); *(uint32_t*)0x2000249d = -1; *(uint8_t*)0x200024a1 = 6; *(uint8_t*)0x200024a2 = 2; *(uint16_t*)0x200024a3 = 0x600; *(uint8_t*)0x200024a5 = 0x2a; *(uint8_t*)0x200024a6 = 1; STORE_BY_BITMASK(uint8_t, , 0x200024a7, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200024a7, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200024a7, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200024a7, 0, 3, 5); *(uint8_t*)0x200024a8 = 0x72; *(uint8_t*)0x200024a9 = 6; memset((void*)0x200024aa, 3, 6); *(uint8_t*)0x200024b0 = 0x2a; *(uint8_t*)0x200024b1 = 1; STORE_BY_BITMASK(uint8_t, , 0x200024b2, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200024b2, 1, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200024b2, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200024b2, 0, 3, 5); *(uint8_t*)0x200024b3 = 0x20; *(uint8_t*)0x200024b4 = 0; *(uint8_t*)0x200024b5 = 0x75; *(uint8_t*)0x200024b6 = 0x16; *(uint16_t*)0x200024b7 = 1; *(uint16_t*)0x200024b9 = 0xff; *(uint16_t*)0x200024bb = 5; memcpy((void*)0x200024bd, "\xda\xfd\x1d\x8e\x98\x3f\x3d\xb7\x38\xf0\x4d\x8a\x95\xc4\x66\xfe", 16); *(uint16_t*)0x200024d0 = 0x118; STORE_BY_BITMASK(uint16_t, , 0x200024d2, 0x10e, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200024d3, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200024d3, 1, 7, 1); *(uint16_t*)0x200024d4 = 4; *(uint16_t*)0x200024d6 = 2; *(uint16_t*)0x200024d8 = 0x51; *(uint16_t*)0x200024da = 2; memcpy((void*)0x200024dc, "\x56\xe2\x07\xed\x71\xa2\xf6\x47\x6d\x2f\x0e\x30\x8a\x28\x87\xec\x56" "\x1d\x79\x82\xa3\x82\x76\xde\x8b\x4e\xcd\x1d\x13\xf3\x2f\x8a\xcf\xc1" "\x5c\x2e\xdc\xff\x62\x88\x04\x9f\x37\x34\xa0\xbd\x69\x61\x6b\x83\x25" "\x63\x09\x1e\x86\xa1\x90\x4f\xb6\x65\x4b\x97\xbb\x5e\x64\xfb\xcf\x14" "\xd7\xc5\xe2\xae\x5a\xf0\x15\x4a\x61", 77); *(uint16_t*)0x2000252c = 0xbb; *(uint16_t*)0x2000252e = 3; memcpy((void*)0x20002530, "\x40\x2a\x48\xd5\x4f\xcb\xa4\x0e\x11\x68\xbd\xbc\x79\x1c\xb6\xaa\x32" "\xfd\xfa\x8a\x46\x2a\xed\x8a\xaf\x72\x88\x04\x10\x95\x5b\x7b\x2e\x0a" "\x69\xa1\x44\x9d\x8a\x88\x36\xb2\x62\xd8\x83\x77\x52\x06\xa3\xfd\x9c" "\x48\x80\x71\xe9\xf1\xa1\xda\x97\x3b\x13\xc3\x5c\x80\x38\xed\x7f\x71" "\x6f\xa6\x02\x88\xfb\xac\xe3\xbf\xd5\xa4\x3a\x29\xdc\xba\xd1\xf8\x3b" "\x79\xe3\x69\xf1\x7c\xa7\xad\x8d\xe5\x36\x1b\x5b\xc0\x16\x91\x8d\xc1" "\x9d\x1f\x97\x35\x40\xff\xf9\xbb\xf3\xf7\x85\x9e\x64\xfd\xc3\xa3\x65" "\x95\x87\x46\x55\xde\x53\x42\x30\xd9\x86\xf1\x43\x3a\x25\x2c\x78\x4a" "\xa9\xda\x16\xb5\x0c\x55\x56\xa6\x8c\xad\x3c\xcf\x78\xc9\x4d\x9f\x12" "\x42\xf0\x13\x13\x09\xdd\xc1\xb4\x73\x6a\xd1\x31\xfe\x5c\x1c\x20\x60" "\x3d\x8d\x98\xeb\x14\xd1\xca\xea\x7a\xe1\xab\xab\xd2", 183); *(uint16_t*)0x200025e8 = 0xdd; *(uint16_t*)0x200025ea = 0xf; *(uint8_t*)0x200025ec = 4; *(uint8_t*)0x200025ed = 6; *(uint8_t*)0x200025ee = 2; *(uint8_t*)0x200025ef = 0x80; *(uint16_t*)0x200025f0 = 6; *(uint16_t*)0x200025f2 = 8; *(uint8_t*)0x200025f4 = 3; *(uint8_t*)0x200025f5 = 1; *(uint8_t*)0x200025f6 = 0x3c; *(uint8_t*)0x200025f7 = 0x65; *(uint8_t*)0x200025f8 = 0x12; *(uint8_t*)0x200025f9 = 8; *(uint8_t*)0x200025fa = 2; *(uint8_t*)0x200025fb = 0x11; *(uint8_t*)0x200025fc = 0; *(uint8_t*)0x200025fd = 0; *(uint8_t*)0x200025fe = 1; *(uint8_t*)0x200025ff = 8; *(uint8_t*)0x20002600 = 2; *(uint8_t*)0x20002601 = 0x11; *(uint8_t*)0x20002602 = 0; *(uint8_t*)0x20002603 = 0; *(uint8_t*)0x20002604 = 0; memset((void*)0x20002605, 255, 6); *(uint8_t*)0x2000260b = 0x83; *(uint8_t*)0x2000260c = 0x1f; STORE_BY_BITMASK(uint8_t, , 0x2000260d, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x2000260d, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x2000260d, 0, 7, 1); *(uint8_t*)0x2000260e = 8; *(uint8_t*)0x2000260f = 0x26; *(uint8_t*)0x20002610 = 8; *(uint8_t*)0x20002611 = 2; *(uint8_t*)0x20002612 = 0x11; *(uint8_t*)0x20002613 = 0; *(uint8_t*)0x20002614 = 0; *(uint8_t*)0x20002615 = 0; *(uint32_t*)0x20002616 = 8; *(uint32_t*)0x2000261a = 4; *(uint32_t*)0x2000261e = 6; *(uint8_t*)0x20002622 = 8; *(uint8_t*)0x20002623 = 2; *(uint8_t*)0x20002624 = 0x11; *(uint8_t*)0x20002625 = 0; *(uint8_t*)0x20002626 = 0; *(uint8_t*)0x20002627 = 1; *(uint32_t*)0x20002628 = 0xdd; *(uint8_t*)0x2000262c = 0x76; *(uint8_t*)0x2000262d = 6; *(uint8_t*)0x2000262e = 0x80; *(uint8_t*)0x2000262f = 6; *(uint16_t*)0x20002630 = 8; *(uint16_t*)0x20002632 = 1; *(uint8_t*)0x20002634 = 0x2d; *(uint8_t*)0x20002635 = 0x1a; *(uint16_t*)0x20002636 = 0x20; STORE_BY_BITMASK(uint8_t, , 0x20002638, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002638, 5, 2, 3); STORE_BY_BITMASK(uint8_t, , 0x20002638, 0, 5, 3); *(uint64_t*)0x20002639 = 0x100000001; STORE_BY_BITMASK(uint64_t, , 0x20002641, 4, 0, 13); STORE_BY_BITMASK(uint64_t, , 0x20002642, 0, 5, 3); STORE_BY_BITMASK(uint64_t, , 0x20002643, 5, 0, 10); STORE_BY_BITMASK(uint64_t, , 0x20002644, 0, 2, 6); STORE_BY_BITMASK(uint64_t, , 0x20002645, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x20002645, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x20002645, 3, 2, 2); STORE_BY_BITMASK(uint64_t, , 0x20002645, 1, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x20002645, 0, 5, 27); *(uint16_t*)0x20002649 = 0x300; *(uint32_t*)0x2000264b = 0xffff; *(uint8_t*)0x2000264f = 0x52; *(uint8_t*)0x20002650 = 0x82; *(uint8_t*)0x20002651 = 0x6d; STORE_BY_BITMASK(uint8_t, , 0x20002652, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002652, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002652, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002652, 0, 3, 3); STORE_BY_BITMASK(uint8_t, , 0x20002652, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002652, 0, 7, 1); *(uint8_t*)0x20002653 = 0xc8; *(uint8_t*)0x20002654 = 3; *(uint32_t*)0x20002655 = 0x40; memset((void*)0x20002659, 255, 6); *(uint32_t*)0x2000265f = 3; memset((void*)0x20002663, 255, 6); *(uint32_t*)0x20002669 = 3; *(uint32_t*)0x2000266d = 1; *(uint8_t*)0x20002671 = 7; STORE_BY_BITMASK(uint8_t, , 0x20002672, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002672, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002672, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002672, 0, 3, 5); *(uint8_t*)0x20002673 = 8; *(uint8_t*)0x20002674 = 2; *(uint8_t*)0x20002675 = 0x11; *(uint8_t*)0x20002676 = 0; *(uint8_t*)0x20002677 = 0; *(uint8_t*)0x20002678 = 0; *(uint32_t*)0x20002679 = 0x200; STORE_BY_BITMASK(uint8_t, , 0x2000267d, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000267d, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000267d, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000267d, 0, 3, 5); *(uint8_t*)0x2000267e = 8; *(uint8_t*)0x2000267f = 2; *(uint8_t*)0x20002680 = 0x11; *(uint8_t*)0x20002681 = 0; *(uint8_t*)0x20002682 = 0; *(uint8_t*)0x20002683 = 0; *(uint32_t*)0x20002684 = 1; STORE_BY_BITMASK(uint8_t, , 0x20002688, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002688, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002688, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002688, 0, 3, 5); *(uint8_t*)0x20002689 = 8; *(uint8_t*)0x2000268a = 2; *(uint8_t*)0x2000268b = 0x11; *(uint8_t*)0x2000268c = 0; *(uint8_t*)0x2000268d = 0; *(uint8_t*)0x2000268e = 0; *(uint32_t*)0x2000268f = 4; STORE_BY_BITMASK(uint8_t, , 0x20002693, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002693, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002693, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002693, 0, 3, 5); *(uint8_t*)0x20002694 = 8; *(uint8_t*)0x20002695 = 2; *(uint8_t*)0x20002696 = 0x11; *(uint8_t*)0x20002697 = 0; *(uint8_t*)0x20002698 = 0; *(uint8_t*)0x20002699 = 0; *(uint32_t*)0x2000269a = 7; STORE_BY_BITMASK(uint8_t, , 0x2000269e, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x2000269e, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x2000269e, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x2000269e, 0, 3, 5); *(uint8_t*)0x2000269f = 8; *(uint8_t*)0x200026a0 = 2; *(uint8_t*)0x200026a1 = 0x11; *(uint8_t*)0x200026a2 = 0; *(uint8_t*)0x200026a3 = 0; *(uint8_t*)0x200026a4 = 0; *(uint32_t*)0x200026a5 = 0x8002; STORE_BY_BITMASK(uint8_t, , 0x200026a9, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200026a9, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200026a9, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200026a9, 0, 3, 5); *(uint8_t*)0x200026aa = 8; *(uint8_t*)0x200026ab = 2; *(uint8_t*)0x200026ac = 0x11; *(uint8_t*)0x200026ad = 0; *(uint8_t*)0x200026ae = 0; *(uint8_t*)0x200026af = 0; *(uint32_t*)0x200026b0 = 0x800; STORE_BY_BITMASK(uint8_t, , 0x200026b4, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200026b4, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200026b4, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200026b4, 0, 3, 5); *(uint8_t*)0x200026b5 = 8; *(uint8_t*)0x200026b6 = 2; *(uint8_t*)0x200026b7 = 0x11; *(uint8_t*)0x200026b8 = 0; *(uint8_t*)0x200026b9 = 0; *(uint8_t*)0x200026ba = 0; *(uint32_t*)0x200026bb = 5; *(uint8_t*)0x200026bf = 0x68; *(uint8_t*)0x200026c0 = 4; *(uint16_t*)0x200026c1 = 0xb05c; *(uint16_t*)0x200026c3 = 8; *(uint16_t*)0x200026c8 = 0x1e; *(uint16_t*)0x200026ca = 0x80; *(uint8_t*)0x200026cc = 0x8c; *(uint8_t*)0x200026cd = 0x18; *(uint16_t*)0x200026ce = 0xbd2; memcpy((void*)0x200026d0, "\x57\x0c\xd8\x12\x88\x26", 6); memcpy((void*)0x200026d6, "\x1c\x8c\x96\xab\x0b\xde\xd8\xdf\xe5\x2d\xba\x3f\x6d\x41\x04\x02", 16); *(uint16_t*)0x200026e8 = 9; *(uint16_t*)0x200026ea = 0xf; *(uint8_t*)0x200026ec = 1; *(uint8_t*)0x200026ed = 0; *(uint8_t*)0x200026ee = 0x2a; *(uint8_t*)0x200026ef = 1; STORE_BY_BITMASK(uint8_t, , 0x200026f0, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f0, 1, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f0, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f0, 0, 3, 5); *(uint16_t*)0x200026f4 = 0x67; *(uint16_t*)0x200026f6 = 0xe; STORE_BY_BITMASK(uint8_t, , 0x200026f8, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200026f8, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200026f8, 8, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 1, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 0, 4, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 1, 5, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200026f9, 1, 7, 1); STORE_BY_BITMASK(uint16_t, , 0x200026fa, 4, 0, 15); STORE_BY_BITMASK(uint16_t, , 0x200026fb, 0, 7, 1); memset((void*)0x200026fc, 255, 6); *(uint8_t*)0x20002702 = 8; *(uint8_t*)0x20002703 = 2; *(uint8_t*)0x20002704 = 0x11; *(uint8_t*)0x20002705 = 0; *(uint8_t*)0x20002706 = 0; *(uint8_t*)0x20002707 = 0; memset((void*)0x20002708, 80, 6); STORE_BY_BITMASK(uint16_t, , 0x2000270e, 9, 0, 4); STORE_BY_BITMASK(uint16_t, , 0x2000270e, 0x20, 4, 12); STORE_BY_BITMASK(uint16_t, , 0x20002710, 0, 0, 1); STORE_BY_BITMASK(uint16_t, , 0x20002710, 0x1f, 1, 15); STORE_BY_BITMASK(uint8_t, , 0x20002712, 1, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002712, 2, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x20002712, 0, 4, 2); STORE_BY_BITMASK(uint8_t, , 0x20002712, 2, 6, 2); STORE_BY_BITMASK(uint8_t, , 0x20002713, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002713, 0, 1, 5); STORE_BY_BITMASK(uint8_t, , 0x20002713, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002713, 0, 7, 1); *(uint64_t*)0x20002714 = 2; *(uint16_t*)0x2000271c = 6; *(uint16_t*)0x2000271e = 0x5002; *(uint8_t*)0x20002720 = 0; *(uint8_t*)0x20002721 = 6; memset((void*)0x20002722, 2, 6); *(uint8_t*)0x20002728 = 1; *(uint8_t*)0x20002729 = 7; STORE_BY_BITMASK(uint8_t, , 0x2000272a, 6, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272a, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x2000272b, 0x48, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272b, 0, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x2000272c, 0x36, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272c, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x2000272d, 5, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272d, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x2000272e, 0x6c, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272e, 0, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x2000272f, 9, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x2000272f, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x20002730, 0x1b, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x20002730, 1, 7, 1); *(uint8_t*)0x20002731 = 3; *(uint8_t*)0x20002732 = 1; *(uint8_t*)0x20002733 = 0x2c; *(uint8_t*)0x20002734 = 4; *(uint8_t*)0x20002735 = 6; *(uint8_t*)0x20002736 = 2; *(uint8_t*)0x20002737 = 1; *(uint16_t*)0x20002738 = 1; *(uint16_t*)0x2000273a = 0x1ff; *(uint8_t*)0x2000273c = 6; *(uint8_t*)0x2000273d = 2; *(uint16_t*)0x2000273e = 2; *(uint8_t*)0x20002740 = 0x2a; *(uint8_t*)0x20002741 = 1; STORE_BY_BITMASK(uint8_t, , 0x20002742, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002742, 1, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002742, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002742, 0, 3, 5); *(uint8_t*)0x20002743 = 0x72; *(uint8_t*)0x20002744 = 6; memset((void*)0x20002745, 3, 6); *(uint8_t*)0x2000274b = 0x76; *(uint8_t*)0x2000274c = 6; *(uint8_t*)0x2000274d = -1; *(uint8_t*)0x2000274e = 8; *(uint16_t*)0x2000274f = 6; *(uint16_t*)0x20002751 = 4; *(uint8_t*)0x20002753 = 0xdd; *(uint8_t*)0x20002754 = 6; memcpy((void*)0x20002755, "\xcb\x30\xe3\xbc\x0d\xb0", 6); *(uint16_t*)0x2000275c = 8; STORE_BY_BITMASK(uint16_t, , 0x2000275e, 0x10e, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000275f, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000275f, 1, 7, 1); *(uint16_t*)0x20002760 = 4; *(uint16_t*)0x20002762 = 3; *(uint16_t*)0x20002764 = 0x10; STORE_BY_BITMASK(uint16_t, , 0x20002766, 0x10e, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x20002767, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x20002767, 1, 7, 1); *(uint16_t*)0x20002768 = 4; *(uint16_t*)0x2000276a = 2; *(uint16_t*)0x2000276c = 4; *(uint16_t*)0x2000276e = 1; *(uint16_t*)0x20002770 = 4; *(uint16_t*)0x20002772 = 1; *(uint16_t*)0x20002774 = 8; *(uint16_t*)0x20002776 = 0xbb; *(uint16_t*)0x20002778 = 0x7ff; *(uint16_t*)0x2000277a = 2; *(uint16_t*)0x2000277c = 0x16c; *(uint16_t*)0x2000277e = 0x80; *(uint8_t*)0x20002780 = 0x84; *(uint8_t*)0x20002781 = 0x15; *(uint8_t*)0x20002782 = 0x1f; *(uint8_t*)0x20002783 = 0x11; STORE_BY_BITMASK(uint8_t, , 0x20002784, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002784, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002784, 0, 7, 1); *(uint8_t*)0x20002785 = 8; *(uint8_t*)0x20002786 = 2; *(uint8_t*)0x20002787 = 0x11; *(uint8_t*)0x20002788 = 0; *(uint8_t*)0x20002789 = 0; *(uint8_t*)0x2000278a = 1; *(uint32_t*)0x2000278b = 0x80; *(uint8_t*)0x2000278f = 8; *(uint8_t*)0x20002790 = 2; *(uint8_t*)0x20002791 = 0x11; *(uint8_t*)0x20002792 = 0; *(uint8_t*)0x20002793 = 0; *(uint8_t*)0x20002794 = 0; *(uint16_t*)0x20002795 = 0x2a; STORE_BY_BITMASK(uint8_t, , 0x20002797, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002797, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002797, 0, 7, 1); memset((void*)0x20002798, 255, 6); *(uint32_t*)0x2000279e = 0x99c; memset((void*)0x200027a2, 255, 6); *(uint16_t*)0x200027a8 = 2; STORE_BY_BITMASK(uint8_t, , 0x200027aa, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027aa, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027aa, 0, 7, 1); *(uint8_t*)0x200027ab = 8; *(uint8_t*)0x200027ac = 2; *(uint8_t*)0x200027ad = 0x11; *(uint8_t*)0x200027ae = 0; *(uint8_t*)0x200027af = 0; *(uint8_t*)0x200027b0 = 0; *(uint32_t*)0x200027b1 = 8; *(uint16_t*)0x200027b5 = 0; STORE_BY_BITMASK(uint8_t, , 0x200027b7, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027b7, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027b7, 0, 7, 1); *(uint8_t*)0x200027b8 = 8; *(uint8_t*)0x200027b9 = 2; *(uint8_t*)0x200027ba = 0x11; *(uint8_t*)0x200027bb = 0; *(uint8_t*)0x200027bc = 0; *(uint8_t*)0x200027bd = 0; *(uint32_t*)0x200027be = 0; *(uint16_t*)0x200027c2 = 7; STORE_BY_BITMASK(uint8_t, , 0x200027c4, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027c4, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027c4, 0, 7, 1); *(uint8_t*)0x200027c5 = 8; *(uint8_t*)0x200027c6 = 2; *(uint8_t*)0x200027c7 = 0x11; *(uint8_t*)0x200027c8 = 0; *(uint8_t*)0x200027c9 = 0; *(uint8_t*)0x200027ca = 0; *(uint32_t*)0x200027cb = 1; memset((void*)0x200027cf, 255, 6); *(uint16_t*)0x200027d5 = 0x2f; STORE_BY_BITMASK(uint8_t, , 0x200027d7, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027d7, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027d7, 0, 7, 1); *(uint8_t*)0x200027d8 = 8; *(uint8_t*)0x200027d9 = 2; *(uint8_t*)0x200027da = 0x11; *(uint8_t*)0x200027db = 0; *(uint8_t*)0x200027dc = 0; *(uint8_t*)0x200027dd = 0; *(uint32_t*)0x200027de = 1; *(uint16_t*)0x200027e2 = 0x16; STORE_BY_BITMASK(uint8_t, , 0x200027e4, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027e4, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027e4, 0, 7, 1); *(uint8_t*)0x200027e5 = 8; *(uint8_t*)0x200027e6 = 2; *(uint8_t*)0x200027e7 = 0x11; *(uint8_t*)0x200027e8 = 0; *(uint8_t*)0x200027e9 = 0; *(uint8_t*)0x200027ea = 0; *(uint32_t*)0x200027eb = 7; memset((void*)0x200027ef, 255, 6); *(uint16_t*)0x200027f5 = 0x3c; STORE_BY_BITMASK(uint8_t, , 0x200027f7, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200027f7, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200027f7, 0, 7, 1); memset((void*)0x200027f8, 255, 6); *(uint32_t*)0x200027fe = 4; *(uint16_t*)0x20002802 = 0; STORE_BY_BITMASK(uint8_t, , 0x20002804, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002804, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002804, 0, 7, 1); memset((void*)0x20002805, 255, 6); *(uint32_t*)0x2000280b = 0xfffffffc; *(uint8_t*)0x2000280f = 8; *(uint8_t*)0x20002810 = 2; *(uint8_t*)0x20002811 = 0x11; *(uint8_t*)0x20002812 = 0; *(uint8_t*)0x20002813 = 0; *(uint8_t*)0x20002814 = 1; *(uint16_t*)0x20002815 = 0x21; STORE_BY_BITMASK(uint8_t, , 0x20002817, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002817, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002817, 0, 7, 1); *(uint8_t*)0x20002818 = 8; *(uint8_t*)0x20002819 = 2; *(uint8_t*)0x2000281a = 0x11; *(uint8_t*)0x2000281b = 0; *(uint8_t*)0x2000281c = 0; *(uint8_t*)0x2000281d = 0; *(uint32_t*)0x2000281e = 0x10000; *(uint16_t*)0x20002822 = 0xe; STORE_BY_BITMASK(uint8_t, , 0x20002824, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002824, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002824, 0, 7, 1); *(uint8_t*)0x20002825 = 8; *(uint8_t*)0x20002826 = 2; *(uint8_t*)0x20002827 = 0x11; *(uint8_t*)0x20002828 = 0; *(uint8_t*)0x20002829 = 0; *(uint8_t*)0x2000282a = 1; *(uint32_t*)0x2000282b = 0x3f; *(uint16_t*)0x2000282f = 0x33; STORE_BY_BITMASK(uint8_t, , 0x20002831, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002831, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002831, 0, 7, 1); memset((void*)0x20002832, 255, 6); *(uint32_t*)0x20002838 = 0xfb4f; *(uint16_t*)0x2000283c = 0x28; STORE_BY_BITMASK(uint8_t, , 0x2000283e, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x2000283e, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x2000283e, 0, 7, 1); memset((void*)0x2000283f, 255, 6); *(uint32_t*)0x20002845 = 0x1ff; memset((void*)0x20002849, 255, 6); *(uint16_t*)0x2000284f = 0x10; STORE_BY_BITMASK(uint8_t, , 0x20002851, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002851, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002851, 0, 7, 1); *(uint8_t*)0x20002852 = 8; *(uint8_t*)0x20002853 = 2; *(uint8_t*)0x20002854 = 0x11; *(uint8_t*)0x20002855 = 0; *(uint8_t*)0x20002856 = 0; *(uint8_t*)0x20002857 = 0; *(uint32_t*)0x20002858 = 0x7fff; *(uint8_t*)0x2000285c = 8; *(uint8_t*)0x2000285d = 2; *(uint8_t*)0x2000285e = 0x11; *(uint8_t*)0x2000285f = 0; *(uint8_t*)0x20002860 = 0; *(uint8_t*)0x20002861 = 0; *(uint16_t*)0x20002862 = 0x40; STORE_BY_BITMASK(uint8_t, , 0x20002864, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002864, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002864, 0, 7, 1); *(uint8_t*)0x20002865 = 8; *(uint8_t*)0x20002866 = 2; *(uint8_t*)0x20002867 = 0x11; *(uint8_t*)0x20002868 = 0; *(uint8_t*)0x20002869 = 0; *(uint8_t*)0x2000286a = 1; *(uint32_t*)0x2000286b = 2; *(uint16_t*)0x2000286f = 0x3d; STORE_BY_BITMASK(uint8_t, , 0x20002871, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002871, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002871, 0, 7, 1); memset((void*)0x20002872, 255, 6); *(uint32_t*)0x20002878 = 5; *(uint8_t*)0x2000287c = 8; *(uint8_t*)0x2000287d = 2; *(uint8_t*)0x2000287e = 0x11; *(uint8_t*)0x2000287f = 0; *(uint8_t*)0x20002880 = 0; *(uint8_t*)0x20002881 = 1; *(uint16_t*)0x20002882 = 0x2c; STORE_BY_BITMASK(uint8_t, , 0x20002884, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002884, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002884, 0, 7, 1); *(uint8_t*)0x20002885 = 8; *(uint8_t*)0x20002886 = 2; *(uint8_t*)0x20002887 = 0x11; *(uint8_t*)0x20002888 = 0; *(uint8_t*)0x20002889 = 0; *(uint8_t*)0x2000288a = 1; *(uint32_t*)0x2000288b = 3; memset((void*)0x2000288f, 255, 6); *(uint16_t*)0x20002895 = 0x42; *(uint8_t*)0x20002897 = 0x84; *(uint8_t*)0x20002898 = 0x4f; *(uint8_t*)0x20002899 = 0x3f; *(uint8_t*)0x2000289a = 5; STORE_BY_BITMASK(uint8_t, , 0x2000289b, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x2000289b, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x2000289b, 0, 7, 1); *(uint8_t*)0x2000289c = 8; *(uint8_t*)0x2000289d = 2; *(uint8_t*)0x2000289e = 0x11; *(uint8_t*)0x2000289f = 0; *(uint8_t*)0x200028a0 = 0; *(uint8_t*)0x200028a1 = 1; *(uint32_t*)0x200028a2 = 0; *(uint16_t*)0x200028a6 = 3; STORE_BY_BITMASK(uint8_t, , 0x200028a8, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200028a8, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200028a8, 0, 7, 1); memset((void*)0x200028a9, 255, 6); *(uint32_t*)0x200028af = 0x28; *(uint16_t*)0x200028b3 = 0x31; STORE_BY_BITMASK(uint8_t, , 0x200028b5, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200028b5, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200028b5, 0, 7, 1); *(uint8_t*)0x200028b6 = 8; *(uint8_t*)0x200028b7 = 2; *(uint8_t*)0x200028b8 = 0x11; *(uint8_t*)0x200028b9 = 0; *(uint8_t*)0x200028ba = 0; *(uint8_t*)0x200028bb = 0; *(uint32_t*)0x200028bc = 0; *(uint8_t*)0x200028c0 = 8; *(uint8_t*)0x200028c1 = 2; *(uint8_t*)0x200028c2 = 0x11; *(uint8_t*)0x200028c3 = 0; *(uint8_t*)0x200028c4 = 0; *(uint8_t*)0x200028c5 = 1; *(uint16_t*)0x200028c6 = 0; STORE_BY_BITMASK(uint8_t, , 0x200028c8, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200028c8, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200028c8, 0, 7, 1); *(uint8_t*)0x200028c9 = 8; *(uint8_t*)0x200028ca = 2; *(uint8_t*)0x200028cb = 0x11; *(uint8_t*)0x200028cc = 0; *(uint8_t*)0x200028cd = 0; *(uint8_t*)0x200028ce = 0; *(uint32_t*)0x200028cf = 1; *(uint16_t*)0x200028d3 = 0x1f; STORE_BY_BITMASK(uint8_t, , 0x200028d5, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200028d5, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200028d5, 0, 7, 1); memset((void*)0x200028d6, 255, 6); *(uint32_t*)0x200028dc = 0x99800000; *(uint8_t*)0x200028e0 = 8; *(uint8_t*)0x200028e1 = 2; *(uint8_t*)0x200028e2 = 0x11; *(uint8_t*)0x200028e3 = 0; *(uint8_t*)0x200028e4 = 0; *(uint8_t*)0x200028e5 = 0; *(uint16_t*)0x200028e6 = 0x3f; *(uint16_t*)0x200028e8 = 0xb1; *(uint16_t*)0x200028ea = 0x80; *(uint8_t*)0x200028ec = 0x83; *(uint8_t*)0x200028ed = 0x25; STORE_BY_BITMASK(uint8_t, , 0x200028ee, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x200028ee, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200028ee, 0, 7, 1); *(uint8_t*)0x200028ef = 8; *(uint8_t*)0x200028f0 = 0; memset((void*)0x200028f1, 255, 6); *(uint32_t*)0x200028f7 = 0x8000; *(uint8_t*)0x200028fb = 8; *(uint8_t*)0x200028fc = 2; *(uint8_t*)0x200028fd = 0x11; *(uint8_t*)0x200028fe = 0; *(uint8_t*)0x200028ff = 0; *(uint8_t*)0x20002900 = 0; *(uint32_t*)0x20002901 = 2; *(uint32_t*)0x20002905 = 4; *(uint8_t*)0x20002909 = 8; *(uint8_t*)0x2000290a = 2; *(uint8_t*)0x2000290b = 0x11; *(uint8_t*)0x2000290c = 0; *(uint8_t*)0x2000290d = 0; *(uint8_t*)0x2000290e = 0; *(uint32_t*)0x2000290f = 0x7aae; *(uint8_t*)0x20002913 = 4; *(uint8_t*)0x20002914 = 6; *(uint8_t*)0x20002915 = 6; *(uint8_t*)0x20002916 = 0x80; *(uint16_t*)0x20002917 = 8; *(uint16_t*)0x20002919 = 9; *(uint8_t*)0x2000291b = 0x65; *(uint8_t*)0x2000291c = 0x12; memset((void*)0x2000291d, 80, 6); *(uint8_t*)0x20002923 = 8; *(uint8_t*)0x20002924 = 2; *(uint8_t*)0x20002925 = 0x11; *(uint8_t*)0x20002926 = 0; *(uint8_t*)0x20002927 = 0; *(uint8_t*)0x20002928 = 1; *(uint8_t*)0x20002929 = 8; *(uint8_t*)0x2000292a = 2; *(uint8_t*)0x2000292b = 0x11; *(uint8_t*)0x2000292c = 0; *(uint8_t*)0x2000292d = 0; *(uint8_t*)0x2000292e = 0; *(uint8_t*)0x2000292f = 0x2a; *(uint8_t*)0x20002930 = 1; STORE_BY_BITMASK(uint8_t, , 0x20002931, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002931, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002931, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002931, 0, 3, 5); *(uint8_t*)0x20002932 = 0x83; *(uint8_t*)0x20002933 = 0x1f; STORE_BY_BITMASK(uint8_t, , 0x20002934, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002934, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002934, 0, 7, 1); *(uint8_t*)0x20002935 = 0x14; *(uint8_t*)0x20002936 = 3; memset((void*)0x20002937, 255, 6); *(uint32_t*)0x2000293d = 2; *(uint32_t*)0x20002941 = 0xe443; *(uint32_t*)0x20002945 = 9; *(uint8_t*)0x20002949 = 8; *(uint8_t*)0x2000294a = 2; *(uint8_t*)0x2000294b = 0x11; *(uint8_t*)0x2000294c = 0; *(uint8_t*)0x2000294d = 0; *(uint8_t*)0x2000294e = 1; *(uint32_t*)0x2000294f = 8; *(uint8_t*)0x20002953 = 0x83; *(uint8_t*)0x20002954 = 0x25; STORE_BY_BITMASK(uint8_t, , 0x20002955, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002955, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002955, 0, 7, 1); *(uint8_t*)0x20002956 = 5; *(uint8_t*)0x20002957 = 5; *(uint8_t*)0x20002958 = 8; *(uint8_t*)0x20002959 = 2; *(uint8_t*)0x2000295a = 0x11; *(uint8_t*)0x2000295b = 0; *(uint8_t*)0x2000295c = 0; *(uint8_t*)0x2000295d = 0; *(uint32_t*)0x2000295e = 0xc; memset((void*)0x20002962, 255, 6); *(uint32_t*)0x20002968 = 0x7fffffff; *(uint32_t*)0x2000296c = 0xfffff481; *(uint8_t*)0x20002970 = 8; *(uint8_t*)0x20002971 = 2; *(uint8_t*)0x20002972 = 0x11; *(uint8_t*)0x20002973 = 0; *(uint8_t*)0x20002974 = 0; *(uint8_t*)0x20002975 = 1; *(uint32_t*)0x20002976 = 0xffff57e8; *(uint8_t*)0x2000297a = 0; *(uint8_t*)0x2000297b = 0x1d; memcpy((void*)0x2000297c, "\xb7\x3c\x73\xe2\x34\xd0\xfc\x21\xc5\x98\x33\xe7\x2a\xcd\xc9\x15\x07" "\xeb\xfc\x53\x91\xf2\x40\x6c\x81\x67\xac\xb1\x9f", 29); *(uint16_t*)0x2000299c = 0x10; STORE_BY_BITMASK(uint16_t, , 0x2000299e, 0x10e, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000299f, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000299f, 1, 7, 1); *(uint16_t*)0x200029a0 = 4; *(uint16_t*)0x200029a2 = 2; *(uint16_t*)0x200029a4 = 4; *(uint16_t*)0x200029a6 = 1; *(uint16_t*)0x200029a8 = 4; *(uint16_t*)0x200029aa = 3; *(uint16_t*)0x200029ac = 0xc; STORE_BY_BITMASK(uint16_t, , 0x200029ae, 0x10e, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200029af, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200029af, 1, 7, 1); *(uint16_t*)0x200029b0 = 4; *(uint16_t*)0x200029b2 = 2; *(uint16_t*)0x200029b4 = 4; *(uint16_t*)0x200029b6 = 1; *(uint16_t*)0x200029b8 = 0x89; *(uint16_t*)0x200029ba = 0xe; STORE_BY_BITMASK(uint8_t, , 0x200029bc, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200029bc, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200029bc, 8, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 1, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 4, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 5, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x200029bd, 0, 7, 1); STORE_BY_BITMASK(uint16_t, , 0x200029be, 0x80, 0, 15); STORE_BY_BITMASK(uint16_t, , 0x200029bf, 0, 7, 1); *(uint8_t*)0x200029c0 = 8; *(uint8_t*)0x200029c1 = 2; *(uint8_t*)0x200029c2 = 0x11; *(uint8_t*)0x200029c3 = 0; *(uint8_t*)0x200029c4 = 0; *(uint8_t*)0x200029c5 = 1; *(uint8_t*)0x200029c6 = 8; *(uint8_t*)0x200029c7 = 2; *(uint8_t*)0x200029c8 = 0x11; *(uint8_t*)0x200029c9 = 0; *(uint8_t*)0x200029ca = 0; *(uint8_t*)0x200029cb = 1; memcpy((void*)0x200029cc, "\x71\x5b\xa9\xf4\x9e\x17", 6); STORE_BY_BITMASK(uint16_t, , 0x200029d2, 6, 0, 4); STORE_BY_BITMASK(uint16_t, , 0x200029d2, 0xd8, 4, 12); *(uint64_t*)0x200029d4 = 0xb0a; *(uint16_t*)0x200029dc = 0x64; *(uint16_t*)0x200029de = 0x1440; *(uint8_t*)0x200029e0 = 0; *(uint8_t*)0x200029e1 = 0; *(uint8_t*)0x200029e2 = 1; *(uint8_t*)0x200029e3 = 6; STORE_BY_BITMASK(uint8_t, , 0x200029e4, 0x56, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e4, 0, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x200029e5, 9, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e5, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x200029e6, 0x18, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e6, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x200029e7, 6, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e7, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x200029e8, 0x18, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e8, 1, 7, 1); STORE_BY_BITMASK(uint8_t, , 0x200029e9, 0xb, 0, 7); STORE_BY_BITMASK(uint8_t, , 0x200029e9, 1, 7, 1); *(uint8_t*)0x200029ea = 4; *(uint8_t*)0x200029eb = 6; *(uint8_t*)0x200029ec = 0x7f; *(uint8_t*)0x200029ed = 5; *(uint16_t*)0x200029ee = 3; *(uint16_t*)0x200029f0 = 0x1b; *(uint8_t*)0x200029f2 = 5; *(uint8_t*)0x200029f3 = 3; *(uint8_t*)0x200029f4 = 0x7f; *(uint8_t*)0x200029f5 = 0x65; *(uint8_t*)0x200029f6 = 2; *(uint8_t*)0x200029f7 = 0x2a; *(uint8_t*)0x200029f8 = 1; STORE_BY_BITMASK(uint8_t, , 0x200029f9, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x200029f9, 1, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x200029f9, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x200029f9, 0, 3, 5); *(uint8_t*)0x200029fa = 0x3c; *(uint8_t*)0x200029fb = 4; *(uint8_t*)0x200029fc = 0; *(uint8_t*)0x200029fd = 7; *(uint8_t*)0x200029fe = 0x99; *(uint8_t*)0x200029ff = 0xed; *(uint8_t*)0x20002a00 = 0x2d; *(uint8_t*)0x20002a01 = 0x1a; *(uint16_t*)0x20002a02 = 0x800; STORE_BY_BITMASK(uint8_t, , 0x20002a04, 1, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002a04, 0, 2, 3); STORE_BY_BITMASK(uint8_t, , 0x20002a04, 0, 5, 3); *(uint64_t*)0x20002a05 = 0x27df3fb8; STORE_BY_BITMASK(uint64_t, , 0x20002a0d, 0, 0, 13); STORE_BY_BITMASK(uint64_t, , 0x20002a0e, 0, 5, 3); STORE_BY_BITMASK(uint64_t, , 0x20002a0f, 5, 0, 10); STORE_BY_BITMASK(uint64_t, , 0x20002a10, 0, 2, 6); STORE_BY_BITMASK(uint64_t, , 0x20002a11, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x20002a11, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x20002a11, 3, 2, 2); STORE_BY_BITMASK(uint64_t, , 0x20002a11, 1, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x20002a11, 0, 5, 27); *(uint16_t*)0x20002a15 = 1; *(uint32_t*)0x20002a17 = 8; *(uint8_t*)0x20002a1b = 2; *(uint8_t*)0x20002a1c = 0x72; *(uint8_t*)0x20002a1d = 6; memset((void*)0x20002a1e, 3, 6); *(uint8_t*)0x20002a24 = 0xdd; *(uint8_t*)0x20002a25 = 6; memcpy((void*)0x20002a26, "\x56\x22\xe9\x56\xbb\x0c", 6); *(uint8_t*)0x20002a2c = 0xdd; *(uint8_t*)0x20002a2d = 6; memcpy((void*)0x20002a2e, "\x62\xd1\xfb\xe6\x3f\xd2", 6); *(uint8_t*)0x20002a34 = 0xdd; *(uint8_t*)0x20002a35 = 0xb; memcpy((void*)0x20002a36, "\x6b\x2d\x58\xf5\x4c\xdc\x9a\xf0\x6b\xe4\xf5", 11); *(uint16_t*)0x20002a44 = 0x6e; *(uint16_t*)0x20002a46 = 0x2a; *(uint8_t*)0x20002a48 = 0x2a; *(uint8_t*)0x20002a49 = 1; STORE_BY_BITMASK(uint8_t, , 0x20002a4a, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a4a, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a4a, 1, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a4a, 0, 3, 5); *(uint8_t*)0x20002a4b = 0x76; *(uint8_t*)0x20002a4c = 6; *(uint8_t*)0x20002a4d = 5; *(uint8_t*)0x20002a4e = 6; *(uint16_t*)0x20002a4f = 0x40; *(uint16_t*)0x20002a51 = 0x401; *(uint8_t*)0x20002a53 = 5; *(uint8_t*)0x20002a54 = 3; *(uint8_t*)0x20002a55 = 0x9a; *(uint8_t*)0x20002a56 = 0x1d; *(uint8_t*)0x20002a57 = 0x7b; *(uint8_t*)0x20002a58 = 0x83; *(uint8_t*)0x20002a59 = 0x25; STORE_BY_BITMASK(uint8_t, , 0x20002a5a, 0, 0, 6); STORE_BY_BITMASK(uint8_t, , 0x20002a5a, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a5a, 0, 7, 1); *(uint8_t*)0x20002a5b = 0x40; *(uint8_t*)0x20002a5c = 7; memset((void*)0x20002a5d, 255, 6); *(uint32_t*)0x20002a63 = -1; memset((void*)0x20002a67, 255, 6); *(uint32_t*)0x20002a6d = 4; *(uint32_t*)0x20002a71 = 0xd6; *(uint8_t*)0x20002a75 = 8; *(uint8_t*)0x20002a76 = 2; *(uint8_t*)0x20002a77 = 0x11; *(uint8_t*)0x20002a78 = 0; *(uint8_t*)0x20002a79 = 0; *(uint8_t*)0x20002a7a = 1; *(uint32_t*)0x20002a7b = 0x7ffffffe; *(uint8_t*)0x20002a7f = 0x82; *(uint8_t*)0x20002a80 = 0x2b; STORE_BY_BITMASK(uint8_t, , 0x20002a81, 1, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a81, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a81, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a81, 0, 3, 3); STORE_BY_BITMASK(uint8_t, , 0x20002a81, 1, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002a81, 0, 7, 1); *(uint8_t*)0x20002a82 = 0x1f; *(uint8_t*)0x20002a83 = 8; *(uint32_t*)0x20002a84 = 0x81; memset((void*)0x20002a88, 255, 6); *(uint32_t*)0x20002a8e = 3; *(uint8_t*)0x20002a92 = 8; *(uint8_t*)0x20002a93 = 2; *(uint8_t*)0x20002a94 = 0x11; *(uint8_t*)0x20002a95 = 0; *(uint8_t*)0x20002a96 = 0; *(uint8_t*)0x20002a97 = 0; *(uint32_t*)0x20002a98 = 6; *(uint32_t*)0x20002a9c = 1; *(uint8_t*)0x20002aa0 = 1; STORE_BY_BITMASK(uint8_t, , 0x20002aa1, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002aa1, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002aa1, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002aa1, 0, 3, 5); memset((void*)0x20002aa2, 255, 6); *(uint32_t*)0x20002aa8 = 8; *(uint8_t*)0x20002aac = 0x75; *(uint8_t*)0x20002aad = 4; *(uint16_t*)0x20002aae = 0; *(uint16_t*)0x20002ab0 = 0x32; *(uint16_t*)0x20002ab4 = 4; *(uint16_t*)0x20002ab6 = 0x91; *(uint16_t*)0x20002ab8 = 0xe; *(uint16_t*)0x20002aba = 0xbb; *(uint16_t*)0x20002abc = 9; *(uint16_t*)0x20002abe = 5; *(uint16_t*)0x20002ac0 = -1; *(uint16_t*)0x20002ac2 = 6; *(uint16_t*)0x20002ac4 = 2; *(uint16_t*)0x20002ac8 = 8; *(uint16_t*)0x20002aca = 0xbb; *(uint16_t*)0x20002acc = 0xdd62; *(uint16_t*)0x20002ace = 3; *(uint16_t*)0x20002ad0 = 0x22; *(uint16_t*)0x20002ad2 = 0x7f; *(uint8_t*)0x20002ad4 = 0x2d; *(uint8_t*)0x20002ad5 = 0x1a; *(uint16_t*)0x20002ad6 = 0x20; STORE_BY_BITMASK(uint8_t, , 0x20002ad8, 3, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002ad8, 5, 2, 3); STORE_BY_BITMASK(uint8_t, , 0x20002ad8, 0, 5, 3); *(uint64_t*)0x20002ad9 = 0x400; STORE_BY_BITMASK(uint64_t, , 0x20002ae1, 0x3ff, 0, 13); STORE_BY_BITMASK(uint64_t, , 0x20002ae2, 0, 5, 3); STORE_BY_BITMASK(uint64_t, , 0x20002ae3, 7, 0, 10); STORE_BY_BITMASK(uint64_t, , 0x20002ae4, 0, 2, 6); STORE_BY_BITMASK(uint64_t, , 0x20002ae5, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x20002ae5, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x20002ae5, 3, 2, 2); STORE_BY_BITMASK(uint64_t, , 0x20002ae5, 1, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x20002ae5, 0, 5, 27); *(uint16_t*)0x20002ae9 = 0x300; *(uint32_t*)0x20002aeb = 9; *(uint8_t*)0x20002aef = 0x9b; *(uint8_t*)0x20002af0 = 6; *(uint8_t*)0x20002af1 = 0; *(uint16_t*)0x20002af4 = 0x89; *(uint16_t*)0x20002af6 = 0xe; STORE_BY_BITMASK(uint8_t, , 0x20002af8, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002af8, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x20002af8, 8, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 1, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 2, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 4, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 1, 5, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002af9, 1, 7, 1); STORE_BY_BITMASK(uint16_t, , 0x20002afa, 6, 0, 15); STORE_BY_BITMASK(uint16_t, , 0x20002afb, 0, 7, 1); memset((void*)0x20002afc, 255, 6); *(uint8_t*)0x20002b02 = 8; *(uint8_t*)0x20002b03 = 2; *(uint8_t*)0x20002b04 = 0x11; *(uint8_t*)0x20002b05 = 0; *(uint8_t*)0x20002b06 = 0; *(uint8_t*)0x20002b07 = 0; memset((void*)0x20002b08, 255, 6); STORE_BY_BITMASK(uint16_t, , 0x20002b0e, 1, 0, 4); STORE_BY_BITMASK(uint16_t, , 0x20002b0e, 3, 4, 12); STORE_BY_BITMASK(uint16_t, , 0x20002b10, 0, 0, 1); STORE_BY_BITMASK(uint16_t, , 0x20002b10, 0, 1, 15); STORE_BY_BITMASK(uint8_t, , 0x20002b12, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002b12, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x20002b12, 0, 4, 2); STORE_BY_BITMASK(uint8_t, , 0x20002b12, 0, 6, 2); STORE_BY_BITMASK(uint8_t, , 0x20002b13, 0, 0, 1); STORE_BY_BITMASK(uint8_t, , 0x20002b13, 0, 1, 5); STORE_BY_BITMASK(uint8_t, , 0x20002b13, 0, 6, 1); STORE_BY_BITMASK(uint8_t, , 0x20002b13, 0, 7, 1); *(uint64_t*)0x20002b14 = 0xfffffffffffffffc; *(uint16_t*)0x20002b1c = 0; *(uint16_t*)0x20002b1e = 0x2540; *(uint8_t*)0x20002b20 = 3; *(uint8_t*)0x20002b21 = 1; *(uint8_t*)0x20002b22 = 0; *(uint8_t*)0x20002b23 = 5; *(uint8_t*)0x20002b24 = 0x11; *(uint8_t*)0x20002b25 = 0; *(uint8_t*)0x20002b26 = 0xbb; *(uint8_t*)0x20002b27 = 0x36; memcpy((void*)0x20002b28, "\xaf\x70\xba\xf3\xb0\x4a\x04\x9c\x87\xac\x8e\x5f\x53\xd8", 14); *(uint8_t*)0x20002b36 = 0x25; *(uint8_t*)0x20002b37 = 3; *(uint8_t*)0x20002b38 = 0; *(uint8_t*)0x20002b39 = 0xb2; *(uint8_t*)0x20002b3a = 0x1f; *(uint8_t*)0x20002b3b = 0x3c; *(uint8_t*)0x20002b3c = 4; *(uint8_t*)0x20002b3d = 1; *(uint8_t*)0x20002b3e = 1; *(uint8_t*)0x20002b3f = 2; *(uint8_t*)0x20002b40 = 0x1f; *(uint8_t*)0x20002b41 = 0x2d; *(uint8_t*)0x20002b42 = 0x1a; *(uint16_t*)0x20002b43 = 0x2000; STORE_BY_BITMASK(uint8_t, , 0x20002b45, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002b45, 0, 2, 3); STORE_BY_BITMASK(uint8_t, , 0x20002b45, 0, 5, 3); *(uint64_t*)0x20002b46 = 0x867; STORE_BY_BITMASK(uint64_t, , 0x20002b4e, 5, 0, 13); STORE_BY_BITMASK(uint64_t, , 0x20002b4f, 0, 5, 3); STORE_BY_BITMASK(uint64_t, , 0x20002b50, 0x81, 0, 10); STORE_BY_BITMASK(uint64_t, , 0x20002b51, 0, 2, 6); STORE_BY_BITMASK(uint64_t, , 0x20002b52, 1, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x20002b52, 1, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x20002b52, 0, 2, 2); STORE_BY_BITMASK(uint64_t, , 0x20002b52, 0, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x20002b52, 0, 5, 27); *(uint16_t*)0x20002b56 = 0x400; *(uint32_t*)0x20002b58 = 2; *(uint8_t*)0x20002b5c = 5; *(uint8_t*)0x20002b5d = 0x76; *(uint8_t*)0x20002b5e = 6; *(uint8_t*)0x20002b5f = 0x3f; *(uint8_t*)0x20002b60 = 0xf8; *(uint16_t*)0x20002b61 = 0x42; *(uint16_t*)0x20002b63 = 5; *(uint8_t*)0x20002b65 = 0xdd; *(uint8_t*)0x20002b66 = 6; memcpy((void*)0x20002b67, "\xc2\x33\x0a\x58\x9a\x82", 6); *(uint8_t*)0x20002b6d = 0xdd; *(uint8_t*)0x20002b6e = 6; memcpy((void*)0x20002b6f, "\x48\x12\x0b\x7b\xd9\x85", 6); *(uint8_t*)0x20002b75 = 0xdd; *(uint8_t*)0x20002b76 = 6; memcpy((void*)0x20002b77, "\xff\xd3\xf5\xdb\x2c\xef", 6); *(uint16_t*)0x20002b80 = 0x28; STORE_BY_BITMASK(uint16_t, , 0x20002b82, 0xb9, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x20002b83, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x20002b83, 1, 7, 1); *(uint16_t*)0x20002b84 = 0xa; *(uint16_t*)0x20002b86 = 0xbb; *(uint16_t*)0x20002b88 = 7; *(uint16_t*)0x20002b8a = 0x800; *(uint16_t*)0x20002b8c = 0x6798; *(uint16_t*)0x20002b90 = 0x11; *(uint16_t*)0x20002b92 = 0xf; *(uint8_t*)0x20002b94 = 0x3f; *(uint8_t*)0x20002b95 = 0; *(uint8_t*)0x20002b96 = 0x68; *(uint8_t*)0x20002b97 = 4; *(uint16_t*)0x20002b98 = 5; *(uint16_t*)0x20002b9a = 0xff; *(uint8_t*)0x20002b9c = 5; *(uint8_t*)0x20002b9d = 3; *(uint8_t*)0x20002b9e = 8; *(uint8_t*)0x20002b9f = 0xdb; *(uint8_t*)0x20002ba0 = 0; *(uint16_t*)0x20002ba4 = 4; *(uint16_t*)0x20002ba6 = 0x91; *(uint16_t*)0x20002ba8 = 8; *(uint16_t*)0x20002baa = 0xb7; *(uint32_t*)0x20002bac = 0x3b; *(uint16_t*)0x20002bb0 = 4; *(uint16_t*)0x20002bb2 = 0xb8; *(uint64_t*)0x20002108 = 0x8b4; *(uint64_t*)0x20002158 = 1; *(uint64_t*)0x20002160 = 0; *(uint64_t*)0x20002168 = 0; *(uint32_t*)0x20002170 = 0x44; syscall(__NR_sendmsg, r[5], 0x20002140ul, 0ul); syscall(__NR_sendmsg, -1, 0ul, 0ul); } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); setup_802154(); for (procid = 0; procid < 6; procid++) { if (fork() == 0) { use_temporary_dir(); do_sandbox_none(); } } sleep(1000000); return 0; }