// https://syzkaller.appspot.com/bug?id=50106335f7654e262e50ef3f42b45b90d7225146 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_read #define __NR_read 63 #endif static unsigned long long procid; 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; } static int runcmdline(char* cmdline) { int ret = system(cmdline); if (ret) { } return ret; } #define BTPROTO_HCI 1 #define ACL_LINK 1 #define SCAN_PAGE 2 typedef struct { uint8_t b[6]; } __attribute__((packed)) bdaddr_t; #define HCI_COMMAND_PKT 1 #define HCI_EVENT_PKT 4 #define HCI_VENDOR_PKT 0xff struct hci_command_hdr { uint16_t opcode; uint8_t plen; } __attribute__((packed)); struct hci_event_hdr { uint8_t evt; uint8_t plen; } __attribute__((packed)); #define HCI_EV_CONN_COMPLETE 0x03 struct hci_ev_conn_complete { uint8_t status; uint16_t handle; bdaddr_t bdaddr; uint8_t link_type; uint8_t encr_mode; } __attribute__((packed)); #define HCI_EV_CONN_REQUEST 0x04 struct hci_ev_conn_request { bdaddr_t bdaddr; uint8_t dev_class[3]; uint8_t link_type; } __attribute__((packed)); #define HCI_EV_REMOTE_FEATURES 0x0b struct hci_ev_remote_features { uint8_t status; uint16_t handle; uint8_t features[8]; } __attribute__((packed)); #define HCI_EV_CMD_COMPLETE 0x0e struct hci_ev_cmd_complete { uint8_t ncmd; uint16_t opcode; } __attribute__((packed)); #define HCI_OP_WRITE_SCAN_ENABLE 0x0c1a #define HCI_OP_READ_BUFFER_SIZE 0x1005 struct hci_rp_read_buffer_size { uint8_t status; uint16_t acl_mtu; uint8_t sco_mtu; uint16_t acl_max_pkt; uint16_t sco_max_pkt; } __attribute__((packed)); #define HCI_OP_READ_BD_ADDR 0x1009 struct hci_rp_read_bd_addr { uint8_t status; bdaddr_t bdaddr; } __attribute__((packed)); #define HCI_EV_LE_META 0x3e struct hci_ev_le_meta { uint8_t subevent; } __attribute__((packed)); #define HCI_EV_LE_CONN_COMPLETE 0x01 struct hci_ev_le_conn_complete { uint8_t status; uint16_t handle; uint8_t role; uint8_t bdaddr_type; bdaddr_t bdaddr; uint16_t interval; uint16_t latency; uint16_t supervision_timeout; uint8_t clk_accurancy; } __attribute__((packed)); struct hci_dev_req { uint16_t dev_id; uint32_t dev_opt; }; struct vhci_vendor_pkt_request { uint8_t type; uint8_t opcode; } __attribute__((packed)); struct vhci_pkt { uint8_t type; union { struct { uint8_t opcode; uint16_t id; } __attribute__((packed)) vendor_pkt; struct hci_command_hdr command_hdr; }; } __attribute__((packed)); #define HCIDEVUP _IOW('H', 201, int) #define HCISETSCAN _IOW('H', 221, int) static int vhci_fd = -1; static void rfkill_unblock_all() { int fd = open("/dev/rfkill", O_WRONLY); if (fd < 0) exit(1); struct rfkill_event event = {0}; event.idx = 0; event.type = RFKILL_TYPE_ALL; event.op = RFKILL_OP_CHANGE_ALL; event.soft = 0; event.hard = 0; if (write(fd, &event, sizeof(event)) < 0) exit(1); close(fd); } static void hci_send_event_packet(int fd, uint8_t evt, void* data, size_t data_len) { struct iovec iv[3]; struct hci_event_hdr hdr; hdr.evt = evt; hdr.plen = data_len; uint8_t type = HCI_EVENT_PKT; iv[0].iov_base = &type; iv[0].iov_len = sizeof(type); iv[1].iov_base = &hdr; iv[1].iov_len = sizeof(hdr); iv[2].iov_base = data; iv[2].iov_len = data_len; if (writev(fd, iv, sizeof(iv) / sizeof(struct iovec)) < 0) exit(1); } static void hci_send_event_cmd_complete(int fd, uint16_t opcode, void* data, size_t data_len) { struct iovec iv[4]; struct hci_event_hdr hdr; hdr.evt = HCI_EV_CMD_COMPLETE; hdr.plen = sizeof(struct hci_ev_cmd_complete) + data_len; struct hci_ev_cmd_complete evt_hdr; evt_hdr.ncmd = 1; evt_hdr.opcode = opcode; uint8_t type = HCI_EVENT_PKT; iv[0].iov_base = &type; iv[0].iov_len = sizeof(type); iv[1].iov_base = &hdr; iv[1].iov_len = sizeof(hdr); iv[2].iov_base = &evt_hdr; iv[2].iov_len = sizeof(evt_hdr); iv[3].iov_base = data; iv[3].iov_len = data_len; if (writev(fd, iv, sizeof(iv) / sizeof(struct iovec)) < 0) exit(1); } static bool process_command_pkt(int fd, char* buf, ssize_t buf_size) { struct hci_command_hdr* hdr = (struct hci_command_hdr*)buf; if (buf_size < (ssize_t)sizeof(struct hci_command_hdr) || hdr->plen != buf_size - sizeof(struct hci_command_hdr)) exit(1); switch (hdr->opcode) { case HCI_OP_WRITE_SCAN_ENABLE: { uint8_t status = 0; hci_send_event_cmd_complete(fd, hdr->opcode, &status, sizeof(status)); return true; } case HCI_OP_READ_BD_ADDR: { struct hci_rp_read_bd_addr rp = {0}; rp.status = 0; memset(&rp.bdaddr, 0xaa, 6); hci_send_event_cmd_complete(fd, hdr->opcode, &rp, sizeof(rp)); return false; } case HCI_OP_READ_BUFFER_SIZE: { struct hci_rp_read_buffer_size rp = {0}; rp.status = 0; rp.acl_mtu = 1021; rp.sco_mtu = 96; rp.acl_max_pkt = 4; rp.sco_max_pkt = 6; hci_send_event_cmd_complete(fd, hdr->opcode, &rp, sizeof(rp)); return false; } } char dummy[0xf9] = {0}; hci_send_event_cmd_complete(fd, hdr->opcode, dummy, sizeof(dummy)); return false; } static void* event_thread(void* arg) { while (1) { char buf[1024] = {0}; ssize_t buf_size = read(vhci_fd, buf, sizeof(buf)); if (buf_size < 0) exit(1); if (buf_size > 0 && buf[0] == HCI_COMMAND_PKT) { if (process_command_pkt(vhci_fd, buf + 1, buf_size - 1)) break; } } return NULL; } #define HCI_HANDLE_1 200 #define HCI_HANDLE_2 201 #define HCI_PRIMARY 0 #define HCI_OP_RESET 0x0c03 static void initialize_vhci() { int hci_sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); if (hci_sock < 0) exit(1); vhci_fd = open("/dev/vhci", O_RDWR); if (vhci_fd == -1) exit(1); const int kVhciFd = 202; if (dup2(vhci_fd, kVhciFd) < 0) exit(1); close(vhci_fd); vhci_fd = kVhciFd; struct vhci_vendor_pkt_request vendor_pkt_req = {HCI_VENDOR_PKT, HCI_PRIMARY}; if (write(vhci_fd, &vendor_pkt_req, sizeof(vendor_pkt_req)) != sizeof(vendor_pkt_req)) exit(1); struct vhci_pkt vhci_pkt; if (read(vhci_fd, &vhci_pkt, sizeof(vhci_pkt)) != sizeof(vhci_pkt)) exit(1); if (vhci_pkt.type == HCI_COMMAND_PKT && vhci_pkt.command_hdr.opcode == HCI_OP_RESET) { char response[1] = {0}; hci_send_event_cmd_complete(vhci_fd, HCI_OP_RESET, response, sizeof(response)); if (read(vhci_fd, &vhci_pkt, sizeof(vhci_pkt)) != sizeof(vhci_pkt)) exit(1); } if (vhci_pkt.type != HCI_VENDOR_PKT) exit(1); int dev_id = vhci_pkt.vendor_pkt.id; pthread_t th; if (pthread_create(&th, NULL, event_thread, NULL)) exit(1); int ret = ioctl(hci_sock, HCIDEVUP, dev_id); if (ret) { if (errno == ERFKILL) { rfkill_unblock_all(); ret = ioctl(hci_sock, HCIDEVUP, dev_id); } if (ret && errno != EALREADY) exit(1); } struct hci_dev_req dr = {0}; dr.dev_id = dev_id; dr.dev_opt = SCAN_PAGE; if (ioctl(hci_sock, HCISETSCAN, &dr)) exit(1); struct hci_ev_conn_request request; memset(&request, 0, sizeof(request)); memset(&request.bdaddr, 0xaa, 6); *(uint8_t*)&request.bdaddr.b[5] = 0x10; request.link_type = ACL_LINK; hci_send_event_packet(vhci_fd, HCI_EV_CONN_REQUEST, &request, sizeof(request)); struct hci_ev_conn_complete complete; memset(&complete, 0, sizeof(complete)); complete.status = 0; complete.handle = HCI_HANDLE_1; memset(&complete.bdaddr, 0xaa, 6); *(uint8_t*)&complete.bdaddr.b[5] = 0x10; complete.link_type = ACL_LINK; complete.encr_mode = 0; hci_send_event_packet(vhci_fd, HCI_EV_CONN_COMPLETE, &complete, sizeof(complete)); struct hci_ev_remote_features features; memset(&features, 0, sizeof(features)); features.status = 0; features.handle = HCI_HANDLE_1; hci_send_event_packet(vhci_fd, HCI_EV_REMOTE_FEATURES, &features, sizeof(features)); struct { struct hci_ev_le_meta le_meta; struct hci_ev_le_conn_complete le_conn; } le_conn; memset(&le_conn, 0, sizeof(le_conn)); le_conn.le_meta.subevent = HCI_EV_LE_CONN_COMPLETE; memset(&le_conn.le_conn.bdaddr, 0xaa, 6); *(uint8_t*)&le_conn.le_conn.bdaddr.b[5] = 0x11; le_conn.le_conn.role = 1; le_conn.le_conn.handle = HCI_HANDLE_2; hci_send_event_packet(vhci_fd, HCI_EV_LE_META, &le_conn, sizeof(le_conn)); pthread_join(th, NULL); close(hci_sock); } //% 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, unsigned long extra_space, 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; } if (extra_space) { off_t cur = lseek(memfd, 0, SEEK_END); if (cur >= 0 && ftruncate(memfd, cur + extra_space)) { } } 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_RDONLY); 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); unsigned long extra_space = strncmp(fs, "ext", 3) == 0 ? (16 << 20) : 0; if (setup_loop_device(data, size, extra_space, 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) { if (chdir(target) == -1) { err = errno; close(res); res = -1; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } 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); 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, "stats=global")) { if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } } if (symlink("/dev/binderfs", "./binderfs")) { } } 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); initialize_vhci(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); sandbox_common_mount_tmpfs(); loop(); exit(1); } static const char* setup_usb() { if (chmod("/dev/raw-gadget", 0666)) return "failed to chmod /dev/raw-gadget"; return NULL; } #define SWAP_FILE "./swap-file" #define SWAP_FILE_SIZE (128 * 1000 * 1000) static const char* setup_swap() { swapoff(SWAP_FILE); unlink(SWAP_FILE); int fd = open(SWAP_FILE, O_CREAT | O_WRONLY | O_CLOEXEC, 0600); if (fd == -1) return "swap file open failed"; fallocate(fd, FALLOC_FL_ZERO_RANGE, 0, SWAP_FILE_SIZE); close(fd); char cmdline[64]; sprintf(cmdline, "mkswap %s", SWAP_FILE); if (runcmdline(cmdline)) return "mkswap failed"; if (swapon(SWAP_FILE, SWAP_FLAG_PREFER) == 1) return "swapon failed"; return NULL; } uint64_t r[1] = {0xffffffffffffffff}; void loop(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$erofs arguments: [ // fs: ptr[in, buffer] { // buffer: {65 72 6f 66 73 00} (length 0x6) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x2800091 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYRES64: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {33 3e d5 fc a4 fd c9 da 41 dc 55 25 a3 1e 2e ab // cd f2 22 6f 58 d7 bb da a0 80 71 5a 87 52 64 44 f6 94 c2 4b c9 dc // de 8d 7b 23 b2 54 e1 00 4e ca 8b 8d a1 3a b3 01 3d d8 3f 54 c3 09 // d8 aa 22 5f c6 f1 34 48 81 84 e5 7f 6d 60 4e 61 44 57 29 0f d1 58 // 13 3e 36 ec ff 45 f7 7a 81 8d f1 31 c2 4d 37 d2 6a 6d 12 c3 de bf // 91 a3 03 ef b0 0b e5 c7 81 ee 14 06 ef d1 e6 e1 94 a0 4d b6 4a 13 // f8 c0 19 f5 4b cb 0f c4 d3 b6 29 67 0d 76 e9 51 2b 4a 63 04 36 da // 73 10} (length 0x96) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // union ANYUNION { // ANYRES32: ANYRES32 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {d0 16 c8 d5 5c c9 32 9d 2e 01 01 79 7f b5 f5 29 // 44 f2 b8 69 4b ae 76 ff 77 df 23 04 72 85 b9 16 fb a6 b3 6c 1b 40 // 98 90 d2 88 83 ac f4 09 31 05 04 8a 0c 8c ea 76 a2 57 b7 ee 39 a0 // fa 77 29 53 b1 7c cd 5d 14 32 8b cd 8c d3 0f 4c f0 aa 22 0e b9 fc // b0 88 3d e1 94 76 6c 39 95 46 34 b5 f9 a0 ca 86 2e 09 20 0c 5c f0 // 6e c1 21 4c 81 9f fa df 52 91 b8 ed 15 36 d9 14 5d a9 79 6e be b9 // 22 e3 ee a0 49 14 e2 97 48 ec a2 c9 0f fd 65 ba ce 2e c8 cb 68 08 // e9 e7 19 42 6e e9 bb 11 9a ce cb f8 a7 35 42 94 39 a2 09 3d 21 ae // ca bb dd 15 d4 4d dc f7 9b 89 2c cb 1b 09 68 80 ab d5 98 8d 69 07 // 92 81 b4 61 9e e5 8e aa e0 d0 54 ea a8 13 a0 a1 ee 84 7c be f8 56 // 34 08 ab 7d b2 9a 89 65 f5 a1 21 b5 61 75 f4 be 4d fb f2 e6 da 7e // 4b 74 b6 7f 37 ec 66 60 22 7c 65 5b 67 e0 f1 a4 1c 18 ae 60 ab 4b // f7 66 c5 46 0f 29 66 25 11 39 44 f8 4d f5 15 da 61 5e 59 73 57 d2 // 90 59 cb 92 f3 54 e8 85 94 b0 5d e4 32 8d 59 b0 e0 e0 99 e9 96 c1 // 26 c6 66 3c 97 51 46 6f 81 e2 05 9c d9 0a ef 50 8f a3 0a 1b 0c d6 // b0 c1 d9 fc 04 a8 83 18 01 d0 c7 ba 81 3d c1 e5 96 14 bf 56 c6 9a // e2 0f 16 83 88 9e 72 47 a1 2b 74 0a 96 56 42 19 81 e0 76 3c 64 e4 // ad e9 be 51 ff 26 0d 61 fb 3a 8a d5 4b fe 09 22 5d 3a 84 02 f4 26 // fc d2 24 3a 4c 24 66 69 dd de c2 bf 5f d6 01 dc cf d5 7e 68 0f 0e // 86 9d ef fb 3f 91 c6 a1 2f d3 39 a6 1b f2 02 75 66 c5 90 34 31 54 // e7 99 69 ab ee 74 a5 7e 09 16 43 8c 58 19 8a 48 16 d3 1b 2e e9 d4 // 81 fd 2e a6 26 4f a3 61 85 d7 e0 25 d2 45 dc 15 1f cb 87 c3 50 2e // f5 37 69 5b 24 4d cc af 59 2c 54 35 65 cc cb 52 e1 77 ec fa 5a 5a // df 61 2a fe 4b 98 ed fa a1 d2 d4 ad 14 dd f6 7a d5 c3 3b c8 69 67 // c3 05 31 2b 1d f9 12 28 6a d9 2e 21 fb 02 5d c1 8c 1f 26 2f 73 3e // ea a0 f1 7f 43 7f 41 a2 ea 81 6c ad 63 e7 36 d6 18 2b 96 da 94 b2 // 3d d8 61 30 a3 88 b4 b0 b8 45 54 eb 4c e8 51 ce 56 10 04 9a ce 33 // cf 12 82 b2 1b 77 17 33 ba ad 90 30 de e4 6c d6 20 9d f0 98 d0 4a // 13 1e af c8 b2 ed 58 c7 14 61 c5 0c ad cc 91 2a b0 ed d9 eb 09 0d // 36 66 1d f4 65 30 53 60 8b 61 56 d9 92 98 b7 df ea 7f e6 7e de 7d // 04 0d ac 6a c6 6e 78 96 7e b3 c0 5d db 46 9c 90 bc 8e 5a 8f 1c 74 // 08 8c aa 5b a9 8d b4 ff b9 a8 ac a8 f8 f0 1a 03 83 c3 49 a5 df b1 // 39 36 2a 5f 66 5a bb 5f 5d 07 a5 c5 9b 5c 35 c7 cb 8b b5 3e 6b aa // aa 42 35 2b 09 f4 43 47 7d fa 6b ed 60 49 33 91 01 ce ec c3 bd 1b // 32 7f df 2e c8 ed 7d 1e 5c bd 02 d1 63 0e 34 e6 f2 c7 15 0f 47 ff // 9a 97 4a 88 ac 2e 8f 94 fd e9 9f 4c ad 15 54 ca 0f 75 20 b0 a5 af // 67 23 46 f0 cc a3 49 15 3c 5b 93 9a 32 b0 7a c7 89 09 be bd cc db // d3 b1 ab 35 32 c6 d0 61 c2 66 5e e9 d6 78 87 ec 20 9d 1c f5 12 59 // 89 58 8c 79 a1 8b 99 e2 ae 30 bf 3b af ef fd 6b 2f f0 32 ba 4b 6f // 64 b6 2a bd f0 f5 3f eb 4b 7d 72 2d fe 13 dd dc 79 c9 d6 f6 55 f0 // 1d b1 cf 6d 92 05 73 32 a9 6d 92 06 9a 43 47 23 5a 08 b6 ae 91 41 // 7c ee 0f e3 7a 33 9b ea ed cf 50 b3 b6 8c f7 b9 9d 22 b2 9d 49 13 // 7b bc 7b c3 8a d6 cf 6e 20 0e 29 b9 40 77 30 52 93 82 5c 44 76 dc // 17 63 4a 3e cb 1c 75 b2 89 c8 e2 70 f6 8c 9d cb 83 41 47 1f ef 9a // 1b 8e 0d 19 1a 8c be 61 92 b0 73 8f 44 14 43 79 b1 5d 2d b2 26 97 // 97 c0 9c 17 89 be 60 c9 e5 2f 45 2a 52 05 c6 67 82 c9 1f d2 57 3d // 27 f6 51 61 a5 ed a0 8d f1 b0 e7 ee 3d 4e 8b 6c 1a 9b 4f c8 73 92 // e1 6e 8c 0d ba 18 84 ad c5 2a cc 7c dd 93 c8 f8 3f eb 5d 44 ca b6 // 2b 98 56 67 8e aa f9 bb 82 82 52 30 c4 4e a1 77 bb 62 ab 36 fc b8 // 87 5b ed 5b 4f 9a d3 eb a6 5a 75 fc 64 28 fe 3a bc e7 b4 2b 99 2f // a4 dc 21 86 69 e8 48 f3 d0 75 53 e6 d3 81 ec c3 e1 f9 c9 ac 36 50 // c1 d1 18 44 cd 29 35 21 32 a0 7e 93 24 b3 fb 70 16 69 77 85 56 69 // ec 0c fe 75 cc 34 b8 e2 10 44 e1 42 ac 7d a5 64 b1 ec ec d3 a9 85 // c4 b3 d0 bd ef ec 84 a9 6c 13 c9 a4 96 b8 0c fc 1a 91 58 04 64 6f // d1 4c a5 e9 0b 03 6c 9f 24 7f 56 4a f7 5a e8 51 20 3c 86 40 ec fa // 25 c1 83 71 67 c9 1b 97 7a 07 fc 1b 88 de 3a 25 7b 3b b6 3a 38 0b // ee 62 d7 30 0d d8 4a a0 87 f5 79 17 26 51 f2 db 55 f8 e0 c6 ef cf // 75 9a 53 43 f5 e5 91 10 17 7e 3f 7b 94 8d cb 0d 33 ab 9e be c1 d1 // b9 87 c5 5d 10 bc 62 14 cb 81 86 6d d5 ae 79 4a e8 9a 3e 9c ee f6 // f7 37 14 13 8b 69 cc f6 56 2a 13 6b bf f4 4e af 0d 2b 85 87 db 3b // 9a 6d be db 48 93 0b 95 41 e0 d6 c2 12 39 ec 2e e7 8b 77 95 77 42 // 49 0c 65 1c ab de c8 fe 87 73 1e aa 77 81 1a b3 1a 6e 47 f2 1b c1 // e6 00 0b 20 f6 e9 11 8b f7 ba eb 69 85 04 7f 93 7c 7c a4 e2 7a d1 // 6a 8b 10 8e 0e 1e 76 45 c5 e1 81 bd f3 35 4c 7b 11 ff 44 c7 a9 60 // 0f 8e 0b 49 19 f2 4c df 72 ab ca cb 50 9f e5 64 18 43 0b b1 a4 6f // e4 04 4e 88 65 74 c0 ca 22 e1 a9 e3 16 78 45 10 22 0d 9e 62 87 44 // e9 cb 38 c9 80 55 70 93 5f 04 07 f1 59 6f b9 96 5c 15 75 96 36 43 // d8 5a 7f 1e 4f 64 1d 66 c4 fb b8 d9 62 85 7a ea 04 0d 0d 6f 4e 32 // 4b cc 2c 15 7e fd 5e 93 13 a4 10 69 72 8a c7 5a 84 02 28 14 01 14 // 20 42 8f 0c 84 d8 80 8c f2 28 37 9c 57 70 a1 0d d4 a2 54 0e e9 b4 // 9c f4 c6 74 23 ce 11 54 54 15 cb 3b 3a 27 1f ad 52 97 9d fb 20 5e // 76 5b bb df 27 db 68 71 37 3e 57 04 ae a7 f8 da 0f 71 b6 d2 cd 51 // a4 c1 3e 51 40 c9 01 8d 98 c8 20 e5 72 df 54 a8 ac cb 9f 37 8b f7 // 68 32 59 39 91 3e fd f9 0b 69 de bc 59 d2 d4 19 5f 2c 60 be 37 68 // 32 01 a1 57 bd d2 5f 36 5d 35 c9 7e b3 d8 57 9d 98 b1 d2 70 16 4b // 2f 4b 0f 59 0f 6c db b9 bc c8 d0 da 44 39 b6 cd ad 54 8c 7a 79 76 // b8 9f ab d6 4e e5 3f 65 c3 ba c5 07 02 a1 4d 39 3b c1 46 9d b6 f7 // fa 5a 60 7c 6b 09 eb 61 57 98 2f e7 b7 0a 50 e2 50 8b c9 f2 d6 e6 // ed 98 f7 f6 8e 8a 26 68 3d b2 77 6f 19 42 26 88 d7 2c 2d 3c 12 8c // 10 38 2a 81 c9 70 06 4d ac 4f df d5 87 3c 71 1b db 90 2f 70 bb 72 // c9 5b 2d b1 8a b3 d4 00 1f 38 a0 d5 9a 43 b1 2f 50 02 90 95 13 df // 9d 90 fe 1a bb 35 11 1c a5 78 47 f3 7b 56 24 26 76 fd 2c a3 3b 7b // f0 f8 58 cc fc 3c 60 0a f1 22 35 b2 6f 48 8f 94 c6 bb de e6 d3 b4 // 2f 1c c9 db 75 d8 21 9b 9a 2c 96 f4 ea 15 3d 3f a1 45 17 a1 a5 36 // 9c 71 f1 36 c2 a9 ae 23 4a 85 88 2d 21 b6 63 54 d0 8e ad b2 f6 8a // 5e 93 23 41 59 6b 44 be a3 06 f1 1a 0a 4a c5 c2 56 1c 25 40 d0 25 // 54 5a 87 35 db da 09 20 03 70 9e 8f 4d b4 0a 74 4a e9 9f 96 75 0a // 03 6b 09 58 a5 21 20 24 77 b4 d3 eb 94 aa da 9a 94 04 5c dc 70 86 // 1a 8d 8f c0 8e 79 a9 60 02 2f 34 23 18 97 f1 a4 81 6e 99 8d 05 89 // 14 6c e4 b2 42 60 50 d1 66 42 4d 7c 3d 52 09 f7 81 4d 82 41 72 ae // c4 3c 4b d6 8f 49 85 53 63 91 7a 71 c7 f9 16 36 f7 4b d0 ee b4 df // 24 a8 46 cb 62 7a b8 24 8b 54 00 d3 e2 d8 fe 12 97 c6 42 2c b5 fa // e7 3b e6 2c 30 15 d4 d4 b5 d4 0d d1 20 6e b7 22 88 84 ac 60 9f bd // 25 5b 12 67 7a d5 a5 35 ec 3b f2 85 5e a4 00 4a e6 25 ce b7 87 da // 5a 2b 17 cf 6d e6 3a 98 90 65 8e 8f 0f d4 97 e0 29 41 87 52 19 33 // 44 48 6d 28 40 59 d1 d7 c1 3c 8b 17 0d c1 a5 4d b0 19 2a f5 87 fd // b9 4d a9 13 cf de fb 29 39 c5 86 f3 4a e3 ec 3d 2f ce 5d 08 ba 13 // de 9b f0 27 ff 4f bf cb 2c b2 a2 0d f6 f5 60 0a 33 c7 d5 02 6e 5e // 60 91 fe 90 44 45 ee 23 bc f1 56 a7 94 51 36 c4 00 2a 4b 06 00 85 // f3 61 78 f8 90 97 70 84 7b ba 3e d7 aa 4a e3 5e 76 b7 7d d4 78 2d // 73 fa 7f 07 e4 b1 85 1d 51 ba c5 1b b8 f6 ab 02 9a 93 6e 32 1c 24 // 01 d0 61 db 41 6d a7 65 b6 75 2b 1c 1b 75 62 f2 29 23 15 ac b3 9b // 87 d3 76 34 26 da df 0b 60 97 ad 62 21 be 95 94 ad 73 fe 56 2b 84 // c2 e7 11 3c 85 87 bb 62 34 b0 23 bf 42 1b 19 64 fb da 39 3f 38 a5 // 93 c3 1a 99 67 90 65 f0 bb 2e d8 9d 23 2b 70 35 50 21 de f8 32 77 // 06 e7 0a 3f 8e fc 42 f0 48 ef 4d e9 4e 67 6e 9d 2c 7b c6 18 ee 9b // 57 78 b9 00 68 f4 40 5f 07 87 68 2a 5b 7d 1e 64 1a 5a d5 95 dd bc // 24 76 b6 b1 7e f8 6d f5 c4 74 b8 29 9a 0a b5 fe 88 4b ef 5f 17 2c // f9 45 22 4b 5d dc 24 d7 00 4a e2 bc f2 6d 6e fa 44 f4 fa 98 10 f0 // 5c 34 30 aa 25 81 2e 31 11 0a 3e 2c a2 ef 48 18 97 29 ef 03 17 e7 // 18 95 bd a2 10 65 96 35 1a 3f 77 d1 45 73 61 b7 fe 32 ca 77 42 2e // 7e cc b8 ea 3f 89 46 a2 ca 0a 03 1e 2f 2d 08 62 bb 3e 64 ec fa f4 // cf 6b 8c 97 6d e1 28 48 bb 21 ac 75 92 42 45 a9 5e ab 25 09 da 5c // fd 9c 1d a5 de 34 f4 73 41 26 11 32 00 96 c8 2e 9a 92 4f 34 3c 1e // e6 00 82 77 d8 20 20 fd 84 26 69 eb 3e 29 45 e9 63 06 b9 cd 86 98 // 72 68 7f 42 1d d8 f0 c0 89 1f c4 81 c2 a0 15 4b 23 c2 29 cc 20 44 // 4b 4d 87 13 72 2b e4 b9 14 2c 51 1f 23 7c fd 49 a3 fe 8e 29 6f 8a // 6d bd b2 8e 73 e8 f0 b4 c4 89 28 7c ee 53 38 8d c6 d8 39 d2 3d b1 // f9 e9 0f f4 75 dd 4e e5 e7 28 66 6e df 8c 9d 87 2a 69 02 20 4e e7 // d1 1e 37 fc 32 d4 a7 74 82 67 a2 6b ab 65 33 54 21 f5 89 8d fd 50 // df c2 d0 a9 b9 a7 82 9f b1 a5 a6 c2 08 83 37 36 3f 7a 20 88 f2 df // a9 61 7f a2 99 fb e2 f6 16 2a eb b7 84 7f ad 46 01 7f f0 78 c5 33 // 54 d7 a8 a7 fe 86 e4 40 29 9f e7 d7 d6 54 ad 04 5d 5b 98 49 a9 06 // b0 ec ce 0c f4 6f c4 f3 48 a9 c2 40 e8 f9 d7 ef b6 99 e9 ff 48 68 // f2 8f 56 05 21 50 29 29 c3 2d 74 47 ab 4b 7c 19 6f bb 70 6c 41 be // f4 e8 b6 55 a1 85 14 0d 24 d3 9f 8c 04 3f c5 f3 04 85 6c ff 55 bd // 88 1e d5 2f e3 85 f9 3d 48 32 06 83 fc cc 82 99 f5 14 bd da 70 ba // e3 83 c0 0e 51 9c 2b fc 4f f0 3d f7 6f 91 d2 70 c8 6d d0 49 9f 14 // 5a da 66 dc b9 d4 cf ba d8 b9 7f a4 38 73 fb 46 95 55 9a f8 85 da // f1 28 66 be 73 f0 1c 98 ad 83 6a 65 2a fb bb 66 e8 ea 63 08 88 4f // ea e5 ef e7 96 ce 67 ea 24 f8 3f 3a 79 38 c5 5f 21 6d af 22 d0 13 // 3c c0 47 6d 85 1b 84 49 c1 0b 5e 6f a1 c5 98 c1 0d e9 f7 08 5c 66 // 93 0c f2 45 20 fa c2 4e 71 be bb 03 20 c0 8e 8c df 3f a2 e8 b2 51 // 72 85 20 8d e2 8e 25 1f 5b 6f 79 6d 3e f0 74 9b f6 7e 1f 2c 17 8b // 07 15 70 5d fc 0f dd df 8d 2a 6c 85 63 23 fd 9a f1 a7 98 55 cc 9a // c9 66 2d f8 66 4d 48 32 52 a0 4c e6 39 ee b4 e7 3e a6 85 e6 17 e8 // 44 b9 ac a9 07 58 f9 8c 5c ed 27 66 f6 7e 84 5a d3 e8 af a3 79 bc // 56 bb 45 12 aa b9 85 d8 e8 e3 eb cd 3c b9 1a d2 af 34 39 36 c1 1e // 7e 3d c5 49 f9 cd b7 54 ef 52 96 17 5e 62 52 b2 27 88 bb 4c 25 c7 // d7 85 b8 25 41 c6 3c 2b f8 47 70 ba 03 20 08 b7 94 bd d1 66 40 2b // b2 7f e6 5a af 15 f2 fe bf 80 e3 40 38 b7 71 ed 5f b7 ed 74 17 79 // 9a 0d 78 95 ec 62 26 20 6c 41 5d a2 dc 59 f0 9e 10 86 a3 8b 62 ae // 21 25 52 27 14 a8 f1 ec 56 a4 b3 76 80 09 37 e6 2c 42 d0 30 fb 02 // 57 89 e1 e3 0d c5 6d f4 d6 65 8d 67 b1 d0 69 0b 5d 33 36 43 29 b6 // f2 e9 e1 31 66 f5 52 00 64 22 36 61 d0 8e b7 74 dd e4 a6 ab b7 e5 // 49 b7 08 ce 92 db 76 78 29 ab 58 5d 3f dc 77 35 13 d1 4d c8 53 26 // 18 da 09 d6 0a bc b3 41 f5 09 36 bf 45 ce 2d 14 dc c0 ff 14 f9 e5 // 8a a0 06 9c 0d cb a9 ee 8f 53 f3 2b 49 45 0f 18 db 0c 47 ce 85 ea // 93 5b aa 47 29 bd 1d 57 63 64 42 9e 88 b0 b9 79 2f f6 e8 09 5c 0c // a8 70 12 57 68 5c e9 7a 3b 47 34 0b 45 ff 90 2d 7f e6 6a d0 0e 65 // 59 02 a9 85 89 e6 3a 1f 79 16 86 6f 50 a9 ba 86 60 e4 c1 5b 0a a6 // 0b 14 f2 10 81 92 3c dc 61 c0 85 01 8d 34 55 92 30 1a 98 9a e3 c6 // 4e 7c ff 3f 09 4e 7f af e7 23 eb 27 19 a4 fd a9 53 60 05 f8 4e 5c // 8a 10 79 63 f6 b2 68 1c ff 06 0d cd 53 74 81 fb 4f 50 c7 56 df 25 // 8b f7 21 0c 52 25 25 58 c3 df 00 c2 e1 f8 2c b1 fa a7 40 de 72 d0 // f9 74 de 9c d4 a2 a1 c3 70 27 d3 81 f8 68 9f d4 d0 8f 3a 5c 22 8a // 89 e9 b0 96 a7 31 89 be 0c 8c e2 66 0b 57 1d b8 be d8 12 52 fa 7d // 11 22 da 07 df 62 12 a0 d0 ad bf 91 1d 7d c1 66 60 bf 7a bf 47 64 // d4 b7 70 8d 09 12 28 74 93 c8 fd da ea 46 7c fa ae 7a 24 ba 09 07 // d9 8c 84 7e 86 97 d5 07 cf 82 a8 62 03 a1 d8 9c 34 b0 4d b5 79 ba // 03 cb 1c fb cd d6 5a 65 2a 36 43 5c 98 9b 42 3d e5 45 f3 68 bd e4 // 1f 33 e7 6e e6 5c a5 53 8b c8 9c 29 e3 6f 72 5a d8 38 56 11 eb d3 // 2a fd b2 e2 09 67 6a ff 0d f1 57 76 20 52 4c 68 18 e0 64 ce a1 a3 // 49 06 6c 9a d2 76 43 49 4c 91 fb 0a f9 c5 4c e8 85 68 19 7e 8d ea // 21 7d f8 27 98 1c f4 b6 af fd 20 78 fc 5f 09 c5 c2 92 dc 70 00 01 // 88 e9 77 90 1a 20 ca fe 90 c3 46 3a 82 74 f0 2e 65 f8 d3 c4 22 42 // c6 18 13 ad b2 1a 08 07 ad 47 43 47 d4 29 aa dd 7d 05 a6 3c ed d9 // 3f 9c 6c fd c7 49 96 06 8d cb da 1e c8 86 21 87 1e 1f 3d c6 7f b7 // e8 83 15 09 46 ab 49 81 41 77 5e c7 10 41 3f 01 54 f8 ef 08 87 77 // 99 7a 5b 9b 31 03 f0 0a 04 b4 ad 3c b5 01 88 64 c7 e4 56 b1 7d 73 // 22 74 dc e1 c9 b1 a5 74 a7 a4 e8 6b 8f 60 9c 0a 58 a0 8e 6a cf c0 // ac 09 61 60 4a 8d c6 66 3b 0f cf ae 34 78 81 b7 38 35 77 fb 62 67 // c3 0e fe 04 3e 05 2a 56 9e aa 76 d4 e0 16 8d 63 33 bd 11 b9 d5 c1 // 47 9a 9b 24 21 6b 9d d1 b5 6d fc 3a 94 ff 37 ae 2a 95 84 4f 6b d8 // 78 a8 19 1d 07 84 26 c7 93 29 11 ac c8 94 07 70 9c 1a bd 01 65 b0 // a5 3f 93 61 25 74 e7 7d af 90 d4 f1 85 66 d1 ed 90 76 4f 19 61 5c // 2a 8e 86 0d 18 d2 f7 bd e0 0a 86 55 33 41 8d 07 0e 17 5a 09 f2 37 // a6 3d d0 07 91 6d 9e 80 e8 f2 b9 85 f6 73 22 74 84 1a aa 81 5a fc // 8a 76 9d b6 a1 8d 4a 83 26 87 73 1e 54 be 2f fb 18 2f d9 80 23 35 // ea 2f de 0a 39 fc cf 1e f3 d8 37 4f c4 16 c5 95 46 97 19 5a cd af // a9 0d af 37 c4 3b 6f d2 18 ee 7b 63 65 d1 bc c3 e5 37 2a c6 e3 0f // 47 4c cf a7 6c 70 04 d7 c8 60 d1 3b c1 bd fa 12 17 56 d9 d3 94 78 // e1 88 27 a8 dc 82 63 77 1a 62 52 4e b2 c3 26 83 11 7b 47 89 2f ff // 88 70 8b 50 08 2d 3f 9f 50 e6 66 84 ea d4 77 76 fd e2 41 59 6c 40 // 05 63 1e 43 8d 95 b3 21 3f d6 60 f8 82 4f 27 04 5d 7e 0c 89 74 b0 // c4 4d f4 50 3b d2 20 36 81 c1 59 e3 89 f5 23 0d 5e bf 80 25 ae 27 // c8 34 89 15 dc 01 4a 1a 53 9d} (length 0x1000) // } // union ANYUNION { // ANYRES32: ANYRES32 (resource) // } // } // } // chdir: int8 = 0x55 (1 bytes) // size: len = 0x1be (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x1be) // } // ] // returns fd_dir memcpy((void*)0x20000200, "erofs\000", 6); memcpy((void*)0x20000240, "./file0\000", 8); *(uint64_t*)0x20000b00 = 0; memcpy((void*)0x20000b08, "\x33\x3e\xd5\xfc\xa4\xfd\xc9\xda\x41\xdc\x55\x25\xa3\x1e\x2e\xab\xcd" "\xf2\x22\x6f\x58\xd7\xbb\xda\xa0\x80\x71\x5a\x87\x52\x64\x44\xf6\x94" "\xc2\x4b\xc9\xdc\xde\x8d\x7b\x23\xb2\x54\xe1\x00\x4e\xca\x8b\x8d\xa1" "\x3a\xb3\x01\x3d\xd8\x3f\x54\xc3\x09\xd8\xaa\x22\x5f\xc6\xf1\x34\x48" "\x81\x84\xe5\x7f\x6d\x60\x4e\x61\x44\x57\x29\x0f\xd1\x58\x13\x3e\x36" "\xec\xff\x45\xf7\x7a\x81\x8d\xf1\x31\xc2\x4d\x37\xd2\x6a\x6d\x12\xc3" "\xde\xbf\x91\xa3\x03\xef\xb0\x0b\xe5\xc7\x81\xee\x14\x06\xef\xd1\xe6" "\xe1\x94\xa0\x4d\xb6\x4a\x13\xf8\xc0\x19\xf5\x4b\xcb\x0f\xc4\xd3\xb6" "\x29\x67\x0d\x76\xe9\x51\x2b\x4a\x63\x04\x36\xda\x73\x10", 150); sprintf((char*)0x20000b9e, "0x%016llx", (long long)-1); *(uint32_t*)0x20000bb0 = -1; memcpy( (void*)0x20000bb4, "\xd0\x16\xc8\xd5\x5c\xc9\x32\x9d\x2e\x01\x01\x79\x7f\xb5\xf5\x29\x44\xf2" "\xb8\x69\x4b\xae\x76\xff\x77\xdf\x23\x04\x72\x85\xb9\x16\xfb\xa6\xb3\x6c" "\x1b\x40\x98\x90\xd2\x88\x83\xac\xf4\x09\x31\x05\x04\x8a\x0c\x8c\xea\x76" "\xa2\x57\xb7\xee\x39\xa0\xfa\x77\x29\x53\xb1\x7c\xcd\x5d\x14\x32\x8b\xcd" "\x8c\xd3\x0f\x4c\xf0\xaa\x22\x0e\xb9\xfc\xb0\x88\x3d\xe1\x94\x76\x6c\x39" "\x95\x46\x34\xb5\xf9\xa0\xca\x86\x2e\x09\x20\x0c\x5c\xf0\x6e\xc1\x21\x4c" "\x81\x9f\xfa\xdf\x52\x91\xb8\xed\x15\x36\xd9\x14\x5d\xa9\x79\x6e\xbe\xb9" "\x22\xe3\xee\xa0\x49\x14\xe2\x97\x48\xec\xa2\xc9\x0f\xfd\x65\xba\xce\x2e" "\xc8\xcb\x68\x08\xe9\xe7\x19\x42\x6e\xe9\xbb\x11\x9a\xce\xcb\xf8\xa7\x35" "\x42\x94\x39\xa2\x09\x3d\x21\xae\xca\xbb\xdd\x15\xd4\x4d\xdc\xf7\x9b\x89" "\x2c\xcb\x1b\x09\x68\x80\xab\xd5\x98\x8d\x69\x07\x92\x81\xb4\x61\x9e\xe5" "\x8e\xaa\xe0\xd0\x54\xea\xa8\x13\xa0\xa1\xee\x84\x7c\xbe\xf8\x56\x34\x08" "\xab\x7d\xb2\x9a\x89\x65\xf5\xa1\x21\xb5\x61\x75\xf4\xbe\x4d\xfb\xf2\xe6" "\xda\x7e\x4b\x74\xb6\x7f\x37\xec\x66\x60\x22\x7c\x65\x5b\x67\xe0\xf1\xa4" "\x1c\x18\xae\x60\xab\x4b\xf7\x66\xc5\x46\x0f\x29\x66\x25\x11\x39\x44\xf8" "\x4d\xf5\x15\xda\x61\x5e\x59\x73\x57\xd2\x90\x59\xcb\x92\xf3\x54\xe8\x85" "\x94\xb0\x5d\xe4\x32\x8d\x59\xb0\xe0\xe0\x99\xe9\x96\xc1\x26\xc6\x66\x3c" "\x97\x51\x46\x6f\x81\xe2\x05\x9c\xd9\x0a\xef\x50\x8f\xa3\x0a\x1b\x0c\xd6" "\xb0\xc1\xd9\xfc\x04\xa8\x83\x18\x01\xd0\xc7\xba\x81\x3d\xc1\xe5\x96\x14" "\xbf\x56\xc6\x9a\xe2\x0f\x16\x83\x88\x9e\x72\x47\xa1\x2b\x74\x0a\x96\x56" "\x42\x19\x81\xe0\x76\x3c\x64\xe4\xad\xe9\xbe\x51\xff\x26\x0d\x61\xfb\x3a" "\x8a\xd5\x4b\xfe\x09\x22\x5d\x3a\x84\x02\xf4\x26\xfc\xd2\x24\x3a\x4c\x24" "\x66\x69\xdd\xde\xc2\xbf\x5f\xd6\x01\xdc\xcf\xd5\x7e\x68\x0f\x0e\x86\x9d" "\xef\xfb\x3f\x91\xc6\xa1\x2f\xd3\x39\xa6\x1b\xf2\x02\x75\x66\xc5\x90\x34" "\x31\x54\xe7\x99\x69\xab\xee\x74\xa5\x7e\x09\x16\x43\x8c\x58\x19\x8a\x48" "\x16\xd3\x1b\x2e\xe9\xd4\x81\xfd\x2e\xa6\x26\x4f\xa3\x61\x85\xd7\xe0\x25" "\xd2\x45\xdc\x15\x1f\xcb\x87\xc3\x50\x2e\xf5\x37\x69\x5b\x24\x4d\xcc\xaf" "\x59\x2c\x54\x35\x65\xcc\xcb\x52\xe1\x77\xec\xfa\x5a\x5a\xdf\x61\x2a\xfe" "\x4b\x98\xed\xfa\xa1\xd2\xd4\xad\x14\xdd\xf6\x7a\xd5\xc3\x3b\xc8\x69\x67" "\xc3\x05\x31\x2b\x1d\xf9\x12\x28\x6a\xd9\x2e\x21\xfb\x02\x5d\xc1\x8c\x1f" "\x26\x2f\x73\x3e\xea\xa0\xf1\x7f\x43\x7f\x41\xa2\xea\x81\x6c\xad\x63\xe7" "\x36\xd6\x18\x2b\x96\xda\x94\xb2\x3d\xd8\x61\x30\xa3\x88\xb4\xb0\xb8\x45" "\x54\xeb\x4c\xe8\x51\xce\x56\x10\x04\x9a\xce\x33\xcf\x12\x82\xb2\x1b\x77" "\x17\x33\xba\xad\x90\x30\xde\xe4\x6c\xd6\x20\x9d\xf0\x98\xd0\x4a\x13\x1e" "\xaf\xc8\xb2\xed\x58\xc7\x14\x61\xc5\x0c\xad\xcc\x91\x2a\xb0\xed\xd9\xeb" "\x09\x0d\x36\x66\x1d\xf4\x65\x30\x53\x60\x8b\x61\x56\xd9\x92\x98\xb7\xdf" "\xea\x7f\xe6\x7e\xde\x7d\x04\x0d\xac\x6a\xc6\x6e\x78\x96\x7e\xb3\xc0\x5d" "\xdb\x46\x9c\x90\xbc\x8e\x5a\x8f\x1c\x74\x08\x8c\xaa\x5b\xa9\x8d\xb4\xff" "\xb9\xa8\xac\xa8\xf8\xf0\x1a\x03\x83\xc3\x49\xa5\xdf\xb1\x39\x36\x2a\x5f" "\x66\x5a\xbb\x5f\x5d\x07\xa5\xc5\x9b\x5c\x35\xc7\xcb\x8b\xb5\x3e\x6b\xaa" "\xaa\x42\x35\x2b\x09\xf4\x43\x47\x7d\xfa\x6b\xed\x60\x49\x33\x91\x01\xce" "\xec\xc3\xbd\x1b\x32\x7f\xdf\x2e\xc8\xed\x7d\x1e\x5c\xbd\x02\xd1\x63\x0e" "\x34\xe6\xf2\xc7\x15\x0f\x47\xff\x9a\x97\x4a\x88\xac\x2e\x8f\x94\xfd\xe9" "\x9f\x4c\xad\x15\x54\xca\x0f\x75\x20\xb0\xa5\xaf\x67\x23\x46\xf0\xcc\xa3" "\x49\x15\x3c\x5b\x93\x9a\x32\xb0\x7a\xc7\x89\x09\xbe\xbd\xcc\xdb\xd3\xb1" "\xab\x35\x32\xc6\xd0\x61\xc2\x66\x5e\xe9\xd6\x78\x87\xec\x20\x9d\x1c\xf5" "\x12\x59\x89\x58\x8c\x79\xa1\x8b\x99\xe2\xae\x30\xbf\x3b\xaf\xef\xfd\x6b" "\x2f\xf0\x32\xba\x4b\x6f\x64\xb6\x2a\xbd\xf0\xf5\x3f\xeb\x4b\x7d\x72\x2d" "\xfe\x13\xdd\xdc\x79\xc9\xd6\xf6\x55\xf0\x1d\xb1\xcf\x6d\x92\x05\x73\x32" "\xa9\x6d\x92\x06\x9a\x43\x47\x23\x5a\x08\xb6\xae\x91\x41\x7c\xee\x0f\xe3" "\x7a\x33\x9b\xea\xed\xcf\x50\xb3\xb6\x8c\xf7\xb9\x9d\x22\xb2\x9d\x49\x13" "\x7b\xbc\x7b\xc3\x8a\xd6\xcf\x6e\x20\x0e\x29\xb9\x40\x77\x30\x52\x93\x82" "\x5c\x44\x76\xdc\x17\x63\x4a\x3e\xcb\x1c\x75\xb2\x89\xc8\xe2\x70\xf6\x8c" "\x9d\xcb\x83\x41\x47\x1f\xef\x9a\x1b\x8e\x0d\x19\x1a\x8c\xbe\x61\x92\xb0" "\x73\x8f\x44\x14\x43\x79\xb1\x5d\x2d\xb2\x26\x97\x97\xc0\x9c\x17\x89\xbe" "\x60\xc9\xe5\x2f\x45\x2a\x52\x05\xc6\x67\x82\xc9\x1f\xd2\x57\x3d\x27\xf6" "\x51\x61\xa5\xed\xa0\x8d\xf1\xb0\xe7\xee\x3d\x4e\x8b\x6c\x1a\x9b\x4f\xc8" "\x73\x92\xe1\x6e\x8c\x0d\xba\x18\x84\xad\xc5\x2a\xcc\x7c\xdd\x93\xc8\xf8" "\x3f\xeb\x5d\x44\xca\xb6\x2b\x98\x56\x67\x8e\xaa\xf9\xbb\x82\x82\x52\x30" "\xc4\x4e\xa1\x77\xbb\x62\xab\x36\xfc\xb8\x87\x5b\xed\x5b\x4f\x9a\xd3\xeb" "\xa6\x5a\x75\xfc\x64\x28\xfe\x3a\xbc\xe7\xb4\x2b\x99\x2f\xa4\xdc\x21\x86" "\x69\xe8\x48\xf3\xd0\x75\x53\xe6\xd3\x81\xec\xc3\xe1\xf9\xc9\xac\x36\x50" "\xc1\xd1\x18\x44\xcd\x29\x35\x21\x32\xa0\x7e\x93\x24\xb3\xfb\x70\x16\x69" "\x77\x85\x56\x69\xec\x0c\xfe\x75\xcc\x34\xb8\xe2\x10\x44\xe1\x42\xac\x7d" "\xa5\x64\xb1\xec\xec\xd3\xa9\x85\xc4\xb3\xd0\xbd\xef\xec\x84\xa9\x6c\x13" "\xc9\xa4\x96\xb8\x0c\xfc\x1a\x91\x58\x04\x64\x6f\xd1\x4c\xa5\xe9\x0b\x03" "\x6c\x9f\x24\x7f\x56\x4a\xf7\x5a\xe8\x51\x20\x3c\x86\x40\xec\xfa\x25\xc1" "\x83\x71\x67\xc9\x1b\x97\x7a\x07\xfc\x1b\x88\xde\x3a\x25\x7b\x3b\xb6\x3a" "\x38\x0b\xee\x62\xd7\x30\x0d\xd8\x4a\xa0\x87\xf5\x79\x17\x26\x51\xf2\xdb" "\x55\xf8\xe0\xc6\xef\xcf\x75\x9a\x53\x43\xf5\xe5\x91\x10\x17\x7e\x3f\x7b" "\x94\x8d\xcb\x0d\x33\xab\x9e\xbe\xc1\xd1\xb9\x87\xc5\x5d\x10\xbc\x62\x14" "\xcb\x81\x86\x6d\xd5\xae\x79\x4a\xe8\x9a\x3e\x9c\xee\xf6\xf7\x37\x14\x13" "\x8b\x69\xcc\xf6\x56\x2a\x13\x6b\xbf\xf4\x4e\xaf\x0d\x2b\x85\x87\xdb\x3b" "\x9a\x6d\xbe\xdb\x48\x93\x0b\x95\x41\xe0\xd6\xc2\x12\x39\xec\x2e\xe7\x8b" "\x77\x95\x77\x42\x49\x0c\x65\x1c\xab\xde\xc8\xfe\x87\x73\x1e\xaa\x77\x81" "\x1a\xb3\x1a\x6e\x47\xf2\x1b\xc1\xe6\x00\x0b\x20\xf6\xe9\x11\x8b\xf7\xba" "\xeb\x69\x85\x04\x7f\x93\x7c\x7c\xa4\xe2\x7a\xd1\x6a\x8b\x10\x8e\x0e\x1e" "\x76\x45\xc5\xe1\x81\xbd\xf3\x35\x4c\x7b\x11\xff\x44\xc7\xa9\x60\x0f\x8e" "\x0b\x49\x19\xf2\x4c\xdf\x72\xab\xca\xcb\x50\x9f\xe5\x64\x18\x43\x0b\xb1" "\xa4\x6f\xe4\x04\x4e\x88\x65\x74\xc0\xca\x22\xe1\xa9\xe3\x16\x78\x45\x10" "\x22\x0d\x9e\x62\x87\x44\xe9\xcb\x38\xc9\x80\x55\x70\x93\x5f\x04\x07\xf1" "\x59\x6f\xb9\x96\x5c\x15\x75\x96\x36\x43\xd8\x5a\x7f\x1e\x4f\x64\x1d\x66" "\xc4\xfb\xb8\xd9\x62\x85\x7a\xea\x04\x0d\x0d\x6f\x4e\x32\x4b\xcc\x2c\x15" "\x7e\xfd\x5e\x93\x13\xa4\x10\x69\x72\x8a\xc7\x5a\x84\x02\x28\x14\x01\x14" "\x20\x42\x8f\x0c\x84\xd8\x80\x8c\xf2\x28\x37\x9c\x57\x70\xa1\x0d\xd4\xa2" "\x54\x0e\xe9\xb4\x9c\xf4\xc6\x74\x23\xce\x11\x54\x54\x15\xcb\x3b\x3a\x27" "\x1f\xad\x52\x97\x9d\xfb\x20\x5e\x76\x5b\xbb\xdf\x27\xdb\x68\x71\x37\x3e" "\x57\x04\xae\xa7\xf8\xda\x0f\x71\xb6\xd2\xcd\x51\xa4\xc1\x3e\x51\x40\xc9" "\x01\x8d\x98\xc8\x20\xe5\x72\xdf\x54\xa8\xac\xcb\x9f\x37\x8b\xf7\x68\x32" "\x59\x39\x91\x3e\xfd\xf9\x0b\x69\xde\xbc\x59\xd2\xd4\x19\x5f\x2c\x60\xbe" "\x37\x68\x32\x01\xa1\x57\xbd\xd2\x5f\x36\x5d\x35\xc9\x7e\xb3\xd8\x57\x9d" "\x98\xb1\xd2\x70\x16\x4b\x2f\x4b\x0f\x59\x0f\x6c\xdb\xb9\xbc\xc8\xd0\xda" "\x44\x39\xb6\xcd\xad\x54\x8c\x7a\x79\x76\xb8\x9f\xab\xd6\x4e\xe5\x3f\x65" "\xc3\xba\xc5\x07\x02\xa1\x4d\x39\x3b\xc1\x46\x9d\xb6\xf7\xfa\x5a\x60\x7c" "\x6b\x09\xeb\x61\x57\x98\x2f\xe7\xb7\x0a\x50\xe2\x50\x8b\xc9\xf2\xd6\xe6" "\xed\x98\xf7\xf6\x8e\x8a\x26\x68\x3d\xb2\x77\x6f\x19\x42\x26\x88\xd7\x2c" "\x2d\x3c\x12\x8c\x10\x38\x2a\x81\xc9\x70\x06\x4d\xac\x4f\xdf\xd5\x87\x3c" "\x71\x1b\xdb\x90\x2f\x70\xbb\x72\xc9\x5b\x2d\xb1\x8a\xb3\xd4\x00\x1f\x38" "\xa0\xd5\x9a\x43\xb1\x2f\x50\x02\x90\x95\x13\xdf\x9d\x90\xfe\x1a\xbb\x35" "\x11\x1c\xa5\x78\x47\xf3\x7b\x56\x24\x26\x76\xfd\x2c\xa3\x3b\x7b\xf0\xf8" "\x58\xcc\xfc\x3c\x60\x0a\xf1\x22\x35\xb2\x6f\x48\x8f\x94\xc6\xbb\xde\xe6" "\xd3\xb4\x2f\x1c\xc9\xdb\x75\xd8\x21\x9b\x9a\x2c\x96\xf4\xea\x15\x3d\x3f" "\xa1\x45\x17\xa1\xa5\x36\x9c\x71\xf1\x36\xc2\xa9\xae\x23\x4a\x85\x88\x2d" "\x21\xb6\x63\x54\xd0\x8e\xad\xb2\xf6\x8a\x5e\x93\x23\x41\x59\x6b\x44\xbe" "\xa3\x06\xf1\x1a\x0a\x4a\xc5\xc2\x56\x1c\x25\x40\xd0\x25\x54\x5a\x87\x35" "\xdb\xda\x09\x20\x03\x70\x9e\x8f\x4d\xb4\x0a\x74\x4a\xe9\x9f\x96\x75\x0a" "\x03\x6b\x09\x58\xa5\x21\x20\x24\x77\xb4\xd3\xeb\x94\xaa\xda\x9a\x94\x04" "\x5c\xdc\x70\x86\x1a\x8d\x8f\xc0\x8e\x79\xa9\x60\x02\x2f\x34\x23\x18\x97" "\xf1\xa4\x81\x6e\x99\x8d\x05\x89\x14\x6c\xe4\xb2\x42\x60\x50\xd1\x66\x42" "\x4d\x7c\x3d\x52\x09\xf7\x81\x4d\x82\x41\x72\xae\xc4\x3c\x4b\xd6\x8f\x49" "\x85\x53\x63\x91\x7a\x71\xc7\xf9\x16\x36\xf7\x4b\xd0\xee\xb4\xdf\x24\xa8" "\x46\xcb\x62\x7a\xb8\x24\x8b\x54\x00\xd3\xe2\xd8\xfe\x12\x97\xc6\x42\x2c" "\xb5\xfa\xe7\x3b\xe6\x2c\x30\x15\xd4\xd4\xb5\xd4\x0d\xd1\x20\x6e\xb7\x22" "\x88\x84\xac\x60\x9f\xbd\x25\x5b\x12\x67\x7a\xd5\xa5\x35\xec\x3b\xf2\x85" "\x5e\xa4\x00\x4a\xe6\x25\xce\xb7\x87\xda\x5a\x2b\x17\xcf\x6d\xe6\x3a\x98" "\x90\x65\x8e\x8f\x0f\xd4\x97\xe0\x29\x41\x87\x52\x19\x33\x44\x48\x6d\x28" "\x40\x59\xd1\xd7\xc1\x3c\x8b\x17\x0d\xc1\xa5\x4d\xb0\x19\x2a\xf5\x87\xfd" "\xb9\x4d\xa9\x13\xcf\xde\xfb\x29\x39\xc5\x86\xf3\x4a\xe3\xec\x3d\x2f\xce" "\x5d\x08\xba\x13\xde\x9b\xf0\x27\xff\x4f\xbf\xcb\x2c\xb2\xa2\x0d\xf6\xf5" "\x60\x0a\x33\xc7\xd5\x02\x6e\x5e\x60\x91\xfe\x90\x44\x45\xee\x23\xbc\xf1" "\x56\xa7\x94\x51\x36\xc4\x00\x2a\x4b\x06\x00\x85\xf3\x61\x78\xf8\x90\x97" "\x70\x84\x7b\xba\x3e\xd7\xaa\x4a\xe3\x5e\x76\xb7\x7d\xd4\x78\x2d\x73\xfa" "\x7f\x07\xe4\xb1\x85\x1d\x51\xba\xc5\x1b\xb8\xf6\xab\x02\x9a\x93\x6e\x32" "\x1c\x24\x01\xd0\x61\xdb\x41\x6d\xa7\x65\xb6\x75\x2b\x1c\x1b\x75\x62\xf2" "\x29\x23\x15\xac\xb3\x9b\x87\xd3\x76\x34\x26\xda\xdf\x0b\x60\x97\xad\x62" "\x21\xbe\x95\x94\xad\x73\xfe\x56\x2b\x84\xc2\xe7\x11\x3c\x85\x87\xbb\x62" "\x34\xb0\x23\xbf\x42\x1b\x19\x64\xfb\xda\x39\x3f\x38\xa5\x93\xc3\x1a\x99" "\x67\x90\x65\xf0\xbb\x2e\xd8\x9d\x23\x2b\x70\x35\x50\x21\xde\xf8\x32\x77" "\x06\xe7\x0a\x3f\x8e\xfc\x42\xf0\x48\xef\x4d\xe9\x4e\x67\x6e\x9d\x2c\x7b" "\xc6\x18\xee\x9b\x57\x78\xb9\x00\x68\xf4\x40\x5f\x07\x87\x68\x2a\x5b\x7d" "\x1e\x64\x1a\x5a\xd5\x95\xdd\xbc\x24\x76\xb6\xb1\x7e\xf8\x6d\xf5\xc4\x74" "\xb8\x29\x9a\x0a\xb5\xfe\x88\x4b\xef\x5f\x17\x2c\xf9\x45\x22\x4b\x5d\xdc" "\x24\xd7\x00\x4a\xe2\xbc\xf2\x6d\x6e\xfa\x44\xf4\xfa\x98\x10\xf0\x5c\x34" "\x30\xaa\x25\x81\x2e\x31\x11\x0a\x3e\x2c\xa2\xef\x48\x18\x97\x29\xef\x03" "\x17\xe7\x18\x95\xbd\xa2\x10\x65\x96\x35\x1a\x3f\x77\xd1\x45\x73\x61\xb7" "\xfe\x32\xca\x77\x42\x2e\x7e\xcc\xb8\xea\x3f\x89\x46\xa2\xca\x0a\x03\x1e" "\x2f\x2d\x08\x62\xbb\x3e\x64\xec\xfa\xf4\xcf\x6b\x8c\x97\x6d\xe1\x28\x48" "\xbb\x21\xac\x75\x92\x42\x45\xa9\x5e\xab\x25\x09\xda\x5c\xfd\x9c\x1d\xa5" "\xde\x34\xf4\x73\x41\x26\x11\x32\x00\x96\xc8\x2e\x9a\x92\x4f\x34\x3c\x1e" "\xe6\x00\x82\x77\xd8\x20\x20\xfd\x84\x26\x69\xeb\x3e\x29\x45\xe9\x63\x06" "\xb9\xcd\x86\x98\x72\x68\x7f\x42\x1d\xd8\xf0\xc0\x89\x1f\xc4\x81\xc2\xa0" "\x15\x4b\x23\xc2\x29\xcc\x20\x44\x4b\x4d\x87\x13\x72\x2b\xe4\xb9\x14\x2c" "\x51\x1f\x23\x7c\xfd\x49\xa3\xfe\x8e\x29\x6f\x8a\x6d\xbd\xb2\x8e\x73\xe8" "\xf0\xb4\xc4\x89\x28\x7c\xee\x53\x38\x8d\xc6\xd8\x39\xd2\x3d\xb1\xf9\xe9" "\x0f\xf4\x75\xdd\x4e\xe5\xe7\x28\x66\x6e\xdf\x8c\x9d\x87\x2a\x69\x02\x20" "\x4e\xe7\xd1\x1e\x37\xfc\x32\xd4\xa7\x74\x82\x67\xa2\x6b\xab\x65\x33\x54" "\x21\xf5\x89\x8d\xfd\x50\xdf\xc2\xd0\xa9\xb9\xa7\x82\x9f\xb1\xa5\xa6\xc2" "\x08\x83\x37\x36\x3f\x7a\x20\x88\xf2\xdf\xa9\x61\x7f\xa2\x99\xfb\xe2\xf6" "\x16\x2a\xeb\xb7\x84\x7f\xad\x46\x01\x7f\xf0\x78\xc5\x33\x54\xd7\xa8\xa7" "\xfe\x86\xe4\x40\x29\x9f\xe7\xd7\xd6\x54\xad\x04\x5d\x5b\x98\x49\xa9\x06" "\xb0\xec\xce\x0c\xf4\x6f\xc4\xf3\x48\xa9\xc2\x40\xe8\xf9\xd7\xef\xb6\x99" "\xe9\xff\x48\x68\xf2\x8f\x56\x05\x21\x50\x29\x29\xc3\x2d\x74\x47\xab\x4b" "\x7c\x19\x6f\xbb\x70\x6c\x41\xbe\xf4\xe8\xb6\x55\xa1\x85\x14\x0d\x24\xd3" "\x9f\x8c\x04\x3f\xc5\xf3\x04\x85\x6c\xff\x55\xbd\x88\x1e\xd5\x2f\xe3\x85" "\xf9\x3d\x48\x32\x06\x83\xfc\xcc\x82\x99\xf5\x14\xbd\xda\x70\xba\xe3\x83" "\xc0\x0e\x51\x9c\x2b\xfc\x4f\xf0\x3d\xf7\x6f\x91\xd2\x70\xc8\x6d\xd0\x49" "\x9f\x14\x5a\xda\x66\xdc\xb9\xd4\xcf\xba\xd8\xb9\x7f\xa4\x38\x73\xfb\x46" "\x95\x55\x9a\xf8\x85\xda\xf1\x28\x66\xbe\x73\xf0\x1c\x98\xad\x83\x6a\x65" "\x2a\xfb\xbb\x66\xe8\xea\x63\x08\x88\x4f\xea\xe5\xef\xe7\x96\xce\x67\xea" "\x24\xf8\x3f\x3a\x79\x38\xc5\x5f\x21\x6d\xaf\x22\xd0\x13\x3c\xc0\x47\x6d" "\x85\x1b\x84\x49\xc1\x0b\x5e\x6f\xa1\xc5\x98\xc1\x0d\xe9\xf7\x08\x5c\x66" "\x93\x0c\xf2\x45\x20\xfa\xc2\x4e\x71\xbe\xbb\x03\x20\xc0\x8e\x8c\xdf\x3f" "\xa2\xe8\xb2\x51\x72\x85\x20\x8d\xe2\x8e\x25\x1f\x5b\x6f\x79\x6d\x3e\xf0" "\x74\x9b\xf6\x7e\x1f\x2c\x17\x8b\x07\x15\x70\x5d\xfc\x0f\xdd\xdf\x8d\x2a" "\x6c\x85\x63\x23\xfd\x9a\xf1\xa7\x98\x55\xcc\x9a\xc9\x66\x2d\xf8\x66\x4d" "\x48\x32\x52\xa0\x4c\xe6\x39\xee\xb4\xe7\x3e\xa6\x85\xe6\x17\xe8\x44\xb9" "\xac\xa9\x07\x58\xf9\x8c\x5c\xed\x27\x66\xf6\x7e\x84\x5a\xd3\xe8\xaf\xa3" "\x79\xbc\x56\xbb\x45\x12\xaa\xb9\x85\xd8\xe8\xe3\xeb\xcd\x3c\xb9\x1a\xd2" "\xaf\x34\x39\x36\xc1\x1e\x7e\x3d\xc5\x49\xf9\xcd\xb7\x54\xef\x52\x96\x17" "\x5e\x62\x52\xb2\x27\x88\xbb\x4c\x25\xc7\xd7\x85\xb8\x25\x41\xc6\x3c\x2b" "\xf8\x47\x70\xba\x03\x20\x08\xb7\x94\xbd\xd1\x66\x40\x2b\xb2\x7f\xe6\x5a" "\xaf\x15\xf2\xfe\xbf\x80\xe3\x40\x38\xb7\x71\xed\x5f\xb7\xed\x74\x17\x79" "\x9a\x0d\x78\x95\xec\x62\x26\x20\x6c\x41\x5d\xa2\xdc\x59\xf0\x9e\x10\x86" "\xa3\x8b\x62\xae\x21\x25\x52\x27\x14\xa8\xf1\xec\x56\xa4\xb3\x76\x80\x09" "\x37\xe6\x2c\x42\xd0\x30\xfb\x02\x57\x89\xe1\xe3\x0d\xc5\x6d\xf4\xd6\x65" "\x8d\x67\xb1\xd0\x69\x0b\x5d\x33\x36\x43\x29\xb6\xf2\xe9\xe1\x31\x66\xf5" "\x52\x00\x64\x22\x36\x61\xd0\x8e\xb7\x74\xdd\xe4\xa6\xab\xb7\xe5\x49\xb7" "\x08\xce\x92\xdb\x76\x78\x29\xab\x58\x5d\x3f\xdc\x77\x35\x13\xd1\x4d\xc8" "\x53\x26\x18\xda\x09\xd6\x0a\xbc\xb3\x41\xf5\x09\x36\xbf\x45\xce\x2d\x14" "\xdc\xc0\xff\x14\xf9\xe5\x8a\xa0\x06\x9c\x0d\xcb\xa9\xee\x8f\x53\xf3\x2b" "\x49\x45\x0f\x18\xdb\x0c\x47\xce\x85\xea\x93\x5b\xaa\x47\x29\xbd\x1d\x57" "\x63\x64\x42\x9e\x88\xb0\xb9\x79\x2f\xf6\xe8\x09\x5c\x0c\xa8\x70\x12\x57" "\x68\x5c\xe9\x7a\x3b\x47\x34\x0b\x45\xff\x90\x2d\x7f\xe6\x6a\xd0\x0e\x65" "\x59\x02\xa9\x85\x89\xe6\x3a\x1f\x79\x16\x86\x6f\x50\xa9\xba\x86\x60\xe4" "\xc1\x5b\x0a\xa6\x0b\x14\xf2\x10\x81\x92\x3c\xdc\x61\xc0\x85\x01\x8d\x34" "\x55\x92\x30\x1a\x98\x9a\xe3\xc6\x4e\x7c\xff\x3f\x09\x4e\x7f\xaf\xe7\x23" "\xeb\x27\x19\xa4\xfd\xa9\x53\x60\x05\xf8\x4e\x5c\x8a\x10\x79\x63\xf6\xb2" "\x68\x1c\xff\x06\x0d\xcd\x53\x74\x81\xfb\x4f\x50\xc7\x56\xdf\x25\x8b\xf7" "\x21\x0c\x52\x25\x25\x58\xc3\xdf\x00\xc2\xe1\xf8\x2c\xb1\xfa\xa7\x40\xde" "\x72\xd0\xf9\x74\xde\x9c\xd4\xa2\xa1\xc3\x70\x27\xd3\x81\xf8\x68\x9f\xd4" "\xd0\x8f\x3a\x5c\x22\x8a\x89\xe9\xb0\x96\xa7\x31\x89\xbe\x0c\x8c\xe2\x66" "\x0b\x57\x1d\xb8\xbe\xd8\x12\x52\xfa\x7d\x11\x22\xda\x07\xdf\x62\x12\xa0" "\xd0\xad\xbf\x91\x1d\x7d\xc1\x66\x60\xbf\x7a\xbf\x47\x64\xd4\xb7\x70\x8d" "\x09\x12\x28\x74\x93\xc8\xfd\xda\xea\x46\x7c\xfa\xae\x7a\x24\xba\x09\x07" "\xd9\x8c\x84\x7e\x86\x97\xd5\x07\xcf\x82\xa8\x62\x03\xa1\xd8\x9c\x34\xb0" "\x4d\xb5\x79\xba\x03\xcb\x1c\xfb\xcd\xd6\x5a\x65\x2a\x36\x43\x5c\x98\x9b" "\x42\x3d\xe5\x45\xf3\x68\xbd\xe4\x1f\x33\xe7\x6e\xe6\x5c\xa5\x53\x8b\xc8" "\x9c\x29\xe3\x6f\x72\x5a\xd8\x38\x56\x11\xeb\xd3\x2a\xfd\xb2\xe2\x09\x67" "\x6a\xff\x0d\xf1\x57\x76\x20\x52\x4c\x68\x18\xe0\x64\xce\xa1\xa3\x49\x06" "\x6c\x9a\xd2\x76\x43\x49\x4c\x91\xfb\x0a\xf9\xc5\x4c\xe8\x85\x68\x19\x7e" "\x8d\xea\x21\x7d\xf8\x27\x98\x1c\xf4\xb6\xaf\xfd\x20\x78\xfc\x5f\x09\xc5" "\xc2\x92\xdc\x70\x00\x01\x88\xe9\x77\x90\x1a\x20\xca\xfe\x90\xc3\x46\x3a" "\x82\x74\xf0\x2e\x65\xf8\xd3\xc4\x22\x42\xc6\x18\x13\xad\xb2\x1a\x08\x07" "\xad\x47\x43\x47\xd4\x29\xaa\xdd\x7d\x05\xa6\x3c\xed\xd9\x3f\x9c\x6c\xfd" "\xc7\x49\x96\x06\x8d\xcb\xda\x1e\xc8\x86\x21\x87\x1e\x1f\x3d\xc6\x7f\xb7" "\xe8\x83\x15\x09\x46\xab\x49\x81\x41\x77\x5e\xc7\x10\x41\x3f\x01\x54\xf8" "\xef\x08\x87\x77\x99\x7a\x5b\x9b\x31\x03\xf0\x0a\x04\xb4\xad\x3c\xb5\x01" "\x88\x64\xc7\xe4\x56\xb1\x7d\x73\x22\x74\xdc\xe1\xc9\xb1\xa5\x74\xa7\xa4" "\xe8\x6b\x8f\x60\x9c\x0a\x58\xa0\x8e\x6a\xcf\xc0\xac\x09\x61\x60\x4a\x8d" "\xc6\x66\x3b\x0f\xcf\xae\x34\x78\x81\xb7\x38\x35\x77\xfb\x62\x67\xc3\x0e" "\xfe\x04\x3e\x05\x2a\x56\x9e\xaa\x76\xd4\xe0\x16\x8d\x63\x33\xbd\x11\xb9" "\xd5\xc1\x47\x9a\x9b\x24\x21\x6b\x9d\xd1\xb5\x6d\xfc\x3a\x94\xff\x37\xae" "\x2a\x95\x84\x4f\x6b\xd8\x78\xa8\x19\x1d\x07\x84\x26\xc7\x93\x29\x11\xac" "\xc8\x94\x07\x70\x9c\x1a\xbd\x01\x65\xb0\xa5\x3f\x93\x61\x25\x74\xe7\x7d" "\xaf\x90\xd4\xf1\x85\x66\xd1\xed\x90\x76\x4f\x19\x61\x5c\x2a\x8e\x86\x0d" "\x18\xd2\xf7\xbd\xe0\x0a\x86\x55\x33\x41\x8d\x07\x0e\x17\x5a\x09\xf2\x37" "\xa6\x3d\xd0\x07\x91\x6d\x9e\x80\xe8\xf2\xb9\x85\xf6\x73\x22\x74\x84\x1a" "\xaa\x81\x5a\xfc\x8a\x76\x9d\xb6\xa1\x8d\x4a\x83\x26\x87\x73\x1e\x54\xbe" "\x2f\xfb\x18\x2f\xd9\x80\x23\x35\xea\x2f\xde\x0a\x39\xfc\xcf\x1e\xf3\xd8" "\x37\x4f\xc4\x16\xc5\x95\x46\x97\x19\x5a\xcd\xaf\xa9\x0d\xaf\x37\xc4\x3b" "\x6f\xd2\x18\xee\x7b\x63\x65\xd1\xbc\xc3\xe5\x37\x2a\xc6\xe3\x0f\x47\x4c" "\xcf\xa7\x6c\x70\x04\xd7\xc8\x60\xd1\x3b\xc1\xbd\xfa\x12\x17\x56\xd9\xd3" "\x94\x78\xe1\x88\x27\xa8\xdc\x82\x63\x77\x1a\x62\x52\x4e\xb2\xc3\x26\x83" "\x11\x7b\x47\x89\x2f\xff\x88\x70\x8b\x50\x08\x2d\x3f\x9f\x50\xe6\x66\x84" "\xea\xd4\x77\x76\xfd\xe2\x41\x59\x6c\x40\x05\x63\x1e\x43\x8d\x95\xb3\x21" "\x3f\xd6\x60\xf8\x82\x4f\x27\x04\x5d\x7e\x0c\x89\x74\xb0\xc4\x4d\xf4\x50" "\x3b\xd2\x20\x36\x81\xc1\x59\xe3\x89\xf5\x23\x0d\x5e\xbf\x80\x25\xae\x27" "\xc8\x34\x89\x15\xdc\x01\x4a\x1a\x53\x9d", 4096); *(uint32_t*)0x20001bb4 = -1; memcpy( (void*)0x20001bc0, "\x78\x9c\xec\x98\x31\x6f\xda\x50\x14\x85\xcf\xb3\x8d\x2d\x57\x95\xe8\xda" "\x2e\xad\x54\x24\xe8\x50\x63\x9b\xb6\x2a\x43\x07\xd4\xb1\x43\x2b\xb5\x6a" "\xd5\x0d\x54\x5c\x44\x6b\x4a\x05\x1e\x80\xa9\xfd\x03\x5d\x3b\x77\xee\x90" "\x19\x65\xe1\x7f\x24\x43\x92\x29\x43\x92\x2d\x53\xa4\x38\x7a\xf6\x33\x7e" "\x21\x38\x11\x02\x21\xa4\xdc\x6f\xb8\x3e\xf6\xbb\x3c\x1f\x5f\xe0\x20\x01" "\x82\x20\x6e\x2d\x07\xfb\xa7\x7b\x5b\xc5\x82\xc9\xf5\x5d\x14\x60\x88\xeb" "\x87\x6a\xda\xa3\x48\xfd\xe3\xfc\xd9\x93\x9d\xf6\xdb\xed\xbf\xf6\xc9\xee" "\x78\xf2\xa6\x3a\xb3\x9d\xbe\xe8\xfd\x35\x00\x93\x9a\x8a\x40\x9c\x87\x61" "\x18\xca\xeb\x05\x71\xfc\x00\x25\xd1\x39\xd4\xd3\xf5\x4f\x60\xb0\x84\xae" "\x43\xc1\x47\xa1\x3d\x30\x7c\x16\xfa\x9b\xa4\xbb\xbc\xdf\xb2\xbe\xb6\x7d" "\xcf\xfa\xd2\xf5\x9b\x5c\xd8\xbc\x38\xbc\xb8\xbc\x54\x66\xfd\x1d\xff\x66" "\x68\x4a\xfe\x98\xb4\xde\x1f\x8e\xbe\x37\x7c\xdf\xeb\x2d\x2f\x5e\x73\xdb" "\xf3\x96\xb2\x66\x67\x24\xfe\x6a\x0a\x5e\x49\xfe\xe4\xf7\x2b\x99\x8d\x9d" "\xce\x0f\x0e\x14\x38\x42\x57\xc0\xf0\x5e\xe8\x97\x30\x92\xd9\xc4\x23\x91" "\x9e\xff\x81\x96\xee\xaf\x2e\xf9\xfc\x7c\x7e\x2b\x9b\xda\xc6\x8b\xfb\xf9" "\x1b\x7a\x72\xd8\x14\xab\x1b\x2b\xcc\x34\x59\xd6\x79\x77\xf1\x45\xff\xb5" "\xd0\xab\x18\xb8\x38\x32\xd7\x6b\x75\x55\xe2\xbf\x09\xac\x66\xc3\x34\x3f" "\xc3\x7f\x0c\x45\x29\x9f\x34\x29\x3f\xca\x41\xe7\x67\xb9\x3f\x1c\x3d\x6d" "\x77\x1a\x2d\xaf\xe5\xfd\x70\xdd\xca\x0b\xfb\x99\x6d\x3f\x77\xcb\x51\x10" "\xc5\x35\x2b\x02\xa1\xc1\x8c\xf2\xe9\xce\x74\x7f\x35\xcc\x65\xf4\xea\x4c" "\xc7\xa0\x11\x04\x3d\x27\xae\xd3\x73\x77\x60\x20\xe8\xb9\xf3\x12\x57\x8f" "\xf2\x4f\x41\xe9\x71\xec\x9a\xcd\xf9\x91\x8b\x3e\x26\xf7\xd8\x23\x7e\x28" "\xa9\xc0\x79\x18\x93\x61\xe3\x4f\xe6\xc3\x10\x04\x41\x10\x04\x41\x10\x04" "\x41\x10\x04\x41\x10\x04\x41\x5c\xcb\x43\x33\xfe\x97\xf5\x12\xd5\x2b\x97" "\xdc\x77\x51\xf7\x45\x00\x00\x00\xff\xff\x60\xba\x6b\x6c", 446); syz_mount_image( /*fs=*/0x20000200, /*dir=*/0x20000240, /*flags=MS_LAZYTIME|MS_I_VERSION|MS_SYNCHRONOUS|MS_RDONLY|MS_DIRSYNC*/ 0x2800091, /*opts=*/0x20000b00, /*chdir=*/0x55, /*size=*/0x1be, /*img=*/0x20001bc0); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 32 00} (length 0x8) // } // flags: open_flags = 0x80000 (4 bytes) // mode: open_mode = 0x82 (2 bytes) // ] // returns fd memcpy((void*)0x20001d80, "./file2\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20001d80ul, /*flags=O_CLOEXEC*/ 0x80000, /*mode=S_IWOTH|S_IWUSR*/ 0x82); if (res != -1) r[0] = res; // read$FUSE arguments: [ // fd: fd_fuse (resource) // buf: ptr[out, fuse_in[read_buffer]] { // fuse_in[read_buffer] { // len: len = 0x2020 (4 bytes) // opcode: int32 = 0x0 (4 bytes) // unique: fuse_unique (resource) // uid: uid (resource) // gid: gid (resource) // pid: pid (resource) // padding: int32 = 0x0 (4 bytes) // payload: buffer: (DirOut) // } // } // len: bytesize = 0x2020 (8 bytes) // ] syscall(__NR_read, /*fd=*/r[0], /*buf=*/0x20001dc0ul, /*len=*/0x2020ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*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=*/0x21000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; if ((reason = setup_usb())) printf("the reproducer may not work as expected: USB injection setup " "failed: %s\n", reason); if ((reason = setup_swap())) printf("the reproducer may not work as expected: swap setup failed: %s\n", reason); do_sandbox_none(); return 0; }