// https://syzkaller.appspot.com/bug?id=b69506f66c60ac7bf32364771573965b3f0efdb6 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif #ifndef __NR_pwritev2 #define __NR_pwritev2 328 #endif static unsigned long long procid; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } 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, bool dofail) { 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_ext(nlmsg, sock, 0, NULL, dofail); 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, bool dofail) { 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_ext(nlmsg, sock, 0, NULL, dofail); if (err < 0) { } return err; } static int get_ifla_operstate(struct nlmsg* nlmsg, int ifindex, bool dofail) { 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, dofail); 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, bool dofail) { int ifindex = if_nametoindex(interface); while (true) { usleep(1000); int ret = get_ifla_operstate(nlmsg, ifindex, dofail); 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, bool dofail) { int ifindex = if_nametoindex(interface); if (ifindex == 0) { return -1; } int ret = nl80211_set_interface(nlmsg, sock, nl80211_family_id, ifindex, NL80211_IFTYPE_ADHOC, dofail); 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, dofail); 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) exit(1); 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) exit(1); 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); if (hwsim_family_id < 0 || nl80211_family_id < 0) exit(1); 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, true) < 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, true); if (ret < 0) exit(1); } close(sock); } #define MAX_FDS 30 //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } static void mount_cgroups(const char* dir, const char** controllers, int count) { if (mkdir(dir, 0777)) { return; } char enabled[128] = {0}; int i = 0; for (; i < count; i++) { if (mount("none", dir, "cgroup", 0, controllers[i])) { continue; } umount(dir); strcat(enabled, ","); strcat(enabled, controllers[i]); } if (enabled[0] == 0) { if (rmdir(dir) && errno != EBUSY) exit(1); return; } if (mount("none", dir, "cgroup", 0, enabled + 1)) { if (rmdir(dir) && errno != EBUSY) exit(1); } if (chmod(dir, 0777)) { } } static void mount_cgroups2(const char** controllers, int count) { if (mkdir("/syzcgroup/unified", 0777)) { return; } if (mount("none", "/syzcgroup/unified", "cgroup2", 0, NULL)) { if (rmdir("/syzcgroup/unified") && errno != EBUSY) exit(1); return; } if (chmod("/syzcgroup/unified", 0777)) { } int control = open("/syzcgroup/unified/cgroup.subtree_control", O_WRONLY); if (control == -1) return; int i; for (i = 0; i < count; i++) if (write(control, controllers[i], strlen(controllers[i])) < 0) { } close(control); } static void setup_cgroups() { const char* unified_controllers[] = {"+cpu", "+io", "+pids"}; const char* net_controllers[] = {"net", "net_prio", "devices", "blkio", "freezer"}; const char* cpu_controllers[] = {"cpuset", "cpuacct", "hugetlb", "rlimit", "memory"}; if (mkdir("/syzcgroup", 0777)) { return; } mount_cgroups2(unified_controllers, sizeof(unified_controllers) / sizeof(unified_controllers[0])); mount_cgroups("/syzcgroup/net", net_controllers, sizeof(net_controllers) / sizeof(net_controllers[0])); mount_cgroups("/syzcgroup/cpu", cpu_controllers, sizeof(cpu_controllers) / sizeof(cpu_controllers[0])); write_file("/syzcgroup/cpu/cgroup.clone_children", "1"); write_file("/syzcgroup/cpu/cpuset.memory_pressure_enabled", "1"); } static void setup_cgroups_loop() { int pid = getpid(); char file[128]; char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/pids.max", cgroupdir); write_file(file, "32"); snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); snprintf(file, sizeof(file), "%s/memory.soft_limit_in_bytes", cgroupdir); write_file(file, "%d", 299 << 20); snprintf(file, sizeof(file), "%s/memory.limit_in_bytes", cgroupdir); write_file(file, "%d", 300 << 20); snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (mkdir(cgroupdir, 0777)) { } snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); write_file(file, "%d", pid); } static void setup_cgroups_test() { char cgroupdir[64]; snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); if (symlink(cgroupdir, "./cgroup")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.cpu")) { } snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); if (symlink(cgroupdir, "./cgroup.net")) { } } static void initialize_cgroups() { if (mkdir("./syz-tmp/newroot/syzcgroup", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/unified", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/cpu", 0700)) exit(1); if (mkdir("./syz-tmp/newroot/syzcgroup/net", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/syzcgroup/unified", "./syz-tmp/newroot/syzcgroup/unified", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/cpu", "./syz-tmp/newroot/syzcgroup/cpu", NULL, bind_mount_flags, NULL)) { } if (mount("/syzcgroup/net", "./syz-tmp/newroot/syzcgroup/net", NULL, bind_mount_flags, NULL)) { } } static void setup_gadgetfs(); static void setup_binderfs(); static void setup_fusectl(); static void sandbox_common_mount_tmpfs(void) { write_file("/proc/sys/fs/mount-max", "100000"); if (mkdir("./syz-tmp", 0777)) exit(1); if (mount("", "./syz-tmp", "tmpfs", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot", 0777)) exit(1); if (mkdir("./syz-tmp/newroot/dev", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/dev", "./syz-tmp/newroot/dev", NULL, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/proc", 0700)) exit(1); if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/selinux", 0700)) exit(1); const char* selinux_path = "./syz-tmp/newroot/selinux"; if (mount("/selinux", selinux_path, NULL, bind_mount_flags, NULL)) { if (errno != ENOENT) exit(1); if (mount("/sys/fs/selinux", selinux_path, NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); } if (mkdir("./syz-tmp/newroot/sys", 0700)) exit(1); if (mount("/sys", "./syz-tmp/newroot/sys", 0, bind_mount_flags, NULL)) exit(1); if (mount("/sys/kernel/debug", "./syz-tmp/newroot/sys/kernel/debug", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/sys/fs/smackfs", "./syz-tmp/newroot/sys/fs/smackfs", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/proc/sys/fs/binfmt_misc", "./syz-tmp/newroot/proc/sys/fs/binfmt_misc", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mkdir("./syz-tmp/newroot/syz-inputs", 0700)) exit(1); if (mount("/syz-inputs", "./syz-tmp/newroot/syz-inputs", NULL, bind_mount_flags | MS_RDONLY, NULL) && errno != ENOENT) exit(1); initialize_cgroups(); if (mkdir("./syz-tmp/pivot", 0777)) exit(1); if (syscall(SYS_pivot_root, "./syz-tmp", "./syz-tmp/pivot")) { if (chdir("./syz-tmp")) exit(1); } else { if (chdir("/")) exit(1); if (umount2("./pivot", MNT_DETACH)) exit(1); } if (chroot("./newroot")) exit(1); if (chdir("/")) exit(1); setup_gadgetfs(); setup_binderfs(); setup_fusectl(); } static void setup_gadgetfs() { if (mkdir("/dev/gadgetfs", 0777)) { } if (mount("gadgetfs", "/dev/gadgetfs", "gadgetfs", 0, NULL)) { } } static void setup_fusectl() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void setup_binderfs() { if (mkdir("/dev/binderfs", 0777)) { } if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); initialize_wifi_devices(); sandbox_common_mount_tmpfs(); loop(); exit(1); } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 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, umount_flags) == 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, umount_flags)) 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, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_loop() { setup_cgroups_loop(); } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); setup_cgroups_test(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } static const char* setup_usb() { if (chmod("/dev/raw-gadget", 0666)) return "failed to chmod /dev/raw-gadget"; return NULL; } static void setup_sysctl() { int cad_pid = fork(); if (cad_pid < 0) exit(1); if (cad_pid == 0) { for (;;) sleep(100); } char tmppid[32]; snprintf(tmppid, sizeof(tmppid), "%d", cad_pid); struct { const char* name; const char* data; } files[] = { {"/sys/kernel/debug/x86/nmi_longest_ns", "10000000000"}, {"/proc/sys/kernel/hung_task_check_interval_secs", "20"}, {"/proc/sys/net/core/bpf_jit_kallsyms", "1"}, {"/proc/sys/net/core/bpf_jit_harden", "0"}, {"/proc/sys/kernel/kptr_restrict", "0"}, {"/proc/sys/kernel/softlockup_all_cpu_backtrace", "1"}, {"/proc/sys/fs/mount-max", "100"}, {"/proc/sys/vm/oom_dump_tasks", "0"}, {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/kernel/keys/gc_delay", "1"}, {"/proc/sys/vm/oom_kill_allocating_task", "1"}, {"/proc/sys/kernel/ctrl-alt-del", "0"}, {"/proc/sys/kernel/cad_pid", tmppid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) { } } kill(cad_pid, SIGKILL); while (waitpid(cad_pid, NULL, 0) != cad_pid) ; } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 7; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { setup_loop(); int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: // syz_mount_image$reiserfs arguments: [ // fs: ptr[in, buffer] { // buffer: {72 65 69 73 65 72 66 73 00} (length 0x9) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x800c (8 bytes) // opts: ptr[in, fs_options[reiserfs_options]] { // fs_options[reiserfs_options] { // elems: array[fs_opt_elem[reiserfs_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0xfd (1 bytes) // size: len = 0x1115 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x1115) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x2000000000c0, "reiserfs\000", 9)); NONFAILING(memcpy((void*)0x200000000040, "./file1\000", 8)); NONFAILING(*(uint8_t*)0x200000000300 = 0); NONFAILING(memcpy( (void*)0x200000001940, "\x78\x9c\xec\xd8\x31\x6b\x14\x41\x18\x06\xe0\x77\xf6\xce\x98\xa0\xb0" "\x72\xe9\x17\x4b\x0b\x09\x91\xb3\x56\x53\x28\x5c\x6b\xab\x95\x92\xce" "\x2a\x69\x2d\xee\xc7\xd8\xf8\x5f\x24\x95\x7d\x48\xaf\x45\x2a\xcb\x95" "\xdd\xcd\xba\x08\xe1\x54\x12\x53\xe8\xf3\xc0\x30\x73\xdf\xbd\xb3\x33" "\x53\xce\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\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3a\xf3" "\xe4\x4b\x49\x76\xab\x64\x31\xd6\xaa\x24\x25\x69\x9a\x93\xd5\x59\x92" "\x66\xac\xdf\xfb\x34\xab\x52\xf2\xf2\x70\x75\xfc\xfc\x68\xf9\xe2\x78" "\x88\xa5\x4a\x79\x95\x94\x6e\x56\xca\xc7\x27\x43\x76\xb9\x58\x2e\x1e" "\x2d\x1e\xef\x1e\x8c\x93\xdf\x1d\x1e\xf5\xfd\x9b\x3b\x25\x4d\x4e\xcf" "\xaf\xf5\x14\x3b\xb9\xd8\xcb\x6c\x43\xa8\xdb\xe0\xf6\x8f\x34\x00\x00" "\x00\xfc\x3f\xda\x2b\xab\x7f\x6f\xa1\x6f\x77\xff\xd2\xfa\x00\x00\x00" "\xc0\xaf\x5c\xef\x6b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x9f\x6b" "\xeb\x69\xbc\x35\x0e\xaa\x24\x25\x69\x9a\x93\xd5\x59\x92\xe6\x92\x79" "\xb7\x6e\x68\x7f\x00\x00\x00\xc0\xd5\x95\x54\x79\x5d\x5f\x56\x1f\x9e" "\x01\x26\x0f\xf3\xb9\x2e\x7d\xbd\x6b\xed\xe0\x69\x95\xfd\x7c\xa8\xb3" "\xd3\x47\xe6\x53\xba\xda\xb4\xe8\xc6\x3f\x01\x00\x00\xe0\x9f\xd7\xde" "\xee\xbb\xfb\x29\xeb\xe9\x9a\x5c\xb6\xca\x7a\xbc\x8f\x3f\xc8\x7c\xaa" "\xf7\xc9\x79\xf6\xf6\x86\xdf\x17\x5d\xbe\x1e\x24\xb3\xac\xb7\xf7\x7f" "\xfe\xf6\xce\xb3\x24\xa7\xe7\xef\xdf\x76\xad\xb4\xb3\x1b\x3a\x12\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\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\x9d\x1d\x38\x16\x00\x00" "\x00\x00\x10\xe6\x6f\x9d\x46\xc7\x06\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7c\x15\x00\x00\xff\xff" "\x19\x69\xda\xb8", 4373)); res = -1; NONFAILING( res = syz_mount_image(/*fs=*/0x2000000000c0, /*dir=*/0x200000000040, /*flags=MS_SILENT|MS_NOEXEC|MS_NODEV*/ 0x800c, /*opts=*/0x200000000300, /*chdir=*/0xfd, /*size=*/0x1115, /*img=*/0x200000001940)); if (res != -1) r[0] = res; break; case 1: // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {6d 65 6d 6f 72 79 2e 6e 75 6d 61 5f 73 74 61 74 00} (length // 0x11) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd NONFAILING(memcpy((void*)0x200000000000, "memory.numa_stat\000", 17)); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000000ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[1] = res; break; case 2: // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {62 6c 6b 69 6f 2e 62 66 71 2e 69 6f 5f 73 65 72 76 69 63 65 // 5f 62 79 74 65 73 5f 72 65 63 75 72 73 69 76 65 00} (length 0x25) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd NONFAILING(memcpy((void*)0x200000000040, "blkio.bfq.io_service_bytes_recursive\000", 37)); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000040ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[2] = res; break; case 3: // write$binfmt_script arguments: [ // fd: fd_binfmt (resource) // data: ptr[in, binfmt_script] { // binfmt_script { // hdr: buffer: {23 21 20} (length 0x3) // bin: buffer: {} (length 0x0) // args: array[binfmt_script_arg] { // } // nl: const = 0xa (1 bytes) // data: buffer: {} (length 0x0) // } // } // len: bytesize = 0x208e24b (8 bytes) // ] NONFAILING(memcpy((void*)0x2000000001c0, "#! ", 3)); NONFAILING(*(uint8_t*)0x2000000001c3 = 0xa); syscall(__NR_write, /*fd=*/r[2], /*data=*/0x2000000001c0ul, /*len=*/0x208e24bul); break; case 4: // pwritev2 arguments: [ // fd: fd (resource) // vec: ptr[in, array[iovec[in, array[int8]]]] { // array[iovec[in, array[int8]]] { // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // iovec[in, array[int8]] { // addr: ptr[in, buffer] { // buffer: {5e 9e 3d f7 56 6a 14 d7 2f df d4 24 92 e1 5b cf 42 d3 // d2 57 d2 07 34 3a 51 09 60 d6 4a 61 4d 74 da 1e d6 a7 1c 48 0f // ed 87 2d 37 d7 a8 75 af 27 a9 7a 57 e8 b0 1b 49 fd ef c1 7d 81 // ff eb 18 bc f2 7a cb 20 7d b7 9b ef dc 74 c5 36 4d 44 b0 f9 6a // 38 5f e1 00 96 06 3c 04 e8 8c e3 15 6c 25 c0 bc e2 50 fb 3b b2 // b8 af 53 28 04 bd 31 65 c3 fc ee b0 ce 8e 35 96 76 ed 40 87 3e // 2e 3d 05 39 bd 33 dc 5d 5b 9b ef 86 5e 3a 8a 6b 0a 93 6c 6a 77 // 2d b5 a8 a6 be 90 83 43 36 8e ef a4 dd 88 cc 70 9e ba 15 31 48 // 45 ef 74 fe b1 70 ea b9 3e 62 82 25 b1 f1 fe 83 40 59 b0 7d c0 // 9c 89 14 c6 06 11 05 46 ff 8e 4a 24 c7 f8 0f 70 dc 9a 2c f4 2c // 42 a0 99 3a 93 6a b3 fe 0f c3 a8 d7 2c 01 67 ec 14 f2 91 f0 2a // 1e 57 ba 20 f8 1b 60 de bb 17 d3 df 78 50 fd 60 18 33 39 27 66 // 77 ec 60 ba 08 05 d9 37 67 39 a5 7c 6f a1 9a d5 c6 44 26 78 0d // cf 7c d4 30 e3 71 69 e5 61 40 dd 80 98 f6 a5 45 da fe f1 e0 39 // 6c 8c ca ba 01 e2 e6 be ec 01 52 a3 90 45 ea 61 0b 42 17 04 5f // 73 20 d2 cc 5a 1b 4c 6a 78 82 26 17 a0 03 aa 12 de d0 b2 9f f7 // 57 6d bd ae dc ec 6a cb 96 24 f0 53 fe 0c 23 07 08 d3 bf 14 7a // 1d de e8 0b 70 d6 b7 fb 2d 83 90 fc bf 57 4e 02 26 91 1d 48 d6 // 70 dd bc ba 62 c8 53 89 1a 94 eb e4 49 79 ca b6 7a f2 0b 59 8f // 52 32 dc 16 85 7e 72 e2 25 3c 94 0e d7 52 7a a6 f3 d1 6a 09 b5 // 5e 23 60 d0 a0 8f 43 a3 cb 7b 6b 84 25 36 55 a9 67 11 03 6c 5d // 3f ed e6 21 30 ec ff 39 51 06 40 f9 96 03 ac d7 af c4 25 31 f9 // 55 0f 79 4a f0 29 dc 90 a5 5d f3 71 52 e5 4d 4d e7 34 ce b2 f4 // 49 28 f9 a9 4b d9 41 f4 b1 9a e8 b8 fb de 3e 56 e7 14 72 f6 e1 // 34 47 25 77 d0 47 b7 fe d4 0a 7b 7a 63 50 d6 17 38 59 ee a0 8d // 4d eb 17 b5 9f 4d 9a 82 a9 80 96 e9 b9 ff a7 f3 9e 86 86 09 1a // c2 c5 02 1f d1 9f e1 df 6e b6 5e 60 e6 f8 a8 3d ff 64 9b 0a eb // b5 f0 25 2d 87 8b b2 37 51 84 43 20 bc b3 e1 87 17 20 94 6b 80 // 47 53 75 33 23 10 e7 61 99 eb 88 2e 99 73 61 d9 2d 92 1e d0 d2 // ba cc 5c eb d3 42 d4 e0 6e 54 cf 28 23 9f 05 63 d8 15 93 e7 d1 // ef e5 1d 45 c1 df 17 d1 77 e4 dd 71 9a 75 24 aa 43 d9 2d 35 5e // 9d 14 94 62 d7 77 7a 33 94 eb d3 94 65 c2 c8 a6 3c 70 8d 58 7b // 6b ee cf 91 50 9e ef 99 c1 2b 70 82 9c 89 c7 ea a3 cb d4 41 14 // 40 24 f6 d7 dc 93 2c 30 af 90 d7 a9 e5 f3 37 f9 62 4d b5 24 0d // 92 15 ea df 62 51 c3 35 40 b7 0e 88 cc 99 23 c5 f0 4b 64 5f 37 // 5a 49 36 7d cd 86 37 2b 95 e4 52 ac dc 50 57 e1 54 9e 46 e0 aa // f1 cf b7 39 cf 1c 78 83 a0 3e c5 41 c8 4e dc 10 fc 45 bb 3c d0 // a8 45 d7 e7 ba 00 f5 60 56 2f 2d 6b 62 d3 16 70 e8 d7 ae 3d 16 // 61 b2 1d c7 a5 94 99 10 f4 a4 5d e2 c8 70 83 8d cb 7a b3 4b ba // 5c 00 96 89 85 9e f1 a2 17 8e 8a 62 4e e5 bc 2f 90 54 c5 28 42 // 70 10 1d 48 e8 6a 6d 4e 25 63 bb 70 ba 14 f9 bb 51 47 fa e2 6c // a7 0d 7e 38 fd 48 4f 9b 3e 67 f7 d0 34 48 28 1e 53 0a 2c 9f 4e // 8f fc 40 5c 3c 28 36 20 4b d4 68 1f c9 e5 df 62 ca f6 cc 54 5e // ba 9f 1e 28 a8 9d 04 d3 ca 88 6e b6 84 d7 30 ec 5a dd 8c a9 7e // 70 e1 ee 7d 24 e1 f3 b5 bb 03 74 97 10 d5 a7 77 ee 10 84 b0 e8 // 28 9c ab 7d bb 6a 86 be b2 7f 6f 8f c0 90 cf be 63 e0 4f 5f f2 // 29 30 67 ad 93 8e 59 b4 3f 8c 97 00 34 f6 5e 8b 80 95 8b 95 ea // 4f d0 4c a7 b5 db de ca 2b 9b 58 02 96 50 9d b8 fc a5 f3 b2 69 // 37 60 bb fc 3f 68 5d 67 29 f2 2a ff 56 f6 4b b3 be a8 fb 3e cd // 52 9f 58 c8 13 c0 43 fe 0b c3 ea 78 1d f7 44 22 ff b2 19 7b be // 8e 67 07 d4 ba 39 47 67 97 29 c3 6e 0e ab c6 34 0e 08 a7 92 26 // da fc 0e f1 81 24 3f 6e e8 16 b0 c7 16 be 6b c2 9a 2d a7 95 e3 // 55 a9 e1 63 c7 92 a2 3d ff 47 86 40 8c 3c a4 44 03 4b a7 5c 89 // 95 88 ee 90 9f 69 41 59 a0 de 1f c1 90 2b 31 14 3f e8 87 2f 57 // be c3 1e 86 97 ca f9 1b d5 51 b1 cf dc 3c c7 a5 d9 14 46 62 14 // 91 1c 12 fc 1e 07 a4 d7 a9 34 4e 18 71 22 de c6 66 00 b7 09 4e // df cd a5 b4 5a d4 55 57 0d a8 2a 6a 66 5e 47 0c ef 48 0c f0 d2 // e5 15 12 8e 0c 43 8d a0 44 31 0e 0a 72 af d4 09 0c e0 56 6a b5 // 84 87 7f c0 8f 4a f4 12 81 a8 92 2e c5 f4 a8 d4 f6 c7 21 4e d8 // 46 76 29 8d ab 60 d1 99 1c fe 31 76 58 a0 a1 64 ad ca e9 32 ff // e4 32 24 1f 30 0e 73 b6 ff 30 be c4 5f f6 d9 29 89 fd 6e 1d 57 // 06 f1 0c 9b 2e 02 1f 93 9a 75 c6 88 1e e1 ef 7e 93 ea 10 7f f1 // 49 76 34 5b 3f f0 f2 8e e3 6c d0 6b 55 f1 a7 6f b4 d6 26 0d d4 // 79 46 69 25 7e 6f 87 1f a6 b1 8f 08 32 70 b6 80 72 67 df ed 70 // 11 7a db 77 b9 50 d4 52 3a c3 8d 18 6d a0 bf 60 e1 0d 51 86 b2 // 0d e3 b1 7f 3f 16 43 7c c5 88 4e 8e 69 4c a0 8a be 87 78 05 cf // 6c 70 a9 91 94 c9 98 88 ce 49 82 94 a7 9b 1a ec ed 25 9e 91 09 // dc 8a c3 1a 30 db ed c0 33 33 79 40 5f c9 93 1f 8d 60 00 be 14 // 27 a5 97 9a 0f aa bc 65 34 96 9c fd 2e 52 6f 1b 2c 28 f9 79 5f // fd 16 8e 1e c8 23 7b bb c9 19 e4 7e 5f 19 98 54 e9 2b 79 98 df // 63 4e 10 d6 5b df cc 08 3c 02 42 53 9b cd 27 13 38 7f a5 fa b1 // c5 e4 bb e9 c6 6b 3f e7 e9 c7 5b 14 a4 56 72 ca c3 1b 7f 08 78 // 65 9e d1 2b b0 33 9b 21 8b b5 b6 4d 88 8d fc 42 3a 74 68 a3 e1 // d3 b0 48 01 24 c4 2f b9 74 c8 cf 9a 06 6d c8 39 0d ae 57 46 f4 // b2 6f c7 05 b5 c1 d1 13 09 05 86 19 ed a0 52 5e e2 49 03 a8 22 // b0 24 c8 ea 99 a4 32 1b 7a 6d 04 61 b3 7c 27 04 40 6c 11 5d a4 // c6 ee 1f 00 5d 3a b3 bb fe b3 26 58 cf 28 b3 25 65 19 48 24 d0 // cd 77 1b e0 17 b8 fe 45 65 c2 e3 0f b9 53 7e 09 dd 4c 1f d8 51 // 65 ab c4 3f 83 14 4f 40 b0 00 6c 86 ad 6f a0 3c d8 02 37 94 36 // 74 44 64 cb dc 31 2f b1 91 b8 90 3f 6d d0 28 f4 95 b8 c5 6c 06 // eb 7b 45 3f 70 49 d5 d7 e3 fb 8f fe ca 8c 2d 4d 34 f5 e4 14 be // 09 09 5e 2d b2 e8 bb ac ba d7 29 39 d2 96 72 66 d4 85 83 0f e7 // eb a6 2d 87 0a 7c 1c 99 e9 db 75 aa 91 2e d8 3c 71 5b d1 57 a2 // 81 d4 a7 a1 54 fb a2 5a ed d2 1e 8f 63 72 01 28 7f e2 b9 8b cd // d7 e0 da f0 6a 42 e9 1c 38 df cd 36 83 1c d8 ca 7a 25 ce e7 45 // 0b 52 2c 00 06 8b a9 ca b5 1f 1c ac d0 99 eb 8b 47 64 3a 88 f6 // e5 3e 54 45 b1 64 74 eb 82 d2 42 49 da 76 d5 1a 64 19 0c cb 7c // 31 2f 57 50 a9 d3 53 bb 9c 34 4c 0d 96 74 49 26 03 98 dc ef 98 // da b1 74 4a 6a 3e 4f 19 ab e4 5d 02 55 e1 d5 cf 29 9f 11 41 d7 // eb 0e 50 0f d0 f0 b3 eb bd 78 86 4f a9 51 3c 23 d4 37 a0 2b c1 // da 12 4a e3 37 4b 98 bb 2b 4b 01 f1 a8 d1 11 f3 ed cb 11 22 c8 // 9a 07 04 2f 76 a3 32 ac 80 6c c2 77 55 df 54 13 fe 10 0b 0e 7d // de 69 e2 3b 64 51 d5 63 21 c1 c2 b0 24 50 9a 5b 74 a5 35 7d 81 // c7 f3 ff 8f 44 9c 10 9b 70 14 fd 9e 8a ed 0e 5a 86 7c 96 21 a1 // ba 88 9e 43 f6 65 80 35 08 65 93 86 72 21 31 ee 4c 8b 53 7c 57 // 95 37 c2 51 a2 05 ea e3 6b 70 1c 45 ac 1b c5 62 10 ec db 34 2d // 45 ef d8 7c 42 bc d5 8e 67 12 7e 59 f6 92 8f 88 7f a1 ce b3 73 // 6f 7b ea 9b 26 a8 1d b3 d5 dd fb 89 f2 37 05 f3 74 9f 2e e5 5b // 99 71 f4 23 81 46 73 e4 9a 9d 7c c6 69 ee d5 b6 c0 fd 1a ec 45 // f5 15 b0 24 7e 6d b0 ed c4 26 dd 17 02 8a 0e 9a 09 13 be 90 60 // ec 18 1d bb e9 bb 3d 83 f8 48 f0 64 08 3e 0d 42 83 a0 54 54 36 // ac dc 25 7d 05 60 da ce 62 31 e6 8f 51 23 10 43 92 42 f2 14 87 // 34 0f 74 d3 00 aa 27 b3 8d 13 8c bc 72 8b 4a d1 2b 7d 94 dd 30 // a1 18 ff a4 08 5e a2 c1 b2 64 ef 91 fb 30 f4 3d f1 73 33 d2 ec // 63 f1 9d d4 a8 be ad 1a 85 ce 75 f4 7d e4 95 7f 10 6d b0 d4 6c // fe 6a 3f 75 18 0c d4 17 48 19 92 d8 d7 75 00 75 bc ca 06 4b f8 // e2 d4 17 47 42 e1 75 5d 54 23 b6 f2 08 f6 eb a6 a5 55 e7 86 4d // 7f c7 21 58 45 a5 31 35 75 eb 41 f6 12 5d 09 f1 83 1f 89 f1 9c // f9 02 9e 83 d1 b7 7c 9c fc b0 8a 16 d4 0f 5b 1a d6 58 e1 1f a8 // 8b 2e 48 c5 17 93 b9 89 f7 11 49 e5 23 df c3 7d 64 b5 8d bc 7c // cd a8 9d 84 e2 55 d7 8a fe 17 cd 20 64 9e d9 78 f7 af 16 d1 02 // c6 f8 fe a0 9e e0 5c bf 0f 47 0e f5 41 2b 46 12 91 54 bd 6d 19 // 9d b6 05 1f 20 c7 9e bf e3 b6 40 8a 04 b2 8d 7c c3 9f 8c 67 41 // c7 09 88 fe d2 d7 75 63 c6 7f 73 80 e1 08 87 68 51 88 9a 5f 89 // d8 dc 2b 08 af 2a 8f ee 7e de b7 29 3d ae 57 a8 cd ca e9 fa c5 // 88 55 26 38 74 95 a9 86 cf 5c 67 33 47 a5 af ea 38 48 10 0e 60 // f8 69 a8 77 5c 1a 3f f5 fe 72 85 06 45 57 f8 d5 cd 62 cb ad 9e // d8 3b 07 13 f7 d8 59 fe e3 d0 cb d5 53 b3 bf 1e 21 af 87 bf 7a // 4e 79 10 65 cb f8 92 90 ce 68 3c 2a 14 98 d5 ac 5d f5 c7 25 0a // 2c b7 4e 93 db 9d a1 a9 56 14 5e c3 1a ea d9 72 b7 77 b0 21 54 // 83 f7 98 fb 77 52 b1 a2 37 63 96 d5 67 70 08 01 8f 2d 07 cf 05 // dc 3d 03 d4 a7 1b 9e 5d bf 60 af 66 6f 6a cf c0 0b d6 62 e7 9c // 8a be 8d 61 28 2e 2a 9d f4 b0 d3 d2 32 3a 4a fa fa d6 2f 77 05 // 6c ec 93 e9 63} (length 0xa19) // } // len: len = 0xa19 (8 bytes) // } // } // } // vlen: len = 0x3 (8 bytes) // off_low: int32 = 0x0 (4 bytes) // off_high: int32 = 0x0 (4 bytes) // flags: rwf_flags = 0x0 (8 bytes) // ] NONFAILING(*(uint64_t*)0x2000000018c0 = 0); NONFAILING(*(uint64_t*)0x2000000018c8 = 0); NONFAILING(*(uint64_t*)0x2000000018d0 = 0); NONFAILING(*(uint64_t*)0x2000000018d8 = 0); NONFAILING(*(uint64_t*)0x2000000018e0 = 0x200000000540); NONFAILING(memcpy( (void*)0x200000000540, "\x5e\x9e\x3d\xf7\x56\x6a\x14\xd7\x2f\xdf\xd4\x24\x92\xe1\x5b\xcf\x42" "\xd3\xd2\x57\xd2\x07\x34\x3a\x51\x09\x60\xd6\x4a\x61\x4d\x74\xda\x1e" "\xd6\xa7\x1c\x48\x0f\xed\x87\x2d\x37\xd7\xa8\x75\xaf\x27\xa9\x7a\x57" "\xe8\xb0\x1b\x49\xfd\xef\xc1\x7d\x81\xff\xeb\x18\xbc\xf2\x7a\xcb\x20" "\x7d\xb7\x9b\xef\xdc\x74\xc5\x36\x4d\x44\xb0\xf9\x6a\x38\x5f\xe1\x00" "\x96\x06\x3c\x04\xe8\x8c\xe3\x15\x6c\x25\xc0\xbc\xe2\x50\xfb\x3b\xb2" "\xb8\xaf\x53\x28\x04\xbd\x31\x65\xc3\xfc\xee\xb0\xce\x8e\x35\x96\x76" "\xed\x40\x87\x3e\x2e\x3d\x05\x39\xbd\x33\xdc\x5d\x5b\x9b\xef\x86\x5e" "\x3a\x8a\x6b\x0a\x93\x6c\x6a\x77\x2d\xb5\xa8\xa6\xbe\x90\x83\x43\x36" "\x8e\xef\xa4\xdd\x88\xcc\x70\x9e\xba\x15\x31\x48\x45\xef\x74\xfe\xb1" "\x70\xea\xb9\x3e\x62\x82\x25\xb1\xf1\xfe\x83\x40\x59\xb0\x7d\xc0\x9c" "\x89\x14\xc6\x06\x11\x05\x46\xff\x8e\x4a\x24\xc7\xf8\x0f\x70\xdc\x9a" "\x2c\xf4\x2c\x42\xa0\x99\x3a\x93\x6a\xb3\xfe\x0f\xc3\xa8\xd7\x2c\x01" "\x67\xec\x14\xf2\x91\xf0\x2a\x1e\x57\xba\x20\xf8\x1b\x60\xde\xbb\x17" "\xd3\xdf\x78\x50\xfd\x60\x18\x33\x39\x27\x66\x77\xec\x60\xba\x08\x05" "\xd9\x37\x67\x39\xa5\x7c\x6f\xa1\x9a\xd5\xc6\x44\x26\x78\x0d\xcf\x7c" "\xd4\x30\xe3\x71\x69\xe5\x61\x40\xdd\x80\x98\xf6\xa5\x45\xda\xfe\xf1" "\xe0\x39\x6c\x8c\xca\xba\x01\xe2\xe6\xbe\xec\x01\x52\xa3\x90\x45\xea" "\x61\x0b\x42\x17\x04\x5f\x73\x20\xd2\xcc\x5a\x1b\x4c\x6a\x78\x82\x26" "\x17\xa0\x03\xaa\x12\xde\xd0\xb2\x9f\xf7\x57\x6d\xbd\xae\xdc\xec\x6a" "\xcb\x96\x24\xf0\x53\xfe\x0c\x23\x07\x08\xd3\xbf\x14\x7a\x1d\xde\xe8" "\x0b\x70\xd6\xb7\xfb\x2d\x83\x90\xfc\xbf\x57\x4e\x02\x26\x91\x1d\x48" "\xd6\x70\xdd\xbc\xba\x62\xc8\x53\x89\x1a\x94\xeb\xe4\x49\x79\xca\xb6" "\x7a\xf2\x0b\x59\x8f\x52\x32\xdc\x16\x85\x7e\x72\xe2\x25\x3c\x94\x0e" "\xd7\x52\x7a\xa6\xf3\xd1\x6a\x09\xb5\x5e\x23\x60\xd0\xa0\x8f\x43\xa3" "\xcb\x7b\x6b\x84\x25\x36\x55\xa9\x67\x11\x03\x6c\x5d\x3f\xed\xe6\x21" "\x30\xec\xff\x39\x51\x06\x40\xf9\x96\x03\xac\xd7\xaf\xc4\x25\x31\xf9" "\x55\x0f\x79\x4a\xf0\x29\xdc\x90\xa5\x5d\xf3\x71\x52\xe5\x4d\x4d\xe7" "\x34\xce\xb2\xf4\x49\x28\xf9\xa9\x4b\xd9\x41\xf4\xb1\x9a\xe8\xb8\xfb" "\xde\x3e\x56\xe7\x14\x72\xf6\xe1\x34\x47\x25\x77\xd0\x47\xb7\xfe\xd4" "\x0a\x7b\x7a\x63\x50\xd6\x17\x38\x59\xee\xa0\x8d\x4d\xeb\x17\xb5\x9f" "\x4d\x9a\x82\xa9\x80\x96\xe9\xb9\xff\xa7\xf3\x9e\x86\x86\x09\x1a\xc2" "\xc5\x02\x1f\xd1\x9f\xe1\xdf\x6e\xb6\x5e\x60\xe6\xf8\xa8\x3d\xff\x64" "\x9b\x0a\xeb\xb5\xf0\x25\x2d\x87\x8b\xb2\x37\x51\x84\x43\x20\xbc\xb3" "\xe1\x87\x17\x20\x94\x6b\x80\x47\x53\x75\x33\x23\x10\xe7\x61\x99\xeb" "\x88\x2e\x99\x73\x61\xd9\x2d\x92\x1e\xd0\xd2\xba\xcc\x5c\xeb\xd3\x42" "\xd4\xe0\x6e\x54\xcf\x28\x23\x9f\x05\x63\xd8\x15\x93\xe7\xd1\xef\xe5" "\x1d\x45\xc1\xdf\x17\xd1\x77\xe4\xdd\x71\x9a\x75\x24\xaa\x43\xd9\x2d" "\x35\x5e\x9d\x14\x94\x62\xd7\x77\x7a\x33\x94\xeb\xd3\x94\x65\xc2\xc8" "\xa6\x3c\x70\x8d\x58\x7b\x6b\xee\xcf\x91\x50\x9e\xef\x99\xc1\x2b\x70" "\x82\x9c\x89\xc7\xea\xa3\xcb\xd4\x41\x14\x40\x24\xf6\xd7\xdc\x93\x2c" "\x30\xaf\x90\xd7\xa9\xe5\xf3\x37\xf9\x62\x4d\xb5\x24\x0d\x92\x15\xea" "\xdf\x62\x51\xc3\x35\x40\xb7\x0e\x88\xcc\x99\x23\xc5\xf0\x4b\x64\x5f" "\x37\x5a\x49\x36\x7d\xcd\x86\x37\x2b\x95\xe4\x52\xac\xdc\x50\x57\xe1" "\x54\x9e\x46\xe0\xaa\xf1\xcf\xb7\x39\xcf\x1c\x78\x83\xa0\x3e\xc5\x41" "\xc8\x4e\xdc\x10\xfc\x45\xbb\x3c\xd0\xa8\x45\xd7\xe7\xba\x00\xf5\x60" "\x56\x2f\x2d\x6b\x62\xd3\x16\x70\xe8\xd7\xae\x3d\x16\x61\xb2\x1d\xc7" "\xa5\x94\x99\x10\xf4\xa4\x5d\xe2\xc8\x70\x83\x8d\xcb\x7a\xb3\x4b\xba" "\x5c\x00\x96\x89\x85\x9e\xf1\xa2\x17\x8e\x8a\x62\x4e\xe5\xbc\x2f\x90" "\x54\xc5\x28\x42\x70\x10\x1d\x48\xe8\x6a\x6d\x4e\x25\x63\xbb\x70\xba" "\x14\xf9\xbb\x51\x47\xfa\xe2\x6c\xa7\x0d\x7e\x38\xfd\x48\x4f\x9b\x3e" "\x67\xf7\xd0\x34\x48\x28\x1e\x53\x0a\x2c\x9f\x4e\x8f\xfc\x40\x5c\x3c" "\x28\x36\x20\x4b\xd4\x68\x1f\xc9\xe5\xdf\x62\xca\xf6\xcc\x54\x5e\xba" "\x9f\x1e\x28\xa8\x9d\x04\xd3\xca\x88\x6e\xb6\x84\xd7\x30\xec\x5a\xdd" "\x8c\xa9\x7e\x70\xe1\xee\x7d\x24\xe1\xf3\xb5\xbb\x03\x74\x97\x10\xd5" "\xa7\x77\xee\x10\x84\xb0\xe8\x28\x9c\xab\x7d\xbb\x6a\x86\xbe\xb2\x7f" "\x6f\x8f\xc0\x90\xcf\xbe\x63\xe0\x4f\x5f\xf2\x29\x30\x67\xad\x93\x8e" "\x59\xb4\x3f\x8c\x97\x00\x34\xf6\x5e\x8b\x80\x95\x8b\x95\xea\x4f\xd0" "\x4c\xa7\xb5\xdb\xde\xca\x2b\x9b\x58\x02\x96\x50\x9d\xb8\xfc\xa5\xf3" "\xb2\x69\x37\x60\xbb\xfc\x3f\x68\x5d\x67\x29\xf2\x2a\xff\x56\xf6\x4b" "\xb3\xbe\xa8\xfb\x3e\xcd\x52\x9f\x58\xc8\x13\xc0\x43\xfe\x0b\xc3\xea" "\x78\x1d\xf7\x44\x22\xff\xb2\x19\x7b\xbe\x8e\x67\x07\xd4\xba\x39\x47" "\x67\x97\x29\xc3\x6e\x0e\xab\xc6\x34\x0e\x08\xa7\x92\x26\xda\xfc\x0e" "\xf1\x81\x24\x3f\x6e\xe8\x16\xb0\xc7\x16\xbe\x6b\xc2\x9a\x2d\xa7\x95" "\xe3\x55\xa9\xe1\x63\xc7\x92\xa2\x3d\xff\x47\x86\x40\x8c\x3c\xa4\x44" "\x03\x4b\xa7\x5c\x89\x95\x88\xee\x90\x9f\x69\x41\x59\xa0\xde\x1f\xc1" "\x90\x2b\x31\x14\x3f\xe8\x87\x2f\x57\xbe\xc3\x1e\x86\x97\xca\xf9\x1b" "\xd5\x51\xb1\xcf\xdc\x3c\xc7\xa5\xd9\x14\x46\x62\x14\x91\x1c\x12\xfc" "\x1e\x07\xa4\xd7\xa9\x34\x4e\x18\x71\x22\xde\xc6\x66\x00\xb7\x09\x4e" "\xdf\xcd\xa5\xb4\x5a\xd4\x55\x57\x0d\xa8\x2a\x6a\x66\x5e\x47\x0c\xef" "\x48\x0c\xf0\xd2\xe5\x15\x12\x8e\x0c\x43\x8d\xa0\x44\x31\x0e\x0a\x72" "\xaf\xd4\x09\x0c\xe0\x56\x6a\xb5\x84\x87\x7f\xc0\x8f\x4a\xf4\x12\x81" "\xa8\x92\x2e\xc5\xf4\xa8\xd4\xf6\xc7\x21\x4e\xd8\x46\x76\x29\x8d\xab" "\x60\xd1\x99\x1c\xfe\x31\x76\x58\xa0\xa1\x64\xad\xca\xe9\x32\xff\xe4" "\x32\x24\x1f\x30\x0e\x73\xb6\xff\x30\xbe\xc4\x5f\xf6\xd9\x29\x89\xfd" "\x6e\x1d\x57\x06\xf1\x0c\x9b\x2e\x02\x1f\x93\x9a\x75\xc6\x88\x1e\xe1" "\xef\x7e\x93\xea\x10\x7f\xf1\x49\x76\x34\x5b\x3f\xf0\xf2\x8e\xe3\x6c" "\xd0\x6b\x55\xf1\xa7\x6f\xb4\xd6\x26\x0d\xd4\x79\x46\x69\x25\x7e\x6f" "\x87\x1f\xa6\xb1\x8f\x08\x32\x70\xb6\x80\x72\x67\xdf\xed\x70\x11\x7a" "\xdb\x77\xb9\x50\xd4\x52\x3a\xc3\x8d\x18\x6d\xa0\xbf\x60\xe1\x0d\x51" "\x86\xb2\x0d\xe3\xb1\x7f\x3f\x16\x43\x7c\xc5\x88\x4e\x8e\x69\x4c\xa0" "\x8a\xbe\x87\x78\x05\xcf\x6c\x70\xa9\x91\x94\xc9\x98\x88\xce\x49\x82" "\x94\xa7\x9b\x1a\xec\xed\x25\x9e\x91\x09\xdc\x8a\xc3\x1a\x30\xdb\xed" "\xc0\x33\x33\x79\x40\x5f\xc9\x93\x1f\x8d\x60\x00\xbe\x14\x27\xa5\x97" "\x9a\x0f\xaa\xbc\x65\x34\x96\x9c\xfd\x2e\x52\x6f\x1b\x2c\x28\xf9\x79" "\x5f\xfd\x16\x8e\x1e\xc8\x23\x7b\xbb\xc9\x19\xe4\x7e\x5f\x19\x98\x54" "\xe9\x2b\x79\x98\xdf\x63\x4e\x10\xd6\x5b\xdf\xcc\x08\x3c\x02\x42\x53" "\x9b\xcd\x27\x13\x38\x7f\xa5\xfa\xb1\xc5\xe4\xbb\xe9\xc6\x6b\x3f\xe7" "\xe9\xc7\x5b\x14\xa4\x56\x72\xca\xc3\x1b\x7f\x08\x78\x65\x9e\xd1\x2b" "\xb0\x33\x9b\x21\x8b\xb5\xb6\x4d\x88\x8d\xfc\x42\x3a\x74\x68\xa3\xe1" "\xd3\xb0\x48\x01\x24\xc4\x2f\xb9\x74\xc8\xcf\x9a\x06\x6d\xc8\x39\x0d" "\xae\x57\x46\xf4\xb2\x6f\xc7\x05\xb5\xc1\xd1\x13\x09\x05\x86\x19\xed" "\xa0\x52\x5e\xe2\x49\x03\xa8\x22\xb0\x24\xc8\xea\x99\xa4\x32\x1b\x7a" "\x6d\x04\x61\xb3\x7c\x27\x04\x40\x6c\x11\x5d\xa4\xc6\xee\x1f\x00\x5d" "\x3a\xb3\xbb\xfe\xb3\x26\x58\xcf\x28\xb3\x25\x65\x19\x48\x24\xd0\xcd" "\x77\x1b\xe0\x17\xb8\xfe\x45\x65\xc2\xe3\x0f\xb9\x53\x7e\x09\xdd\x4c" "\x1f\xd8\x51\x65\xab\xc4\x3f\x83\x14\x4f\x40\xb0\x00\x6c\x86\xad\x6f" "\xa0\x3c\xd8\x02\x37\x94\x36\x74\x44\x64\xcb\xdc\x31\x2f\xb1\x91\xb8" "\x90\x3f\x6d\xd0\x28\xf4\x95\xb8\xc5\x6c\x06\xeb\x7b\x45\x3f\x70\x49" "\xd5\xd7\xe3\xfb\x8f\xfe\xca\x8c\x2d\x4d\x34\xf5\xe4\x14\xbe\x09\x09" "\x5e\x2d\xb2\xe8\xbb\xac\xba\xd7\x29\x39\xd2\x96\x72\x66\xd4\x85\x83" "\x0f\xe7\xeb\xa6\x2d\x87\x0a\x7c\x1c\x99\xe9\xdb\x75\xaa\x91\x2e\xd8" "\x3c\x71\x5b\xd1\x57\xa2\x81\xd4\xa7\xa1\x54\xfb\xa2\x5a\xed\xd2\x1e" "\x8f\x63\x72\x01\x28\x7f\xe2\xb9\x8b\xcd\xd7\xe0\xda\xf0\x6a\x42\xe9" "\x1c\x38\xdf\xcd\x36\x83\x1c\xd8\xca\x7a\x25\xce\xe7\x45\x0b\x52\x2c" "\x00\x06\x8b\xa9\xca\xb5\x1f\x1c\xac\xd0\x99\xeb\x8b\x47\x64\x3a\x88" "\xf6\xe5\x3e\x54\x45\xb1\x64\x74\xeb\x82\xd2\x42\x49\xda\x76\xd5\x1a" "\x64\x19\x0c\xcb\x7c\x31\x2f\x57\x50\xa9\xd3\x53\xbb\x9c\x34\x4c\x0d" "\x96\x74\x49\x26\x03\x98\xdc\xef\x98\xda\xb1\x74\x4a\x6a\x3e\x4f\x19" "\xab\xe4\x5d\x02\x55\xe1\xd5\xcf\x29\x9f\x11\x41\xd7\xeb\x0e\x50\x0f" "\xd0\xf0\xb3\xeb\xbd\x78\x86\x4f\xa9\x51\x3c\x23\xd4\x37\xa0\x2b\xc1" "\xda\x12\x4a\xe3\x37\x4b\x98\xbb\x2b\x4b\x01\xf1\xa8\xd1\x11\xf3\xed" "\xcb\x11\x22\xc8\x9a\x07\x04\x2f\x76\xa3\x32\xac\x80\x6c\xc2\x77\x55" "\xdf\x54\x13\xfe\x10\x0b\x0e\x7d\xde\x69\xe2\x3b\x64\x51\xd5\x63\x21" "\xc1\xc2\xb0\x24\x50\x9a\x5b\x74\xa5\x35\x7d\x81\xc7\xf3\xff\x8f\x44" "\x9c\x10\x9b\x70\x14\xfd\x9e\x8a\xed\x0e\x5a\x86\x7c\x96\x21\xa1\xba" "\x88\x9e\x43\xf6\x65\x80\x35\x08\x65\x93\x86\x72\x21\x31\xee\x4c\x8b" "\x53\x7c\x57\x95\x37\xc2\x51\xa2\x05\xea\xe3\x6b\x70\x1c\x45\xac\x1b" "\xc5\x62\x10\xec\xdb\x34\x2d\x45\xef\xd8\x7c\x42\xbc\xd5\x8e\x67\x12" "\x7e\x59\xf6\x92\x8f\x88\x7f\xa1\xce\xb3\x73\x6f\x7b\xea\x9b\x26\xa8" "\x1d\xb3\xd5\xdd\xfb\x89\xf2\x37\x05\xf3\x74\x9f\x2e\xe5\x5b\x99\x71" "\xf4\x23\x81\x46\x73\xe4\x9a\x9d\x7c\xc6\x69\xee\xd5\xb6\xc0\xfd\x1a" "\xec\x45\xf5\x15\xb0\x24\x7e\x6d\xb0\xed\xc4\x26\xdd\x17\x02\x8a\x0e" "\x9a\x09\x13\xbe\x90\x60\xec\x18\x1d\xbb\xe9\xbb\x3d\x83\xf8\x48\xf0" "\x64\x08\x3e\x0d\x42\x83\xa0\x54\x54\x36\xac\xdc\x25\x7d\x05\x60\xda" "\xce\x62\x31\xe6\x8f\x51\x23\x10\x43\x92\x42\xf2\x14\x87\x34\x0f\x74" "\xd3\x00\xaa\x27\xb3\x8d\x13\x8c\xbc\x72\x8b\x4a\xd1\x2b\x7d\x94\xdd" "\x30\xa1\x18\xff\xa4\x08\x5e\xa2\xc1\xb2\x64\xef\x91\xfb\x30\xf4\x3d" "\xf1\x73\x33\xd2\xec\x63\xf1\x9d\xd4\xa8\xbe\xad\x1a\x85\xce\x75\xf4" "\x7d\xe4\x95\x7f\x10\x6d\xb0\xd4\x6c\xfe\x6a\x3f\x75\x18\x0c\xd4\x17" "\x48\x19\x92\xd8\xd7\x75\x00\x75\xbc\xca\x06\x4b\xf8\xe2\xd4\x17\x47" "\x42\xe1\x75\x5d\x54\x23\xb6\xf2\x08\xf6\xeb\xa6\xa5\x55\xe7\x86\x4d" "\x7f\xc7\x21\x58\x45\xa5\x31\x35\x75\xeb\x41\xf6\x12\x5d\x09\xf1\x83" "\x1f\x89\xf1\x9c\xf9\x02\x9e\x83\xd1\xb7\x7c\x9c\xfc\xb0\x8a\x16\xd4" "\x0f\x5b\x1a\xd6\x58\xe1\x1f\xa8\x8b\x2e\x48\xc5\x17\x93\xb9\x89\xf7" "\x11\x49\xe5\x23\xdf\xc3\x7d\x64\xb5\x8d\xbc\x7c\xcd\xa8\x9d\x84\xe2" "\x55\xd7\x8a\xfe\x17\xcd\x20\x64\x9e\xd9\x78\xf7\xaf\x16\xd1\x02\xc6" "\xf8\xfe\xa0\x9e\xe0\x5c\xbf\x0f\x47\x0e\xf5\x41\x2b\x46\x12\x91\x54" "\xbd\x6d\x19\x9d\xb6\x05\x1f\x20\xc7\x9e\xbf\xe3\xb6\x40\x8a\x04\xb2" "\x8d\x7c\xc3\x9f\x8c\x67\x41\xc7\x09\x88\xfe\xd2\xd7\x75\x63\xc6\x7f" "\x73\x80\xe1\x08\x87\x68\x51\x88\x9a\x5f\x89\xd8\xdc\x2b\x08\xaf\x2a" "\x8f\xee\x7e\xde\xb7\x29\x3d\xae\x57\xa8\xcd\xca\xe9\xfa\xc5\x88\x55" "\x26\x38\x74\x95\xa9\x86\xcf\x5c\x67\x33\x47\xa5\xaf\xea\x38\x48\x10" "\x0e\x60\xf8\x69\xa8\x77\x5c\x1a\x3f\xf5\xfe\x72\x85\x06\x45\x57\xf8" "\xd5\xcd\x62\xcb\xad\x9e\xd8\x3b\x07\x13\xf7\xd8\x59\xfe\xe3\xd0\xcb" "\xd5\x53\xb3\xbf\x1e\x21\xaf\x87\xbf\x7a\x4e\x79\x10\x65\xcb\xf8\x92" "\x90\xce\x68\x3c\x2a\x14\x98\xd5\xac\x5d\xf5\xc7\x25\x0a\x2c\xb7\x4e" "\x93\xdb\x9d\xa1\xa9\x56\x14\x5e\xc3\x1a\xea\xd9\x72\xb7\x77\xb0\x21" "\x54\x83\xf7\x98\xfb\x77\x52\xb1\xa2\x37\x63\x96\xd5\x67\x70\x08\x01" "\x8f\x2d\x07\xcf\x05\xdc\x3d\x03\xd4\xa7\x1b\x9e\x5d\xbf\x60\xaf\x66" "\x6f\x6a\xcf\xc0\x0b\xd6\x62\xe7\x9c\x8a\xbe\x8d\x61\x28\x2e\x2a\x9d" "\xf4\xb0\xd3\xd2\x32\x3a\x4a\xfa\xfa\xd6\x2f\x77\x05\x6c\xec\x93\xe9" "\x63", 2585)); NONFAILING(*(uint64_t*)0x2000000018e8 = 0xa19); syscall(__NR_pwritev2, /*fd=*/r[1], /*vec=*/0x2000000018c0ul, /*vlen=*/3ul, /*off_low=*/0, /*off_high=*/0, /*flags=*/0ul); break; case 5: // dup2 arguments: [ // oldfd: fd (resource) // newfd: fd (resource) // ] // returns fd syscall(__NR_dup2, /*oldfd=*/r[0], /*newfd=*/r[1]); break; case 6: // mknod$loop arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // mode: mknod_mode = 0x0 (8 bytes) // dev: proc = 0x1 (4 bytes) // ] NONFAILING(memcpy((void*)0x200000000000, "./file0\000", 8)); syscall(__NR_mknod, /*file=*/0x200000000000ul, /*mode=*/0ul, /*dev=*/0x701); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); setup_sysctl(); setup_cgroups(); const char* reason; (void)reason; if ((reason = setup_usb())) { fprintf(stderr, "reproducer setup failed: USB injection: %s\n", reason); exit(1); } install_segv_handler(); use_temporary_dir(); do_sandbox_none(); return 0; }