// 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 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 < 7; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { 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 32 00} (length 0x8) // } // flags: mount_flags = 0x810 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0xfd (1 bytes) // size: len = 0x1507 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x1507) // } // ] // returns fd_dir memcpy((void*)0x200000000280, "exfat\000", 6); memcpy((void*)0x2000000000c0, "./file2\000", 8); memcpy( (void*)0x2000000042c0, "\x78\x9c\xec\xdc\x0b\x98\x4e\x55\xfb\x30\xf0\x75\xaf\xb5\x36\x63\x1a" "\x3c\x4d\x72\x5e\xf7\xba\x37\x4f\x1a\x2c\x92\x24\x94\x24\x87\x24\x49" "\x42\x72\x4e\x48\x9a\x24\x49\x92\x18\x72\x4a\x42\x12\x72\x9c\x24\x87" "\x31\x21\xe7\x34\x69\x9c\xcf\x87\x9c\x93\x26\xaf\x24\x49\x42\x42\xc2" "\xfa\xae\x91\x3e\xff\xde\xde\xf7\xaf\xf7\xff\xf5\x7e\xfa\xbf\x73\xff" "\xae\x6b\x5f\xd6\xfd\xec\xbd\xee\x7d\x6f\xf7\x3c\xf3\xec\xb5\xaf\x6b" "\x9e\x6f\xbb\x0e\xab\xd1\xb8\x66\xd5\x06\x44\x24\xfe\x27\xd4\xaf\x03" "\xf8\xe5\x9f\x24\x21\x44\x8c\x10\x62\xa0\x10\x22\xb7\x10\x22\x10\x42" "\x94\x8b\x2f\x17\x9f\xb9\x3f\x87\x82\xa4\xff\xd1\x49\xd8\xbf\x49\xc3" "\x94\xab\x5d\x01\xbb\x9a\xb8\xff\x59\x1b\xf7\x3f\x6b\xe3\xfe\x67\x6d" "\xdc\xff\xac\x8d\xfb\x9f\xb5\x71\xff\xb3\x36\xee\x7f\xd6\xc6\xfd\x67" "\x2c\x4b\x4b\x2d\x70\x2d\x6f\x59\x77\xe3\xe7\xff\xff\xcb\xc9\xdf\xbf" "\x14\xfc\xe1\xc9\xfc\xf9\x9f\x25\xc0\x3f\xdb\xc1\xfd\xff\x4f\xa3\xfe" "\xa5\xa3\xb9\xff\x59\x1b\xf7\x3f\x6b\xe3\xfe\x67\x6d\xdc\xff\xac\xec" "\x8f\xaf\x13\xd8\x7f\x26\x7e\xff\x67\x6d\xdc\x7f\xc6\xb2\xb4\x3f\xfd" "\x99\xf2\xba\x33\x57\xfb\x99\x36\x6f\xff\xc2\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" "\xc6\x18\x63\x8c\xfd\x7f\x70\xc6\x5f\xa6\x85\x10\xbf\x8e\xaf\x76\x5d" "\x8c\x31\xc6\x18\x63\x8c\x31\xc6\x18\xfb\xf3\xf8\xf7\xaf\x76\x05\x8c" "\x31\xc6\x18\x63\x8c\x31\xc6\x18\xfb\xf7\x03\x21\x85\x12\x5a\x04\x22" "\x9b\xc8\x2e\x62\x44\x0e\x11\x2b\xae\x11\x71\x22\xa7\xc8\x25\x72\x8b" "\x88\xb8\x56\xc4\x8b\xeb\x44\x1e\x71\xbd\xc8\x2b\xf2\x89\xfc\xa2\x80" "\x28\x28\x0a\x89\xc2\xc2\x08\x14\x56\x90\x08\x45\x11\x51\x54\x44\xc5" "\x0d\xa2\x98\xb8\x51\x24\x88\xe2\xa2\x84\x28\x29\x9c\x28\x25\x4a\x8b" "\x9b\x44\x19\x71\xb3\x28\x2b\x6e\x11\xe5\xc4\xad\xa2\xbc\xb8\x4d\x54" "\x10\x15\x2f\x9e\x33\xd3\x9d\xa2\x8a\xb8\x4b\x54\x15\x77\x8b\x6a\xa2" "\xba\xa8\x21\x6a\x8a\x7b\x44\x2d\x71\xaf\xa8\x2d\xee\x13\x75\xc4\xfd" "\xa2\xae\x78\x40\xd4\x13\x0f\x8a\xfa\xe2\x21\xd1\x40\x34\x14\x8d\xc4" "\xc3\xa2\xb1\x78\x44\x34\x11\x4d\x45\x33\xd1\x5c\xb4\x10\x2d\x45\xab" "\x2b\xcc\x4f\xce\xfd\x8f\xe6\xbf\x28\x7a\x88\x97\x44\x4f\xd1\x4b\x24" "\x89\xde\xa2\x8f\x78\x59\xf4\x15\xfd\x44\x7f\x31\x40\x0c\x14\xaf\x88" "\x41\xe2\x55\x31\x58\xbc\x26\x86\x88\xa1\x62\x98\x78\x5d\x0c\x17\x6f" "\x88\x11\xe2\x4d\x31\x52\x8c\x12\xa3\xc5\x5b\x62\x8c\x18\x2b\xc6\x89" "\xf1\x62\x82\x98\x28\x92\xc5\xdb\x62\x92\x78\x47\x4c\x16\xef\x3e\x92" "\x53\x4c\x15\xd3\xc4\x74\x91\x22\x66\x88\x54\xf1\x9e\x98\x29\x66\x89" "\xd9\xe2\x7d\x31\x47\xcc\x15\xf3\x44\x72\x8e\x05\x62\xa1\x58\x24\x3e" "\x10\x8b\xc5\x87\x22\x4d\x7c\x24\x96\x88\x8f\x45\xba\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\xf8\x44\x6c\x15\xdb\xc4\x76\xb1\x43\xec" "\x14\xbb\xc4\x6e\xf1\xa9\xd8\x23\x3e\x13\x7b\xc5\xe7\x22\x03\xbe\xf8" "\x17\xe7\x9f\xfe\xed\x7c\xd1\x0d\x04\x08\x90\x20\x41\x83\x86\x6c\x90" "\x0d\x62\x20\x06\x62\x21\x16\xe2\x20\x0e\x72\x41\x2e\x88\x40\x04\xe2" "\x21\x1e\xf2\x40\x1e\xc8\x0b\x79\x21\x3f\xe4\x87\x24\x28\x08\x85\xa1" "\x30\x20\x20\x10\x10\x14\x81\x22\x10\x85\x28\x14\x83\x62\x90\x00\x09" "\x50\x02\x4a\x80\x03\x07\xa5\xa1\x34\x94\x81\x9b\xa1\x2c\x94\x85\x72" "\x50\x0e\xca\x43\x79\xa8\x00\x15\xa1\x22\xdc\x0e\xb7\x43\x65\xa8\x0c" "\x55\xa0\x0a\x54\x85\xaa\x50\x0d\xaa\x41\x0d\xa8\x01\xf7\xc0\x3d\x70" "\x2f\xd4\x86\xda\x50\x07\xea\x40\x5d\xa8\x0b\xf5\xa0\x1e\xd4\xd7\xbf" "\xfe\xa8\x36\x82\xc6\xd0\x18\x9a\x40\x13\x68\x06\xcd\xa0\x05\xb4\x80" "\x56\xd0\x0a\x5a\x43\x6b\x68\x03\x6d\xa0\x1d\xb4\x83\xf6\xd0\x1e\x3a" "\x40\x07\x48\x84\x44\xe8\x08\x1d\xa1\x13\x74\x82\xce\xd0\x19\xba\x40" "\x17\xe8\x0a\x5d\xa1\x1b\xbc\x00\x2f\xc0\x8b\xf0\x22\xbc\x04\x2f\x41" "\x2f\xa8\x26\x7b\x43\x1f\xe8\x03\x7d\xa1\x2f\xf4\x87\x01\x30\x00\x5e" "\x81\x41\xf0\x2a\xbc\x0a\xaf\xc1\x10\x18\x0a\xc3\xe0\x75\x78\x1d\xde" "\x80\x11\x70\x0a\x46\xc2\x28\x18\x0d\xa3\xa1\xb2\x1c\x0b\xe3\x60\x3c" "\x90\x9c\x08\xc9\x90\x0c\xd9\xc5\x24\x98\x0c\x93\x61\x0a\x4c\x85\xa9" "\x30\x1d\x52\x60\x06\xa4\x42\x2a\xcc\x84\x59\x30\x0b\xde\x87\x39\x30" "\x17\xe6\xc2\x7c\x98\x0f\x0b\x61\x11\x2c\x82\xc5\xf0\x21\xa4\x41\x1a" "\x2c\x81\xd3\x90\x0e\x4b\x61\x19\x2c\x87\x15\xb0\x12\x56\xc0\x6a\x58" "\x03\xab\x61\x1d\xac\x87\x75\xb0\x11\x36\xc2\x66\xd8\x0c\x9f\xc0\x27" "\xb0\x0d\xb6\xc1\x0e\xd8\x01\xbb\x60\x17\x7c\x0a\x9f\xc2\x67\xf0\x19" "\x0c\x81\x0c\xc8\x80\x7d\xb0\x0f\xf6\xc3\x7e\x38\x00\x07\xe0\x20\x1c" "\x84\x43\x70\x08\x0e\xc3\x61\x38\x02\x47\xe0\x28\x1c\x85\x63\x70\x1c" "\x4e\xc0\x71\x38\x09\x27\xe1\x14\x9c\x86\x33\x42\x88\xb3\x70\x16\xce" "\xc1\x39\xb8\x00\x17\x32\xdf\xfc\x32\x93\x96\x5a\x66\x93\xd9\x64\x8c" "\x8c\x91\xb1\x32\x56\xc6\xc9\x38\x99\x4b\xe6\x92\x11\x19\x91\xf1\x32" "\x5e\xe6\x91\x79\x64\x5e\x99\x57\xe6\x97\xf9\x65\x41\x59\x50\x16\x96" "\x85\x25\x4a\x94\x24\x43\x59\x44\x16\x91\x51\x19\x95\xc5\x64\x31\x99" "\x20\x13\x64\x09\x59\x42\x3a\xe9\x64\x69\x59\x5a\x96\x91\x65\x64\x59" "\x59\x56\x96\x93\xb7\xca\xf2\xf2\x36\x59\x41\x56\x94\x6d\xdd\xed\xf2" "\x76\x59\x59\xb6\x73\x55\xe4\x5d\xb2\xaa\xac\x2a\xab\xc9\xea\xb2\x86" "\xac\x29\x6b\xca\x5a\xb2\x96\xac\x2d\x6b\xcb\x3a\xb2\x8e\xac\x2b\xeb" "\xca\x7a\xf2\x41\x59\x5f\xf6\x86\xfe\xd0\x50\x66\x76\xa6\xb1\x1c\x0a" "\x4d\xe4\x30\x68\x26\x9b\xcb\x16\xb2\xa5\x7c\x03\x1e\x95\xad\xe5\x08" "\x68\x23\xdb\xca\x76\xf2\x71\x39\x0a\x46\x42\x07\xd9\xda\x25\xca\xa7" "\x64\x47\x39\x0e\x3a\xc9\x67\xe4\x78\x78\x56\x76\x91\x13\xa1\xab\x7c" "\x5e\x76\x93\x2f\xc8\xee\xf2\x45\xd9\x43\xb6\x71\x3d\x65\x2f\x39\x05" "\x7a\xcb\x3e\x72\x3a\xf4\x95\xfd\x64\x7f\x39\x40\xce\x84\xea\x32\xb3" "\x63\x35\xe4\x6b\xf2\xc5\xec\x43\xe5\x30\xf9\xba\x5c\x08\x6f\xc8\x11" "\xf2\x4d\x39\x52\x8e\x92\xa3\xe5\x5b\x72\x8c\x1c\x2b\xc7\xc9\xf1\x72" "\x82\x9c\x28\x93\xe5\xdb\x72\x92\x7c\x47\x4e\x96\xef\xca\x29\x72\xaa" "\x9c\x26\xa7\xcb\x14\x39\x43\xa6\xca\xf7\xe4\x4c\x39\x4b\xce\x96\xef" "\xcb\x39\x72\xae\x9c\x27\xe7\xcb\x05\x72\xa1\x5c\x24\x3f\x90\x8b\xe5" "\x87\x32\x4d\x7e\x24\x97\xc8\x8f\x65\xba\x5c\x2a\x97\xc9\xe5\x72\x85" "\x5c\x29\x57\xc9\xd5\x72\x8d\x5c\x2b\xd7\xc9\xf5\x72\x83\xdc\x28\x37" "\xc9\xcd\x72\x8b\xfc\x44\x6e\x95\xdb\xe4\x76\xb9\x43\xee\x94\xbb\xe4" "\x6e\xf9\xa9\xdc\x23\x3f\x93\x7b\xe5\xe7\x32\x43\x7e\x21\xf7\xc9\xbf" "\xc9\xfd\xf2\x4b\x79\x40\x7e\x25\x0f\xca\xaf\xe5\x21\xf9\x8d\x3c\x2c" "\xbf\x95\x47\xe4\x77\xf2\xa8\xfc\x5e\x1e\x93\xc7\xe5\x09\xf9\x83\x3c" "\x29\x7f\x94\xa7\xe4\x69\x79\x46\xfe\x24\xcf\xca\x9f\xe5\x39\x79\x5e" "\x5e\x90\x5e\x0a\x05\x4a\x2a\xa5\xb4\x0a\x54\x36\x95\x5d\xc5\xa8\x1c" "\x2a\x56\x5d\xa3\xe2\x54\x4e\x95\x4b\xe5\x56\x11\x75\xad\x8a\x57\xd7" "\xa9\x3c\xea\x7a\x95\x57\xe5\x53\xf9\x75\x01\x55\x50\x15\x52\x85\x95" "\x51\xa8\xac\x22\x15\xaa\x22\xaa\xa8\x8a\xaa\x1b\x54\x31\x75\xa3\x4a" "\x50\xc5\x55\x09\x55\x52\x39\x55\x4a\x95\x56\x37\xa9\x32\xea\x66\x55" "\x56\xdd\xa2\xca\xa9\x5b\x55\x79\x75\x9b\xaa\xa0\x2a\xaa\x4a\x5e\xa8" "\x3b\x54\x65\x75\xa7\xaa\xa2\xee\x52\x55\xd5\xdd\xaa\x9a\xaa\xae\x6a" "\xa8\x9a\xea\x1e\x55\x4b\xdd\xab\x6a\xab\xfb\x54\x1d\x75\xbf\xaa\xab" "\x1e\x50\xf5\xd4\x83\xaa\xbe\x7a\x48\x35\x50\x0d\x55\x23\xf5\xb0\x6a" "\xac\x1e\x51\x4d\x54\x53\xd5\x4c\x35\x57\x2d\x54\x4b\xd5\x4a\x3d\xaa" "\x5a\xab\xc7\x54\x1b\xd5\x56\xb5\x53\x8f\xab\xf6\xea\x09\xd5\x41\x3d" "\xa9\x12\xd5\x53\xaa\xa3\x7a\x5a\x75\x52\xcf\xa8\xce\xea\x59\xd5\x45" "\x3d\xa7\xba\xaa\xe7\x55\x37\xf5\x82\xea\xae\xce\xab\x0b\xca\xab\x9e" "\xaa\x97\x4a\x52\xbd\x55\x1f\xf5\xb2\xea\xab\xfa\xa9\xfe\x6a\x80\x1a" "\xa8\x5e\x51\x83\xd4\xab\x6a\xb0\x7a\x4d\x0d\x51\x43\xd5\x30\xf5\xba" "\x1a\xae\xde\x50\x23\xd4\x9b\x6a\xa4\x1a\xa5\x46\xab\xb7\xd4\x18\x35" "\x56\x8d\x53\xe3\xd5\x04\x35\x51\x25\xab\xb7\xd5\x24\xf5\x8e\x9a\xac" "\xde\x55\x53\xd4\x54\x35\x4d\x4d\x57\x29\x6a\x86\xea\x7f\x29\xd3\xec" "\x3f\x30\xff\x9d\x7f\x30\x7f\xf0\xc5\xb3\x6f\x56\x5b\xd4\x27\x6a\xab" "\xda\xa6\xb6\xab\x1d\x6a\xa7\xda\xa5\x76\xab\xdd\x6a\x8f\xda\xa3\xf6" "\xaa\xbd\x2a\x43\x65\xa8\x7d\x6a\x9f\xda\xaf\xf6\xab\x03\xea\x80\x3a" "\xa8\x0e\xaa\x43\xea\x90\x3a\xac\x0e\xab\x23\xea\x88\x3a\xaa\x8e\xaa" "\x63\xea\xb8\xfa\x49\xfd\xa0\x4e\xaa\x1f\xd5\x29\x75\x5a\x9d\x56\x3f" "\xa9\xb3\xea\xac\x3a\x77\xe9\xff\x40\x68\xd0\x52\x2b\xad\x75\xa0\xb3" "\xe9\xec\x3a\x46\xe7\xd0\xb1\xfa\x1a\x1d\xa7\x73\xea\x5c\x3a\xb7\x8e" "\xe8\x6b\x75\xbc\xbe\x4e\xe7\xd1\xd7\xeb\xbc\x3a\x9f\xce\xaf\x0b\xe8" "\x82\xba\x90\x2e\xac\x8d\x46\x6d\x35\xe9\x50\x17\xd1\x45\x75\x54\xdf" "\xa0\x8b\xe9\x1b\x75\x82\x2e\xae\x4b\xe8\x92\xda\xe9\x52\xba\xb4\xbe" "\xe9\xff\x79\xfe\x95\xea\x6b\xa5\x5b\xe9\xd6\xba\xb5\x6e\xa3\xdb\xe8" "\x76\xba\x9d\x6e\xaf\xdb\xeb\x0e\xba\x83\x4e\xd4\x89\xba\xa3\xee\xa8" "\x3b\xe9\x4e\xba\xb3\xee\xac\xbb\xe8\x2e\xba\xab\xee\xaa\xbb\xe9\x6e" "\xba\xbb\xee\xae\x7b\xe8\x1e\xba\xa7\xee\xa9\x93\x74\x92\xee\xa3\x5f" "\xd6\x7d\x75\x3f\xdd\x5f\x0f\xd0\x03\xf5\x2b\x7a\x90\x1e\xa4\x07\xeb" "\xc1\x7a\x88\x1e\xa2\x87\xe9\x61\x7a\xb8\x1e\xae\x47\xe8\x11\x7a\xa4" "\x1e\xa9\x47\xeb\xd1\x7a\x8c\x1e\xa3\xc7\xe9\x71\x7a\x82\x9e\xa0\x93" "\x7d\x6e\x3d\x49\x4f\xd2\x93\xf5\x64\x3d\x45\x4f\xd1\xd3\x06\xe6\xd6" "\x29\x3a\x45\xa7\xea\x54\x3d\x53\xcf\xd4\xb3\xf5\x6c\x3d\x47\xcf\xd1" "\xf3\xf4\x3c\xbd\x40\x2f\xd0\x8b\xf4\x22\xbd\x58\x2f\xd6\x69\x3a\x4d" "\x2f\xd1\x4b\x74\xba\x5e\xaa\x97\xea\xe5\x7a\xb9\x5e\xa9\x57\xea\xd5" "\x7a\xb5\x5e\xab\xd7\xea\xf5\x7a\xbd\xde\xa8\x37\xea\x74\xbd\x45\x6f" "\xd1\x5b\xf5\x56\xbd\x5d\x6f\xd7\x3b\xf5\x4e\xbd\x5b\xef\xd6\x7b\xf4" "\x1e\xbd\x57\xef\xd5\x19\x3a\x43\xef\xd3\xfb\xf4\x7e\xbd\x5f\x1f\xd0" "\x07\xf4\x41\x7d\x50\x1f\xd2\x87\xf4\x61\x7d\x58\x1f\xd1\x47\xf4\x51" "\x7d\x54\x1f\xd3\xc7\xf4\x09\x7d\x42\x9f\xd4\x27\xf5\x29\x7d\x4a\x9f" "\xd1\x67\xf4\x59\x7d\x56\x9f\xd3\xe7\xf4\x05\x7d\x21\xf3\xb6\x2f\x90" "\x81\x0c\x74\xa0\x83\x6c\x41\xb6\x20\x26\x88\x09\x62\x83\xd8\x20\x2e" "\x88\x0b\x72\x05\xb9\x82\x48\x10\x09\xe2\x83\xf8\x20\x4f\x70\x7d\x90" "\x37\xc8\x17\xe4\x0f\x0a\x04\x05\x83\x42\x41\xe1\xc0\x04\x18\xd8\x80" "\x82\x30\x28\x12\x14\x0d\xa2\xc1\x0d\x41\xb1\xe0\xc6\x20\x21\x28\x1e" "\x94\x08\x4a\x06\x2e\x28\x15\x94\x0e\x6e\x0a\xca\x04\x37\x07\x65\x83" "\x5b\x82\x72\xc1\xad\x41\xf9\xe0\xb6\xa0\x42\x50\x31\xa8\x14\xdc\x1e" "\xdc\x11\x54\x0e\xee\x0c\xaa\x04\x77\x05\x55\x83\xbb\x83\x6a\x41\xf5" "\xa0\x46\x50\x33\xb8\x27\xa8\x15\xdc\x1b\xd4\x0e\xee\x0b\xea\x04\xf7" "\x07\x75\x83\x07\x82\x7a\xc1\x83\x41\xfd\xe0\xa1\xa0\x41\xd0\x30\x68" "\x14\x3c\x1c\x34\x0e\x1e\x09\x9a\x04\x4d\x83\x66\x41\xf3\xa0\x45\xd0" "\x32\x68\xf5\xa7\xe6\xf7\xfe\x54\xbe\xc7\x5c\x4f\xd3\xcb\x24\x99\xde" "\xa6\x8f\x79\xd9\xf4\x35\xfd\x4c\x7f\x33\xc0\x0c\x34\xaf\x98\x41\xe6" "\x55\x33\xd8\xbc\x66\x86\x98\xa1\x66\x98\x79\xdd\x0c\x37\x6f\x98\x11" "\xe6\x4d\x33\xd2\x8c\x32\xa3\xcd\x5b\x66\x8c\x19\x6b\xc6\x99\xf1\x66" "\x82\x99\x68\x92\xcd\xdb\x66\x92\x79\xc7\x4c\x36\xef\x9a\x29\x66\xaa" "\x99\x16\x4c\x37\x29\x66\x86\x49\x35\xef\x99\x99\x66\x96\x99\x6d\xde" "\x37\x73\xcc\x5c\x33\xcf\xcc\x37\x0b\xcc\x42\x03\xbf\xdc\x12\x8b\x34" "\xf3\x91\x59\x62\x3e\x36\xe9\x66\xa9\x59\x66\x96\x9b\x15\x66\xa5\x59" "\x65\x56\x9b\x35\x66\xad\x59\x67\xd6\x9b\x0d\x66\x63\xb9\x41\xbf\x1c" "\x6a\xb6\x9a\x6d\x66\xbb\xd9\x61\x76\x9a\x5d\x66\xb7\xf9\xd4\xec\x31" "\x9f\x99\xbd\xe6\x73\x93\x61\xbe\x30\xfb\xcc\xdf\xcc\x7e\xf3\xa5\x39" "\x60\xbe\x32\x07\xcd\xd7\xe6\x90\xf9\xc6\x1c\x36\xdf\x9a\x23\xe6\x3b" "\x73\xd4\x7c\x6f\x8e\x99\xe3\xe6\x84\xf9\xc1\x9c\x34\x3f\x9a\x53\xe6" "\xb4\x39\x63\x7e\x32\x67\xcd\xcf\xe6\x9c\x39\x6f\x2e\x18\x9f\x79\x73" "\x9f\xf9\xf1\x8e\x1a\x35\x66\xc3\x6c\x18\x83\x31\x18\x8b\xb1\x18\x87" "\x71\x98\x0b\x73\x61\x04\x23\x18\x8f\xf1\x98\x07\xf3\x60\x5e\xcc\x8b" "\xf9\x31\x3f\x16\xc4\x82\x58\x18\x0b\x63\x26\x42\xc2\x22\x58\x04\xa3" "\x18\xc5\x62\x58\x0c\x13\x30\x01\x4b\x60\x09\x74\xe8\xb0\x34\x96\xc6" "\x32\x58\x06\xcb\x62\x59\x2c\x87\xe5\xb0\x3c\x96\xc7\x0a\x58\x01\x2b" "\x61\x25\xbc\x03\xef\xc0\x3b\xf1\x4e\xbc\x0b\xef\xc2\xbb\xf1\x6e\xac" "\x8e\xd5\xb1\x26\xd6\xc4\x5a\x58\x0b\x6b\x63\x6d\xac\x83\x75\xb0\x2e" "\xd6\xc5\x7a\x58\x0f\xeb\x63\x7d\x6c\x80\x0d\xb0\x11\x36\xc2\xc6\xd8" "\x18\x9b\x60\x13\x6c\x86\xcd\xb0\x05\xb6\xc0\x56\xd8\x0a\x5b\x63\x6b" "\x6c\x83\x6d\xb0\x1d\xb6\xc3\xf6\xd8\x1e\x3b\x60\x07\x4c\xc4\x44\xec" "\x88\x1d\xb1\x13\x76\xc2\xce\xd8\x19\xbb\x60\x17\xec\x8a\x5d\xb1\x1b" "\x76\xc3\xee\xd8\x1d\x7b\x60\x0f\xec\x89\x3d\x31\x09\x93\xb0\x0f\xf6" "\xc1\xbe\xd8\x17\xfb\x63\x7f\x1c\x88\x03\x71\x10\x0e\xc2\xc1\x38\x18" "\x87\xe0\x10\x1c\x86\xc3\x70\x38\x0e\xc7\x11\x38\x02\x47\xe2\x28\x1c" "\x8d\x6f\xe1\x18\x1c\x8b\xe3\x70\x3c\x4e\xc0\x89\x98\x8c\xc9\x38\x09" "\x27\xe1\x64\x9c\x8c\x53\x70\x0a\x4e\xc3\x69\x98\x82\x29\x98\x8a\xa9" "\x38\x13\x67\xe2\x6c\x9c\x8d\x73\x70\x0e\xce\xc3\x79\xb8\x00\x17\xe0" "\x22\x5c\x84\x8b\x71\x31\xa6\x61\x1a\x2e\xc1\x25\x98\x8e\xe9\xb8\x0c" "\x97\xe1\x0a\x5c\x81\xab\x70\x15\xae\xc1\x35\xb8\x0e\xd7\xe1\x06\xdc" "\x80\x9b\x70\x13\x6e\xc1\x2d\xb8\x15\xb7\xe2\x76\xdc\x8e\x3b\x71\x27" "\xee\xc6\xdd\xb8\x07\xf7\xe0\x5e\xdc\x8b\x19\x98\x81\xfb\x70\x1f\xee" "\xc7\xfd\x78\x00\x0f\xe0\x41\x3c\x88\x87\xf0\x10\x1e\xc6\xc3\x78\x64" "\x4d\x41\x3c\x8a\x47\xf1\x18\x1e\xc3\x13\x78\x02\x4f\xe2\x49\x3c\x85" "\xa7\xf0\x0c\x9e\xc1\xb3\xf8\x33\x9e\xc3\xf3\x78\x01\x3d\xc6\xd8\x1c" "\x36\xd6\x5e\x63\xe3\x6c\x4e\x9b\xcb\xe6\xb6\x7f\x1f\xe7\xb7\x05\x6c" "\x41\x5b\xc8\x16\xb6\xc6\xe6\xb5\xf9\x7e\x13\xa3\xb5\x36\xc1\x16\xb7" "\x25\x6c\x49\xeb\x6c\x29\x5b\xda\xde\xf4\xbb\xb8\x82\xad\x68\x2b\xd9" "\xdb\xed\x1d\xb6\xb2\xbd\xd3\x56\xb1\x15\x6c\x0e\xf1\x5f\xe3\x5a\xf6" "\x5e\x5b\xdb\xde\x67\xeb\xd8\xfb\x6d\x4d\x7b\xcf\x6f\xe2\xba\xf6\x01" "\x5b\xcf\x3e\x62\xeb\xdb\xa6\xb6\x81\x6d\x6e\x1b\xd9\x96\xb6\xb1\x7d" "\xc4\x36\xb1\x4d\x6d\x33\xdb\xdc\xb6\xb0\x2d\x6d\x7b\xfb\x84\xed\x60" "\x9f\xb4\x89\xf6\x29\xdb\xd1\x3e\xfd\xbb\x78\xb1\xfd\xd0\xae\xb1\x6b" "\xed\x3a\xbb\xde\xee\xb1\x9f\xd9\x33\xf6\x27\x7b\xd8\x7e\x6b\xcf\xda" "\x9f\x6d\x4f\xdb\xcb\x0e\xb4\xaf\xd8\x41\xf6\x55\x3b\xd8\xbe\x66\x87" "\xd8\xa1\xbf\x8d\x85\xb0\xa3\xed\x5b\x76\x8c\x1d\x6b\xc7\xd9\xf1\x76" "\x82\x9d\xf8\xbb\x78\x9a\x9d\x6e\x53\xec\x0c\x9b\x6a\xdf\xb3\x33\xed" "\xac\xdf\xc5\x8b\xec\x07\x76\x8e\x4d\xb3\xf3\xec\x7c\xbb\xc0\x2e\xbc" "\x18\x67\xd6\x94\x66\x3f\xb2\x4b\xec\xc7\x36\xdd\x2e\xb5\xcb\xec\x72" "\xbb\xc2\xae\xb4\xab\xec\xea\xff\x5b\xeb\x72\xbb\xd1\x6e\xb2\x9b\xed" "\x6e\xfb\xa9\xdd\x6a\xb7\xd9\xed\x76\x87\xdd\x69\x77\x5d\x8c\x33\xaf" "\x63\xaf\xfd\xdc\x66\xd8\x2f\xec\x21\xfb\x8d\xdd\x6f\xbf\xb4\x07\xec" "\x11\x7b\xd0\x7e\x7d\x31\xce\xbc\xbe\x23\xf6\x3b\x7b\xd4\x7e\x6f\x8f" "\xd9\xe3\xf6\x84\xfd\xc1\x9e\xb4\x3f\xda\x53\xf6\xf4\xc5\xeb\xcf\xbc" "\xf6\x1f\xec\x79\x7b\xc1\x7a\x2b\x08\x48\x92\x22\x4d\x01\x65\xa3\xec" "\x14\x43\x39\x28\x96\xae\xa1\x38\xca\x49\xb9\x28\x37\x45\xe8\x5a\x8a" "\xa7\xeb\x28\x0f\x5d\x4f\x79\x29\x1f\xe5\xa7\x02\x54\x90\x0a\x51\x61" "\x32\x84\x64\x89\x28\xa4\x22\x54\x94\xa2\x74\x03\x15\xa3\x1b\x29\x81" "\x8a\x53\x09\x2a\x49\x8e\x4a\x51\x69\xba\x89\xca\xd0\xcd\x54\x96\x6e" "\xa1\x72\x74\x2b\x95\xa7\xdb\xa8\x02\x55\xa4\x4a\x74\x3b\xdd\x41\x95" "\xe9\x4e\xaa\x42\x77\x51\x55\xba\x9b\xaa\x51\x75\xaa\x41\x35\xe9\x1e" "\xaa\x45\xf7\x52\x6d\xba\x8f\xea\xd0\xfd\x54\x97\x1e\xa0\x7a\xf4\x20" "\xd5\xa7\x87\xa8\x01\x35\xa4\x46\xf4\x30\x35\xa6\x47\xa8\x09\x35\xa5" "\x66\xd4\x9c\x5a\x50\x4b\x6a\x45\x8f\x52\x6b\x7a\x8c\xda\x50\x5b\x6a" "\x47\x8f\x53\x7b\x7a\x82\x3a\xd0\x93\x94\x48\x4f\x51\x47\x7a\x9a\x3a" "\xd1\x33\xd4\x99\x9e\xa5\x2e\xf4\x1c\x75\xa5\xe7\xa9\x1b\xbd\x40\xdd" "\xe9\x45\xea\x41\x2f\x51\x4f\xea\x45\x49\xd4\x9b\xfa\xd0\xcb\xd4\x97" "\xfa\x51\x7f\x1a\x40\x03\xe9\x15\x1a\x44\xaf\xd2\x60\x7a\x8d\x86\xd0" "\x50\x1a\x46\xaf\xd3\x70\x7a\x83\x46\xd0\x9b\x34\x92\x46\xd1\x68\x7a" "\x8b\xc6\xd0\x58\x1a\x47\xe3\x69\x02\x4d\xa4\x64\x7a\x9b\x26\xd1\x3b" "\x34\x99\xde\xa5\x29\x34\x95\xa6\xd1\x74\x4a\xa1\x19\x94\x4a\xef\xd1" "\x4c\x9a\x45\xb3\xe9\x7d\x9a\x43\x73\x69\x1e\xcd\xa7\x05\xb4\x90\x16" "\xd1\x07\xb4\x98\x3e\xa4\x34\xfa\x88\x96\xd0\xc7\x94\x4e\x4b\x69\x19" "\x2d\xa7\x15\xb4\x92\x56\xd1\x6a\x5a\x43\x6b\x69\x1d\xad\xa7\x0d\xb4" "\x91\x36\xd1\x66\xda\x42\x9f\xd0\x56\xda\x46\xdb\x69\x07\xed\xa4\x5d" "\xb4\x9b\x3e\xa5\x3d\xf4\x19\xed\xa5\xcf\x29\x83\xbe\xa0\x7d\xf4\x37" "\xda\x4f\x5f\xd2\x01\xfa\x8a\x0e\xd2\xd7\x74\x88\xbe\xa1\xc3\xf4\x2d" "\x1d\xa1\xef\xe8\x28\x7d\x4f\xc7\xe8\x38\x9d\xa0\x1f\xe8\x24\xfd\x48" "\xa7\xe8\x34\x9d\xa1\x9f\xe8\x2c\xfd\x4c\xe7\xe8\x3c\x5d\x20\x4f\x22" "\x84\x50\x86\x2a\xd4\x61\x10\x66\x0b\xb3\x87\x31\x61\x8e\x30\x36\xbc" "\x26\x8c\x0b\x73\x86\xb9\xc2\xdc\x61\x24\xbc\x36\x8c\x0f\xaf\x0b\xf3" "\x84\xd7\x87\x79\xc3\x7c\x61\xfe\xb0\x40\x58\x30\x2c\x14\x16\x0e\x4d" "\x88\xa1\x0d\x29\x0c\xc3\x22\x61\xd1\x30\x1a\xde\x10\x16\x0b\x6f\x0c" "\x13\xc2\xe2\x61\x89\xb0\x64\xe8\xc2\x52\xa1\x88\xfc\xf2\x01\x56\x36" "\xbc\x25\x2c\x17\xde\x1a\x96\x0f\x6f\x0b\x2b\x84\x15\xc3\x4a\xe1\xed" "\xe1\x1d\x61\xe5\xf0\xce\xb0\x4a\x78\x57\x58\x35\xbc\x3b\xac\x16\x56" "\x0f\x6b\x84\x35\xc3\x7b\xc2\x5a\xe1\xbd\x61\xed\xf0\xbe\xb0\x4e\x78" "\x7f\x58\x36\x7c\x20\xac\x17\x3e\x18\xd6\x0f\x1f\x0a\x1b\x84\x0d\xc3" "\x46\xe1\xc3\x61\xe3\xf0\x91\xb0\x49\xd8\x34\x6c\x16\x36\x0f\x5b\x84" "\x2d\xc3\x56\xe1\xa3\x61\xeb\xf0\xb1\xb0\x4d\xd8\x36\x6c\x17\x3e\x1e" "\xb6\x0f\x9f\x08\x3b\x84\x4f\x86\x89\xe1\x53\x61\xc7\xf0\xe9\xcb\xfb" "\x8b\x07\xbf\x14\xf3\x77\xfb\x93\xc2\xde\xa1\xba\xf4\xd8\xe1\x3e\xb5" "\x20\xba\x30\xba\x28\xfa\x41\x74\x71\xf4\xc3\x68\x5a\xf4\xa3\xe8\x92" "\xe8\xc7\xd1\xf4\xe8\xd2\xe8\xb2\xe8\xf2\xe8\x8a\xe8\xca\xe8\xaa\xe8" "\xea\xe8\x9a\xe8\xda\xe8\xba\xe8\xfa\xe8\x86\xe8\xc6\xe8\xa6\xe8\xe6" "\xa8\xf7\x35\xb3\x0b\x07\x99\x0b\x61\xa1\x5d\xe0\xb2\xb9\xec\x2e\xc6" "\xe5\x70\xb1\xee\x1a\x17\xe7\x72\xba\x5c\x2e\xb7\x8b\xb8\x6b\x5d\xbc" "\xbb\xce\xe5\x71\xd7\xbb\xbc\x2e\x9f\xcb\xef\x0a\xb8\x82\xae\x90\x2b" "\xec\x8c\x43\x67\x1d\xb9\xd0\x15\x71\x45\x5d\xd4\xdd\xe0\x8a\xb9\x1b" "\x5d\x82\x2b\xee\x4a\xb8\x92\xce\xb9\x52\xae\xb4\x6b\xe9\x5a\xb9\x56" "\xae\xb5\x7b\xcc\xb5\x71\x6d\x5d\x3b\xf7\xb8\x7b\xdc\x3d\xe1\x9e\x70" "\x4f\xc6\x5c\x2a\xdc\x75\x72\xcf\xb8\xce\xee\x59\xd7\xc5\x3d\xe7\x9e" "\x73\xcf\xbb\x6e\xee\x05\xd7\xdd\xbd\xe8\x7a\xb8\x97\x5c\x4f\xd7\xcb" "\x25\xb9\x24\xd7\xc7\xf5\x71\x7d\x5d\x5f\xd7\xdf\xf5\x77\x03\xdd\x40" "\x37\xc8\x0d\x72\x83\xdd\x60\x37\xc4\x0d\x71\xc3\xdc\x30\x37\xdc\x0d" "\x77\x23\xdc\x08\x37\xd2\x8d\x74\xa3\xdd\x68\x37\xc6\x8d\x71\xe3\xdc" "\x38\x37\xc1\x4d\x70\xc9\x2e\xd9\x4d\x72\x93\xdc\x64\x37\xd9\x4d\x71" "\x53\xdc\x34\x37\xcd\xa5\xb8\x14\x97\xea\x52\xdd\x4c\x37\xd3\xcd\x76" "\xb3\xdd\x1c\x37\xc7\xcd\x73\xf3\xdc\x02\xb7\xc0\x2d\x72\x8b\xdc\x62" "\xb7\xd8\xa5\xb9\x34\xb7\xc4\x2d\x71\xe9\x2e\xdd\x2d\x73\xcb\xdc\x0a" "\xb7\xc2\xad\x72\xab\xdc\x1a\xb7\xc6\xad\x73\xeb\xdc\x06\xb7\xc1\x6d" "\x72\x9b\xdc\x16\xb7\xc5\x6d\x75\x5b\xdd\x76\xb7\xdd\xed\x74\x3b\xdd" "\x6e\xb7\xdb\xed\x71\x7b\xdc\x5e\xb7\xd7\x65\xb8\x0c\xb7\xcf\xed\x73" "\xfb\xdd\x7e\x77\xc0\x7d\xe5\x0e\xba\xaf\xdd\x21\xf7\x8d\x3b\xec\xbe" "\x75\x47\xdc\x77\xee\xa8\xfb\xde\x1d\x73\xc7\xdd\x09\xe7\xd5\x49\xf7" "\xa3\x3b\xe5\x4e\xbb\x33\xee\x27\x77\xd6\xfd\xec\xce\xb9\xf3\xee\x82" "\xf3\x2e\x39\xf2\x76\x64\x52\xe4\x9d\xc8\xe4\xc8\xbb\x91\x29\x91\xa9" "\x91\x69\x91\xe9\x91\x94\xc8\x8c\x48\x6a\xe4\xbd\xc8\xcc\xc8\xac\xc8" "\xec\xc8\xfb\x91\x39\x91\xb9\x91\x79\x91\xf9\x91\x05\x91\x85\x91\x45" "\x91\x0f\x22\x8b\x23\x1f\x46\xd2\x22\x1f\x45\x96\x44\x3e\x8e\xa4\x47" "\x96\x46\x96\x45\x96\x47\x56\x44\x56\x46\xbc\x2f\xb4\x35\xf4\x45\x7c" "\x51\x1f\xf5\x37\xf8\x62\xfe\x46\x9f\xe0\x8b\xfb\x12\xbe\xa4\x77\xbe" "\x94\x2f\xed\x6f\xf2\x65\xfc\xcd\xbe\xac\xbf\xc5\x97\xf3\xb7\xfa\xf2" "\xfe\x36\x5f\xc1\x57\xf4\x95\x7c\x53\xdf\xcc\x37\xf7\x2d\x7c\x4b\xdf" "\xca\x3f\xea\x5b\xfb\xc7\x7c\x1b\xdf\xd6\xb7\xf3\x8f\xfb\xf6\xfe\x09" "\xdf\xc1\x3f\xe9\x13\xfd\x53\xbe\xa3\x7f\xda\x77\xf2\xcf\xf8\xce\xfe" "\x59\xdf\xc5\x3f\xe7\xbb\xfa\xe7\xe7\x5e\xea\xb2\xef\xe1\x5f\xf2\x3d" "\x7d\x2f\x9f\xe4\x7b\xfb\x3e\xfe\x65\xdf\xd7\xf7\xf3\xfd\xfd\x00\x3f" "\xd0\xbf\xe2\x07\xf9\x57\xfd\x60\xff\x9a\x1f\xe2\x87\xfa\x61\xfe\x75" "\x3f\xdc\xbf\xe1\x47\xf8\x37\xfd\x48\x3f\xca\x8f\xf6\x6f\xf9\x31\x7e" "\xac\x1f\xe7\xc7\xfb\x09\x7e\xa2\x4f\xf6\x6f\xfb\x49\xfe\x1d\x3f\xd9" "\xbf\xeb\xa7\xf8\xa9\x7e\x9a\x9f\xee\x53\xfc\x0c\x9f\xea\xdf\xf3\x33" "\xfd\x2c\x3f\xdb\xbf\xef\xe7\xf8\xb9\x7e\x9e\x9f\xef\x17\xf8\x85\x7e" "\x91\xff\xc0\x2f\xf6\x1f\xfa\x34\xff\x91\x5f\xe2\x3f\xf6\xe9\x7e\xa9" "\x5f\xe6\x97\xfb\x15\x7e\xa5\x5f\xe5\x57\xfb\x35\x7e\xad\x5f\xe7\xd7" "\xfb\x0d\x7e\xa3\xdf\xe4\x37\xfb\x2d\xfe\x13\xbf\xd5\x6f\xf3\xdb\xfd" "\x0e\xbf\xd3\xef\xf2\xbb\xfd\xa7\x7e\x8f\xff\xcc\xef\xf5\x9f\xfb\x0c" "\xff\x85\xdf\xe7\xff\xe6\xf7\xfb\x2f\xfd\x01\xff\x95\x3f\xe8\xbf\xf6" "\x87\xfc\x37\xfe\xb0\xff\xd6\x1f\xf1\xdf\xf9\xa3\xfe\x7b\x7f\xcc\x1f" "\xf7\x27\xfc\x0f\xfe\xa4\xff\xd1\x9f\xf2\xa7\xfd\x19\xff\x93\x3f\xeb" "\x7f\xf6\xe7\xfc\x79\x7f\x81\xff\x66\x8d\x31\xc6\x18\x63\xec\x0f\x51" "\x57\xd8\xdf\xfb\x1f\xbc\x26\x2f\x6d\x99\xfa\x08\x21\x72\x6e\x2b\x70" "\xf0\xef\x73\x6e\xc8\xfb\xcb\xb8\x9f\xdc\xd3\x31\x73\xb9\xf7\x54\xaf" "\xae\x0d\x7f\xdd\x1a\x36\x4c\x4a\x4a\xba\x74\x6c\xba\x12\x41\xd1\xf9" "\xf0\x9b\xfc\x17\xbf\x7f\xe0\xd2\x1a\x71\xa9\x68\x27\x9e\x10\x89\xa2" "\xad\x28\xf3\x0f\xeb\xeb\x27\x2b\x5d\xbc\xef\xfb\xef\xf2\x47\x6f\x15" "\x22\x56\x88\x1c\xbf\xce\xc9\x5c\x1e\xc5\x8a\xbf\xcf\x7f\xf3\x3f\xc9" "\xdf\xf4\x03\xba\x52\xfe\xf9\x42\x24\x14\xbd\x3c\x27\xf3\x44\xbf\xc6" "\x97\xf3\x97\xfd\x27\xf9\x77\xb5\xbf\x42\xfe\x1c\x5f\x26\x0b\xd1\xe6" "\xbf\xcc\x89\x13\x97\xe3\xcb\xf9\x4b\x8b\xc7\xc4\xd3\x22\xf1\x37\x47" "\x32\xc6\x18\x63\x8c\x31\xc6\x18\x63\xbf\xe8\x27\xcf\x76\xbb\xd2\xfa" "\xb6\xe8\x7c\x21\x0a\xea\xcb\x73\xb2\x8b\xcb\xf1\x95\xd6\xe7\x57\x50" "\xe5\xcf\xb8\x06\xc6\x18\x63\x8c\x31\xc6\x18\x63\x8c\xfd\xf7\x9e\x7d" "\xa1\xfb\x93\x8f\x26\x26\xb6\xed\xfc\x9f\x3c\xc8\xfe\xd7\x28\xe3\x2f" "\x30\x00\x21\xc4\x5f\xa0\x0c\x1e\xfc\xf5\x07\x57\xfb\x37\x13\x63\x8c" "\x31\xc6\x18\x63\xec\xcf\x76\xf9\xa6\xff\x6a\x57\xc2\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" "\x65\x5d\xbf\xf9\xd2\xaf\x6c\xff\xca\x37\x84\xc9\x3f\x7c\xf0\xd5\xbe" "\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\x3f\x01\x00\x00\xff\xff\x9d\xc7\x52\xc4", 5383); syz_mount_image(/*fs=*/0x200000000280, /*dir=*/0x2000000000c0, /*flags=MS_SYNCHRONOUS|MS_NODIRATIME*/ 0x810, /*opts=*/0x2000000018c0, /*chdir=*/0xfd, /*size=*/0x1507, /*img=*/0x2000000042c0); break; case 1: // truncate arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 32 00} (length 0x8) // } // len: intptr = 0x63fc (8 bytes) // ] memcpy((void*)0x200000000200, "./file2\000", 8); syscall(__NR_truncate, /*file=*/0x200000000200ul, /*len=*/0x63fcul); break; case 2: // truncate arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 32 00} (length 0x8) // } // len: intptr = 0x63fc (8 bytes) // ] memcpy((void*)0x200000000140, "./file2\000", 8); syscall(__NR_truncate, /*file=*/0x200000000140ul, /*len=*/0x63fcul); break; case 3: // ioctl$FAT_IOCTL_SET_ATTRIBUTES arguments: [ // fd: fd (resource) // cmd: const = 0x40047211 (4 bytes) // arg: nil // ] syscall(__NR_ioctl, /*fd=*/(intptr_t)-1, /*cmd=*/0x40047211, /*arg=*/0ul); break; case 4: // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 32 00} (length 0x8) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x80 (2 bytes) // ] // returns fd memcpy((void*)0x200000000000, "./file2\000", 8); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000000ul, /*flags=*/0, /*mode=S_IWUSR*/ 0x80); break; case 5: // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0xa0 (2 bytes) // ] // returns fd memcpy((void*)0x200000000000, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000000ul, /*flags=*/0, /*mode=S_IRGRP|S_IWUSR*/ 0xa0); if (res != -1) r[0] = res; break; case 6: // 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; }