// https://syzkaller.appspot.com/bug?id=135687c3bbb08a87c70daa11d8b5b65236f9f631 // 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 __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) 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 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 struct nlmsg nlmsg; #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); } struct fs_image_segment { void* data; uintptr_t size; uintptr_t offset; }; #define IMAGE_MAX_SEGMENTS 4096 #define IMAGE_MAX_SIZE (129 << 20) #define sys_memfd_create 319 static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, struct fs_image_segment* segs) { if (nsegs > IMAGE_MAX_SEGMENTS) nsegs = IMAGE_MAX_SEGMENTS; for (size_t i = 0; i < nsegs; i++) { if (segs[i].size > IMAGE_MAX_SIZE) segs[i].size = IMAGE_MAX_SIZE; segs[i].offset %= IMAGE_MAX_SIZE; if (segs[i].offset > IMAGE_MAX_SIZE - segs[i].size) segs[i].offset = IMAGE_MAX_SIZE - segs[i].size; if (size < segs[i].offset + segs[i].offset) size = segs[i].offset + segs[i].offset; } if (size > IMAGE_MAX_SIZE) size = IMAGE_MAX_SIZE; return size; } static int setup_loop_device(long unsigned size, long unsigned nsegs, struct fs_image_segment* segs, const char* loopname, int* memfd_p, int* loopfd_p) { int err = 0, loopfd = -1; size = fs_image_segment_check(size, nsegs, segs); int memfd = syscall(sys_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (ftruncate(memfd, size)) { err = errno; goto error_close_memfd; } for (size_t i = 0; i < nsegs; i++) { if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) { } } 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; } } *memfd_p = 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 unsigned long size, volatile unsigned long nsegs, volatile long segments, volatile long flags, volatile long optsarg) { struct fs_image_segment* segs = (struct fs_image_segment*)segments; int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!segs; 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(size, nsegs, segs, loopname, &memfd, &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) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) 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; } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); } errno = err; return res; } static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setsid(); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 0; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } initialize_wifi_devices(); loop(); exit(1); } 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"); } 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 loop(void) { int i, call, thread; int collide = 0; again: for (call = 0; call < 3; 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); if (collide && (call % 2) == 0) break; event_timedwait(&th->done, 50 + (call == 2 ? 50 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); if (!collide) { collide = 1; goto again; } } uint64_t r[1] = {0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: NONFAILING(memcpy((void*)0x20004280, "./file0\000", 8)); res = syscall(__NR_openat, 0xffffff9c, 0x20004280ul, 0ul, 0ul); if (res != -1) r[0] = res; break; case 1: syscall(__NR_getdents, r[0], 0ul, 0ul); break; case 2: NONFAILING(memcpy((void*)0x20000000, "btrfs\000", 6)); NONFAILING(memcpy((void*)0x20000100, "./file0\000", 8)); NONFAILING(*(uint64_t*)0x20000200 = 0x20010000); NONFAILING(memcpy( (void*)0x20010000, "\x90\xe4\x2e\x85\x00\x00\x00\x00\x00\x00\x00\x1f\xff\xff\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x00\x01" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x5f\x42\x48\x52" "\x66\x53\x5f\x4d\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00" "\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\xd0\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00" "\x10\x00\x00\x00\x10\x00\x00\x61\x00\x00\x00\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x45\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x72\x00" "\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a" "\xee\x4f\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\xf9\x0c\xac\x8b\x04\x4b" "\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00", 300)); NONFAILING(*(uint64_t*)0x20000208 = 0x12c); NONFAILING(*(uint64_t*)0x20000210 = 0x10000); NONFAILING(*(uint64_t*)0x20000218 = 0x20010200); NONFAILING(memcpy((void*)0x20010200, "\000\000\000\000\000\000\000\000\000\000\000\a\000\000" "\000\000\000\000\000\a", 20)); NONFAILING(*(uint64_t*)0x20000220 = 0x14); NONFAILING(*(uint64_t*)0x20000228 = 0x10220); NONFAILING(*(uint64_t*)0x20000230 = 0x20010300); NONFAILING(memcpy( (void*)0x20010300, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\xe4\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00" "\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00" "\x00\x10\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x10\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a\xee\x4f\xeb\xb6\x9b" "\xd3\x35\x46\xbd\x0e\x04\x00", 109)); NONFAILING(*(uint64_t*)0x20000238 = 0x6d); NONFAILING(*(uint64_t*)0x20000240 = 0x10320); NONFAILING(*(uint64_t*)0x20000248 = 0x20010400); NONFAILING(memcpy( (void*)0x20010400, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00" "\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00" "\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x20\x50\x00\x00\x00\x00\x00" "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x04" "\x00\x00\x00\x00\x00\x00\x00\x00\x70\x50\x00\x00\x00\x00\x00\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x80\x50\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x80\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x50\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04" "\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x50\x00\x00\x00\x00\x00\x06\x00" "\x00\x00\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00\x00\x00\x06\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\xd0\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x07\x00" "\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00\x00\x00\x07\x00\x00\x00" "\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\xd0\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x50\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x70\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00" "\x00\x80\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x01", 628)); NONFAILING(*(uint64_t*)0x20000250 = 0x274); NONFAILING(*(uint64_t*)0x20000258 = 0x10b20); NONFAILING(*(uint64_t*)0x20000260 = 0x20010800); NONFAILING(memcpy( (void*)0x20010800, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19" "\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x10\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a\xee\x4f" "\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\x00\x00\x19\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x05" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x10" "\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50" "\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35" "\x46\xbd\x0e\x04\x00\x00\x40\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x1a\x88\x85\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x72\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x88\x85" "\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\xf9\x0c\xac\x8b" "\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\xb7\x58\x48\x58\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c\xac\x8b\x04\x4b\x4f" "\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x10\x10\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe" "\x71\x2c\x76\x36\x49\x6d\x14\x04\x00\x00\x00\x00\x00\x00\x00\x03\x00" "\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\xd8\x01\x00\x00\x00\x00\x00\x00\x00\x39\x0f\x00\x00\x62\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\xe4\x00\x00\x10\x00\x00\x00" "\x00\x00\xe9\x0e\x00\x00\x50\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\xe4\x00\x00\x50\x00\x00\x00\x00\x00\x99\x0e\x00\x00\x50\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\xe4\x00\x00\x69\x00\x00\x00\x00" "\x00\x49\x0e\x00\x00\x50\x00", 551)); NONFAILING(*(uint64_t*)0x20000268 = 0x227); NONFAILING(*(uint64_t*)0x20000270 = 0x100ea0); NONFAILING(*(uint64_t*)0x20000278 = 0x20010b00); NONFAILING(memcpy( (void*)0x20010b00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19" "\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x10\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a\xee\x4f" "\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\x00\x00\x19\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x05" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x10" "\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50" "\x00\x00\x00\x00\x00\x1a\x88\x85\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35" "\x46\xbd\x0e\x04\x00\x00\x40\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x1a\x88\x85\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x72\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x88\x85" "\xd6\x1a\xee\x4f\xeb\xb6\x9b\xd3\x35\x46\xbd\x0e\x04\xf9\x0c\xac\x8b" "\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2", 352)); NONFAILING(*(uint64_t*)0x20000280 = 0x160); NONFAILING(*(uint64_t*)0x20000288 = 0x101ea0); NONFAILING(*(uint64_t*)0x20000290 = 0); NONFAILING(*(uint64_t*)0x20000298 = 0); NONFAILING(*(uint64_t*)0x200002a0 = 0); NONFAILING(*(uint64_t*)0x200002a8 = 0x20011800); NONFAILING(memcpy( (void*)0x20011800, "\xb8\xe6\xbc\x42\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x00\x50" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x07\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x00\x00\x00\x02" "\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\xe4" "\x0d\x00\x00\xb7\x01\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x84\x00" "\x00\x00\x00\x00\x00\x00\x00\x2d\x0c\x00\x00\xb7\x01\x00\x00\x05\x00" "\x00\x00\x00\x00\x00\x00\x0c\x06\x00\x00\x00\x00\x00\x00\x00\x1c\x0c" "\x00\x00\x11\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00" "\x00\x00\x00\x00\x00\x00\x65\x0a\x00\x00\xb7\x01\x00\x00\x06\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\xc5\x09\x00" "\x00\xa0\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x0c\x06\x00\x00" "\x00\x00\x00\x00\x00\xb9\x09\x00\x00\x0c\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x54\xd2\xc2\xbf\x8d\x00\x00\x00\x00\x94\x09\x00\x00" "\x25\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00" "\x00\x00\x00\x00\xdd\x07\x00\x00\xb7\x01\x00\x00\x09\x00\x00\x00\x00" "\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x26\x06\x00\x00\xb7" "\x01\x00\x00\xf7\xff\xff\xff\xff\xff\xff\xff\x84\x00\x00\x00\x00\x00" "\x00\x00\x00\x6f\x04\x00\x00\xb7\x01", 349)); NONFAILING(*(uint64_t*)0x200002b0 = 0x15d); NONFAILING(*(uint64_t*)0x200002b8 = 0x500000); NONFAILING(*(uint64_t*)0x200002c0 = 0x20011a00); NONFAILING(memcpy( (void*)0x20011a00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x90\x50\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00", 110)); NONFAILING(*(uint64_t*)0x200002c8 = 0x6e); NONFAILING(*(uint64_t*)0x200002d0 = 0x500560); NONFAILING(*(uint64_t*)0x200002d8 = 0x20011b00); NONFAILING(memcpy( (void*)0x20011b00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x50\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x04", 91)); NONFAILING(*(uint64_t*)0x200002e0 = 0x5b); NONFAILING(*(uint64_t*)0x200002e8 = 0x500720); NONFAILING(*(uint64_t*)0x200002f0 = 0x20011c00); NONFAILING( memcpy((void*)0x20011c00, "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41", 56)); NONFAILING(*(uint64_t*)0x200002f8 = 0x38); NONFAILING(*(uint64_t*)0x20000300 = 0x500840); NONFAILING(*(uint64_t*)0x20000308 = 0x20011d00); NONFAILING(memcpy( (void*)0x20011d00, "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x60\x50\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00", 83)); NONFAILING(*(uint64_t*)0x20000310 = 0x53); NONFAILING(*(uint64_t*)0x20000318 = 0x5008e0); NONFAILING(*(uint64_t*)0x20000320 = 0x20011e00); NONFAILING(memcpy( (void*)0x20011e00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x84" "\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x07\x00\x02\x64\x65\x66\x61\x75\x6c\x74\x00\x00\x00\x00\x00\x00" "\x00\x00\x02\x00\x2e\x2e\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xed\x41\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5b" "\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x5b\xbc\x64\x5f\x00\x00" "\x00\x00\x00\x00\x00\x00\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00" "\x00\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00" "\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xff\xff\xff\xff", 306)); NONFAILING(*(uint64_t*)0x20000328 = 0x132); NONFAILING(*(uint64_t*)0x20000330 = 0x5009e0); NONFAILING(*(uint64_t*)0x20000338 = 0x20012000); NONFAILING(memcpy( (void*)0x20012000, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x01\x06\x00\x00\x00\x00\x00\x00\x00\x0b\x4f\x7f\xb0\xd0" "\x12\x4f\x97\x8a\x40\x8d\xac\x50\x52\xe4\xf6\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00\x00\xc7\xa3" "\x35\x15\x5b\xbc\x64\x5f\x00", 194)); NONFAILING(*(uint64_t*)0x20000340 = 0xc2); NONFAILING(*(uint64_t*)0x20000348 = 0x500b60); NONFAILING(*(uint64_t*)0x20000350 = 0x20012100); NONFAILING( memcpy((void*)0x20012100, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x64\x65\x66\x61" "\x75\x6c\x74\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41", 72)); NONFAILING(*(uint64_t*)0x20000358 = 0x48); NONFAILING(*(uint64_t*)0x20000360 = 0x500c80); NONFAILING(*(uint64_t*)0x20000368 = 0x20012200); NONFAILING(memcpy( (void*)0x20012200, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x51\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00", 99)); NONFAILING(*(uint64_t*)0x20000370 = 0x63); NONFAILING(*(uint64_t*)0x20000378 = 0x500d20); NONFAILING(*(uint64_t*)0x20000380 = 0x20012300); NONFAILING(memcpy( (void*)0x20012300, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41", 63)); NONFAILING(*(uint64_t*)0x20000388 = 0x3f); NONFAILING(*(uint64_t*)0x20000390 = 0x500e40); NONFAILING(*(uint64_t*)0x20000398 = 0x20012400); NONFAILING( memcpy((void*)0x20012400, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07", 89)); NONFAILING(*(uint64_t*)0x200003a0 = 0x59); NONFAILING(*(uint64_t*)0x200003a8 = 0x500ee0); NONFAILING(*(uint64_t*)0x200003b0 = 0x20012500); NONFAILING(memcpy( (void*)0x20012500, "\x46\xea\x87\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x10\x50" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x07\x00\x00\x00\x00" "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00" "\x00\x10\x00\x00\x00\x00\x00\xc0\x00\x00\x40\x00\x00\x00\x00\x00\x83" "\x0f\x00\x00\x18\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\xa9\x00" "\x00\x00\x00\x00\x00\x00\x00\x62\x0f\x00\x00\x21\x00\x00\x00\x00\x00" "\x50\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x41\x0f" "\x00\x00\x21\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\xc0\x00\x00" "\x19\x00\x00\x00\x00\x00\x29\x0f\x00\x00\x18\x00\x00\x00\x00\x10\x50" "\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x08\x0f\x00" "\x00\x21\x00\x00\x00\x00\x30\x50\x00\x00\x00\x00\x00\xa8\x00\x30\x00" "\x00\x00\x00\x00\x00\xd3\x0e\x00\x00\x35\x00\x00\x00\x00\x60\x50\x00" "\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\xb2\x0e\x00\x00" "\x21\x00\x00\x00\x00\x90\x50\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00" "\x00\x00\x00\x00\x91\x0e\x00\x00\x21\x00\x00\x00\x00\xa0\x50\x00\x00" "\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x70\x0e\x00\x00\x21" "\x00\x00\x00\x00\xc0\x50\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00" "\x00\x00\x00\x4f\x0e\x00\x00\x21\x00\x00\x00\x00\xd0\x50\x00\x00\x00" "\x00\x00\xa9\x01\x00\x00\x00\x00\x00\x00\x00\x2e\x0e\x00\x00\x21\x00" "\x00\x00\x00\xe0\x50\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00" "\x00\x00\x0d\x0e\x00\x00\x21\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00" "\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\xec\x0d\x00\x00\x21\x00\x00" "\x00\x00\x00\x69\x00\x00\x00\x00\x00\xc0\x00\x00\x19\x00\x00\x00\x00" "\x00\xd4\x0d\x00\x00\x18", 448)); NONFAILING(*(uint64_t*)0x200003b8 = 0x1c0); NONFAILING(*(uint64_t*)0x200003c0 = 0x501000); NONFAILING(*(uint64_t*)0x200003c8 = 0x20012700); NONFAILING(memcpy( (void*)0x20012700, "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02" "\x00\x00\x00\x00\x00\x00\x00\xb0\x04\x00\x00\x00\x00\x00\x00\x00\x01" "\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00" "\x00\x00\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00" "\x00\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00" "\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00" "\x00\x00\x00\xb0\x09\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\xb0\xf7\xff\xff\xff\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00" "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00" "\x00\xb0\x07\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x06\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\xb2\x05\x00\x00\x00\x00\x00\x00\x00\x05\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\xb0\x02\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x01\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02" "\x00\x00\x00\x00\x00\x00\x00\xb0\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x02\x00", 442)); NONFAILING(*(uint64_t*)0x200003d0 = 0x1ba); NONFAILING(*(uint64_t*)0x200003d8 = 0x501e40); NONFAILING(*(uint64_t*)0x200003e0 = 0x20012d00); NONFAILING(memcpy( (void*)0x20012d00, "\xf3\x7b\xad\xf5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x60\x50" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x06\x00\x00\x00\x00" "\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\xf6" "\xff\xff\xff\xff\xff\xff\xff\x80\x00\x30\x50\x00\x00\x00\x00\x00\x8f" "\x0f\x00\x00\x0c", 123)); NONFAILING(*(uint64_t*)0x200003e8 = 0x7b); NONFAILING(*(uint64_t*)0x200003f0 = 0x506000); NONFAILING(*(uint64_t*)0x200003f8 = 0x20012e00); NONFAILING(memcpy( (void*)0x20012e00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x89\x41\xf9\x98\x89\x41\xf9\x98\x89\x41\xf9\x98", 32)); NONFAILING(*(uint64_t*)0x20000400 = 0x20); NONFAILING(*(uint64_t*)0x20000408 = 0x506fe0); NONFAILING(*(uint64_t*)0x20000410 = 0); NONFAILING(*(uint64_t*)0x20000418 = 0); NONFAILING(*(uint64_t*)0x20000420 = 0); NONFAILING(*(uint64_t*)0x20000428 = 0x20013000); NONFAILING(memcpy( (void*)0x20013000, "\xb9\x5a\xd4\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x90\x50" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x04\x00\x00\x00\x00" "\x00\x00\x00\xf7\xff\xff\xff\xff\xff\xff\xff\x02\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\xfb" "\x0e\x00\x00\xa0\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0c\x00" "\x01\x00\x00\x00\x00\x00\x00\xef\x0e\x00\x00\x0c", 148)); NONFAILING(*(uint64_t*)0x20000430 = 0x94); NONFAILING(*(uint64_t*)0x20000438 = 0x509000); NONFAILING(*(uint64_t*)0x20000440 = 0x20013100); NONFAILING(memcpy( (void*)0x20013100, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2e\x2e\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed" "\x41\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00" "\x00\x00\x00\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x5b\xbc" "\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x3e\x94\xc2\x17\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xf9\x0c\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8" "\x8d\xc2\x00\xa0\x50\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x01\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14" "\x04\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x01" "\x00\x00\x00\x00\x0b\x4f\x7f\xb0\xd0\x12\x4f\x97\xfb\x8a\x40\x8d\xac" "\x50\x52\xe4\xf6\x93\x0f\x00\x00\x08", 315)); NONFAILING(*(uint64_t*)0x20000448 = 0x13b); NONFAILING(*(uint64_t*)0x20000450 = 0x509f40); NONFAILING(*(uint64_t*)0x20000458 = 0x20013300); NONFAILING( memcpy((void*)0x20013300, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00" "\x00\x00\x62\x8b\x35\x4c\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 59)); NONFAILING(*(uint64_t*)0x20000460 = 0x3b); NONFAILING(*(uint64_t*)0x20000468 = 0x50afe0); NONFAILING(*(uint64_t*)0x20000470 = 0x20013500); NONFAILING(memcpy( (void*)0x20013500, "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02" "\x00\x00\x00\x00\x00\x00\x00\xb0\x04\x00\x00\x00\x00\x00\x00\x00\x01" "\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00" "\x00\x00\x00\x00\x00\x00\xb0\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00" "\x00\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00" "\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00" "\x00\x00\x00\xb0\x05\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\xb0\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00" "\x00\xb0\x09\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00" "\xb0\xf7\xff\xff\xff\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0" "\x07\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x06" "\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xb2\x05" "\x00\x00\x00\x00\x00\x00\x00\x05\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x02" "\x00\x00\x00\x00\x00\x00\x00\xb0\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x02\x00" "\x00\x00\x00\x00\x00\x00\xd3\x5b\xdc\x0e\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xf9\x0c\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d" "\xa8\x8d\xc2\x00\xc0\x50\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x01\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d" "\x14\x06\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00" "\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\xfb\x0e\x00\x00\xa0\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x0c\x00\x01\x00\x00\x00\x00\x00\x00\xef\x0e\x00\x00" "\x0c\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x54\x4b\xae\x79\x04" "\x00\x00\x00\x00\xcc\x0e\x00\x00\x23\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x54\x6b\x82\x6b\x11\x00\x00\x00\x00\xa5\x0e\x00\x00\x27" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x54\xbf\x5d\x29\x17\x00" "\x00\x00\x00\x82\x0e\x00\x00\x23\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x54\xbc\xde\x42\xe5\x00\x00\x00\x00\x5f\x0e\x00\x00\x23\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x54\x48\x2d\x12\xf6\x00\x00" "\x00\x00\x3c\x0e\x00\x00\x23\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x60\x02\x00\x00\x00\x00\x00\x00\x00\x19\x0e\x00\x00\x23\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x60\x03\x00\x00\x00\x00\x00\x00" "\x00\xf6\x0d\x00\x00\x23\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x60\x04\x00\x00\x00\x00\x00\x00\x00\xd3\x0d\x00\x00\x23\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x60\x05\x00\x00\x00\x00\x00\x00\x00" "\xb0\x0d\x00\x00\x23\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x60" "\x06\x00\x00\x00\x00\x00\x00\x00\x89\x0d\x00\x00\x27\x00\x00\x00\x01" "\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\xe9" "\x0c\x00\x00\xa0\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x0c\x00" "\x01\x00\x00\x00\x00\x00\x00\xda\x0c\x00\x00\x0f\x00\x00\x00\x01\x01" "\x00\x00\x00\x00\x00\x00\x54\x4b\xae\x79\x04\x00\x00\x00\x00\xb7\x0c" "\x00\x00\x23\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x54\x48\x2d" "\x12\xf6\x00\x00\x00\x00\x94\x0c\x00\x00\x23\x00\x00\x00\x01\x01\x00" "\x00\x00\x00\x00\x00\x60\x02\x00\x00\x00\x00\x00\x00\x00\x71\x0c\x00" "\x00\x23\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x60\x03\x00\x00" "\x00\x00\x00\x00\x00\x4e\x0c\x00\x00\x23", 996)); NONFAILING(*(uint64_t*)0x20000478 = 0x3e4); NONFAILING(*(uint64_t*)0x20000480 = 0x50be40); NONFAILING(*(uint64_t*)0x20000488 = 0x20013900); NONFAILING(memcpy( (void*)0x20013900, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x03\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x07\x66\x69" "\x6c\x65\x31\x02\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01\x66" "\x69\x6c\x65\x30\x03\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x07" "\x66\x69\x6c\x65\x31\x02\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00" "\x01\x66\x69\x6c\x65\x30\x02\x00\x00\x00\x00\x00\x00\x00\x05\x00\x66" "\x69\x6c\x65\x30\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xed\x41\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64" "\x5f\x00\x00\x00\x00\xae\x7d\x1e\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00" "\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c" "\xbc\x64\x5f\x00\x00\x00\x00\xae\x7d\x1e\x13\x06\x01\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x09\x00\x01\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64\x05" "\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x06" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01\x66\x69\x6c\x65\x33" "\x05\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01\x66\x69\x6c\x65" "\x32\x04\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01\x66\x69\x6c" "\x65\x31\x01\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x02\x66\x69" "\x6c\x65\x30\x04\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01\x66" "\x69\x6c\x65\x31\x05\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x01" "\x66\x69\x6c\x65\x32\x05\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00" "\x01\x66\x69\x6c\x65\x33\x06\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09" "\x00\x01\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64\x01\x01\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x05\x00\x02\x66\x69\x6c\x65\x30\x00\x00\x00\x00\x00" "\x00\x00\x00\x02\x00\x2e\x2e\x03\x00\x00\x00\x00\x00\x00\x00\x06\x00" "\x00\x00\x00\x00\x00\x00\x3a\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00" "\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86" "\x5b\x13\x5b\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x93\x75\x12" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c\xac\x8b\x04" "\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\xd0\x50\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d\x64\xd8\x4a" "\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x06\x00\x00\x00\x00\x00\x00\x00" "\x05\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x01\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x50\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x02\x01\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x50\x00\x00" "\x00\x00\x00\x06", 1024)); NONFAILING(*(uint64_t*)0x20000490 = 0x400); NONFAILING(*(uint64_t*)0x20000498 = 0x50cca0); NONFAILING(*(uint64_t*)0x200004a0 = 0x20000700); NONFAILING(memcpy( (void*)0x20000700, "\xf8\x16\xd9\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\xe0\x50" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x06\x00\x00\x00\x00" "\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x02" "\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\xfb" "\x0e\x00\x00\xa0\x00\x00\x00\x02\x01\x00\x00\x00\x00\x00\x00\x0c\x01" "\x01\x00\x00\x00\x00\x00\x00\xec\x0e\x00\x00\x0f\x00\x00\x00\x02\x01" "\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x00\x00\x00\x00\x00\xbd\x0a" "\x00\x00\x2f\x04\x00\x00\x03\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x1d\x0a\x00\x00\xa0\x00\x00\x00\x03\x01\x00" "\x00\x00\x00\x00\x00\x0c\x01\x01\x00\x00\x00\x00\x00\x00\x0e\x0a\x00" "\x00\x0f\x00\x00\x00\x03\x01\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00" "\x00\x00\x00\x00\x00\xd3\x09\x00\x00\x3b\x00\x00\x00\x04\x01\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x33\x09\x00\x00" "\xa0\x00\x00\x00\x04\x01\x00\x00\x00\x00\x00\x00\x0c\x00\x01\x00\x00" "\x00\x00\x00\x00\x24\x09\x00\x00\x0f\x00\x00\x00\x04\x01\x00\x00\x00" "\x00\x00\x00\x18\x22\xa8\xf1\x26\x00\x00\x00\x00\xf5\x08\x00\x00\x2f" "\x00\x00\x00\x04\x01\x00\x00\x00\x00\x00\x00\x18\xd6\x5b\xa1\x35\x00" "\x00\x00\x00\xc6\x08\x00\x00\x2f\x00\x00\x00\x04\x01\x00\x00\x00\x00" "\x00\x00\x6c\x00\x00\x00\x00\x00\x00\x00\x00\xa7\x08\x00\x00\x1f\x00" "\x00\x00\x05\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x07\x08\x00\x00\xa0\x00\x00\x00\x05\x01\x00\x00\x00\x00\x00" "\x00\x0c\x00\x01\x00\x00\x00\x00\x00\x00\xe9\x07\x00\x00\x1e\x00\x00" "\x00\x05\x01\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x00\x00\x00\x00" "\x00\xb4\x07\x00\x00\x35\x00\x00\x00\x06\x01\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x14\x07\x00\x00\xa0\x00\x00\x00" "\x06\x01\x00\x00\x00\x00\x00\x00\x0c\x00\x01\x00\x00\x00\x00\x00\x00" "\x01\x07\x00\x00\x13\x00\x00\x00\x06\x01\x00\x00\x00\x00\x00\x00\x6c" "\x00\x00\x00\x00\x00\x00\x00\x00\x88\x06\x00\x00\x79", 523)); NONFAILING(*(uint64_t*)0x200004a8 = 0x20b); NONFAILING(*(uint64_t*)0x200004b0 = 0x50e000); NONFAILING(*(uint64_t*)0x200004b8 = 0x20014000); NONFAILING(memcpy( (void*)0x20014000, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x06\x00" "\x00\x00\x00\x00\x00\x00\x09\x00\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64" "\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x64" "\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xed\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00" "\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13" "\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00" "\x00\x00\x00\xcb\x86\x5b\x13\x06\x00\x00\x00\x00\x00\x00\x00\x00\x30" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x30\x50\x00\x00\x00" "\x00\x00\x00\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x30\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00" "\x05\x00\x66\x69\x6c\x65\x32\x05\x00\x00\x00\x00\x00\x00\x00\x05\x00" "\x66\x69\x6c\x65\x33\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x28\x23\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xed\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc" "\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00" "\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13" "\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x06\x00\x00\x00\x00" "\x00\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00" "\x06\x00\x0b\x00\x08\x75\x73\x65\x72\x2e\x78\x61\x74\x74\x72\x31\x78" "\x61\x74\x74\x72\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x0b\x00" "\x08\x75\x73\x65\x72\x2e\x78\x61\x74\x74\x72\x32\x78\x61\x74\x74\x72" "\x32\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x66\x69\x6c\x65\x31\x06" "\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x0a\x00" "\x00\x00\x00\x00\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xed\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00\x00" "\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c" "\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00" "\x00\x00\xcb\x86\x5b\x13\x06\x00\x00\x00\x00\x00\x00\x00\x26\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x74\x6d\x70\x2f\x73\x79" "\x7a\x2d\x69\x6d\x61\x67\x65\x67\x65\x6e\x30\x38\x32\x32\x31\x36\x39" "\x39\x38\x2f\x66\x69\x6c\x65\x30\x2f\x66\x69\x6c\x65\x30\x03\x00\x00" "\x00\x00\x00\x00\x00\x05\x00\x66\x69\x6c\x65\x31\x06\x00\x00\x00\x00" "\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x26\x00\x00\x00\x00\x00" "\x00\x00\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xa1\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13" "\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00" "\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86" "\x5b\x13\x06\x00\x00\x00\x00\x00\x00\x00\x1a\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79" "\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72" "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b" "\x61\x6c\x02\x00\x00\x00\x00\x00\x00\x00\x05\x00\x66\x69\x6c\x65\x30" "\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x1a" "\x04\x00\x00\x00\x00\x00\x00\x1a\x04\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xed\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00" "\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13" "\x5c\xbc\x64\x5f\x00\x00\x00\x00\xcb\x86\x5b\x13\x5c\xbc\x64\x5f\x00" "\x00\x00\x00\xcb\x86\x5b\x13", 2336)); NONFAILING(*(uint64_t*)0x200004c0 = 0x920); NONFAILING(*(uint64_t*)0x200004c8 = 0x50e6e0); NONFAILING(*(uint64_t*)0x200004d0 = 0x20015600); NONFAILING(memcpy( (void*)0x20015600, "\xaf\x6d\x62\x77\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x0c" "\xac\x8b\x04\x4b\x4f\xa8\x8b\xee\x4b\x8d\x3d\xa8\x8d\xc2\x00\x00\x51" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\xe1\xee\x0d\x5d" "\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14\x06\x00\x00\x00\x00" "\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xf9\x01\x00\x00\x00\x00\x00\x00\x00\x73" "\x0f\x00\x00\x28\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xcc\x00" "\x00\x10\x00\x00\x00\x00\x00\x43\x0f\x00\x00\x30\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\xcc\x00\x00\x50\x00\x00\x00\x00\x00\x13\x0f" "\x00\x00\x30\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xcc\x00\x00" "\x69\x00\x00\x00\x00\x00\xe3\x0e\x00\x00\x30", 198)); NONFAILING(*(uint64_t*)0x200004d8 = 0xc6); NONFAILING(*(uint64_t*)0x200004e0 = 0x510000); NONFAILING(*(uint64_t*)0x200004e8 = 0x20015700); NONFAILING(memcpy( (void*)0x20015700, "\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00\x00\x00" "\x19\x00\x00\x00\x00\x00\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe\x71\x2c" "\x76\x36\x49\x6d\x14\x03\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x00\x00\x19\x00\x00" "\x00\x00\x00\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49" "\x6d\x14\x03\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00" "\xe1\xee\x0d\x5d\x64\xd8\x4a\x64\xbe\x71\x2c\x76\x36\x49\x6d\x14", 152)); NONFAILING(*(uint64_t*)0x200004f0 = 0x98); NONFAILING(*(uint64_t*)0x200004f8 = 0x510f40); NONFAILING(memcpy((void*)0x20000040, "flushoncommit", 13)); NONFAILING(*(uint8_t*)0x2000004d = 0x2c); NONFAILING(memcpy((void*)0x2000004e, "flushoncommit", 13)); NONFAILING(*(uint8_t*)0x2000005b = 0x2c); NONFAILING(*(uint8_t*)0x2000005c = 0); NONFAILING(syz_mount_image(0x20000000, 0x20000100, 0, 0x20, 0x20000200, 0, 0x20000040)); break; } } 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_binfmt_misc(); install_segv_handler(); use_temporary_dir(); do_sandbox_none(); return 0; }