// https://syzkaller.appspot.com/bug?id=70b22d2cc17202bd547f048350306d6423fe925d // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% 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)) { } if (symlink("/dev/binderfs", "./binderfs")) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); 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); } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$udf arguments: [ // fs: ptr[in, buffer] { // buffer: {75 64 66 00} (length 0x4) // } // dir: ptr[in, buffer] { // buffer: {2e 02 00} (length 0x3) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0xc79 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc79) // } // ] // returns fd_dir memcpy((void*)0x200000000080, "udf\000", 4); memcpy((void*)0x200000000c80, ".\002\000", 3); memcpy( (void*)0x2000000011c0, "\x78\x9c\xec\xdd\x5d\x68\x5c\xe9\x79\x07\xf0\xe7\xd5\x91\x6c\xc9\xdb\x34" "\xb3\x9b\x8d\xf3\xe1\x40\x87\x6e\x20\x5b\x6f\x76\x91\x2c\xef\x5a\xc5\x1b" "\x90\x63\x45\x64\xc1\x78\xcd\xca\xca\xc5\x42\xc1\x63\x4b\x76\x87\xd5\x97" "\x25\xb9\x78\x43\x09\x2e\x24\x94\x90\xb6\xb8\xe4\x22\x97\x35\x6c\x42\x7b" "\x57\x43\xa1\x85\xa5\x01\xf7\x6a\x1b\x42\x40\xf4\xaa\xf4\xa2\xb8\xed\xc6" "\x6c\xef\x26\x21\x69\x4b\x2f\x56\xe5\xcc\xbc\x23\x8d\xb4\xfa\xaa\x6d\x59" "\xb2\xf7\xf7\x33\xf6\xff\xcc\x99\xe7\xcc\xbc\x67\x56\xcf\xe8\xcc\xec\xbc" "\x73\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x88\xf8\xea" "\xd7\x4e\xf5\x0f\xa4\x2d\x0a\x7a\x1e\xe1\x60\x00\x80\x47\xe2\xec\xd8\x1b" "\xfd\x83\x5b\xfd\xfe\x07\x00\x9e\x38\xe7\xb7\x7b\xfd\x0f\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x11\x29\x8a\xf8\x76\xa4\x78\xe7\x7b\x8d\x74\xa1\x79\xb9\xa5\xf7\x4c" "\x7d\xe6\xda\xf5\xf1\x91\xd1\x8d\x37\xeb\x4b\x91\xa2\x2b\x8a\x66\x7d\xf9" "\xb7\x77\xe0\xd8\xe0\xf1\x97\x5f\x39\x31\xd4\xce\xad\xb7\x7f\xd8\x3e\x17" "\xaf\x8f\x9d\x3f\x55\x3d\x3d\x3b\x3d\x37\x3f\xb9\xb0\x30\x39\x51\x1d\x9f" "\xa9\x5f\x9a\x9d\x98\xdc\xf1\x2d\x3c\xe8\xf6\xeb\x1d\x6d\x3e\x00\xd5\xe9" "\xb7\xae\x4d\x5c\xbe\xbc\x50\x3d\xf6\xd2\xe0\x9a\xab\xaf\x57\xee\x1d\x7c" "\xea\x70\xe5\xe4\xd0\x91\xc1\x37\xdb\xb5\xe3\x23\xa3\xa3\x63\x1d\x35\xdd" "\x3d\xf7\x7d\xef\x1f\x91\x1e\xde\x4d\xf1\x04\x39\x10\x45\x7c\x3d\x52\xbc" "\xf7\xe2\x07\xa9\x16\x11\x5d\xf1\xe0\xbd\xb0\xcd\x73\xc7\x6e\xeb\x8b\xee" "\xb2\xff\x9a\x3b\x31\x3e\x32\xda\xdc\x91\xa9\x7a\x6d\x66\xb1\xbc\x32\x75" "\xe5\xaa\xee\x88\x4a\xc7\x46\xc3\xed\x1e\x79\x04\xbd\xf8\x40\x86\x23\x6e" "\x94\xff\x9d\xca\x01\x1f\x2d\x77\x6f\x6c\xae\x36\x5f\xbb\x38\x35\x59\x3d" "\x57\x9b\x5f\xac\x2f\xd6\x67\x67\x52\x57\x6b\xb4\xe5\xfe\x54\xa2\x2b\x86" "\x52\xc4\x5c\x44\x34\x8a\xbd\x1e\x3c\xfb\x4d\x4f\x14\x71\x3c\x52\xdc\xfb" "\x65\x23\x5d\x8c\x88\xa2\xdd\x07\x2f\x9c\x1d\x7b\xa3\x7f\x70\xfb\x1b\xe8" "\x7e\x04\x83\xdc\xe4\x6e\x2b\x45\xc4\x52\x3c\x06\x3d\x0b\xfb\xd4\xc1\x28" "\xe2\xcf\x23\xc5\xf7\x2f\xf4\xc7\xa5\xdc\x57\xcd\xb6\x79\x3f\xe2\x4b\x65" "\xbe\x1a\x71\xb5\xcc\x3b\x29\x6e\xe6\xcb\xa9\x7c\x82\x18\x8a\xf8\x85\xdf" "\x27\xf0\x58\xeb\x8e\x22\x7e\x16\x29\x66\x53\x23\x4d\xb4\x7b\xbf\x79\x5c" "\x79\xe6\x1b\xd5\xd7\x66\x2e\xcf\x76\xd4\xb6\x8f\x2b\x1f\x93\xd7\x07\x87" "\x0e\x6e\xbc\xbe\x6f\x77\xef\x76\x9d\x4d\x8e\x4d\x0e\x38\x36\x61\x1f\xe8" "\x8d\x22\x2e\x36\x8f\xf8\x1b\xe9\xfe\xdf\xec\x02\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x1e\x8d\x22\xde\x8d\x14\xb7\xa7\x9f\x4f\x73\xd1\x39\xa7" "\xb4\x3e\x73\xa5\x7a\xbe\x76\x71\xaa\xf5\xa9\xe0\xf6\x67\xff\xab\x79\xab" "\xe5\xe5\xe5\xe5\x4a\x6a\x65\x35\x67\x7f\xce\xe1\x9c\xe7\x72\x5e\xc8\x39" "\x97\xf3\x46\xce\x9b\x39\x6f\xe5\xbc\x9d\xf3\x4e\xce\xa5\x9c\x77\x73\x36" "\x72\x46\x57\xbe\xff\x9c\xd5\x9c\xfd\x39\x87\x73\x9e\xcb\x79\x21\xe7\x5c" "\xce\x1b\x39\x6f\xe6\xbc\x95\xf3\x76\xce\x3b\x39\x97\x72\xde\xcd\xd9\xc8" "\x19\xe6\x3d\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xf0\x90\xf5\x45\x11\xa3\x91\xe2\xd6\x3b\x7f\xd0\x3c\xaf\x74\x34\xcf\x4b" "\xff\xc9\x93\x43\x67\x47\x9e\xed\x3c\x67\xfc\x67\xb6\xb9\x9d\xb2\xf6\xa5" "\x88\x78\x37\x76\x76\x4e\xde\x9e\x7c\xae\xf1\xd4\x55\xfe\x79\xf8\xfb\x05" "\x6c\xaf\x37\x8a\xf8\x56\x3e\xff\xdf\x1f\xed\xf5\x60\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x7d\xa1\x2b\x8a\xf8" "\x76\xa4\xf8\xc1\xaf\x1b\x29\x52\x44\x0c\x47\x5c\x88\x56\xde\x2d\xf6\x7a" "\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x40\xa9\x37\x15\x71\x3a\x52\xfc\xe7\xd7\x7a\x9b\x97\x97\x22\xe2" "\xf3\x11\xf1\xe1\x72\xf9\x27\xe2\x7f\x96\xd7\xdb\xeb\x11\x03\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x13\x28\x15\x71\x35\x52" "\xfc\xf0\xbd\x46\xaa\x44\xc4\xf5\xca\xbd\x83\x4f\x1d\xae\x9c\x1c\x3a\x32" "\xf8\x66\x11\x45\xa4\xb2\xa4\xb3\xfe\xf5\xb1\xf3\xa7\xaa\xa7\x67\xa7\xe7" "\xe6\x27\x17\x16\x26\x27\xaa\xe3\x33\xf5\x4b\xb3\x13\x93\x3b\xbd\xbb\xde" "\x33\xf5\x99\x6b\xd7\xc7\x47\x46\x77\x65\x67\xb6\xd5\xb7\xcb\xe3\xef\xeb" "\x3d\x3d\x3b\xf7\xf6\x7c\xfd\xca\xef\x2f\x6e\x78\xfd\xa1\xde\x53\x17\x17" "\x16\xe7\x6b\x97\x36\xbe\x3a\xfa\xa2\x3b\xa2\xbf\x73\xcd\xd1\xe6\x80\xc7" "\x47\x46\x9b\x83\x9e\xaa\xd7\x66\x9a\x9b\xa6\xae\x4d\x06\xd8\x1d\x51\xdd" "\xe9\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0" "\x6f\x1c\x4a\x45\x8c\x44\x8a\xe7\x7e\x7c\x3c\xb5\xe7\x8d\x77\xb7\xe6\xfc" "\x7f\xa2\x75\xa9\x58\xa9\xfd\xd1\x1f\xae\x7e\x17\xc0\xd4\xba\x6c\xeb\xfc" "\xfe\x80\xd5\xe5\xf6\x64\xf5\xf5\xeb\x07\xdf\x4c\x3b\x1d\xe8\xd1\xe6\xc4" "\xfb\xea\xf8\xc8\xe8\xe8\x58\xc7\xea\xee\x9e\x8f\x96\x96\x63\x4a\xa9\x88" "\x4f\x47\x8a\x23\x7f\xff\xd9\xe6\x7c\xf8\x14\x87\x36\x9c\x1b\x5f\xd6\xfd" "\x49\xa4\x18\xfa\xdf\xe3\xb9\xae\x72\xa4\xac\x1b\x5e\x53\xd5\x7b\x74\x7c" "\x64\xb4\x7a\x76\x76\xe6\xc5\x53\x53\x53\xb3\x97\x6a\x7d\xb5\x8b\x53\x93" "\xd5\xb1\xb9\xda\xa5\x1d\x7f\x71\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x6c\xe1\x50\x2a\xe2\x4f\x23\xc5\xf1\xd7\x96\x52" "\xfb\xbc\xf3\x79\xfe\x7f\x77\xeb\x52\xc7\xfc\xff\x57\x23\xda\x33\xf9\x7b" "\xd3\xda\x5c\xd1\x9c\xdb\xff\x9b\xcd\xb9\xfd\xad\xe5\x4f\x9e\x1c\x7a\xed" "\xd8\x73\x9b\xad\xdf\x8d\xf9\xff\xe5\x98\x52\x2a\xe2\xc3\x48\xf1\xf4\x5f" "\x7c\xb6\x79\x3e\xfd\xf6\xfc\xff\xfe\x75\xb5\x65\xdd\x0f\x23\xc5\xcf\xbe" "\xf3\x85\x5c\xd7\x75\xa0\xac\x1b\x68\xef\x4e\xeb\x16\x2f\xd7\xa7\x26\xfb" "\xcb\xda\x17\x22\xc5\x77\xcf\xb5\x6b\xa3\x59\xfb\x4a\xae\xfd\xd4\x6a\xed" "\x40\x59\xfb\x0f\x91\xe2\x99\xdf\x5b\x5b\x7b\x22\xd7\x3e\xbb\x5a\x7b\xac" "\xac\xbd\x17\x29\x46\xcf\x6e\x5c\xfb\xe9\xd5\xda\xc1\xb2\xb6\x2f\x52\x7c" "\xf9\x8f\xab\xed\xda\x43\x65\xed\x57\x73\xed\xe1\xd5\xda\x97\x2e\xcd\x4e" "\x4d\xec\xf4\xe1\xe5\xe3\xa9\xec\xff\x7f\x8d\x14\x5f\x1c\xf8\x7a\x6a\xff" "\xcc\x6f\xda\xff\x1d\xdf\xff\x71\x63\x5d\xae\xf8\x48\xcf\x6f\xbd\xfc\xb0" "\xfa\xbf\xd2\xb1\xee\x46\xee\xeb\xe5\xdc\xff\x03\xdb\xf4\xff\xd5\x48\xf1" "\x67\x37\xbf\x90\xeb\x5a\xbd\x77\x2c\x5f\xff\x74\xf3\xdf\xd5\xfe\xff\x6e" "\xa4\xf8\x9d\x4f\xac\xad\x7d\x39\xd7\x3e\xb3\x5a\x3b\xb0\xd3\xdd\x82\xbd" "\x54\xf6\xff\x4f\x22\xc5\xd2\xdd\x7f\x5e\xf9\x99\xcf\xfd\xdf\x13\xd1\x17" "\xab\x1d\xbf\xb6\xff\x3f\xdf\xbd\x36\xdb\xc7\x05\x7b\xd5\xff\x4f\x77\xac" "\xab\xe4\x71\x0d\xfe\xff\x1f\x0e\xf8\x58\x59\x78\xfb\x9b\x6f\xd5\xa6\xa6" "\x26\xe7\x3f\xba\x30\x1c\x11\x9b\x5c\xf5\x64\x2d\xa4\xfd\x31\x8c\xad\x17" "\xca\xa7\xe2\xdd\xbb\x8b\xdf\xda\xfb\x1d\xb4\xb0\xbf\x16\x36\x78\xb2\xf8" "\xcb\x5f\x2d\x2f\xef\xc1\x73\x14\xb0\x3b\xca\xe3\xff\xff\x8a\x14\x5f\xb9" "\x5a\xa4\xf6\xeb\xd8\x7c\xfc\xff\x1b\xad\x4b\xab\xaf\xff\xff\xfb\x5b\xab" "\xc7\xff\x27\xd7\xe5\x8a\x3d\x3a\xfe\x7f\xa6\x63\xdd\xc9\xfc\xaa\xa5\xa7" "\x3b\xa2\x77\x71\x7a\xae\xe7\x33\x11\xbd\x0b\x6f\x7f\xf3\xc5\xfa\x74\xed" "\xca\xe4\x95\xc9\x99\xc1\xc1\xa1\x13\xbf\x7b\x7c\xe0\xd8\x89\x81\x9e\x03" "\xed\x17\xf7\xab\x4b\x3b\x7e\xec\xe0\x71\x57\xf6\xff\x5b\x91\xe2\x47\x7f" "\xfd\x4f\x2b\xef\x63\xaf\xbe\xfe\x8f\x4d\xdf\xff\x3b\xb4\x2e\x57\xec\x51" "\xff\x7f\xaa\x73\x9f\xd6\xbc\xae\xd9\xf1\x43\x01\x1f\x3b\x65\xff\xff\x55" "\xa4\xf8\x97\x5b\x1f\xac\xfc\xff\xa6\xb5\xfd\xbf\xf6\xfd\xbf\xf6\xfb\x7c" "\xcf\x3f\xb7\x36\xfb\xda\x45\x7b\xd4\xff\xcf\x76\xac\xab\xe6\x7f\x86\x3a" "\xd6\x3d\x5f\x44\x9c\xda\xe9\x7d\x01\x00\x00\x00\x00\x00\x00\x00\xc0\x63" "\xe2\x50\x2a\xe2\xc7\x91\xe2\x6f\x1b\xff\xb8\x72\xce\xfb\xb5\x9f\xff\x89" "\x2f\xb6\x6b\x3b\x3f\xff\xb7\x99\x8d\xcf\xff\xbf\xf9\xf2\x6e\xcc\xff\x07" "\x00\xb6\x56\xfe\xfe\x1f\x8b\x14\x3f\x3d\xf4\xe5\xd4\xfe\x0e\x99\x9d\x7c" "\xfe\x7f\x62\x5d\xae\xd8\xa3\xcf\xff\x1e\xee\x58\x37\xb1\xf5\xbc\xe6\x87" "\xb6\xb0\xe3\x07\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xee\x53\x8a\x22\x0e\x46\x8a\x77\xbe\xd7\x48\x77\x8b\xf2\x72\x4b\xef" "\x99\xfa\xcc\xb5\xeb\xe3\x23\xa3\x1b\x6f\xf6\xee\x6c\x44\x74\x45\xd1\xac" "\x2f\xff\xf6\x0e\x1c\x1b\x3c\xfe\xf2\x2b\x27\x86\xda\xb9\xf5\xf6\x0f\xdb" "\xe7\xe2\xf5\xb1\xf3\xa7\xaa\xa7\x67\xa7\xe7\xe6\x27\x17\x16\x26\x27\xaa" "\xe3\x33\xf5\x4b\xb3\x13\x93\x3b\xbe\x85\x07\xdd\x7e\xbd\xa3\xcd\x07\xa0" "\x3a\xfd\xd6\xb5\x89\xcb\x97\x17\xaa\xc7\x5e\x1a\x5c\x73\xf5\xf5\xca\xbd" "\x83\x4f\x1d\xae\x9c\x1c\x3a\x32\xf8\x66\x59\x3b\x7c\xed\x7a\x75\x7c\x64" "\x74\x74\xac\xa3\xa6\xbb\x67\xfd\x8d\xf6\xdd\xf7\x70\xd2\x7d\x6f\xc9\x93" "\xec\x40\x14\xf1\xd3\x48\xf1\xde\x8b\x1f\xa4\x7f\x2b\xca\x9e\x7e\xf0\x5e" "\xd8\xe6\xb9\x63\xb7\xf5\x45\x77\xd9\x7f\xcd\x9d\x18\x1f\x19\x6d\xee\xc8" "\x54\xbd\x36\xb3\x58\x5e\x99\xba\x72\x55\x77\x44\xa5\x63\xa3\xe1\x76\x8f" "\xe4\xbe\xdd\xbe\x17\xf7\xc8\x70\xc4\x8d\xf2\xb9\xb7\x1c\xf0\xd1\x72\xf7" "\xc6\xe6\x6a\xf3\xb5\x8b\x53\x93\xd5\x73\xb5\xf9\xc5\xfa\x62\x7d\x76\x26" "\x75\xb5\x46\x9b\x7e\xf2\xab\xa8\x44\x57\x0c\xa5\x88\xb9\x88\x68\x14\x7b" "\x3d\x78\xf6\x9b\x9e\x28\xe2\xef\x22\xc5\xbd\x5f\x36\xd2\xbf\x17\x11\x45" "\xbb\x0f\x5e\x38\x3b\xf6\x46\xff\xe0\xf6\x37\xd0\xfd\x08\x06\xb9\xc9\xdd" "\x56\x8a\x88\xa5\x78\x0c\x7a\x16\xf6\xa9\x83\x51\xc4\xb3\x91\xe2\xfb\x17" "\xfa\xe3\x3f\x8a\x56\x5f\x35\xdb\xe6\xfd\x88\x2f\x95\xf9\x6a\xc4\xd5\x32" "\xef\xa4\xb8\x99\x2f\xa7\xf2\x09\x62\x28\xe2\x17\x7e\x9f\xc0\x63\xad\x3b" "\x8a\x38\x17\x29\x66\x53\x23\xbd\x5f\xe4\xde\x6f\x1e\x57\x9e\xf9\x46\xf5" "\xb5\x99\xcb\xb3\x1d\xb5\xed\xe3\xca\xc7\xfe\xf5\xc1\xa3\xe4\xd8\x84\x7d" "\xac\x37\x8a\xf8\x79\xf3\x88\xbf\x91\x7e\xee\xf7\x39\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xec\x73\x45\x7c\x25\x52\xdc\x9e\x7e\x3e\x35\xe7\x87" "\xae\xcc\x29\xad\xcf\x5c\xa9\x9e\xaf\x5d\x9c\x6a\x7d\xac\xbf\xfd\xd9\xff" "\x6a\xde\x6a\x79\x79\x79\xb9\xf2\xdb\x7f\xd3\x5c\xa8\xa6\xd6\xe5\xfe\x9c" "\xc3\x39\xcf\xe5\xbc\x90\x73\x2e\xe7\x8d\x9c\x37\x73\xde\xca\x79\x3b\xe7" "\x9d\x9c\x4b\x39\xef\xe6\x6c\xe4\x8c\xae\x7c\xff\x39\xab\x39\xfb\x73\x0e" "\xe7\x3c\x97\xf3\x42\xce\xb9\x9c\x37\x72\xde\xcc\x79\x2b\xe7\xed\x9c\x77" "\x72\x2e\xe5\xbc\x9b\xb3\x91\x33\x7c\x4e\x1a\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x80\x5d\xd2\x15\x45\x7c\x27\x52\xfc\xe0\xd7\x8d" "\xb4\x5c\xb4\xce\x2f\x7b\x21\x5a\x79\xd7\x3c\x57\x78\xa2\xfd\x5f\x00\x00" "\x00\xff\xff\x53\xa5\x46\xc7", 3193); syz_mount_image(/*fs=*/0x200000000080, /*dir=*/0x200000000c80, /*flags=*/0, /*opts=*/0x2000000001c0, /*chdir=*/1, /*size=*/0xc79, /*img=*/0x2000000011c0); // open arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: open_flags = 0x143142 (8 bytes) // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x200000002000, "./bus\000", 6); syscall(__NR_open, /*file=*/0x200000002000ul, /*flags=O_SYNC|O_NOCTTY|O_NOATIME|O_CREAT|FASYNC|0x2*/ 0x143142ul, /*mode=*/0ul); // mount arguments: [ // src: ptr[in, blockdev_filename] { // union blockdev_filename { // loop: loop_filename { // prefix: buffer: {2f 64 65 76 2f 6c 6f 6f 70} (length 0x9) // id: proc = 0x0 (1 bytes) // z: const = 0x0 (1 bytes) // } // } // } // dst: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // type: nil // flags: mount_flags = 0x1000 (8 bytes) // data: nil // ] memcpy((void*)0x200000000380, "/dev/loop", 9); *(uint8_t*)0x200000000389 = 0x30; *(uint8_t*)0x20000000038a = 0; memcpy((void*)0x200000000140, "./bus\000", 6); syscall(__NR_mount, /*src=*/0x200000000380ul, /*dst=*/0x200000000140ul, /*type=*/0ul, /*flags=MS_BIND*/ 0x1000ul, /*data=*/0ul); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x200000000040, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x200000000040ul, /*mode=*/0ul); if (res != -1) r[0] = res; // writev arguments: [ // fd: fd (resource) // vec: ptr[in, array[iovec[in, array[int8]]]] { // array[iovec[in, array[int8]]] { // iovec[in, array[int8]] { // addr: ptr[in, buffer] { // buffer: {06} (length 0x1) // } // len: len = 0x1 (8 bytes) // } // } // } // vlen: len = 0x1 (8 bytes) // ] *(uint64_t*)0x200000000140 = 0x200000000280; memset((void*)0x200000000280, 6, 1); *(uint64_t*)0x200000000148 = 1; syscall(__NR_writev, /*fd=*/r[0], /*vec=*/0x200000000140ul, /*vlen=*/1ul); // open arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: open_flags = 0x0 (8 bytes) // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x200000000480, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x200000000480ul, /*flags=*/0ul, /*mode=*/0ul); if (res != -1) r[1] = res; // sendfile arguments: [ // fdout: fd (resource) // fdin: fd (resource) // off: nil // count: intptr = 0x80001d00c0d0 (8 bytes) // ] syscall(__NR_sendfile, /*fdout=*/r[0], /*fdin=*/r[1], /*off=*/0ul, /*count=*/0x80001d00c0d0ul); } 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; do_sandbox_none(); return 0; }