// https://syzkaller.appspot.com/bug?id=f34aaaca22b6590b45be3c10114cf04f402cfdc0 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[4096]; }; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; if (size > 0) memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; if (size > 0) memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static void netlink_nest(struct nlmsg* nlmsg, int typ) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_type = typ; nlmsg->pos += sizeof(*attr); nlmsg->nested[nlmsg->nesting++] = attr; } static void netlink_done(struct nlmsg* nlmsg) { struct nlattr* attr = nlmsg->nested[--nlmsg->nesting]; attr->nla_len = nlmsg->pos - (char*)attr; } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len, bool dofail) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; ssize_t n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != (ssize_t)hdr->nlmsg_len) { if (dofail) exit(1); return -1; } n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (n < 0) { if (dofail) exit(1); return -1; } if (n < (ssize_t)sizeof(struct nlmsghdr)) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < (ssize_t)(sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr))) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type != NLMSG_ERROR) { errno = EINVAL; if (dofail) exit(1); return -1; } errno = -((struct nlmsgerr*)(hdr + 1))->error; return -errno; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL, true); } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name, bool dofail) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, family_name, strnlen(family_name, GENL_NAMSIZ - 1) + 1); int n = 0; int err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n, dofail); if (err < 0) { return -1; } uint16_t id = 0; struct nlattr* attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { errno = EINVAL; return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); return id; } static unsigned int queue_count = 2; static void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name, bool up) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; netlink_init(nlmsg, RTM_NEWLINK, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); if (name) netlink_attr(nlmsg, IFLA_IFNAME, name, strlen(name)); netlink_attr(nlmsg, IFLA_NUM_TX_QUEUES, &queue_count, sizeof(queue_count)); netlink_attr(nlmsg, IFLA_NUM_RX_QUEUES, &queue_count, sizeof(queue_count)); netlink_nest(nlmsg, IFLA_LINKINFO); netlink_attr(nlmsg, IFLA_INFO_KIND, type, strlen(type)); } static void netlink_device_change(struct nlmsg* nlmsg, int sock, const char* name, bool up, const char* master, const void* mac, int macsize, const char* new_name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; hdr.ifi_index = if_nametoindex(name); netlink_init(nlmsg, RTM_NEWLINK, 0, &hdr, sizeof(hdr)); if (new_name) netlink_attr(nlmsg, IFLA_IFNAME, new_name, strlen(new_name)); if (master) { int ifindex = if_nametoindex(master); netlink_attr(nlmsg, IFLA_MASTER, &ifindex, sizeof(ifindex)); } if (macsize) netlink_attr(nlmsg, IFLA_ADDRESS, mac, macsize); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static struct nlmsg nlmsg; //% 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_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); 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) { 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; } #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 reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDONLY); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } 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"}, {"/sys/kernel/debug/failslab/task-filter", "Y"}, {"/sys/kernel/debug/fail_page_alloc/task-filter", "Y"}, {"/sys/kernel/debug/fail_futex/task-filter", "Y"}, {"/sys/kernel/debug/fail_usercopy/task-filter", "Y"}, {"/sys/kernel/debug/fail_make_request/task-filter", "Y"}, {"/sys/kernel/debug/fail_io_timeout/task-filter", "Y"}, {"/sys/kernel/debug/fail_iommufd/task-filter", "Y"}, {"/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) ; } #define NL802154_CMD_SET_SHORT_ADDR 11 #define NL802154_ATTR_IFINDEX 3 #define NL802154_ATTR_SHORT_ADDR 10 static const char* setup_802154() { const char* error = NULL; int sock_generic = -1; int sock_route = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock_route == -1) { error = "socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) failed"; goto fail; } sock_generic = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock_generic == -1) { error = "socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) failed"; goto fail; } { int nl802154_family_id = netlink_query_family_id(&nlmsg, sock_generic, "nl802154", true); if (nl802154_family_id < 0) { error = "netlink_query_family_id failed"; goto fail; } for (int i = 0; i < 2; i++) { char devname[] = "wpan0"; devname[strlen(devname) - 1] += i; uint64_t hwaddr = 0xaaaaaaaaaaaa0002 + (i << 8); uint16_t shortaddr = 0xaaa0 + i; int ifindex = if_nametoindex(devname); struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL802154_CMD_SET_SHORT_ADDR; netlink_init(&nlmsg, nl802154_family_id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, NL802154_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(&nlmsg, NL802154_ATTR_SHORT_ADDR, &shortaddr, sizeof(shortaddr)); if (netlink_send(&nlmsg, sock_generic) < 0) { error = "NL802154_CMD_SET_SHORT_ADDR failed"; goto fail; } netlink_device_change(&nlmsg, sock_route, devname, true, 0, &hwaddr, sizeof(hwaddr), 0); if (i == 0) { netlink_add_device_impl(&nlmsg, "lowpan", "lowpan0", false); netlink_done(&nlmsg); netlink_attr(&nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); if (netlink_send(&nlmsg, sock_route) < 0) { error = "netlink: adding device lowpan0 type lowpan link wpan0"; goto fail; } } } } fail: close(sock_route); close(sock_generic); return error; } 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 < 5; 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); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); 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[1] = {0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: // syz_mount_image$exfat arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 66 61 74 00} (length 0x6) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: mount_flags = 0x200880 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x150d (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x150d) // } // ] // returns fd_dir memcpy((void*)0x2000000000c0, "exfat\000", 6); memcpy((void*)0x200000000380, "./bus\000", 6); memcpy( (void*)0x2000000003c0, "\x78\x9c\xec\xdc\x0b\x98\x4e\x55\xdb\x38\xf0\xfb\x5e\x6b\xed\x31\x34" "\xe9\x49\x72\x18\xd6\x5a\xf7\xe6\x49\x0e\xcb\x24\x49\x0e\x49\x72\x48" "\x92\x24\x49\x72\x4a\x08\x4d\xf2\x4a\x42\x62\xc8\x29\x69\x48\x42\x72" "\x18\x92\xc3\x10\x92\xc3\x84\x34\xce\xe7\xf3\x31\x49\x92\x26\x49\x42" "\x72\x0a\xeb\x7f\x4d\xf1\xaa\xaf\xfa\xfa\xde\xef\xeb\xff\xfa\xae\x6f" "\xee\xdf\x75\xed\xcb\xbe\x9f\xb5\xef\xb5\xd7\x7e\xee\xfd\xd8\x6b\xef" "\x99\x67\xbe\xed\x3c\xa4\x7a\xc3\x1a\x55\xea\x13\x11\xfc\x8f\xe0\x2f" "\xff\x24\x01\x40\x2c\x00\x0c\x00\x80\xeb\x00\x20\x00\x80\x32\xb9\xca" "\xe4\xca\x6c\xcf\x2e\x31\xe9\x7f\xb6\x13\xf6\xf7\x7a\x24\xf5\x6a\x8f" "\x80\x5d\x4d\x5c\xff\xac\x8d\xeb\x9f\xb5\x71\xfd\xb3\x36\xae\x7f\xd6" "\xc6\xf5\xcf\xda\xb8\xfe\x59\x1b\xd7\x3f\x6b\xe3\xfa\x33\x96\x95\x6d" "\x9e\x96\xff\x7a\x5e\xb2\xee\xc2\xcf\xff\xb3\x32\xbe\xfe\xff\x1f\x92" "\x51\x72\xcc\x97\x6b\x4b\xde\xd8\xe5\x5f\x48\xe1\xfa\x67\x6d\x5c\xff" "\xff\xb3\x82\xff\xca\x46\x5c\xff\xac\x8d\xeb\x9f\xb5\x71\xfd\xb3\x36" "\xae\x7f\x56\x90\xed\x4f\x5b\xb8\xfe\x59\x1b\xd7\x9f\xb1\xac\xec\x6a" "\x3f\x7f\xe6\xe5\xea\x2e\x57\xfb\xfc\x63\x8c\x31\xc6\x18\x63\x8c\x31" "\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18" "\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c" "\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6" "\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63" "\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31" "\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18" "\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c" "\x31\x96\x35\x9c\xf1\x57\x28\x00\xb8\xbc\x7e\xb5\xc7\xc5\x18\x63\x8c" "\x31\xc6\x18\x63\x8c\xb1\xbf\x8f\xcf\x76\xb5\x47\xc0\x18\x63\x8c\x31" "\xc6\x18\x63\x8c\xb1\xff\xff\x10\x04\x48\x50\x10\x40\x0c\x64\x83\x58" "\xc8\x0e\x39\x40\x00\xc0\xb5\x90\x13\xae\x83\x08\x5c\x0f\xb9\xe0\x06" "\xc8\x0d\x37\x42\x1e\xc8\x0b\xf9\x20\x3f\xc4\x43\x01\x28\x08\x1a\x0c" "\x58\x20\x08\xa1\x10\x14\x86\x28\xdc\x04\x45\xe0\x66\x28\x0a\xc5\xa0" "\x38\x94\x00\x07\x25\x21\x01\x6e\x81\x52\x70\x2b\x94\x86\xdb\xa0\x0c" "\xdc\x0e\x65\xe1\x0e\x28\x07\xe5\xa1\x02\x54\x84\x3b\xa1\x12\xdc\x05" "\x95\xe1\x6e\xa8\x02\xf7\x40\x55\xa8\x06\xd5\xa1\x06\xdc\x0b\x35\xe1" "\x3e\xa8\x05\xf7\x43\x6d\x78\x00\xea\xc0\x83\x50\x17\x1e\x82\x7a\xf0" "\x30\xd4\x87\x47\xa0\x01\x3c\x0a\x0d\xe1\x31\x68\x04\x8f\x43\x63\x68" "\x02\x4d\xa1\x19\x34\xff\x6f\xe5\xbf\x08\xdd\xe1\x25\xe8\x01\x3d\x21" "\x09\x7a\x41\x6f\x78\x19\xfa\x40\x5f\xe8\x07\xfd\x61\x00\xbc\x02\x03" "\xe1\x55\x18\x04\xaf\x41\x32\x0c\x86\x21\xf0\x3a\x0c\x85\x37\x60\x18" "\xbc\x09\xc3\x61\x04\x8c\x84\xb7\x60\x14\xbc\x0d\xa3\x61\x0c\x8c\x85" "\x71\x90\x02\xe3\x61\x02\xbc\x03\x13\xe1\x5d\x98\x04\x93\x61\x0a\x4c" "\x85\x54\x98\x06\xd3\xe1\x3d\x98\x01\x33\x61\x16\xbc\x0f\xb3\xe1\x03" "\x98\x03\x73\x61\x1e\xcc\x87\x34\xf8\x10\x16\xc0\x42\x58\x04\x1f\xc1" "\x62\xf8\x18\xd2\x61\x09\x2c\x85\x65\xb0\x1c\x56\xc0\x4a\x58\x05\xab" "\x61\x0d\xac\x85\x75\xb0\x1e\x36\xc0\x46\xd8\x04\x9b\x61\x0b\x6c\x85" "\x6d\xb0\x1d\x76\xc0\x4e\xd8\x05\xbb\xe1\x13\xd8\x03\x9f\xc2\x5e\xf8" "\x0c\xf6\xc1\xe7\xff\x62\xfe\xe9\xcc\xfc\xec\x57\xf2\xbb\x20\x20\xa0" "\x40\x81\x0a\x15\xc6\x60\x0c\xc6\x62\x2c\xe6\xc0\x1c\x18\x87\x71\x98" "\x13\x73\xc6\x5e\x3e\x49\x72\x63\x6e\xcc\x83\x79\x30\x1f\xe6\xc3\x78" "\x8c\xc7\x0b\xbe\x20\x1a\x34\x48\x48\x58\x08\x0b\x61\x14\xa3\x58\x04" "\x8b\x60\x51\x2c\x8a\xc5\xb1\x38\x3a\x74\x98\x80\x09\x58\x0a\x6f\xc5" "\xd2\x58\x1a\xcb\x60\x19\x2c\x8b\x65\xb1\x1c\x96\xc7\xf2\x58\x11\x2b" "\x62\x25\xac\x84\x95\xb1\x32\x56\xc1\x2a\x58\x15\xab\x62\x75\xac\x8e" "\xf7\xe2\xbd\xd8\x0b\x6b\x61\x2d\xac\x8d\xb5\xb1\x0e\xd6\xb9\xfc\x78" "\x0a\xeb\x63\x7d\x6c\x80\x0d\xb0\x21\x36\xc4\x46\xd8\x08\x1b\x63\x63" "\x6c\x8a\x4d\xb1\x39\x36\x17\x97\xc7\xd8\x1a\x5b\x63\x1b\x6c\x83\xed" "\xb0\x1d\x26\x62\x22\xb6\xc7\xf6\xd8\x01\x3b\x60\x47\xec\x88\x9d\xb0" "\x13\x76\xc6\xce\xd8\x05\xbb\x62\x57\x7c\x31\x1b\xe0\x4b\xf8\x12\xf6" "\xc4\xaa\xa2\x17\xf6\xc6\xde\xd8\x07\x93\xb3\xf5\xc3\xfe\xd8\x1f\x5f" "\xc1\x81\xf8\x2a\xbe\x8a\xaf\x61\x32\x0e\xc6\x21\xf8\x3a\xbe\x8e\x6f" "\xe0\x30\x3c\x85\xc3\x71\x04\x8e\xc4\x91\x58\x49\xbc\x8d\xa3\x71\x0c" "\x92\x18\x87\x29\x98\x82\x13\x70\x02\x4e\xc4\x89\x38\x09\x27\xe3\x64" "\x9c\x8a\xa9\x38\x0d\xa7\xe3\x74\x9c\x81\x33\x71\x26\xbe\x8f\xb3\xf1" "\x03\xfc\x00\xe7\xe2\x5c\x9c\x8f\x69\x98\x86\x0b\x70\x21\x2e\xc2\x45" "\xb8\x18\x4f\x63\x3a\x2e\xc1\xa5\xb8\x0c\x97\xe3\x0a\x5c\x8e\xab\x70" "\x35\xae\xc2\xb5\xb8\x0e\xd7\xe2\x06\xdc\x80\x9b\x70\x13\x6e\xc1\x2d" "\xb8\x0d\xb7\xe1\x0e\xdc\x81\xbb\x50\x01\xe0\x27\xf8\x29\x7e\x8a\xc9" "\xb8\x0f\xf7\xe1\x7e\xdc\x8f\x07\xf0\x00\x1e\xc4\x83\x98\x81\x19\x78" "\x08\x0f\xe1\x61\x3c\x8c\x47\xf0\x08\x1e\xc5\xa3\x78\x0c\x8f\xe3\x09" "\x3c\x8e\x27\xf1\x24\x9e\xc2\xd3\x78\x06\xcf\xe0\x39\x3c\x87\xe7\xf1" "\xf9\xf8\xaf\x1b\xec\x2a\xb6\x26\x19\x44\x26\x25\x94\x88\x11\x31\x22" "\x56\xc4\x8a\x1c\x22\x87\x88\x13\x71\x22\xa7\xc8\x29\x22\x22\x22\x72" "\x89\x5c\x22\xb7\xc8\x2d\xf2\x88\x3c\x22\x9f\xc8\x27\xe2\x45\xbc\x28" "\x28\x0a\x0a\x23\x8c\x20\x11\xc6\x00\x80\x88\x8a\xa8\x28\x22\x8a\x88" "\xa2\xa2\xa8\x28\x2e\x8a\x0b\x27\x9c\x48\x10\x09\xa2\x94\x28\x25\x4a" "\x8b\xd2\xa2\x8c\xb8\x5d\x94\x15\x77\x88\x72\xa2\xbc\x68\xe5\x2a\x8a" "\x8a\xa2\x92\x68\xed\x2a\x8b\xbb\x45\x15\x51\x45\x54\x15\xd5\x44\x75" "\x51\x43\xd4\x10\x35\x45\x4d\x51\x4b\xd4\x12\xb5\x45\x6d\x51\x47\xd4" "\x11\x75\xc5\x43\xa2\x9e\xe8\x85\xfd\xf0\x11\x91\x59\x99\x86\x62\x30" "\x36\x12\x43\xb0\xb1\x68\x22\xe4\xa5\xc2\xb7\x10\xc3\xb0\xa5\x68\x25" "\x5a\x8b\xa7\xc4\x08\x1c\x8e\xed\x44\x0b\x97\x28\x9e\x11\xed\xc5\x68" "\xec\x20\xfe\x21\xc6\xe0\x73\xa2\x93\x18\x87\x9d\xc5\x0b\xa2\x8b\xe8" "\x2a\xba\x89\x17\x45\x77\xd1\xd2\xf5\x10\x3d\xc5\x24\xec\x25\x7a\x8b" "\xa9\xd8\x47\xf4\x15\xfd\x44\x7f\x31\x03\xab\x89\xf7\x71\x76\xf6\xea" "\xe2\x35\x91\x2c\x06\x8b\x21\xe2\x75\x31\x1f\xdf\x10\xc3\xc4\x9b\x62" "\xb8\x18\x21\x46\x8a\xb7\xc4\x28\xf1\xb6\x18\x2d\xc6\x88\xb1\x62\x9c" "\x48\x11\xe3\xc5\x04\xf1\x8e\x98\x28\xde\x15\x93\xc4\x64\x31\x45\x4c" "\x15\xa9\x62\x9a\x98\x2e\xde\x13\x33\xc4\x4c\x31\x4b\xbc\x2f\x66\x8b" "\x0f\xc4\x1c\x31\x57\xcc\x13\xf3\x45\x9a\xf8\x50\x2c\x10\x0b\xc5\x22" "\xf1\x91\x58\x2c\x3e\x16\xe9\x62\x89\x58\x2a\x96\x89\xe5\x62\x85\x58" "\x29\x56\x89\xd5\x62\x8d\x58\x2b\xd6\x89\xf5\x62\x83\xd8\x28\x36\x89" "\xcd\x62\x8b\xd8\x2a\xb6\x89\xed\x62\x87\xd8\x29\x76\x89\xdd\xe2\x13" "\xb1\x47\x7c\x2a\xf6\x8a\xcf\xc4\x3e\xf1\xb9\xd8\x2f\xbe\x10\x07\xc4" "\x97\xe2\xa0\xf8\x4a\x64\x88\xaf\xc5\x21\xf1\x8d\x38\x2c\xbe\x15\x47" "\xc4\x77\xe2\xa8\xf8\x5e\x1c\x13\xc7\xc5\x09\xf1\x83\x38\x29\x7e\x14" "\xa7\xc4\x69\x71\x46\x9c\x15\xe7\xc4\x4f\xe2\xbc\xb8\x20\x2e\x0a\x2f" "\x40\xa2\x14\x52\x4a\x25\x03\x19\x23\xb3\xc9\x58\x99\x5d\xe6\x90\xd7" "\xc8\x38\x19\x5c\x7a\x77\xaf\x97\xb9\xe4\x0d\x32\xb7\xbc\x51\xe6\x91" "\x79\x65\x3e\x99\x5f\xc6\xcb\x02\xb2\xa0\xd4\xd2\x48\x2b\x49\x86\xb2" "\x90\x2c\x2c\xa3\xf2\x26\x59\x44\xde\x2c\x8b\xca\x62\xb2\xb8\x2c\x21" "\x9d\x2c\x29\x13\xe4\x2d\xb2\x94\xbc\x55\x96\x96\xb7\xc9\x32\xf2\x76" "\x59\x56\xde\x21\xcb\xc9\xf2\xb2\x82\xac\x28\xef\x94\x95\xe4\x5d\x12" "\x22\xbf\xec\xa3\xaa\xac\x26\xab\xcb\x1a\xf2\x5e\x59\x53\xde\x27\x6b" "\xc9\xfb\x65\x6d\xf9\x80\xac\x23\x1f\x94\x75\xe5\x43\xb2\x9e\x7c\x58" "\xd6\x97\x8f\xc8\x06\xf2\x51\xd9\x50\x3e\x26\x1b\xc9\xc7\x65\x63\xd9" "\x44\x36\x95\xcd\x64\x73\xf9\x84\x6c\x21\x9f\x94\x2d\x65\x2b\xd9\x5a" "\x3e\x25\xdb\xc8\xb6\xb2\x9d\x7c\x5a\x26\xca\x67\x64\x7b\xe9\x2f\x9d" "\x22\xcf\xc9\x4e\xf2\x79\xd9\x59\xbe\x20\xbb\xc8\xae\xb2\x9b\xbc\x20" "\x2f\x4a\x2f\x7b\xc8\x9e\x12\xa0\x97\xec\x2d\x5f\x96\x7d\x64\x5f\xd9" "\x4f\xf6\x97\x03\xe4\x2b\x72\xa0\x7c\x55\x0e\x92\xaf\xc9\x64\x39\x58" "\x0e\x91\xaf\xcb\xa1\xf2\x0d\x39\x4c\xbe\x29\x87\xcb\x11\x72\xa4\x7c" "\x4b\x8e\x92\x6f\xcb\xd1\x72\x8c\x1c\x2b\xc7\xc9\x14\x39\x5e\x4e\x90" "\xef\xc8\x89\xf2\x5d\x39\x49\x4e\x96\x53\xe4\x54\x99\x2a\xa7\xc9\x7e" "\x97\x7a\x9a\x25\xe5\x5f\xe6\xbf\xf3\x07\xf9\x83\x7e\xde\xfb\x26\xb9" "\x59\x6e\x91\x5b\xe5\x36\xb9\x5d\xee\x90\x3b\xe5\x2e\xb9\x5b\xee\x96" "\x7b\xe4\x1e\xb9\x57\xee\x95\xfb\xe4\x3e\xb9\x5f\xee\x97\x07\xe4\x01" "\x79\x50\x1e\x94\x19\x32\x43\x1e\x92\x87\xe4\x61\x79\x58\x1e\x91\x47" "\xe4\x51\x79\x54\x1e\x93\xc7\xe5\x59\xf9\x83\x3c\x29\x7f\x94\xa7\xe4" "\x69\x79\x5a\x9e\x95\xe7\xe4\x39\x79\xfe\xd2\x7b\x00\x0a\x95\x50\x52" "\x29\x15\xa8\x18\x95\x4d\xc5\xaa\xec\x2a\x87\xba\x46\xc5\xa9\x6b\x55" "\x4e\x75\x9d\x8a\xa8\xeb\x55\x2e\x75\x83\xca\xad\x6e\x54\x79\x54\x5e" "\x95\x4f\xe5\x57\xf1\xaa\x80\x2a\xa8\xb4\x32\xca\x2a\x52\xa1\x2a\xa4" "\x0a\xab\xa8\xba\x09\x2f\x9d\x30\xaa\xb8\x2a\xa1\x9c\x2a\xa9\x12\xd4" "\x2d\x7f\x91\x5f\xe2\xd7\xf9\xaa\x88\xba\x59\x15\x55\xc5\x7e\x93\x7f" "\x79\x7c\x49\x7f\x32\xbe\xe6\xaa\xb9\x6a\xa1\x5a\xa8\x96\xaa\xa5\x6a" "\xad\x5a\xab\x36\xaa\x8d\x6a\xa7\xda\xa9\x44\x95\xa8\xda\xab\xf6\xaa" "\x83\xea\xa0\x3a\xaa\x8e\xaa\x93\xea\xa4\x3a\xab\xce\xaa\x8b\xea\xa2" "\xba\xa9\x6e\xaa\xbb\xea\xae\x7a\xa8\x1e\x2a\x49\x25\xa9\xde\xea\x65" "\xd5\x47\xf5\x55\xfd\x54\x7f\x35\x40\xbd\xa2\x06\xaa\x81\x6a\x90\x1a" "\xa4\x92\x55\xb2\x1a\xa2\x86\xa8\xa1\x6a\xa8\x1a\xa6\x86\xa9\xe1\x6a" "\xb8\x1a\xa9\x46\xaa\x51\x6a\x94\x1a\xad\x46\xab\xb1\x6a\xac\x4a\x51" "\x29\x6a\x82\x9a\xa0\x26\xaa\x89\x6a\x92\x9a\xa4\xa6\xa8\x29\x2a\x55" "\xa5\xaa\xe9\x6a\xba\x9a\xa1\x66\xa8\x59\x6a\x96\x9a\xad\x66\xab\x39" "\x6a\x8e\x9a\xa7\xe6\xa9\x34\x95\xa6\x16\xa8\x05\x6a\x91\x5a\xa4\x16" "\xab\xc5\x2a\x5d\x2d\x51\x4b\xd4\x32\xb5\x4c\xad\x50\x2b\xd4\x2a\xb5" "\x4a\xad\x51\x6b\xd4\x3a\xb5\x4e\x6d\x50\x1b\x54\xba\xda\xac\x36\xab" "\xad\x6a\xab\xda\xae\xb6\xab\x9d\x6a\xa7\xda\xad\x76\xab\x3d\x6a\x8f" "\xda\xab\xf6\xaa\x7d\x6a\x9f\xda\xaf\xf6\xab\x03\xea\x80\x3a\xa8\x0e" "\xaa\x0c\x95\xa1\x0e\xa9\x43\xea\xb0\x3a\xac\x8e\xa8\x23\xea\xa8\x3a" "\xaa\x8e\xa9\x63\xea\x84\x3a\xa1\x4e\xaa\x93\xea\x94\x3a\xa5\xce\xa8" "\x33\xea\x9c\x3a\xa7\xce\xab\xf3\xea\xa2\xba\x98\x39\xed\x0b\x44\x20" "\x02\x15\xa8\x20\x26\x88\x09\x62\x83\xd8\x20\x47\x90\x23\x88\x0b\xe2" "\x82\x9c\x41\xce\x20\x12\x44\x82\x5c\x41\xae\x20\x77\x70\x63\x90\x27" "\xc8\x1b\xe4\x0b\xf2\x07\xf1\x41\x81\xa0\x60\xa0\x03\x13\xd8\xe0\xf2" "\xc5\x37\x1a\xdc\x14\x14\x09\x6e\x0e\x8a\x06\xc5\x82\xe2\x41\x89\xc0" "\x05\x25\x83\x84\xe0\x96\xa0\x54\x70\x6b\x50\x3a\xb8\x2d\x28\x13\xdc" "\x1e\x94\x0d\xee\x08\xca\x05\xe5\x83\x0a\x41\xc5\xe0\xce\xa0\x52\x70" "\x57\x50\x39\xb8\x3b\xa8\x12\xdc\x13\x54\x0d\xaa\x05\xd5\x83\x1a\xc1" "\xbd\x41\xcd\xe0\xbe\xa0\x56\x70\x7f\x50\x3b\x78\x20\xa8\x13\x3c\x18" "\xd4\x0d\x1e\x0a\xea\x05\x0f\x07\xf5\x83\x47\x82\x06\xc1\xa3\x41\xc3" "\xe0\xb1\xa0\x51\xf0\x78\xd0\x38\x68\x12\x34\x0d\x9a\x05\xcd\xff\xd6" "\xfe\xbd\x3f\x95\xf7\x49\xd7\x43\xf7\xd4\x49\xba\x97\xee\xad\x5f\xd6" "\x7d\x74\x5f\xdd\x4f\xf7\xd7\x03\xf4\x2b\x7a\xa0\x7e\x55\x0f\xd2\xaf" "\xe9\x64\x3d\x58\x0f\xd1\xaf\xeb\xa1\xfa\x0d\x3d\x4c\xbf\xa9\x87\xeb" "\x11\x7a\xa4\x7e\x4b\x8f\xd2\x6f\xeb\xd1\x7a\x8c\x1e\xab\xc7\xe9\x14" "\x3d\x5e\x4f\xd0\xef\xe8\x89\xfa\x5d\x3d\x49\x4f\xd6\x53\xf4\x54\x9d" "\xaa\xa7\xe9\xe9\xfa\x3d\x3d\x43\xcf\xd4\xb3\xf4\xfb\x7a\xb6\xfe\x40" "\xcf\xd1\x73\xf5\x3c\x3d\x5f\xa7\xe9\x0f\xf5\x02\xbd\x50\x2f\xd2\x1f" "\xe9\xc5\xfa\x63\x9d\xae\x97\xe8\xa5\x7a\x99\x5e\xae\x57\xe8\x95\x7a" "\x95\x5e\xad\xd7\xe8\xb5\x7a\x9d\x5e\xaf\x37\xe8\x8d\x7a\x93\xde\xac" "\xb7\xe8\xad\x7a\x9b\xde\xae\x77\xe8\x9d\x7a\x97\xde\xad\x3f\xd1\x7b" "\xf4\xa7\x7a\xaf\xfe\x4c\xef\xd3\x9f\xeb\xfd\xfa\x0b\x7d\x40\x7f\xa9" "\x0f\xea\xaf\x74\x86\xfe\x5a\x1f\xd2\xdf\xe8\xc3\xfa\x5b\x7d\x44\x7f" "\xa7\x8f\xea\xef\xf5\x31\x7d\x5c\x9f\xd0\x3f\xe8\x93\xfa\x47\x7d\x4a" "\x9f\xd6\x67\xf4\x59\x7d\x4e\xff\xa4\xcf\xeb\x0b\xfa\xa2\xf6\x99\x93" "\xfb\xcc\xcb\xbb\x51\x46\x99\x18\x13\x63\x62\x4d\xac\xc9\x61\x72\x98" "\x38\x13\x67\x72\x9a\x9c\x26\x62\x22\x26\x97\xc9\xd5\xf6\x52\xf9\x4d" "\x3e\x93\xcf\xc4\x9b\x78\x53\xd0\x14\x34\x99\xc8\x90\x29\x64\x0a\x99" "\xa8\x89\x9a\x22\xa6\x88\x29\x6a\x8a\x9a\xe2\xa6\xb8\x71\xc6\x99\x04" "\x93\x60\x4a\x99\x52\xa6\xb4\x29\x6d\xca\x98\x32\xa6\xac\x29\x6b\xca" "\x99\x72\xa6\x82\xa9\x60\xee\x34\x77\x9a\xbb\xcc\x5d\xe6\x6e\x73\xb7" "\xb9\xc7\xdc\x63\xaa\x99\x6a\xa6\x86\xa9\x61\x6a\x9a\x9a\xa6\x96\xa9" "\x65\x3c\xd6\x36\x75\x4c\x1d\x53\xd7\xd4\x35\xf5\x4c\x3d\x53\xdf\xd4" "\x37\x0d\x4c\x03\xd3\xd0\x34\x34\x8d\x4c\x23\xd3\xd8\x34\x36\x4d\x4d" "\x53\xd3\xdc\x34\x37\x2d\x4c\x0b\xd3\xd2\xb4\x34\xad\x4d\x6b\xd3\xc6" "\xb4\x31\xed\x4c\x3b\x93\x68\x12\x4d\x7b\xd3\xde\x74\x30\x1d\x4c\x47" "\xd3\xd1\x74\x32\x9d\x4c\x67\xd3\xd9\x74\x31\x5d\x4c\x37\xd3\xcd\x74" "\x37\xdd\x4d\x0f\xd3\xc3\x24\x99\x24\xd3\xdb\xf4\x36\x7d\x4c\x1f\xd3" "\xcf\xf4\x33\x03\xcc\x00\x33\xd0\x0c\x34\x83\xcc\x20\x93\x6c\x92\xcd" "\x10\x33\xc4\x0c\x35\x43\xcd\x30\x33\xcc\x0c\x37\x23\xcc\xc8\xcc\x89" "\xaa\x79\xdb\x8c\x36\x63\xcc\x58\x33\xce\xa4\x98\x14\x33\xc1\x4c\x30" "\x13\xcd\x44\x33\xc9\x4c\x32\x53\xcc\x14\x93\x6a\x52\xcd\x74\x33\xdd" "\xcc\x30\x33\xcc\x2c\x33\xcb\xcc\x36\xb3\xcd\x1c\x33\xc7\xcc\x33\xf3" "\x4c\x9a\x49\x33\x0b\xcc\x02\xb3\xc8\x2c\x32\x8b\xcd\x62\x93\x6e\xd2" "\xcd\x52\xb3\xd4\x2c\x37\xcb\xcd\x4a\xb3\xd2\xac\x36\xab\xcd\x5a\xb3" "\xd6\xac\x87\xf5\x66\xa3\xd9\x68\x36\x9b\xcd\x66\xab\xd9\x6a\xb6\x9b" "\xed\x66\xa7\xd9\x69\x76\x9b\xdd\x66\x8f\xd9\x63\xf6\x9a\xbd\x66\x9f" "\xd9\x67\xf6\x9b\xfd\xe6\x80\x39\x60\x0e\x9a\x83\x26\xc3\x64\x98\x43" "\xe6\x90\x39\x6c\x0e\x9b\x23\xe6\x88\x39\x6a\x8e\x9a\x63\xe6\x98\x39" "\x61\x4e\x98\x93\xe6\xa4\x39\x65\x4e\x99\x33\xe6\x8c\x39\x67\xf2\x5e" "\xba\x5e\x7a\x13\x6b\xb3\xdb\x1c\xf6\x1a\x1b\x67\xaf\xb5\x39\xed\x75" "\xf6\x3f\xc6\xf9\x6c\x7e\x1b\x6f\x0b\xd8\x82\x56\xdb\x3c\x36\xef\x6f" "\x62\x63\xad\x2d\x6a\x8b\xd9\xe2\xb6\x84\x75\xb6\xa4\x4d\xb0\xb7\xfc" "\x2e\x2e\x67\xcb\xdb\x0a\xb6\xa2\xbd\xd3\x56\xb2\x77\xd9\xca\xbf\x8b" "\x6b\xda\xfb\x6c\x2d\x7b\xbf\xad\x6d\x1f\xb0\x35\xec\xbd\xbf\x89\xeb" "\xd8\x07\x6d\x5d\xfb\x98\xad\x87\x08\x60\x9b\xd8\x06\xb6\x99\x6d\x68" "\x1f\xb3\x8d\xec\xe3\xb6\xb1\x6d\x62\x9b\xda\x66\xb6\x8d\x6d\x6b\xdb" "\xd9\xa7\x6d\xa2\x7d\xc6\xb6\xb7\xcf\xfe\x2e\x5e\x60\x17\xda\xd5\x76" "\x8d\x5d\x6b\xd7\xd9\x3d\xf6\x53\x7b\xc6\x9e\xb5\x87\xed\xb7\xf6\x9c" "\xfd\xc9\xf6\xb0\x3d\xed\x00\xfb\x8a\x1d\x68\x5f\xb5\x83\xec\x6b\x36" "\xd9\x0e\xfe\x5d\x3c\xd2\xbe\x65\x47\xd9\xb7\xed\x68\x3b\xc6\x8e\xb5" "\xe3\x7e\x17\x4f\xb1\x53\x6d\xaa\x9d\x66\xa7\xdb\xf7\xec\x0c\x3b\xf3" "\x77\x71\x9a\xfd\xd0\xce\xb6\x8b\xec\x1c\x3b\xd7\xce\xb3\xf3\x7f\x8e" "\x33\xc7\xb4\xc8\x7e\x64\x17\xdb\x8f\x6d\xba\x5d\x62\x97\xda\x65\x76" "\xb9\x5d\x61\x57\xda\x55\xff\x1c\xeb\x32\xbb\xc1\x6e\xb4\x9b\xec\x6e" "\xfb\x89\xdd\x6a\xb7\xd9\xed\x76\x87\xdd\x69\x77\xfd\x1c\x67\x1e\xc7" "\x5e\xfb\x99\xdd\x67\x3f\xb7\x87\xec\x37\xf6\x80\xfd\xd2\x1e\xb4\x47" "\x6c\x86\xfd\xfa\xe7\x38\xf3\xf8\x8e\xd8\xef\xec\x51\xfb\xbd\x3d\x66" "\x8f\xdb\x13\xf6\x07\x7b\xd2\xfe\x68\x4f\xd9\xd3\x3f\x1f\x7f\xe6\xb1" "\xff\x60\x2f\xd8\x8b\xd6\x5b\x20\x24\x20\x49\x8a\x02\x8a\xa1\x6c\x14" "\x4b\xd9\x29\x07\x5d\x43\x71\x74\x2d\xe5\xa4\xeb\x28\x42\xd7\x53\x2e" "\xba\x81\x72\xd3\x8d\x94\x87\xf2\x52\x3e\xca\x4f\xf1\x54\x80\x0a\x92" "\x26\x43\x96\x88\x42\x2a\x44\x85\x29\x4a\x37\xd1\xe5\x79\x7a\x71\x2a" "\x41\x8e\x4a\x52\x02\xdd\x42\xa5\xe8\x56\x2a\x4d\xb7\x51\x19\xba\x9d" "\xca\xd2\x1d\x54\x8e\xca\x53\x05\xaa\x48\x77\x52\x25\xba\x8b\x2a\xd3" "\xdd\x54\x85\xee\xa1\xaa\x54\x8d\xaa\x53\x0d\xba\x97\x6a\xd2\x7d\x54" "\x8b\xee\xa7\xda\xf4\x00\xd5\xa1\x07\xa9\x2e\x3d\x44\xf5\xe8\x61\xaa" "\x4f\x8f\x50\x03\x7a\x94\x1a\xd2\x63\xd4\x88\x1e\xa7\xc6\xd4\x84\x9a" "\x52\x33\x6a\x4e\x4f\x50\x0b\x7a\x92\x5a\x52\x2b\x6a\x4d\x4f\x51\x1b" "\x6a\x4b\xed\xe8\x69\x4a\xa4\x67\xa8\x3d\x3d\x4b\x1d\xe8\x1f\xd4\x91" "\x9e\xa3\x4e\xf4\x3c\x75\xa6\x17\xa8\x0b\x75\xa5\x6e\xf4\x22\x75\xa7" "\x97\xa8\x07\xf5\xa4\x24\xea\x45\xbd\xe9\x65\xea\x43\x7d\xa9\x1f\xf5" "\xa7\x01\xf4\x0a\x0d\xa4\x57\x69\x10\xbd\x46\xc9\x34\x98\x86\xd0\xeb" "\x34\x94\xde\xa0\x61\xf4\x26\x0d\xa7\x11\x34\x92\xde\xa2\x51\xf4\x36" "\x8d\xa6\x31\x34\x96\xc6\x51\x0a\x8d\xa7\x09\xf4\x0e\x4d\xa4\x77\x69" "\x12\x4d\xa6\x29\x34\x95\x52\x69\x1a\x4d\xa7\xf7\x68\x06\xcd\xa4\x59" "\xf4\x3e\xcd\xa6\x0f\x68\x0e\xcd\xa5\x79\x34\x9f\xd2\xe8\x43\x5a\x40" "\x0b\x29\x0e\x00\x16\xd3\xc7\x94\x4e\x4b\x68\x29\x2d\xa3\xe5\xb4\x82" "\x56\xd2\x2a\x5a\x4d\x6b\x68\x2d\xad\xa3\xf5\xb4\x81\x36\xd2\x26\xda" "\x4c\x5b\x68\x2b\x6d\xa3\xed\xb4\x83\x76\xd2\x2e\xda\x4d\x9f\xd0\x1e" "\xfa\x94\xf6\xd2\x67\xb4\x8f\x3e\xa7\xfd\xf4\x05\x1d\xa0\x2f\xe9\x20" "\x7d\x45\x19\xf4\x35\x1d\xa2\x6f\xe8\x30\x7d\x4b\x47\xe8\x3b\xdf\x93" "\xbe\xa7\x63\x74\x9c\x4e\xd0\x0f\x74\x92\x7e\xa4\x53\x74\x9a\xce\xd0" "\x59\x3a\x47\x3f\xd1\x79\xba\x40\x17\xc9\x13\x84\x18\x8a\x50\x86\x2a" "\x0c\xc2\x98\x30\x5b\x18\x1b\x66\x0f\x73\x84\xd7\x84\x71\xe1\xb5\x61" "\xce\xf0\xba\x30\x12\x5e\x1f\xe6\x0a\x6f\x08\x73\x87\x37\x86\x79\xc2" "\xbc\x61\xbe\x30\x7f\x18\x1f\x16\x08\x0b\x86\x3a\x34\xa1\x0d\x29\x0c" "\xc3\x42\x61\xe1\x30\x1a\xde\x14\x16\x09\x6f\x0e\x8b\x86\xc5\xc2\xe2" "\x61\x89\xd0\x85\x25\xc3\x84\xf0\x96\xb0\x54\x78\x6b\x58\x3a\xbc\x2d" "\x2c\x13\xde\x1e\x96\x0d\xef\x08\xcb\x85\xe5\xc3\xc7\x1e\xa8\x18\xde" "\x19\x56\x0a\xef\x0a\x2b\x87\x77\x87\x55\xc2\x7b\xc2\xaa\x61\xb5\xb0" "\x7a\x58\x23\xbc\x37\xac\x19\xde\x17\xd6\x0a\xef\x0f\x6b\x87\x0f\x84" "\xa5\xc3\x07\xc3\xba\xe1\x43\x61\xbd\xf0\xe1\xb0\x7e\xf8\x48\xd8\x20" "\x7c\x34\x6c\x18\x3e\x16\x36\x0a\x1f\x0f\x1b\x87\x4d\xc2\xa6\x61\xb3" "\xb0\x79\xf8\x44\xd8\x22\x7c\x32\x6c\x19\xb6\x0a\x5b\x87\x4f\x85\x6d" "\xc2\xb6\x61\xbb\xf0\xe9\x30\x31\x7c\x26\x6c\x1f\x3e\xfb\x73\xfb\x83" "\x0b\xff\xbc\x3d\x29\xec\x15\xf6\x0e\x5f\x0e\x5f\x0e\xbd\xbf\x5f\xce" "\x8b\xce\x8f\xa6\x45\x3f\x8c\x2e\x88\x2e\x8c\x2e\x8a\x7e\x14\x5d\x1c" "\xfd\x38\x9a\x1e\x5d\x12\x5d\x1a\x5d\x16\x5d\x1e\x5d\x11\x5d\x19\x5d" "\x15\x5d\x1d\x5d\x13\x5d\x1b\x5d\x17\x5d\x1f\xdd\x10\xdd\x18\xdd\x14" "\xf5\xbe\x46\x36\x70\xe8\x84\x93\x4e\xb9\xc0\xc5\xb8\x6c\x2e\xd6\x65" "\x77\x39\xdc\x35\x2e\xce\x5d\xeb\x72\xba\xeb\x5c\xc4\x5d\xef\x72\xb9" "\x1b\x5c\x6e\x77\xa3\xcb\xe3\xf2\xba\x7c\x2e\xbf\x8b\x77\x05\x5c\x41" "\xa7\x9d\x71\xd6\x91\x0b\x5d\x21\x57\xd8\x45\xdd\x4d\xae\x88\xbb\xd9" "\x15\x75\xc5\x5c\x71\x57\xc2\x39\x57\xd2\x25\xb8\x66\xae\xb9\x6b\xee" "\x5a\xb8\x27\x5d\x4b\xd7\xca\xb5\x76\x4f\xb9\xa7\x5c\x5b\xd7\xd6\x3d" "\xed\x9e\x76\xcf\xb8\xf6\xee\x59\xd7\xc1\xfd\xc3\x75\x74\xcf\xb9\x4e" "\xee\x79\xf7\xbc\x7b\xc1\x75\x71\x5d\x5d\x37\xf7\xa2\xeb\xee\xc6\xe7" "\xfc\xe5\x33\x99\xe4\x7a\xbb\xde\xae\x8f\xeb\xe3\xfa\xb9\x7e\x6e\x80" "\x1b\xe0\x06\xba\x81\x6e\x90\x1b\xe4\x92\x5d\xb2\x1b\xe2\x86\xb8\xa1" "\x6e\xa8\x1b\xe6\x86\xb9\xe1\x6e\xb8\x1b\xe9\x46\xba\x51\x6e\x94\x1b" "\xed\x46\xbb\xb1\x6e\xac\x4b\x71\x29\x6e\x82\x9b\xe0\x26\xba\x89\x6e" "\x92\x9b\xe4\xa6\xb8\x29\x2e\xd5\xa5\xba\xe9\x6e\xba\x9b\xe1\x66\xb8" "\x4a\x33\x7f\xd9\xcb\x1c\x37\xc7\xcd\x73\xf3\x5c\x9a\x4b\x73\x0b\x5c" "\xe6\x9c\x71\x91\x5b\xec\x16\xbb\x74\x97\xee\x96\xba\xa5\x6e\xb9\x5b" "\xee\x56\xba\x95\x6e\xb5\x5b\xed\xd6\xba\xb5\x6e\xbd\x5b\xef\x36\xba" "\x8d\x6e\xb3\xdb\xec\xb6\xba\xad\x6e\xbb\xdb\xee\x76\xba\x9d\x6e\xb7" "\xdb\xed\xf6\xf8\xeb\x7e\xe9\xd4\xed\x73\xfb\xdd\x7e\x77\xc0\x1d\x70" "\x07\xdd\x57\x2e\xc3\x7d\xed\x0e\xb9\x6f\xdc\x61\xf7\xad\x3b\xe2\xbe" "\x73\x47\xdd\xf7\xee\x98\x3b\xee\x4e\xb8\x1f\xdc\x49\xf7\xa3\x3b\xe5" "\x4e\xbb\x33\xee\xac\x3b\xe7\x7e\x72\xe7\xdd\x05\x77\xd1\x79\x97\x12" "\x19\x1f\x99\x10\x79\x27\x32\x31\xf2\x6e\x64\x52\x64\x72\x64\x4a\x64" "\x6a\x24\x35\x32\x2d\x32\x3d\xf2\x5e\x64\x46\x64\x66\x64\x56\xe4\xfd" "\xc8\xec\xc8\x07\x91\x39\x91\xb9\x91\x79\x91\xf9\x91\xb4\xc8\x87\x91" "\x05\x91\x85\x91\x45\x91\x8f\x22\x8b\x23\x1f\x47\xd2\x23\x4b\x22\x4b" "\x23\xcb\x22\xcb\x23\x2b\x22\xde\x17\xd8\x1a\xfa\x42\xbe\xb0\x8f\xfa" "\x9b\x7c\x11\x7f\xb3\x2f\xea\x8b\xf9\xe2\xbe\x84\x77\xbe\xa4\x4f\xf0" "\xb7\xf8\x52\xfe\x56\x5f\xda\xdf\xe6\xcb\xf8\xdb\x7d\x59\x7f\x87\x2f" "\xe7\xcb\xfb\x0a\xfe\x71\xdf\xd8\x37\xf1\x4d\x7d\x33\xdf\xdc\x3f\xe1" "\x5b\xf8\x27\x7d\x4b\xdf\xca\xb7\xf6\x4f\xf9\x36\xbe\xad\x6f\xe7\x9f" "\xf6\x89\xfe\x19\xdf\xde\x3f\xeb\x3b\xf8\x7f\xf8\x8e\xfe\x39\xdf\xc9" "\x3f\xef\x3b\xfb\x17\x7c\x17\xdf\xd5\x77\xf3\x2f\xfa\xee\xfe\x25\xdf" "\xc3\xf7\xf4\x49\xbe\x97\xef\xed\x5f\xf6\x7d\x7c\x5f\xdf\xcf\xf7\xf7" "\x03\xfc\x2b\x7e\xa0\x7f\xd5\x0f\xf2\xaf\xf9\x64\x3f\xd8\x0f\xf1\xaf" "\xfb\xa1\xfe\x0d\x3f\xcc\xbf\xe9\x87\xfb\x11\x7e\x64\xcc\x5b\x7e\xd4" "\xe5\x5b\x64\x18\xe7\x53\xfc\x78\x3f\xc1\xbf\xe3\x27\xfa\x77\xfd\x24" "\x3f\xd9\x4f\xf1\x53\x7d\xaa\x9f\xe6\xa7\xfb\xf7\xfc\x0c\x3f\xd3\xcf" "\xf2\xef\xfb\xd9\xfe\x03\x3f\xc7\xcf\xf5\xf3\xfc\x7c\x9f\xe6\x3f\xf4" "\x0b\xfc\x42\xbf\xc8\x7f\xe4\x17\xfb\x8f\x7d\xba\x5f\x72\xf9\xa1\xb2" "\x5f\xe9\x57\xf9\xd5\x7e\x8d\x5f\xeb\xd7\xf9\xf5\x7e\x83\xdf\xe8\x37" "\xf9\xcd\x7e\x8b\xdf\xea\xb7\xf9\xed\x7e\x87\xdf\xe9\x77\xf9\xdd\xfe" "\x13\xbf\xc7\x7f\xea\xf7\xfa\xcf\xfc\x3e\xff\xb9\xdf\xef\xbf\xf0\x07" "\xfc\x97\xfe\xa0\xff\xca\x67\xf8\xaf\xfd\x21\xff\x8d\x3f\xec\xbf\xf5" "\x47\xfc\x77\xfe\xa8\xff\xde\x1f\xf3\xc7\xfd\x09\xff\x83\x3f\xe9\x7f" "\xf4\xa7\xfc\x69\x7f\xc6\x9f\xf5\xe7\xfc\x4f\xfe\xbc\xbf\xe0\x2f\xf2" "\x77\xd6\x18\x63\x8c\x31\xc6\xfe\x4b\xc6\x5f\x59\x15\x7f\xd4\xde\xeb" "\x0f\x5e\x13\xbf\xda\xb8\x37\x00\x5c\xbb\x2d\x7f\xc6\xaf\xdb\x33\x67" "\x94\xeb\xf3\xfc\xb2\xde\x57\xc4\xb7\x89\x00\xc0\x33\x3d\x3b\x3f\x72" "\x79\xa9\x5a\x35\x29\x29\xe9\xd2\xb6\xe9\x12\x82\xc2\x73\x01\x2e\xff" "\x24\x28\x53\x0c\x5c\x89\x97\x40\x6b\x68\x0b\x89\xd0\x0a\x4a\xfd\xe1" "\xf8\xfb\x8a\xae\xe7\xe8\x2f\xfa\x8f\xde\x0e\x90\xe3\x57\x39\xb1\x70" "\x25\xbe\xd2\xff\x17\x7f\xd2\xff\x13\x4f\x8d\x5c\x50\x36\x3c\x93\xeb" "\x3f\xe9\x7f\x2e\x40\xd1\xc2\x57\x72\xb2\xc3\x3f\xe3\x7f\x7e\xbb\xa2" "\x15\x94\xfe\x93\xfe\xf3\xb6\xf8\x8b\xf1\x67\xff\x32\x05\xa0\xe5\xaf" "\x72\xe2\xe0\x4a\x7c\x65\xfc\x09\xf0\x24\x3c\x0b\x89\xbf\xd9\x92\x31" "\xc6\x18\x63\x8c\x31\xc6\x18\xfb\x45\x5f\x51\xa1\xe3\xe5\xfb\xcf\xcb" "\xbf\xf1\xf9\x47\xf7\xe7\xf1\xea\x4a\x4e\xe6\x4d\xed\xe5\xf8\xaf\xee" "\xcf\x19\x63\x8c\x31\xc6\x18\x63\x8c\x31\x76\xf5\x3d\xd7\xb5\xdb\xd3" "\x4f\x24\x26\xb6\xea\xf8\xaf\xaf\x54\xfe\x6f\x65\xf1\xca\xff\xd6\x15" "\xef\x01\x2e\xbf\xa2\x00\xe0\xaf\xb2\x00\xfe\xd3\x0e\x01\xfe\xed\x47" "\xb1\xe5\xdf\xb2\xaf\xe4\x4b\x1f\x9d\xff\xd8\xb4\xfc\xac\x0f\xe0\x7f" "\x47\x29\xff\x8e\x95\xab\xfc\x1f\x13\x63\x8c\x31\xc6\x18\x63\xec\x6f" "\x77\x65\xd2\xff\xdb\xd7\xd5\xd5\x1a\x10\x63\x8c\x31\xc6\x18\x63\x8c" "\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6" "\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\x96\x05\xfd" "\x3b\xfe\x9c\xd8\xd5\x3e\x46\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31" "\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18" "\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c" "\x31\xc6\x18\x63\xec\x6a\xfb\x7f\x01\x00\x00\xff\xff\x15\x73\x0a\xec", 5389); syz_mount_image(/*fs=*/0x2000000000c0, /*dir=*/0x200000000380, /*flags=MS_RELATIME|MS_NODIRATIME|MS_DIRSYNC*/ 0x200880, /*opts=*/0x2000000001c0, /*chdir=*/1, /*size=*/0x150d, /*img=*/0x2000000003c0); break; case 1: // mmap$IORING_OFF_SQ_RING arguments: [ // addr: const = 0x0 (8 bytes) // len: int32 = 0xc00000 (4 bytes) // prot: mmap_prot = 0x2000007 (8 bytes) // flags: mmap_flags = 0x401d031 (8 bytes) // fd: fd_io_uring (resource) // offset: const = 0x0 (8 bytes) // ] // returns ring_ptr syscall( __NR_mmap, /*addr=*/0ul, /*len=*/0xc00000, /*prot=PROT_GROWSUP|PROT_WRITE|PROT_READ|PROT_EXEC*/ 0x2000007ul, /*flags=MAP_UNINITIALIZED|MAP_POPULATE|MAP_NORESERVE|MAP_NONBLOCK|MAP_FIXED|0x1021*/ 0x401d031ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); break; case 2: // openat$dir arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd_dir memcpy((void*)0x200000022f80, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000022f80ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; break; case 3: // ioctl$EXT4_IOC_MOVE_EXT arguments: [ // fd: fd (resource) // cmd: const = 0x8004587d (4 bytes) // arg: nil // ] syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x8004587d, /*arg=*/0ul); break; case 4: // mkdirat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 74 72 61 63 69 6e 67 00} (length 0xa) // } // mode: open_mode = 0x1ff (8 bytes) // ] memcpy((void*)0x200000000000, "./tracing\000", 10); syscall( __NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000000ul, /*mode=S_IXOTH|S_IWOTH|S_IROTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0x100*/ 0x1fful); 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(); const char* reason; (void)reason; if ((reason = setup_802154())) printf("the reproducer may not work as expected: 802154 injection setup " "failed: %s\n", reason); use_temporary_dir(); loop(); return 0; }