// 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif #ifndef __NR_renameat2 #define __NR_renameat2 316 #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; } #define MAX_FDS 30 //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } static void 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, NULL)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); sandbox_common_mount_tmpfs(); loop(); exit(1); } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } 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 < 4; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { 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 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x3000cd0 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x1519 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x1519) // } // ] // returns fd_dir memcpy((void*)0x200000000240, "exfat\000", 6); memcpy((void*)0x200000000100, "./file0\000", 8); memcpy( (void*)0x2000000023c0, "\x78\x9c\xec\xdc\x0b\xb4\x4e\xe5\xf6\x30\xf0\x39\x9f\xe7\x59\x6c\x72" "\x79\x93\xdc\xd7\x7c\xe6\xe2\x4d\x2e\x0f\x49\x12\x4a\x92\x4b\x92\x24" "\x21\xb9\x27\x24\x49\x92\x24\x89\x4d\x48\x12\x92\x90\xeb\x4e\x72\xdd" "\x21\xf7\xb4\xd3\x76\xbf\x5f\x72\x4f\xda\x39\x92\x24\x09\x09\x09\xcf" "\x37\xb6\xea\x73\x3a\xa7\x46\xff\x73\xf9\x7f\xce\x77\xf6\xfc\x8d\xb1" "\x86\x67\xbe\x6b\xcd\xf9\xce\x65\x8e\x77\xbf\x6b\xad\x31\xf6\xfe\xa6" "\xdb\xb0\x1a\x8d\x6b\x56\x6d\xc0\xcc\xf0\xcf\xd0\xbf\x2e\xf0\xe7\x7f" "\x12\x01\x20\x01\x00\x06\x02\x40\x4e\x00\x08\x00\xa0\x5c\xae\x72\xb9" "\xd2\xf7\x67\xd1\x98\xf8\x4f\xbd\x89\xf8\x5f\xd2\x70\xc6\x95\xee\x40" "\x5c\x49\x32\xff\x8c\x4d\xe6\x9f\xb1\xc9\xfc\x33\x36\x99\x7f\xc6\x26" "\xf3\xcf\xd8\x64\xfe\x19\x9b\xcc\x3f\x63\x93\xf9\x0b\x91\xa1\x25\xe7" "\xbf\x5a\xb6\x8c\xbb\xc9\xf3\xff\xff\xcf\xa9\x7f\x25\x59\xbe\xff\x33" "\x04\xfc\xa3\x1d\x32\xff\xff\x36\xfa\x1f\x3a\x5a\xe6\x9f\xb1\xc9\xfc" "\x33\x36\x99\x7f\xc6\x26\xf3\xcf\x78\x2e\xdf\x82\x05\x57\xb4\x0f\x71" "\xe5\xc9\xe7\x3f\x63\x93\xf9\x0b\x91\xa1\xfd\xdb\x9f\x29\xaf\x3f\x7b" "\xa5\x9f\x69\xcb\xf6\x0f\x6c\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10" "\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84" "\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10" "\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\xc4" "\xff\x03\x67\xfd\x65\x06\x00\x7e\x5d\x5f\xe9\xbe\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\xf1\xef\xe3\xdf\xbb\xd2\x1d\x08\x21\x84\x10\x42\x08" "\x21\x84\x10\xe2\x7f\x1f\x82\x02\x0d\x06\x02\xc8\x04\x99\x21\x01\xb2" "\x40\x56\xb8\x0a\xb2\x41\x76\xc8\x01\x39\x21\x06\x57\x43\x2e\xb8\x06" "\x72\xc3\xb5\x90\x07\xf2\x42\x3e\xc8\x0f\x05\xa0\x20\x14\x82\x10\x08" "\x2c\x30\x44\x50\x18\x8a\x40\x1c\xae\x83\xa2\x70\x3d\x14\x83\xe2\x50" "\x02\x4a\x82\x83\x52\x50\x1a\x6e\x80\x32\x70\x23\x94\x85\x9b\xa0\x1c" "\xdc\x0c\xe5\xe1\x16\xa8\x00\x15\x2f\xbd\x67\xba\xdb\xa1\x0a\xdc\x01" "\x55\xe1\x4e\xa8\x06\xd5\xa1\x06\xd4\x84\xbb\xa0\x16\xdc\x0d\xb5\xe1" "\x1e\xa8\x03\xf7\x42\x5d\xb8\x0f\xea\xc1\xfd\x50\x1f\x1e\x80\x06\xd0" "\x10\x1a\xc1\x83\xd0\x18\x1e\x82\x26\xd0\x14\x9a\x41\x73\x68\x01\x2d" "\xa1\xd5\x9f\xe4\x27\xe5\xfc\xbd\xfc\xe7\xa1\x27\xbc\x00\xbd\xa0\x37" "\x24\x42\x1f\xe8\x0b\x2f\x42\x3f\xe8\x0f\x03\xe0\x25\x18\x08\x2f\xc3" "\x20\x78\x05\x06\xc3\xab\x30\x04\x86\xc2\x30\x78\x0d\x86\xc3\xeb\x30" "\x02\xde\x80\x91\x30\x0a\x46\xc3\x9b\x30\x06\xc6\xc2\x38\x18\x0f\x13" "\x60\x22\x24\xc1\x5b\x30\x09\xde\x86\xc9\xf0\xce\x43\xd9\x61\x2a\x4c" "\x83\xe9\x30\x03\x66\x42\x32\xbc\x0b\xb3\x60\x36\xcc\x81\xf7\x60\x2e" "\xcc\x83\xf9\x90\x94\x65\x21\x2c\x82\xc5\xf0\x3e\x2c\x81\x0f\x20\x05" "\x3e\x84\xa5\xf0\x11\xa4\xc2\x32\x58\x0e\x2b\x60\x25\xac\x82\xd5\xb0" "\x06\xd6\xc2\x3a\x58\x0f\x1b\x60\x23\x6c\x82\xcd\xb0\x05\xb6\xc2\xc7" "\xb0\x0d\xb6\xc3\x0e\xd8\x09\xbb\x60\x37\xec\x81\x4f\x60\x2f\x7c\x0a" "\xfb\xe0\x33\x48\xc3\xcf\xff\xc1\xfc\x33\xbf\xcd\x87\xee\x08\x08\xa8" "\x50\xa1\x41\x83\x99\x30\x13\x26\x60\x02\x66\xc5\xac\x98\x0d\xb3\x61" "\x0e\xcc\x81\x31\x8c\x61\x2e\xcc\x85\xb9\x31\x37\xe6\xc1\x3c\x98\x0f" "\xf3\x61\x22\x16\xc0\x42\x58\x08\x09\x09\x19\x19\x0b\x63\x61\x8c\x63" "\x1c\x8b\x62\x51\x2c\x86\xc5\xb0\x04\x96\x40\x87\x0e\x4b\x63\x69\x2c" "\x83\x17\xbc\xf7\x65\xb1\x1c\x96\xc3\xf2\x58\x1e\x2b\x60\x45\xac\x88" "\xb7\xe2\xad\x58\x19\x2b\x63\x15\xac\x82\x55\xb1\x2a\x56\xc3\x6a\x58" "\x03\x6b\xe0\x5d\x78\x17\xde\x8d\xb5\xb1\x36\xd6\xc1\x3a\x58\x17\xeb" "\x62\x3d\xac\x87\xf5\xb1\x3e\x36\xc0\x06\xd8\x08\x1b\x61\x63\x6c\x8c" "\x4d\xb0\x09\x36\xc3\x66\xd8\x02\x5b\x60\x2b\x6c\x85\xad\xb1\x35\xb6" "\xc1\x36\xd8\x0e\xdb\x61\x7b\x6c\x8f\x1d\xb0\x03\x76\xc4\x8e\xd8\x09" "\x3b\x61\x67\xec\x8c\x5d\xb0\x0b\x76\xc5\xae\xd8\x0d\xbb\x61\x77\x7c" "\x0e\x9f\xc3\xe7\xf1\x79\x7c\x01\x5f\xc0\xde\x58\x4d\xf5\xc1\xbe\xd8" "\x17\xfb\x61\x3f\x1c\x80\x2f\xe1\x4b\xf8\x32\x0e\xc2\x57\xf0\x15\x7c" "\x15\x87\xe0\x50\x1c\x86\xaf\xe1\x6b\xf8\x3a\x8e\xc0\xd3\x38\x12\x47" "\xe1\x68\x1c\x8d\x95\xd5\x58\x1c\x87\xe3\x91\xd5\x44\x4c\xc2\x24\xcc" "\x0c\x93\x70\x32\x4e\xc6\x29\x38\x15\xa7\xe2\x74\x9c\x81\x33\x31\x19" "\x93\x71\x16\xce\xc6\xd9\xf8\x1e\xce\xc5\x79\x38\x0f\x17\xe0\x02\x5c" "\x84\x8b\x71\x31\x2e\xc1\x0f\x30\x05\x53\x70\x29\x9e\xc1\x54\x5c\x86" "\xcb\x71\x05\xae\xc4\x55\xb8\x12\xd7\xe0\x5a\x5c\x83\xeb\x71\x03\xae" "\xc7\x4d\xb8\x09\xb7\xe0\x16\xfc\x18\x3f\xc6\xed\xb8\x1d\x77\xe2\x4e" "\xdc\x8d\xbb\xf1\x13\xfc\x04\x3f\xc5\x4f\x71\x08\xa6\x61\x1a\xee\xc7" "\xfd\x78\x00\x0f\xe0\x41\x3c\x88\x87\xf0\x10\x1e\xc6\xc3\x78\x04\x8f" "\xe0\x51\x3c\x8a\xc7\xf0\x18\x1e\xc7\x13\x78\x12\x4f\xe0\x29\x3c\x85" "\xa7\xf1\x0c\x9e\x05\x80\x73\x78\x0e\xcf\xe3\x79\xbc\x88\x17\xd3\x3f" "\xfc\x2a\x9d\x51\x46\x65\x52\x99\x54\x82\x4a\x50\x59\x55\x56\x95\x4d" "\x65\x53\x39\x54\x0e\x15\x53\x31\x95\x4b\xe5\x52\xb9\x55\x6e\x95\x47" "\xe5\x51\xf9\x54\x3e\x55\x40\x15\x50\x85\x54\x21\x45\x8a\x14\xab\x48" "\x15\x56\x85\x55\x5c\xc5\x55\x51\x55\x54\x15\x53\xc5\x54\x09\x55\x42" "\x39\xe5\x54\x69\x55\x5a\x95\x51\x65\x54\x59\x55\x56\x95\x53\x37\xab" "\xf2\xea\x16\x55\x41\x55\x54\x6d\xdd\xad\xea\x56\x55\x59\xb5\x73\x55" "\xd4\x1d\xaa\xaa\xaa\xaa\xaa\xa9\xea\xaa\x86\xaa\xa9\x6a\xaa\x5a\xaa" "\x96\xaa\xad\x6a\xab\x3a\xaa\x8e\xaa\xab\xea\xaa\x7a\xea\x7e\x55\x5f" "\xf5\xc1\x01\xd8\x50\xa5\x4f\xa6\xb1\x1a\x8a\x4d\xd4\x30\x6c\xa6\x9a" "\xab\x16\xaa\xa5\x7a\x1d\x1f\x56\xad\xd5\x08\x6c\xa3\xda\xaa\x76\xea" "\x51\x35\x0a\x47\x62\x07\xd5\xda\x75\x54\x4f\xa8\x4e\x6a\x1c\x76\x56" "\x4f\xa9\xf1\xf8\xb4\xea\xaa\x26\x62\x37\xf5\xac\xea\xae\x9e\x53\x3d" "\xd4\xf3\xaa\xa7\x6a\xe3\x7a\xa9\xde\x6a\x0a\xf6\x51\x7d\xd5\x74\xec" "\xa7\xfa\xab\x01\xea\x25\x35\x0b\xab\xab\xf4\x89\xd5\x50\xaf\xaa\xe7" "\x33\x0f\x55\xc3\xd4\x6b\x6a\x11\xbe\xae\x46\xa8\x37\xd4\x48\x35\x4a" "\x8d\x56\x6f\xaa\x31\x6a\xac\x1a\xa7\xc6\xab\x09\x6a\xa2\x4a\x52\x6f" "\xa9\x49\xea\x6d\x35\x59\xbd\xa3\xa6\xa8\xa9\x6a\x9a\x9a\xae\x66\xa8" "\x99\x2a\x59\xbd\xab\x66\xa9\xd9\x6a\x8e\x7a\x4f\xcd\x55\xf3\x34\xa8" "\x05\x6a\xa1\x5a\xa4\x16\xab\xf7\xd5\x12\xf5\x81\x4a\x51\x1f\xaa\xa5" "\xea\x23\x95\xaa\x96\xa9\xe5\x6a\x85\x5a\xa9\x56\xa9\xd5\x6a\x8d\x5a" "\xab\xd6\xa9\xf5\x6a\x83\xda\xa8\x36\xa9\xcd\x6a\x8b\xda\xaa\x3e\x56" "\xdb\xd4\x76\xb5\x43\xed\x54\xbb\xd4\x6e\xb5\x47\x7d\xa2\xf6\xaa\x4f" "\xd5\x3e\xf5\x99\x4a\x53\x9f\xab\xfd\xea\x2f\xea\x80\xfa\x42\x1d\x54" "\x5f\xaa\x43\xea\x2b\x75\x58\x7d\xad\x8e\xa8\x6f\xd4\x51\xf5\xad\x3a" "\xa6\xbe\x53\xc7\xd5\x09\x75\x52\x7d\xaf\x4e\xa9\x1f\xd4\x69\x75\x46" "\x9d\x55\x3f\xaa\x73\xea\x27\x75\x5e\x5d\x50\x17\x95\x57\xa0\x51\x2b" "\xad\xb5\xd1\x81\xce\xa4\x33\xeb\x04\x9d\x45\x67\xd5\x57\xe9\x6c\x3a" "\xbb\xce\xa1\x73\xea\x98\xbe\x5a\xe7\xd2\xd7\xe8\xdc\xfa\x5a\x9d\x47" "\xe7\xd5\xf9\x4c\x7e\x5d\x40\x17\xd4\x85\x74\xa8\x49\x5b\xcd\x3a\xd2" "\x85\x75\x11\x1d\xd7\xd7\xe9\xa2\xfa\x7a\x5d\x4c\x17\xd7\x25\x74\x49" "\xed\x74\x29\x5d\x5a\xdf\xa0\xcb\xe8\x1b\x75\x59\x7d\x93\x2e\xa7\x6f" "\xd6\xe5\xf5\x2d\xba\x82\xae\xa8\x2b\x79\xd0\xb7\xe9\xca\xfa\x76\x5d" "\x45\xdf\xa1\xab\xea\x3b\x75\x35\x5d\x5d\xd7\xd0\x35\xf5\x5d\xba\x96" "\xbe\x5b\xd7\xd6\xf7\xe8\x3a\xfa\x5e\x5d\x57\xdf\xa7\xeb\xe9\xfb\x75" "\x7d\xfd\x80\x6e\xa0\x1b\xea\x46\xfa\x41\xdd\x58\x3f\xa4\x9b\xe8\xa6" "\xba\x99\x6e\xae\x5b\xe8\x96\xba\x95\x7e\x58\xb7\xd6\x8f\xe8\x36\xba" "\xad\x6e\xa7\x1f\xd5\xed\xf5\x63\xba\x83\x7e\x5c\x77\xd4\x4f\xe8\x4e" "\xfa\x49\xdd\x59\x3f\xa5\xbb\xe8\xa7\x75\x57\xfd\x8c\xee\xa6\x9f\xd5" "\xdd\xf5\x73\xba\x87\xbe\xa0\x2f\x6a\xaf\x7b\xe9\xde\x3a\x51\xf7\xd1" "\x7d\xf5\x8b\xba\x9f\xee\xaf\x07\xe8\x97\xf4\x40\xfd\xb2\x1e\xa4\x5f" "\xd1\x83\xf5\xab\x7a\x88\x1e\xaa\x87\xe9\xd7\xf4\x70\xfd\xba\x1e\xa1" "\xdf\xd0\x23\xf5\x28\x3d\x5a\xbf\xa9\xc7\xe8\xb1\x7a\x9c\x1e\xaf\x27" "\xe8\x89\x3a\x49\xbf\xa5\x27\xe9\xb7\xf5\x64\xfd\x8e\x9e\xa2\xa7\xea" "\x69\x7a\xba\x9e\xa1\x67\xea\x01\xbf\x54\x9a\xf3\x3f\xc8\x7f\xfb\x77" "\xf2\x07\x5f\x7a\xf7\x2d\x7a\xab\xfe\x58\x6f\xd3\xdb\xf5\x0e\xbd\x53" "\xef\xd2\xbb\xf5\x1e\xbd\x47\xef\xd5\x7b\xf5\x3e\xbd\x4f\xa7\xe9\x34" "\xbd\x5f\xef\xd7\x07\xf4\x01\x7d\x50\x1f\xd4\x87\xf4\x21\x7d\x58\x1f" "\xd6\x47\xf4\x11\x7d\x54\x1f\xd5\xc7\xf4\x31\x7d\x5c\x9f\xd0\x3f\xea" "\xef\xf5\x29\xfd\x83\x3e\xad\xcf\xe8\x33\xfa\x47\x7d\x4e\x9f\xd3\xe7" "\x7f\xf9\x3f\x00\x83\x46\x19\x6d\x8c\x09\x4c\x26\x93\xd9\x24\x98\x2c" "\x26\xab\xb9\xca\x64\x33\xd9\x4d\x0e\x93\xd3\xc4\xcc\xd5\x26\x97\xb9" "\xc6\xe4\x36\xd7\x9a\x3c\x26\xaf\xc9\x67\xf2\x9b\x02\xa6\xa0\x29\x64" "\x42\x43\xc6\x1a\x36\x91\x29\x6c\x8a\x98\xb8\xb9\xce\x14\x35\xd7\x9b" "\x62\xa6\xb8\x29\x61\x4a\x1a\x67\x4a\x99\xd2\xe6\x86\x7f\x39\xff\xcf" "\xfa\x6b\x65\x5a\x99\xd6\xa6\xb5\x69\x63\xda\x98\x76\xa6\x9d\x69\x6f" "\xda\x9b\x0e\xa6\x83\xe9\x68\x3a\x9a\x4e\xa6\x93\xe9\x6c\x3a\x9b\x2e" "\xa6\x8b\xe9\x6a\xba\x9a\x6e\xa6\x9b\xe9\x6e\xba\x9b\x1e\xa6\x87\xe9" "\x69\x7a\x9a\x5e\xa6\x97\x49\x34\x89\xa6\xaf\x79\xd1\xf4\x33\xfd\xcd" "\x00\xf3\x92\x19\x68\x5e\x36\x83\xcc\x20\x33\xd8\x0c\x36\x43\xcc\x10" "\x33\xcc\x0c\x33\xc3\xcd\x70\x33\xc2\x8c\x30\x23\xcd\x48\x33\xda\x8c" "\x36\x63\xcc\x18\x33\xce\x8c\x33\x13\xcc\x04\x93\xe4\x73\x9a\x49\x66" "\x92\x99\x6c\x26\x9b\x29\x66\x8a\x99\x36\x30\xa7\x99\x61\x66\x98\x64" "\x93\x6c\x66\x99\x59\x66\x8e\x99\x63\xe6\x9a\xb9\x66\xbe\x99\x6f\x16" "\x9a\x85\x66\xb1\x59\x6c\x96\x98\x25\x26\xc5\xa4\x98\xa5\x66\xa9\x49" "\x35\xcb\xcc\x32\xb3\xc2\xac\x30\xab\xcc\x2a\xb3\xc6\xac\x31\xeb\xcc" "\x3a\xb3\xc1\x6c\x30\x9b\xcc\x26\x93\x6a\xb6\x9a\xad\x66\x9b\xd9\x66" "\x76\x98\x1d\x66\x97\xd9\x65\xf6\x98\x3d\x66\xaf\xd9\x6b\xf6\x99\x7d" "\x26\xcd\xa4\x99\xfd\x66\xbf\x39\x60\x0e\x98\x83\xe6\xa0\x39\x64\x0e" "\x99\xc3\xe6\xb0\x39\x62\x8e\x98\xa3\xe6\xa8\x39\x66\x8e\x99\xe3\xe6" "\xb8\x39\x69\x4e\x9a\x53\xe6\x94\x39\x6d\x4e\x9b\xb3\xe6\xac\x39\x67" "\xce\x99\xf3\xe6\xbc\xb9\x68\x2e\xa6\x5f\xf6\x05\x2a\x50\x81\x09\x4c" "\x90\x29\xc8\x14\x24\x04\x09\x41\xd6\x20\x6b\x90\x2d\xc8\x16\xe4\x08" "\x72\x04\xb1\x20\x16\xe4\x0a\x72\x05\xb9\x83\x6b\x83\x3c\x41\xde\x20" "\x5f\x90\x3f\x28\x10\x14\x0c\x0a\x05\x61\x40\x81\x0d\x38\x88\x82\xc2" "\x41\x91\x20\x1e\x5c\x17\x14\x0d\xae\x0f\x8a\x05\xc5\x83\x12\x41\xc9" "\xc0\x05\xa5\x82\xd2\xc1\x0d\x41\x99\xe0\xc6\xa0\x6c\x70\x53\x50\x2e" "\xb8\x39\x28\x1f\xdc\x12\x54\x08\x2a\x06\x95\x82\x5b\x83\xdb\x82\xca" "\xc1\xed\x41\x95\xe0\x8e\xa0\x6a\x70\x67\x50\x2d\xa8\x1e\xd4\x08\x6a" "\x06\x77\x05\xb5\x82\xbb\x83\xda\xc1\x3d\x41\x9d\xe0\xde\xa0\x6e\x70" "\x5f\x50\x2f\xb8\x3f\xa8\x1f\x3c\x10\x34\x08\x1a\x06\x8d\x82\x07\x83" "\xc6\xc1\x43\x41\x93\xa0\x69\xd0\x2c\x68\x1e\xb4\x08\x5a\x06\xad\xfe" "\xad\xf5\xbd\x3f\x9d\xf7\x11\xd7\x2b\xec\x1d\x26\x86\x7d\xc2\xbe\xe1" "\x8b\x61\xbf\xb0\x7f\x38\x20\x7c\x29\x1c\x18\xbe\x1c\x0e\x0a\x5f\x09" "\x07\x87\xaf\x86\x43\xc2\xa1\xe1\xb0\xf0\xb5\x70\x78\xf8\x7a\x38\x22" "\x7c\x23\x1c\x19\x8e\x0a\x47\x87\x6f\x86\x63\xc2\xb1\xe1\xb8\x70\x7c" "\x38\x21\x9c\x18\x26\x85\x6f\x85\x93\xc2\xb7\xc3\xc9\xe1\x3b\xe1\x94" "\x70\x6a\x38\x2d\x98\x1e\xce\x08\x67\x86\xc9\xe1\xbb\xe1\xac\x70\x76" "\x38\x27\x7c\x2f\x9c\x1b\xce\x0b\xe7\x87\x0b\xc2\x85\xe1\xa2\x10\x7f" "\xbe\x24\x86\x94\xf0\xc3\x70\x69\xf8\x51\x98\x1a\x2e\x0b\x97\x87\x2b" "\xc2\x95\xe1\xaa\x70\x75\xb8\x26\x5c\x1b\xae\x0b\xd7\x87\x1b\xc2\x8d" "\xe1\xa6\x72\x83\x7e\x3e\x34\xdc\x16\x6e\x0f\x77\x84\x3b\xc3\x5d\xe1" "\xee\x70\x4f\xf8\x49\xb8\x37\xfc\x34\xdc\x17\x7e\x16\xa6\x85\x9f\x87" "\xfb\xc3\xbf\x84\x07\xc2\x2f\xc2\x83\xe1\x97\xe1\xa1\xf0\xab\xf0\x70" "\xf8\x75\x78\x24\xfc\x26\x3c\x1a\x7e\x1b\x1e\x0b\xbf\x0b\x8f\x87\x27" "\xc2\x93\xe1\xf7\xe1\xa9\xf0\x87\xf0\x74\x78\x26\x3c\x1b\xfe\x18\x9e" "\x0b\x7f\x0a\xcf\x87\x17\xc2\x8b\xa1\x4f\xbf\xb8\x4f\xff\x7a\x27\x43" "\x86\x32\x51\x26\x4a\xa0\x04\xca\x4a\x59\x29\x1b\x65\xa3\x1c\x94\x83" "\x62\x14\xa3\x5c\x94\x8b\x72\x53\x6e\xca\x43\x79\x28\x1f\xe5\xa3\x02" "\x54\x80\x0a\x65\x2e\x44\xe9\x98\x98\x0a\x53\x61\x8a\x53\x9c\x8a\x52" "\x51\x2a\x46\xc5\xa8\x04\x95\x20\x47\x8e\x4a\x53\x69\x2a\x43\x65\xa8" "\x2c\x95\xa5\x72\x54\x8e\xca\x53\x79\xaa\x40\x15\xa8\x12\x55\xa2\xdb" "\xe8\x36\xba\x9d\x6e\xa7\x3b\xe8\x0e\xba\x93\xee\xa4\xea\x54\x9d\x6a" "\x52\x4d\xaa\x45\xb5\xa8\x36\xd5\xa6\x3a\x54\x87\xea\x52\x5d\xaa\x47" "\xf5\xa8\x3e\xd5\xa7\x06\xd4\x80\x1a\x51\x23\x6a\x4c\x8d\xa9\x09\x35" "\xa1\x66\xd4\x8c\x5a\x50\x0b\x6a\x45\xad\xa8\x35\xb5\xa6\x36\xd4\x86" "\xda\x51\x3b\x6a\x4f\xed\xa9\x03\x75\xa0\x8e\xd4\x91\x3a\x51\x27\xea" "\x4c\x9d\xa9\x0b\x75\xa1\xae\xd4\x95\xba\x51\x37\xea\x4e\xdd\xa9\x07" "\xf5\xa0\x9e\xd4\x93\x7a\x51\x2f\x4a\xa4\x44\xea\x4b\x7d\xa9\x1f\xf5" "\xa3\x01\x34\x80\x06\xd2\x40\x1a\x44\x83\x68\x30\x0d\xa6\x21\x34\x84" "\x86\xd1\x30\x1a\x4e\xc3\x69\x04\x8d\xa0\x91\x34\x8a\x46\xd3\x9b\x34" "\x86\xc6\xd2\x38\x1a\x4f\x13\x68\x22\x25\x51\x12\x4d\xa2\x49\x34\x99" "\x26\xd3\x14\x9a\x42\xd3\x68\x1a\xcd\xa0\x19\x94\x4c\xc9\x34\x8b\x66" "\xd1\x1c\x9a\x43\x73\x69\x2e\xcd\xa7\xf9\xb4\x90\x16\xd2\x62\x5a\x4c" "\x4b\x68\x09\xa5\x50\x0a\x2d\xa5\xa5\x94\x4a\xa9\xb4\x9c\x96\xd3\x4a" "\x5a\x49\xab\x69\x35\xad\xa5\xb5\xb4\x9e\xd6\xd3\x46\xda\x48\x9b\x69" "\x33\x6d\xa5\xad\xb4\x8d\xb6\xd1\x0e\xda\x41\xbb\x68\x17\xed\xa1\x3d" "\xb4\x97\xf6\xd2\x3e\xda\x47\x69\x94\x46\xfb\x69\x3f\x1d\xa0\x03\x74" "\x90\x0e\xd2\x21\x3a\x44\x87\xe9\x30\x1d\xa1\x23\x74\x94\x8e\xd2\x31" "\x3a\x46\xc7\xe9\x38\x9d\xa4\x93\x74\x8a\x4e\xd1\x69\x3a\x4d\x67\xe9" "\x2c\x9d\xa3\x9f\xe8\x3c\x5d\xa0\x8b\xe4\x29\xc1\x66\xb1\x59\xed\x55" "\x36\x9b\xcd\x6e\x73\xd8\x9c\xf6\x6f\xe3\x7c\x36\xbf\x2d\x60\x0b\xda" "\x42\x36\xb4\x79\x6c\xde\xdf\xc4\x64\xad\x2d\x66\x8b\xdb\x12\xb6\xa4" "\x75\xb6\x94\x2d\x6d\x6f\xf8\xbb\xb8\x82\xad\x68\x2b\xd9\x5b\xed\x6d" "\xb6\xb2\xbd\xdd\x56\xb1\x15\x6c\x16\xf8\xeb\xb8\x96\xbd\xdb\xd6\xb6" "\xf7\xd8\x3a\xf6\x5e\x5b\xd3\xde\xf5\x9b\xb8\xae\xbd\xcf\xd6\xb3\x0f" "\xd9\xfa\xb6\xa9\x6d\x60\x9b\xdb\x46\xb6\xa5\x6d\x6c\x1f\xb2\x4d\x6c" "\x53\xdb\xcc\x36\xb7\x2d\x6c\x4b\xdb\xde\x3e\x66\x3b\xd8\xc7\x6d\x47" "\xfb\x44\x42\x27\xfb\xe4\x5f\xc7\x36\x3d\x5e\x62\x3f\xb0\x6b\xed\x3a" "\xbb\xde\x6e\xb0\x7b\xed\xa7\xf6\xac\xfd\xd1\x1e\xb1\xdf\xd8\x73\xf6" "\x27\xdb\xcb\xf6\xb6\x03\xed\xcb\x76\x90\x7d\xc5\x0e\xb6\xaf\xda\x21" "\x76\xe8\x6f\x63\x00\x3b\xda\xbe\x69\xc7\xd8\xb1\x76\x9c\x1d\x6f\x27" "\xd8\x89\x7f\x17\x4f\xb3\xd3\xed\x0c\x3b\xd3\x26\xdb\x77\xed\x2c\x3b" "\xfb\xef\xe2\xc5\xf6\x7d\x3b\xd7\xa6\xd8\xf9\x76\x81\x5d\x68\x17\x5d" "\x8a\xd3\x7b\x4a\xb1\x1f\xda\xa5\xf6\x23\x9b\x6a\x97\xd9\xe5\x76\x85" "\x5d\x69\x57\xd9\xd5\x76\xcd\xff\xed\x75\x85\xdd\x64\x37\xdb\x2d\x76" "\x8f\xfd\xc4\x6e\xb3\xdb\xed\x0e\xbb\xd3\xee\xb2\xbb\x2f\xc5\xe9\xe7" "\xb1\xcf\x7e\x66\xd3\xec\xe7\xf6\xb0\xfd\xda\x1e\xb0\x5f\xd8\x83\xf6" "\xa8\x3d\x64\xbf\xba\x14\xa7\x9f\xdf\x51\xfb\xad\x3d\x66\xbf\xb3\xc7" "\xed\x89\x3e\x60\xbf\xb7\xa7\xec\x0f\xf6\xb4\x3d\x73\xe9\xfc\xd3\xcf" "\xfd\x7b\x7b\xc1\x5e\xb4\xde\x02\x23\x2b\xd6\x6c\x38\xe0\x4c\x9c\x99" "\x13\x38\x0b\x67\xe5\xab\x38\x1b\x67\xe7\x1c\x9c\x93\x63\x7c\x35\xe7" "\xe2\x6b\x38\x37\x5f\xcb\x79\x38\x2f\xe7\xe3\xfc\x5c\x80\x0b\x72\x21" "\x0e\x99\xd8\x32\x73\xc4\x85\xb9\x08\xc7\xf9\x3a\x2e\xca\xd7\x73\x31" "\x2e\xce\x25\xb8\x24\x3b\x2e\xc5\xa5\xf9\x06\x2e\xc3\x37\x72\x59\xbe" "\x89\xcb\xf1\xcd\x5c\x9e\x6f\xe1\x0a\x5c\x91\x2b\xf1\xad\x7c\x1b\x57" "\xe6\xdb\xb9\x0a\xdf\xc1\x55\xf9\x4e\xae\xc6\xd5\xb9\x06\xd7\xe4\xbb" "\xb8\x16\xdf\xcd\xb5\xf9\x1e\xae\xc3\xf7\x72\x5d\xbe\x8f\xeb\xf1\xfd" "\x5c\x9f\x1f\xe0\x06\xdc\x90\x1b\xf1\x83\xdc\x98\x1f\xe2\x26\xdc\x94" "\x9b\x71\x73\x6e\xc1\x2d\xb9\x15\x3f\xcc\xad\xf9\x11\x6e\xc3\x6d\xb9" "\x1d\x3f\xca\xed\xf9\x31\xee\xc0\x8f\x73\x47\x7e\x82\x3b\xf1\x93\xdc" "\x99\x9f\xe2\x2e\xfc\x34\x77\xe5\x67\xb8\x1b\x3f\xcb\xdd\xf9\x39\xee" "\xc1\xcf\x73\x4f\x7e\x81\x7b\x71\x6f\x4e\xe4\x3e\xdc\x97\x5f\xe4\x7e" "\xdc\x9f\x07\xf0\x4b\x3c\x90\x5f\xe6\x41\xfc\x0a\x0f\xe6\x57\x79\x08" "\x0f\xe5\x61\xfc\x1a\x0f\xe7\xd7\x79\x04\xbf\xc1\x23\x79\x14\x8f\xe6" "\x37\x79\x0c\x8f\xe5\x71\x3c\x9e\x27\xf0\x44\x4e\xe2\xb7\x78\x12\xbf" "\xcd\x93\xf9\x1d\x9e\xc2\x53\x79\x1a\x4f\xe7\x19\x3c\x93\x93\xf9\x5d" "\x9e\xc5\xb3\x79\x0e\xbf\xc7\x73\x79\x1e\xcf\xe7\x05\xbc\x90\x17\xf1" "\x62\x7e\x9f\x97\xf0\x07\x9c\xc2\x1f\xf2\x52\xfe\x88\x53\x79\x19\x2f" "\xe7\x15\xbc\x92\x57\xf1\x6a\x5e\xc3\x6b\x79\x1d\xaf\xe7\x0d\xbc\x91" "\x37\xf1\x66\xde\xc2\x5b\xf9\x63\xde\xc6\xdb\x79\x07\xef\xe4\x5d\xbc" "\x9b\xf7\xf0\x27\xbc\x97\x3f\xe5\x7d\xfc\x19\xa7\xf1\xe7\xbc\x9f\xff" "\xc2\x07\xf8\x0b\x3e\xc8\x5f\xf2\x21\xfe\x8a\x0f\xf3\xd7\x7c\x84\xbf" "\xe1\xa3\xfc\x2d\x1f\xe3\xef\xf8\x38\x9f\xe0\x93\xfc\x3d\x9f\xe2\x1f" "\xf8\x34\x9f\xe1\xb3\xfc\x23\x9f\xe3\x9f\xf8\x3c\x5f\xe0\x8b\xec\x19" "\x22\x8c\x54\xa4\x23\x13\x05\x51\xa6\x28\x73\x94\x10\x65\x89\xb2\x46" "\x57\x45\xd9\xa2\xec\x51\x8e\x28\x67\x14\x8b\xae\x8e\x72\x45\xd7\x44" "\xb9\xa3\x6b\xa3\x3c\x51\xde\x28\x5f\x94\x3f\x2a\x10\x15\x8c\x0a\x45" "\x61\x44\x91\x8d\x38\x8a\xa2\xc2\x51\x91\x28\x1e\x5d\x17\x15\x8d\xae" "\x8f\x8a\x45\xc5\xa3\x12\x51\xc9\xc8\x45\xa5\xa2\xd2\xd1\x0d\x51\x99" "\xe8\xc6\xa8\x6c\x74\x53\x54\x2e\xba\x39\x2a\x1f\xdd\x12\x55\x88\x2a" "\x46\x95\xa2\x5b\xa3\xdb\xa2\xca\xd1\xed\x51\x95\xe8\x8e\xa8\x6a\x74" "\x67\x54\x2d\xaa\x1e\xd5\x88\x6a\x46\x77\x45\xb5\xa2\xbb\xa3\xda\xd1" "\x3d\x51\x9d\xe8\xde\xa8\x6c\x74\x5f\x54\x2f\xba\x3f\xaa\x1f\x3d\x10" "\x35\x88\x1a\x46\x8d\xa2\x07\xa3\xc6\xd1\x43\x51\x93\xa8\x69\xd4\x2c" "\x6a\x1e\xb5\x88\x5a\x46\xad\xa2\x87\xa3\xd6\xd1\x23\x51\x9b\xa8\x6d" "\xd4\x2e\x7a\x34\x6a\x1f\x3d\x16\x75\x88\x1e\x8f\x3a\x46\x4f\x44\x9d" "\xa2\x27\x2f\xef\x2f\x1e\xfc\xfc\x6d\xfa\x37\xfb\x13\xa3\x3e\x91\xfe" "\xe5\x09\xd9\x3d\x7a\x61\x7c\x51\x7c\x71\xfc\xfd\xf8\x92\xf8\x07\xf1" "\x94\xf8\x87\xf1\xa5\xf1\x8f\xe2\xa9\xf1\x65\xf1\xe5\xf1\x15\xf1\x95" "\xf1\x55\xf1\xd5\xf1\x35\xf1\xb5\xf1\x75\xf1\xf5\xf1\x0d\xf1\x8d\xf1" "\x4d\xf1\xcd\xf1\x2d\x71\xef\x6b\x66\x06\x87\xe9\x37\xc2\x60\x5c\xe0" "\x32\xb9\xcc\x2e\xc1\x65\x71\x59\xdd\x55\x2e\x9b\xcb\xee\x72\xb8\x9c" "\x2e\xe6\xae\x76\xb9\xdc\x35\x2e\xb7\xbb\xd6\xe5\x71\x79\x5d\x3e\x97" "\xdf\x15\x70\x05\x5d\x21\x17\x3a\x72\xd6\xb1\x8b\x5c\x61\x57\xc4\xc5" "\xdd\x75\xae\xa8\xbb\xde\x15\x73\xc5\x5d\x09\x57\xd2\x39\x57\xca\x95" "\x76\x2d\x5d\x2b\xd7\xca\xb5\x76\x8f\xb8\x36\xae\xad\x6b\xe7\x1e\x75" "\x8f\xba\xc7\xdc\x63\xee\xf1\x84\x5f\x1a\x77\x9d\xdd\x53\xae\x8b\x7b" "\xda\x75\x75\xcf\xb8\x67\xdc\xb3\xae\xbb\x7b\xce\xf5\x70\xcf\xbb\x9e" "\xee\x05\xd7\xcb\xf5\x76\x89\x2e\xd1\xf5\x75\x7d\x5d\x3f\xd7\xcf\x0d" "\x70\x03\xdc\x40\x37\xd0\x0d\x72\x83\xdc\x60\x37\xd8\x0d\x71\x43\xdc" "\x30\x37\xcc\x0d\x77\xc3\xdd\x08\x37\xc2\x8d\x74\x23\xdd\x68\x37\xda" "\x8d\x71\x63\xdc\x38\x37\xce\x4d\x70\x13\x5c\x92\x4b\x72\x93\xdc\x24" "\x37\xd9\x4d\x76\x53\xdc\x14\x37\xcd\x4d\x73\x33\xdc\x0c\x97\xec\x92" "\xdd\x2c\x37\xcb\xcd\x71\x73\xdc\x5c\x37\xd7\xcd\x77\xf3\xdd\x42\xb7" "\xd0\x2d\x76\x8b\xdd\x12\xb7\xc4\xa5\xb8\x14\xb7\xd4\x2d\x75\xa9\x2e" "\xd5\x2d\x77\xcb\xdd\x4a\xb7\xd2\xad\x76\xab\xdd\x5a\xb7\xd6\xad\x77" "\xeb\xdd\x46\xb7\xd1\x6d\x76\x9b\xdd\x56\xb7\xd5\x6d\x73\xdb\xdc\x0e" "\xb7\xc3\xed\x72\xbb\xdc\x1e\xb7\xc7\xed\x75\x7b\xdd\x3e\xb7\xcf\xa5" "\xb9\x34\xb7\xdf\xed\x77\x07\xdc\x01\x77\xd0\x7d\xe9\x0e\xb9\xaf\xdc" "\x61\xf7\xb5\x3b\xe2\xbe\x71\x47\xdd\xb7\xee\x98\xfb\xce\x1d\x77\x27" "\xdc\x49\xe7\xf5\x29\xf7\x83\x3b\xed\xce\xb8\xb3\xee\x47\x77\xce\xfd" "\xe4\xce\xbb\x0b\xee\xa2\xf3\x2e\x29\xf6\x56\x6c\x52\xec\xed\xd8\xe4" "\xd8\x3b\xb1\x29\xb1\xa9\xb1\x69\xb1\xe9\xb1\x19\xb1\x99\xb1\xe4\xd8" "\xbb\xb1\x59\xb1\xd9\xb1\x39\xb1\xf7\x62\x73\x63\xf3\x62\xf3\x63\x0b" "\x62\x0b\x63\x8b\x62\x8b\x63\xef\xc7\x96\xc4\x3e\x88\xa5\xc4\x3e\x8c" "\x2d\x8d\x7d\x14\x4b\x8d\x2d\x8b\x2d\x8f\xad\x88\xad\x8c\xad\x8a\x79" "\x5f\x70\x5b\xe4\x0b\xfb\x22\x3e\xee\xaf\xf3\x45\xfd\xf5\xbe\x98\x2f" "\xee\x4b\xf8\x92\xde\xf9\x52\xbe\xb4\xbf\xc1\x97\xf1\x37\xfa\xb2\xfe" "\x26\x5f\xce\xdf\xec\xcb\xfb\x5b\x7c\x05\x5f\xd1\x57\xf2\x4d\x7d\x33" "\xdf\xdc\xb7\xf0\x2d\x7d\x2b\xff\xb0\x6f\xed\x1f\xf1\x6d\x7c\x5b\xdf" "\xce\x3f\xea\xdb\xfb\xc7\x7c\x07\xff\xb8\xef\xe8\x9f\xf0\x9d\xfc\x93" "\xbe\xb3\x7f\xca\x77\xf1\x4f\xfb\xae\xfe\x19\xdf\xcd\x3f\x3b\xef\x97" "\x29\xfb\x9e\xfe\x05\xdf\xcb\xf7\xf6\x89\xbe\x8f\xef\xeb\x5f\xf4\xfd" "\x7c\x7f\x3f\xc0\x07\x7e\xa0\x7f\xd9\x0f\xf2\xaf\xf8\xc1\xfe\x55\x3f" "\xc4\x0f\xf5\xc3\xfc\x6b\x7e\xb8\x7f\xdd\x8f\xf0\x6f\xf8\x91\x7e\x94" "\x1f\xed\xdf\xf4\x63\xfc\x58\x3f\xce\x8f\xf7\x13\xfc\x44\x9f\xe4\xdf" "\xf2\x93\xfc\xdb\x7e\xb2\x7f\xc7\x4f\xf1\x53\xfd\x34\x3f\xdd\xcf\xf0" "\x33\x7d\xb2\x7f\xd7\xcf\xf2\xb3\xfd\x1c\xff\x9e\x9f\xeb\xe7\xf9\xf9" "\x7e\x81\x5f\xe8\x17\xf9\xc5\xfe\x7d\xbf\xc4\x7f\xe0\x53\xfc\x87\x7e" "\xa9\xff\xc8\xa7\xfa\x65\x7e\xb9\x5f\xe1\x57\xfa\x55\x7e\xb5\x5f\xe3" "\xd7\xfa\x75\x7e\xbd\xdf\xe0\x37\xfa\x4d\x7e\xb3\xdf\xe2\xb7\xfa\x8f" "\xfd\x36\xbf\xdd\xef\xf0\x3b\xfd\x2e\xbf\xdb\xef\xf1\x9f\xf8\xbd\xfe" "\x53\xbf\xcf\x7f\xe6\xd3\xfc\xe7\x7e\xbf\xff\x8b\x3f\xe0\xbf\xf0\x07" "\xfd\x97\xfe\x90\xff\xca\x1f\xf6\x5f\xfb\x23\xfe\x1b\x7f\xd4\x7f\xeb" "\x8f\xf9\xef\xfc\x71\x7f\xc2\x9f\xf4\xdf\xfb\x53\xfe\x07\x7f\xda\x9f" "\xf1\x67\xfd\x8f\xfe\x9c\xff\xc9\x9f\xf7\x17\xfc\x45\xf9\x9d\x35\x21" "\x84\x10\x42\x88\xff\x11\xfd\x27\xfb\xfb\xfc\xce\x6b\xea\x97\x2d\x5d" "\x5f\x00\xc8\xbe\x3d\xff\xa1\xbf\xad\xb9\x31\xcf\xcf\xeb\xfe\x6a\x6f" "\xa7\x18\x00\x3c\xd1\xbb\x5b\xc3\x5f\xb6\x4c\xd0\x30\x31\x31\xf1\x97" "\x63\x53\x35\x04\x45\x16\x00\x40\xec\x72\x7e\x26\xb8\x1c\x2f\x83\x76" "\xf0\x18\x74\x84\xb6\x50\xe6\x77\xfb\xeb\xaf\x2a\x5d\xba\xee\xfb\xab" "\xfa\x0d\x1b\xfe\x4d\xfd\xf8\xcd\x00\x59\x01\xb2\xfc\x9a\x93\x7e\x7b" "\xf4\x6b\x7c\xb9\xfe\x8d\x7f\x50\xbf\xe9\xfb\xfc\x87\xf5\x97\x41\xaa" "\x46\x88\x2f\x00\x28\x56\xe4\x72\x4e\x7a\xe1\x5f\xe3\xcb\xf5\xcb\xfe" "\x41\xfd\xdd\xed\xff\xb8\xfe\xa5\xfe\xb3\x7c\x91\x04\xd0\xe6\xaf\x72" "\xb2\xc1\xe5\xf8\x72\xfd\xd2\xf0\x08\x3c\x09\x1d\x7f\x73\xa4\x10\x42" "\x08\x21\x84\x10\x42\x08\xf1\xb3\xfe\xea\x5c\xf7\x3f\xb9\xff\xbc\x74" "\x7f\x5e\xc0\xfc\x36\xef\xd7\xf8\xcf\xee\xcf\xff\x44\x95\x7f\xb5\x7f" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\xfc\xb9\xa7\x9f\xeb\xf1\xf8\xc3" "\x1d\x3b\xb6\xed\xf2\xdf\xbc\xc8\xfc\x9f\xd1\xc6\x7f\xc0\x02\x01\xe0" "\x3f\xa0\x8d\xdf\x5b\x64\xf9\x4f\x6d\x2c\x83\x2e\xae\xf4\x4f\x26\x21" "\x84\x10\x42\x08\x21\xc4\xbf\xdb\xe5\x8b\xfe\x2b\xdd\x89\x10\x42\x08" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84" "\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x91\x71\xfd\xf3\x7f\x21\x4c\xfd\xf6\x95\x04\x00\xf8\x83\x83\xaf" "\xf4\x39\x0a\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10" "\x57\xda\xff\x09\x00\x00\xff\xff\x2e\xa1\x51\x87", 5401); syz_mount_image( /*fs=*/0x200000000240, /*dir=*/0x200000000100, /*flags=MS_LAZYTIME|MS_SYNCHRONOUS|MS_STRICTATIME|MS_NODIRATIME|MS_NOATIME|0xc0*/ 0x3000cd0, /*opts=*/0x200000000140, /*chdir=*/1, /*size=*/0x1519, /*img=*/0x2000000023c0); break; case 1: // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x200000000240, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; break; case 2: // renameat2 arguments: [ // oldfd: fd_dir (resource) // old: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // newfd: fd_dir (resource) // new: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 2f 66 69 6c 65 30 00} (length 0xe) // } // flags: renameat2_flags = 0x2 (8 bytes) // ] memcpy((void*)0x2000000000c0, "./file1\000", 8); memcpy((void*)0x200000001240, "./file0/file0\000", 14); syscall(__NR_renameat2, /*oldfd=*/0xffffff9c, /*old=*/0x2000000000c0ul, /*newfd=*/0xffffff9c, /*new=*/0x200000001240ul, /*flags=RENAME_EXCHANGE*/ 2ul); break; case 3: // ioctl$FS_IOC_REMOVE_ENCRYPTION_KEY arguments: [ // fd: fd_dir (resource) // cmd: const = 0x8004587d (4 bytes) // arg: ptr[inout, fscrypt_remove_key_arg] { // fscrypt_remove_key_arg { // key_spec: union fscrypt_key_specifier { // desc: fscrypt_key_specifier__by_descriptor { // type: const = 0x1 (4 bytes) // reserved: const = 0x0 (4 bytes) // descriptor: union fscrypt_key_descriptor { // desc2: buffer: {e3 55 a7 6a 11 a1 be 18} (length 0x8) // } // reserved2: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00 00 00 00 00 00 00 00 00 00} (length 0x18) // } // } // removal_status_flags: int32 = 0x0 (4 bytes) // reserved: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00 00 00 00} (length 0x14) // } // } // ] *(uint32_t*)0x200000000080 = 1; *(uint32_t*)0x200000000084 = 0; memcpy((void*)0x200000000088, "\343U\247j\021\241\276\030", 8); memset((void*)0x200000000090, 0, 24); memset((void*)0x2000000000ac, 0, 20); syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x8004587d, /*arg=*/0x200000000080ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*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=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); do_sandbox_none(); } } sleep(1000000); return 0; }