// https://syzkaller.appspot.com/bug?id=8e0acbfb5bd9bba1f7b845d711bdca16f3b79ceb // 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 #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 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; } #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 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_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$hfsplus arguments: [ // fs: ptr[in, buffer] { // buffer: {68 66 73 70 6c 75 73 00} (length 0x8) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[in, fs_options[hfsplus_options]] { // fs_options[hfsplus_options] { // elems: array[fs_opt_elem[hfsplus_options]] { // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // part: fs_opt["part", fmt[hex, int32]] { // name: buffer: {70 61 72 74} (length 0x4) // eq: const = 0x3d (1 bytes) // val: int32 = 0x500f (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // nodecompose: buffer: {6e 6f 64 65 63 6f 6d 70 6f 73 65} // (length 0xb) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // decompose: buffer: {64 65 63 6f 6d 70 6f 73 65} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // part: fs_opt["part", fmt[hex, int32]] { // name: buffer: {70 61 72 74} (length 0x4) // eq: const = 0x3d (1 bytes) // val: int32 = 0xc (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // uid: fs_opt["uid", fmt[hex, uid]] { // name: buffer: {75 69 64} (length 0x3) // eq: const = 0x3d (1 bytes) // val: uid (resource) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // umask: fs_opt["umask", fmt[oct, int32]] { // name: buffer: {75 6d 61 73 6b} (length 0x5) // eq: const = 0x3d (1 bytes) // val: int32 = 0x6 (23 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // nls: fs_opt["nls", stringnoz[codepages_names]] { // name: buffer: {6e 6c 73} (length 0x3) // eq: const = 0x3d (1 bytes) // val: buffer: {65 75 63 2d 6a 70} (length 0x6) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // gid: fs_opt["gid", fmt[hex, gid]] { // name: buffer: {67 69 64} (length 0x3) // eq: const = 0x3d (1 bytes) // val: gid (resource) // } // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x3 (1 bytes) // size: len = 0x5f4 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x5f4) // } // ] // returns fd_dir memcpy((void*)0x200000000600, "hfsplus\000", 8); memcpy((void*)0x200000000040, "./file1\000", 8); memcpy((void*)0x200000000280, "part", 4); *(uint8_t*)0x200000000284 = 0x3d; sprintf((char*)0x200000000285, "0x%016llx", (long long)0x500f); *(uint8_t*)0x200000000297 = 0x2c; memcpy((void*)0x200000000298, "nodecompose", 11); *(uint8_t*)0x2000000002a3 = 0x2c; memcpy((void*)0x2000000002a4, "decompose", 9); *(uint8_t*)0x2000000002ad = 0x2c; memcpy((void*)0x2000000002ae, "part", 4); *(uint8_t*)0x2000000002b2 = 0x3d; sprintf((char*)0x2000000002b3, "0x%016llx", (long long)0xc); *(uint8_t*)0x2000000002c5 = 0x2c; memcpy((void*)0x2000000002c6, "uid", 3); *(uint8_t*)0x2000000002c9 = 0x3d; sprintf((char*)0x2000000002ca, "0x%016llx", (long long)0); *(uint8_t*)0x2000000002dc = 0x2c; memcpy((void*)0x2000000002dd, "umask", 5); *(uint8_t*)0x2000000002e2 = 0x3d; sprintf((char*)0x2000000002e3, "%023llo", (long long)6); *(uint8_t*)0x2000000002fa = 0x2c; memcpy((void*)0x2000000002fb, "nls", 3); *(uint8_t*)0x2000000002fe = 0x3d; memcpy((void*)0x2000000002ff, "euc-jp", 6); *(uint8_t*)0x200000000305 = 0x2c; memcpy((void*)0x200000000306, "gid", 3); *(uint8_t*)0x200000000309 = 0x3d; sprintf((char*)0x20000000030a, "0x%016llx", (long long)0xee00); *(uint8_t*)0x20000000031c = 0x2c; *(uint8_t*)0x20000000031d = 0; memcpy( (void*)0x200000000640, "\x78\x9c\xec\xdd\xcf\x6b\x1c\xe7\x19\x07\xf0\xef\xac\xd6\xb2\xe5\x82\xb3" "\x49\xec\x24\x2d\x2d\x15\xf6\xa1\x25\xa6\xb6\x56\x9b\x38\x3a\x14\xea\x96" "\x52\x74\x08\x25\xd0\x4b\x2e\x39\x08\x7b\x1d\x0b\xaf\x95\x20\x6d\x8a\x12" "\x4a\x91\xfb\xf3\xda\xff\x20\x29\x45\x3e\xf7\xd4\x43\xe9\xc1\x90\x9e\x7b" "\xed\x51\xd0\x43\x0e\x85\xde\x75\x73\x99\xd9\x59\x69\x6d\x2b\xb2\x14\x2b" "\xda\x55\xf2\xf9\xc0\xbb\xef\x3b\xfb\xce\xbc\xf3\xcc\xe3\x99\x57\x3b\xb3" "\x98\x0d\xf0\xb5\xb5\xf8\x76\x4e\x3d\x48\x91\xc5\xcb\x6f\xae\x97\xcb\x5b" "\x9b\x9d\xde\xd6\x66\xe7\xee\xb0\x9d\xe4\x74\x92\x46\xd2\x1c\x54\x29\x56" "\x92\xe2\xd3\xe4\x7a\x06\x25\xdf\x2c\xdf\xac\x87\x2b\x3e\x6f\x3f\xef\x7c" "\xfc\xc6\xc2\x67\xed\xfb\xf7\x92\xa2\x39\x18\xab\x39\x5c\xbf\xb1\xdf\x76" "\x07\xb3\x51\x97\xcc\x26\x99\xaa\xeb\xa3\x1a\xef\xc6\x33\x8f\x57\xec\x1c" "\x61\x99\xb0\x4b\xc3\xc4\xc1\xb8\x3d\x7c\xc2\xc6\x61\x36\x7f\xc6\xeb\x16" "\x98\x64\xad\xe4\x6c\x92\x33\xf5\xe7\x80\xd4\xb3\x43\x63\xcc\x61\x3d\xb3" "\x43\xcd\x72\x00\x00\x00\x70\x42\x3d\xb7\x9d\xed\xac\xe7\xdc\xb8\xe3\x00" "\x00\x00\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\x93\xa4\x48\xa6\x06\x55\x55\x1a\xc3" "\xf6\x6c\x8a\xe1\xef\xff\x4f\xd7\xef\xa5\x6e\x9f\x68\x0f\xc6\x1d\x00\x00" "\x00\x00\x00\x00\x00\x00\x1c\x81\xef\x6e\x67\x3b\xeb\x39\x37\x5c\x7e\x58" "\x54\xdf\xf9\x5f\xac\x16\xce\x57\xaf\xdf\xc8\x07\x59\x4b\x37\xab\xb9\x92" "\xf5\x2c\xa5\x9f\x7e\x56\xd3\x4e\xd2\x1a\x19\x68\x7a\x7d\xa9\xdf\x5f\x6d" "\x3f\x75\xcb\x22\xd9\x78\x34\x84\xc1\x96\xf3\xc7\x70\xb0\x00\x00\x00\x00" "\x00\x00\x00\xf0\xd5\xf5\x9b\x2c\xee\x7e\xff\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\x93\xa0\x48\xa6\x06\x55\x55\xce\x0f\xdb\xad\x34\x9a" "\x49\xce\x24\x99\x2e\xd7\xdb\x48\xfe\x31\x6c\x9f\x64\x0f\xc6\x1d\x00\x00" "\x00\x00\x1c\x83\xe7\xb6\xb3\x9d\xf5\x9c\x1b\x2e\x3f\x2c\xaa\x7b\xfe\x97" "\xaa\xfb\xfe\x33\xf9\x20\x2b\xe9\x67\x39\xfd\xf4\xd2\xcd\xcd\xea\x59\xc0" "\xe0\xae\xbf\xb1\xb5\xd9\xe9\x6d\x6d\x76\xee\x96\xe5\xc9\x71\x7f\xfc\xbf" "\x43\x85\x51\x8d\x98\xc1\xb3\x87\xbd\xf7\x3c\x57\xad\x71\x61\x67\x8b\xc5" "\xfc\x2c\xbf\xc8\xe5\xcc\xe6\xad\xac\x66\x39\xbf\xcc\x52\xfa\xe9\x66\x36" "\x3f\xad\x5a\x4b\x29\xd2\xaa\x9f\x5e\xb4\x86\x71\xee\x1d\xef\xf5\x47\x96" "\xde\x7a\x5a\xac\xaf\x54\x91\xcc\xe4\x56\x96\xab\xd8\xae\xe4\x46\xde\x4b" "\x2f\x37\xd3\xa8\x8e\xa1\x5a\x67\xff\x3d\xde\x2b\xb3\x53\xfc\xa8\x76\xc0" "\x1c\xdd\xac\xeb\xf2\x88\xfe\x54\xd7\x93\xa1\x55\x65\xe4\xd4\x4e\x46\xe6" "\xea\xdc\x97\xd9\x78\x7e\xff\x4c\x1c\xf2\x3c\x79\x7c\x4f\xed\x34\x76\x9e" "\x41\x9d\xff\xf7\xd1\xe7\xfc\x6c\x5d\x97\xb9\xfe\xc3\x44\xe7\x7c\x7e\xe4" "\xec\x7b\x69\xff\x9c\x27\x17\xff\xf3\x9d\xbf\xdd\xee\xad\xdc\xb9\x7d\x6b" "\xed\xf2\xe4\x1c\xd2\x17\xf4\x78\x26\x3a\x23\x99\x78\xf9\x6b\x95\x89\xe9" "\x3a\x1b\x83\x59\xf4\x70\xb3\xe5\xc5\x6a\xdb\x73\x59\xce\xcf\xf3\x5e\x6e" "\xa6\x9b\xd7\xb3\x90\xd7\x33\x9f\xd7\xf2\x5a\xe6\xb2\x90\x6b\x23\x79\xbd" "\x70\x80\xf9\xad\x71\xb8\x6b\xed\xd2\xf7\xeb\xc6\x4c\x92\x3f\xd6\xf5\x64" "\x28\xf3\xfa\xfc\x48\x5e\x47\x67\xba\x56\xd5\x37\xfa\xce\x20\x4b\xe5\xc9" "\xf4\xc2\xd1\xff\x15\x68\x7e\xab\x6e\x94\xfb\xf8\x6d\x5d\x4f\x86\xc7\x33" "\xd1\x1e\x39\x5f\x5e\xdc\x3f\x13\x7f\x7e\x58\xbe\xae\xf5\x56\xee\xac\xde" "\x5e\x7a\xff\x80\xfb\xfb\x5e\x5d\x97\x99\xfe\xfd\x44\xcd\xcd\xe5\xf9\xf2" "\x42\xf9\x8f\x55\x2d\x3d\x7a\x76\x94\x7d\x2f\xee\xd9\xd7\xae\xfa\xce\xef" "\xf4\x35\x9e\xe8\xbb\xb0\xd3\xf7\xb4\x2b\x75\xba\xfe\x0c\xf7\xe4\x48\xf3" "\x55\xdf\xcb\x7b\xf6\x75\xaa\xbe\x57\x46\xfa\xf6\xfa\x94\x03\xc0\x84\xda" "\xfd\x4e\xfb\xec\xab\x67\xa7\x67\xfe\x3b\xf3\xaf\x99\x4f\x66\x7e\x37\x73" "\x7b\xe6\xcd\x33\x3f\x39\xbd\x70\xfa\xdb\xd3\x39\xf5\xcf\xe6\xdf\xa7\xfe" "\xda\xb8\xdf\xf8\x61\xf1\x6a\x3e\xc9\xaf\x77\xef\xff\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x80\x2f\x6e\xed\xc3\x8f\xee\x2c\xf5\x86\x3f\x03\xd0\xeb\x75\x57\x07\xef" "\x7c\xc5\x1a\x7f\xc9\x44\x84\xa1\x71\xd2\x1a\xcd\xfa\xca\x98\x94\x78\x8e" "\xaf\x31\xc6\x49\x09\x38\x16\x57\xfb\x77\xdf\xbf\xba\xf6\xe1\x47\x3f\x58" "\xbe\xbb\xf4\x6e\xf7\xdd\xee\x4a\xa7\xd3\xbe\x36\xbf\x70\x6d\x61\xfe\xda" "\xd5\x5b\xcb\xbd\xee\xdc\xe0\x75\xdc\x61\x02\x5f\x82\xdd\x3f\xfa\xe3\x8e" "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\xa8\xe3\xf8\xef\x04\xe3\x3e" "\x46\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xe0\x64\x5b\x7c\x3b\xa7\x1e\xa4\x48\x7b\xee\xca\x5c\xb9" "\xbc\xb5\xd9\xe9\x95\x65\xd8\xde\x5d\xb3\x99\xa4\x91\xa4\xf8\x55\x52\x7c" "\x9a\x5c\xcf\xa0\xa4\x35\x32\x5c\xf1\x79\xfb\x79\xe7\xe3\x37\x16\x3e\x6b" "\xdf\xbf\xb7\x3b\x56\x73\xb8\x7e\x63\xbf\xed\x0e\x66\xa3\x2e\x99\x4d\x32" "\x55\xd7\x47\x35\xde\x8d\x67\x1e\xaf\xd8\x39\xc2\x32\x61\x97\x86\x89\x83" "\x71\xfb\x7f\x00\x00\x00\xff\xff\x52\x87\x07\xdb", 1524); syz_mount_image(/*fs=*/0x200000000600, /*dir=*/0x200000000040, /*flags=*/0, /*opts=*/0x200000000280, /*chdir=*/3, /*size=*/0x5f4, /*img=*/0x200000000640); // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {6d 65 6d 6f 72 79 2e 65 76 65 6e 74 73 00} (length 0xe) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x2000000001c0, "memory.events\000", 14); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000001c0ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[0] = res; // write$cgroup_subtree arguments: [ // fd: fd_cgroup_subtree (resource) // buf: nil // len: bytesize = 0x32600 (8 bytes) // ] syscall(__NR_write, /*fd=*/r[0], /*buf=*/0ul, /*len=*/0x32600ul); // syz_mount_image$hfsplus arguments: [ // fs: ptr[in, buffer] { // buffer: {68 66 73 70 6c 75 73 00} (length 0x8) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: mount_flags = 0x180000c (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {6e 6c 73 3d 61 73 63 69 69 2c 67 69 64 3d} // (length 0xe) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {2c 70 61 72 74 3d 30 78 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 62 62 2c 6e 6f 62 61 72 72 69 65 72 2c 6e 6f 62 // 61 72 72 69 65 72 2c 63 72 65 61 74 6f 72 3d 7f cf b5 b7 2c 70 61 // 72 74 3d 30 78 30 30 30 30 30 30 30 30 30 30 30 30 30 31 30 31 2c // 67 69 64 3d} (length 0x56) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {2c 75 6d 61 73 6b 3d 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 2c 64 65 63 6f 6d 70 6f // 73 65 2c 66 6f 72 63 65 2c 6e 6f 64 65 63 6f 6d 70 6f 73 65 2c 62 // 61 72 72 69 65 72 2c 6e 6f 64 65 63 6f 6d 70 6f 73 65 2c 74 79 70 // 65 3d b0 29 e1 c0 2c 75 69 64 3d} (length 0x5d) // } // union ANYUNION { // ANYRES16: ANYRES16 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {2c 74 79 70 65 3d d2 10 0d 1b 2c 75 29 64 3d d4 // f8 1c 66 21 0b bc bf 82 44 0a 10 4a b9 56 f2 ba 5e 36 e4 1c cb 1b // 04 0f a8 b8 29 b0 b8 70 78 de 65 4c 66 ac 22 ae ba a2 c6 53 ef 12 // 7e 38 e0 aa 22 29 f9 cf 6a 85 03 5e b8 6c 32 a5 9f 1f 3a cd b9 8c} // (length 0x52) // } // union ANYUNION { // ANYRESDEC: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {06 00 00 bd 00} (length 0x5) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // union ANYUNION { // ANYRES8: ANYRES8 (resource) // } // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x6eb (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x6eb) // } // ] // returns fd_dir memcpy((void*)0x200000000000, "hfsplus\000", 8); memcpy((void*)0x200000000100, "./bus\000", 6); memcpy((void*)0x2000000005c0, "nls=ascii,gid=", 14); sprintf((char*)0x2000000005ce, "0x%016llx", (long long)0); memcpy( (void*)0x2000000005e0, "\x2c\x70\x61\x72\x74\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x62\x62\x2c\x6e\x6f\x62\x61\x72\x72\x69\x65\x72\x2c\x6e" "\x6f\x62\x61\x72\x72\x69\x65\x72\x2c\x63\x72\x65\x61\x74\x6f\x72\x3d\x7f" "\xcf\xb5\xb7\x2c\x70\x61\x72\x74\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x31\x30\x31\x2c\x67\x69\x64\x3d", 86); sprintf((char*)0x200000000636, "0x%016llx", (long long)0); memcpy((void*)0x200000000648, "\x2c\x75\x6d\x61\x73\x6b\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x2c\x64\x65\x63" "\x6f\x6d\x70\x6f\x73\x65\x2c\x66\x6f\x72\x63\x65\x2c\x6e\x6f\x64\x65" "\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x62\x61\x72\x72\x69\x65\x72\x2c\x6e" "\x6f\x64\x65\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x74\x79\x70\x65\x3d\xb0" "\x29\xe1\xc0\x2c\x75\x69\x64\x3d", 93); *(uint16_t*)0x2000000006a5 = -1; memcpy((void*)0x2000000006a7, "\x2c\x74\x79\x70\x65\x3d\xd2\x10\x0d\x1b\x2c\x75\x29\x64\x3d\xd4\xf8" "\x1c\x66\x21\x0b\xbc\xbf\x82\x44\x0a\x10\x4a\xb9\x56\xf2\xba\x5e\x36" "\xe4\x1c\xcb\x1b\x04\x0f\xa8\xb8\x29\xb0\xb8\x70\x78\xde\x65\x4c\x66" "\xac\x22\xae\xba\xa2\xc6\x53\xef\x12\x7e\x38\xe0\xaa\x22\x29\xf9\xcf" "\x6a\x85\x03\x5e\xb8\x6c\x32\xa5\x9f\x1f\x3a\xcd\xb9\x8c", 82); sprintf((char*)0x2000000006f9, "%020llu", (long long)0); memcpy((void*)0x20000000070d, "\x06\x00\x00\xbd\x00", 5); sprintf((char*)0x200000000712, "0x%016llx", (long long)-1); *(uint8_t*)0x200000000724 = 0; memcpy( (void*)0x200000000dc0, "\x78\x9c\xec\xdd\x4b\x68\x1c\xf7\x1d\x07\xf0\xef\xac\x56\x2f\x17\x1c\x39" "\xf1\x23\x2d\x81\x88\x18\xd2\x52\x53\x5b\xb2\x70\x5a\xf7\x52\xb7\x94\xe2" "\x43\x28\x21\x3d\xf4\x2c\x1c\x39\x16\x5e\xdb\x41\x52\x8a\x6c\x4a\xa3\xf4" "\x71\xef\x21\x87\xd2\x53\x7a\xd0\x2d\xf4\x50\xd2\xbb\xa1\x3d\x37\xa4\x94" "\x5c\x75\x0c\x14\x72\xc9\xc9\x37\x95\x9d\x9d\x5d\xed\x4a\xab\x5d\xc9\x92" "\x25\x35\xf9\x7c\xc4\xec\xfc\x67\xfe\xcf\xf9\xcd\xce\xcc\xee\x0e\x62\x02" "\x7c\x6d\xdd\xbc\x94\xfa\xe3\x14\xb9\x79\xe9\xf5\xd5\xe6\xf2\xc6\xfa\x5c" "\x63\x64\x7d\x6e\xbc\xca\x6e\x24\x19\x4b\x52\x4b\xea\xcd\x59\x33\x7d\x3f" "\x65\xee\x8d\x6a\xca\x37\x93\x14\x55\xf9\xa2\xd3\xf0\xbf\x7b\xfb\xf9\x60" "\xf1\xfa\x9b\x9f\x7d\xb9\xf1\x79\x6b\xa9\x5e\x4d\x65\xf9\xa2\xa7\xde\x70" "\x63\x3b\x57\xad\x55\x53\xa6\x93\x8c\x54\xf3\x9d\x46\x77\x69\xf1\xe3\xed" "\xdd\xf7\xb4\x77\x6b\xd7\xf6\xf6\x6a\x6b\x0b\x9b\x01\xbb\xd8\x0e\x5c\xfe" "\x7c\xa0\x56\xe1\xc0\x36\x77\x58\xeb\xe4\x7d\xf4\x9f\xf2\x75\x50\xf5\xfd" "\x1c\xb7\xc0\x09\x55\xb4\xae\x9b\x3b\x4c\x25\xa7\x92\x4c\x24\xad\xab\x7e" "\x75\x76\xa8\x1d\xed\xe8\x0e\xdf\xda\x71\x0f\x00\x00\x00\x00\xf6\x6b\x72" "\xff\x55\x9e\x7b\x92\x27\x59\xcd\xe9\x67\x31\x1c\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xf8\xaa\xaa\x9e\xff\x5f\x54\x53\xad\x9d\x9e\x4e\xd1\x7e\xfe" "\xff\x58\xb5\x2e\x55\xfa\x04\x1a\xfe\x20\xc4\x4f\xc7\x5b\xf3\xc7\xcf\x7e" "\x30\x00\x00\x00\x00\x00\x00\x00\xf0\xcc\xbd\xfc\x24\x4f\xb2\x9a\xd3\xed" "\xe5\xcd\xa2\xbc\xe7\xff\x4a\xd7\x3d\xfe\x6f\xe4\xdd\x2c\x67\x21\x4b\xb9" "\x9c\xd5\xcc\x67\x25\x2b\x59\xca\x6c\x92\xa9\xae\x86\xc6\x56\xe7\x57\x56" "\x96\x66\xcb\x9a\xc9\xd9\x01\x35\xaf\xe6\x93\x3e\x35\xaf\xee\x3e\xc6\x1b" "\x87\xbc\xcd\x00\x00\x00\x00\x00\x00\x00\x70\xc2\x4d\x0c\xc9\xbf\x3b\x5a" "\xce\xfe\xd4\xfd\x7f\xfb\xbf\xcd\xcd\xad\xfb\xff\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x70\x12\x14\xc9\x48\x6b\x56\x4e\x67\xdb\xe9\xa9\xd4" "\xea\x49\x26\xda\xe5\xd6\x92\x4f\x92\x8c\x1d\xef\x68\xf7\xa5\xe8\xb7\xf2" "\xf1\xd1\x8f\x03\x00\x00\x00\x0e\x64\xa2\x77\xb1\x98\xd8\x43\x9d\xe7\xde" "\xcb\x93\xac\xe6\x74\x7b\x79\xb3\x28\xbf\xf3\x9f\x2f\xbf\x2f\x4f\xe4\xdd" "\xdc\xcf\x4a\x16\xb3\x92\x46\x16\xf2\x56\xf5\x1d\xba\xf9\xad\xbf\xb6\xb1" "\x3e\xd7\xd8\x58\x9f\xbb\xd7\x9c\x76\xb6\xfb\xe3\x2f\xf6\x35\xf4\xb2\xc5" "\xb4\x7e\x7b\xe8\xdf\x73\x92\xb5\x7a\x92\xdb\x59\x2c\xd7\x5c\xce\xad\x14" "\xd9\x2c\xd5\xaa\x56\x5e\xdc\x58\x9f\x6b\xce\xef\xf5\x1f\xd7\xfb\xcd\x31" "\x15\x3f\xaa\x0c\x18\xcd\x48\x57\xba\xec\xf9\xc2\xc7\x65\xfa\x8f\xbd\xbf" "\x22\xd4\xf7\xb5\x89\x4f\xa9\xb6\x6b\xce\x54\x99\x3b\xda\x89\xc8\x4c\x35" "\xb6\x66\x8d\x33\xed\x08\xf4\x8f\x44\xcf\xde\xe9\xf7\x36\xa9\x0f\xec\x69" "\x36\xb5\xce\x2f\x3f\x67\x07\xf7\xd4\x3f\xe6\xef\x0f\xde\xe6\x53\xdb\x4a" "\xf5\xfd\xe5\xe6\x58\x6c\x8f\xc4\xd5\xd4\x3a\x7b\xe8\xfc\xe0\x48\x24\xdf" "\xfe\xfb\x47\xbf\xbc\xd3\xb8\x7f\xf7\xce\xed\xe5\x4b\x27\x67\x93\xfa\x7a" "\x6f\x68\x89\xed\x91\x98\xeb\x8a\xc4\x85\xaf\x50\x24\x86\x9b\x29\x23\x71" "\xae\xb3\x7c\x33\x3f\xcb\x2f\x72\x29\x5f\x8c\xbf\x91\xa5\x2c\xe6\x57\x99" "\xcf\x4a\x16\xa6\xdb\xf9\xf3\xd5\xfb\xb9\xf9\x3a\x35\x38\x52\x9f\x9e\xea" "\x5e\x7a\x63\xd8\x48\x9a\xc7\xe4\x74\xe7\xfc\xd5\x6f\x4c\xd3\xe9\x19\x53" "\xa6\xf3\xd3\x32\x35\x9f\x57\xca\x7d\x7a\x3a\x8b\x29\xf2\x20\xc9\x42\x5e" "\x2b\xff\xae\x66\xb6\x73\x36\xd8\xda\xc3\xe7\xf6\x70\xd4\xd7\xf6\x70\xa6" "\xed\x72\xf1\x3b\xe5\xac\x13\xa6\x4c\xee\x5e\xf6\xaf\x7b\x6b\xf2\xb0\x34" "\xe3\x7a\xa6\x2b\xae\xdd\xe7\xdc\xa9\x32\xaf\x7b\xcd\x56\x94\x9e\xef\x1b" "\xa5\xf6\xb5\x6e\xef\xd7\xa3\x2e\xf5\x6f\x55\x89\x66\x0b\xbf\x1b\x78\x7d" "\x38\x6a\xdb\x23\x31\xdb\x15\x89\x17\x76\x7b\xbf\xb4\x42\xfa\x97\xf2\x6a" "\xb2\xdc\xb8\x7f\x77\xe9\xce\xfc\x3b\x7b\xec\xef\xd5\x6a\xde\x3c\x8e\xfe" "\x70\xa2\xae\x12\xcd\xad\x79\x3e\x13\xd5\xc6\x9d\x29\x5f\x8b\xf2\x98\x9a" "\x29\xf3\x5e\xe8\x5c\x61\x7b\xe3\x35\x56\xdd\x71\x69\xa9\xed\xc8\x3b\xd7" "\xa9\xd7\x3a\x52\x7f\x9e\x07\x79\xab\xe7\x48\xfd\x7e\xae\xe5\x5a\xae\x97" "\xa5\xcf\x97\xa5\x47\x77\x5c\xb1\x9a\x79\x17\x3a\x2d\xf5\x9e\xc3\x9b\x79" "\x2f\x36\xf3\x3a\x37\x76\xba\x3f\x6f\x3d\x48\xa3\xf5\x79\x08\x80\x93\xed" "\xd4\x77\x4f\x8d\x4d\xfe\x77\xf2\x5f\x93\x1f\x4e\xfe\x7e\xf2\xce\xe4\xeb" "\x13\x3f\x19\xff\xc1\xf8\x4b\x63\x19\xfd\xe7\xe8\x0f\xeb\x33\x23\xaf\xd6" "\x5e\x2a\xfe\x96\x0f\xf3\x9b\xad\xef\xff\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xd3\x5b" "\x7e\xf8\xe8\xee\x7c\xa3\xb1\xb0\xd4\x3f\x51\xeb\x9f\x55\x0c\xae\x35\xdf" "\xd8\x6c\x3f\x48\x6c\x40\x99\x9e\x44\x51\x3d\x2a\x67\x0f\x85\x8b\xe5\x87" "\x8f\x36\x87\x36\x38\x38\x31\x5e\x0d\xef\x29\xab\x1f\x66\xa2\xfd\x18\xbe" "\xe1\x85\xa7\x07\xb6\x53\x3f\xd0\x30\x8a\xb5\xed\xfb\x6b\x62\xf8\xbe\x68" "\x3f\xe5\x69\x0f\x5d\x14\x3b\x02\xde\xac\xfc\xd4\xa1\x6b\xf7\xbc\xb5\x66" "\xf4\x04\xec\xca\xed\x89\xe9\xc3\x6b\xb0\xfd\x86\xed\xca\xda\xcf\xbb\x77" "\xb4\xe7\xa0\xef\xc9\x1a\x49\xd2\xaf\xd6\x90\x13\xc7\xc8\xc1\xce\x3b\xc0" "\xf1\xbb\xb2\x72\xef\x9d\x2b\xcb\x0f\x1f\x7d\x6f\xf1\xde\xfc\xdb\x0b\x6f" "\x2f\xdc\x1f\xbd\x76\xed\xfa\xcc\xf5\x6b\xaf\xcd\x5d\xb9\xbd\xd8\x58\x98" "\x69\xbd\x76\x55\x38\x92\x87\xdf\x02\x47\xa1\xfb\xe3\x44\xc7\x58\x92\x97" "\x87\xd7\x1d\xf0\xa0\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x19\x3a" "\x8a\xff\x85\x38\xee\x6d\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xbf\xdd\xbc\x94\xfa\xe3\x14" "\x99\x9d\xb9\x3c\xd3\x5c\xde\x58\x9f\x6b\x34\xa7\x76\x7a\xab\x64\x3d\x49" "\x2d\x49\xf1\xeb\xa4\xf8\x47\x72\x23\xad\x29\x53\x5d\xcd\x15\xbb\xf5\xf3" "\xc1\xe2\xf5\x37\x3f\xfb\x72\xe3\xf3\xad\xb6\xea\xed\xf2\xb5\x64\x6d\xd7" "\x7a\x7b\xb3\x56\x4d\x99\x4e\x32\x52\xcd\x0f\xab\xbd\x5b\xc3\xdb\x1b\xdb" "\x4a\x8e\xf7\xc9\x2e\x3a\x91\x69\x06\xec\x62\x3b\x70\x70\xdc\xfe\x17\x00" "\x00\xff\xff\x66\xec\xea\x63", 1771); syz_mount_image( /*fs=*/0x200000000000, /*dir=*/0x200000000100, /*flags=MS_I_VERSION|MS_STRICTATIME|MS_NOEXEC|MS_NODEV*/ 0x180000c, /*opts=*/0x2000000005c0, /*chdir=*/1, /*size=*/0x6eb, /*img=*/0x200000000dc0); } 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; use_temporary_dir(); loop(); return 0; }