// https://syzkaller.appspot.com/bug?id=b8d06e70bc1c74bf8339c16d0d51229dcb160826 // 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); } } void execute_one(void) { 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 = 0x1804810 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x683 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x683) // } // ] // returns fd_dir memcpy((void*)0x200000000140, "hfsplus\000", 8); memcpy((void*)0x200000000340, "./file1\000", 8); memcpy( (void*)0x2000000003c0, "\x78\x9c\xec\xdd\x4f\x6c\x1c\x57\x1d\x07\xf0\xef\x6c\x36\xeb\x6c\x5a\x82" "\x9b\x26\x6d\x40\x95\x6a\x35\x12\x20\x22\x12\x3b\x56\x0a\xe6\x42\x40\x08" "\xe5\x50\xa1\xaa\x1c\x38\x5b\x89\xd3\x58\xd9\xa4\xc5\x71\x91\x5b\x21\xea" "\xf0\xf7\xda\x43\x0f\x9c\x50\x39\xe4\x82\x38\x21\x71\x8f\x54\x38\x70\x81" "\x5b\x4e\x20\x1f\x2b\x21\x71\xe9\x05\x73\x5a\x34\xb3\xb3\xf6\xfa\x2f\xeb" "\x34\xf1\x6e\xda\xcf\x27\x9a\x7d\xef\xcd\x9b\x79\xef\x37\xbf\xd9\x99\xfd" "\x63\x45\x1b\xe0\x33\xeb\xca\xb9\x34\xef\xa7\xc8\x95\x73\xaf\xac\x94\xed" "\xb5\x7b\xb3\x9d\xb5\x7b\xb3\xb7\xfa\xf5\x24\x13\x49\x56\x93\x66\x92\x46" "\x92\xe2\x3f\xdd\x6e\xf7\xc3\xe4\x72\x52\x6c\x0c\x53\x6c\x2b\x77\x78\x7f" "\x71\xee\xb5\x07\x1f\xaf\x7d\xd4\x6b\x35\xeb\xa5\xda\xbe\xb1\xdf\x7e\xdb" "\xd4\xdb\xad\x26\xbf\x6d\x0c\xac\x5e\xad\x97\x4c\x25\x39\x52\x97\x9f\xc0" "\x96\xf1\xae\x7e\xe2\xf1\x8a\x8d\xc8\x2f\x27\x39\x5b\x97\x30\x72\x47\x93" "\x74\xb7\xf8\xd1\x5f\x9f\xde\xe8\x19\xd0\xde\x6d\xef\x63\x87\x12\x23\xf0" "\x78\x15\xd5\xeb\xe6\xb5\x7f\x6c\x5f\x3f\x99\x1c\xaf\x2f\xf4\xf2\x7d\x40" "\xef\x55\xb1\xf7\x9a\x3d\x26\x56\xb7\xb4\x26\x1e\x6a\x2f\x00\x00\x00\x78" "\xf2\x0c\xf3\x19\xf8\xf3\xeb\x59\xcf\x4a\x71\xe2\x10\xc2\x01\x00\x00\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\x4f\x85\xd5\x8d\xdf\xff\x2f\x8b\x6a\x69\xf4\xeb" "\x53\x29\xfa\xbf\xff\xdf\xaa\xd7\xa5\xae\x8f\x97\x17\x0f\xb6\xf9\xfd\xc7" "\x15\x07\x00\x00\x00\x00\x00\x00\x00\x1c\xa2\x17\xd7\xb3\x9e\x95\x9c\xe8" "\xb7\xbb\x45\xf5\x37\xff\x97\xaa\xc6\xa9\xea\xf1\xa9\xbc\x95\x3b\x59\xc8" "\x52\xce\x67\x25\xf3\x59\xce\x72\x96\x32\x93\x64\x72\x60\xa0\xd6\xca\xfc" "\xf2\xf2\xd2\xcc\x10\x7b\x5e\xdc\x75\xcf\x8b\xff\x27\xd0\x89\xba\x6c\x3f" "\x9a\xe3\x06\x00\x00\x00\x00\x00\x00\x80\x4f\x99\x9f\xe5\xca\xe6\xdf\xff" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x1c\x14\xc9\x91\x5e\x91" "\xe2\xee\xc0\xea\xc9\x34\x9a\x49\x8e\x25\x69\x95\x2b\x56\x93\xbf\xf7\xeb" "\x4f\xb2\xfb\xa3\x0e\x00\x00\x00\x00\x0e\xc1\x44\xb2\x9e\x95\x9c\xe8\xb7" "\xbb\x45\x4e\x25\x79\xae\xfa\x0e\xe0\x58\xde\xca\xed\x2c\x67\x31\xcb\xe9" "\x64\x21\xd7\xaa\xef\x05\x7a\x9f\xfa\x1b\x6b\xf7\x66\x3b\x6b\xf7\x66\x6f" "\x95\xcb\xce\x71\xbf\xfd\xef\x03\x85\x51\x8d\x98\xde\x77\x0f\xbb\xcf\x7c" "\xa6\xda\xa2\x9d\xeb\x59\xac\xd6\x9c\xcf\xd5\xbc\x91\x4e\xae\xa5\x51\xed" "\x59\x3a\x53\xc7\xd3\x1f\x75\x20\xae\x63\x49\xee\x96\x31\x15\xdf\xaa\x0d" "\x19\xd9\xb5\xba\x2c\x8f\xfc\xbd\xba\xdc\xe1\xdd\x03\x1d\xec\x5e\x0e\xf8" "\x65\xca\x64\x95\x91\xa3\x1b\x19\x99\xae\x63\x2b\xb3\xf1\x4c\xff\xcc\xec" "\x7e\x86\x0e\x78\x76\xb6\xcf\x34\x93\xc6\x60\xb0\x5b\x66\x6a\x6d\x3d\x98" "\x87\xca\xf9\xf1\xba\x2c\x8f\xe7\x57\x7b\xe5\x7c\x24\xb6\x67\xe2\xe2\xc0" "\xb3\xef\xb9\xfd\x73\x9e\x7c\xf9\x4f\x7f\xf8\xe1\x74\x5d\x1f\x9f\x43\x1a" "\xce\x91\xba\xec\x56\x8f\xed\x9d\x99\x98\x1d\xc8\xc4\xf3\xc3\x64\xe2\x46" "\xe7\xf6\xcd\x1b\xd7\xef\x9c\x7b\xd2\x32\xb1\xc3\x74\x95\x89\xd3\x1b\xed" "\x2b\xf9\x5e\x7e\x90\x73\x99\xca\xab\x59\xca\x62\x7e\x9c\xf9\x2c\x67\x21" "\x53\xf9\x6e\x55\x9b\xaf\x4f\x7e\x31\x70\xc9\xef\x91\xa9\xcb\x5b\x5a\xaf" "\xee\x15\xc1\x6f\xea\xdb\x77\xab\x7e\x86\xf6\x4e\x56\x19\xd3\x83\xa1\x63" "\x7a\xa9\xda\xf7\x44\x16\xf3\xfd\xbc\x91\x6b\x59\xc8\xcb\xd5\xbf\x8b\x99" "\xc9\xd7\x73\x29\x97\x32\x37\x70\x86\x4f\xef\x7f\x86\xab\xab\xbe\xb1\xc7" "\x55\xdf\xfd\xdc\x8e\x03\x28\x03\x3f\xfb\x95\xba\xd1\x4e\xf2\xeb\xba\x1c" "\x0f\x65\x78\xcf\x0c\xe4\x75\xf0\x9e\x3b\x59\xf5\x0d\xae\xd9\xcc\xd2\xc9" "\x21\xb2\x74\xc0\x7b\x63\xf3\x8b\x75\xa5\x9c\xe3\xe7\x75\x39\x1e\xb6\x67" "\x62\x66\x20\x13\xcf\xee\x9f\x89\xdf\x55\xb7\x95\x3b\x9d\xdb\x37\x97\x6e" "\xcc\xbf\x39\xdc\x74\x27\xdf\xab\x2b\xe5\x75\xf4\xcb\x64\x6a\xb4\x37\x92" "\xd6\xb6\xfa\xc9\xf2\x64\x55\xad\xad\xcf\x8e\xb2\xef\xd9\x5d\xfb\x66\xaa" "\xbe\x53\x1b\x7d\x8d\x1d\x7d\xa7\x37\xfa\x7a\x57\xea\xea\x9e\x57\x6a\xab" "\x7e\x0f\xb7\x73\xa4\x8b\x55\xdf\xf3\xbb\xf6\xcd\x56\x7d\x67\x06\xfa\x76" "\x7b\xbf\x05\xc0\xd8\x3b\xfe\xd5\xe3\xad\xf6\xbf\xda\x7f\x6b\x7f\xd0\xfe" "\x45\xfb\x46\xfb\x95\x63\xdf\x99\xf8\xc6\xc4\x0b\xad\x1c\xfd\xf3\xd1\x6f" "\x36\xa7\x8f\x7c\xa9\xf1\x42\xf1\xc7\x7c\x90\x9f\x6e\x7e\xfe\x07\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x1e\xde\x9d\xb7\xdf\xb9\x39\xdf\xe9\x2c\x2c\xf5\x2a\xad\x24" "\x55\xa5\xdb\xed\xbe\xbb\xb5\xeb\xa0\x95\x66\x3d\xc3\x40\x57\xb1\xfb\xa4" "\x8f\xba\x92\xa9\x7f\x3e\x55\x4e\xb3\x4b\x57\xff\xe7\xcc\x1e\xe3\xec\xdb" "\x2b\x5f\x78\x3a\x39\xac\xb9\xc6\xb7\xf2\xdf\x6e\xb7\x5b\xaf\x29\xf6\xd8" "\xe6\xf7\x7f\x19\x9b\x44\x75\x6b\x63\x91\xba\x11\x55\x46\x73\x3f\x02\x0e" "\xcf\x85\xe5\x5b\x6f\x5e\xb8\xf3\xf6\x3b\x5f\x5b\xbc\x35\xff\xfa\xc2\xeb" "\x0b\xb7\xe7\x2e\x5d\x9a\x9b\x9e\xbb\xf4\xf2\xec\x85\xeb\x8b\x9d\x85\xe9" "\xde\xe3\xa8\xa3\x04\x1e\x87\xcd\x17\xfd\x51\x47\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x0c\xeb\x30\xfe\x3b\xc1\xa8\x8f\x11\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\xb2" "\x5d\x39\x97\xe6\xfd\x14\x99\x99\x3e\x3f\x5d\xb6\xd7\xee\xcd\x76\xca\xa5" "\x5f\xdf\xdc\xb2\x99\xa4\x91\xa4\xf8\x49\x52\x7c\x98\x5c\x4e\x6f\xc9\xe4" "\xc0\x70\xc5\x5e\xf3\xbc\xbf\x38\xf7\xda\x83\x8f\xd7\x3e\xda\x1c\xab\xd9" "\xdf\xbe\xb1\xdf\x7e\xc3\x59\xad\x97\x4c\x25\x39\xd2\x2b\xef\x3e\xaa\xf1" "\xae\xd6\xe5\xbe\x8a\xfd\x0e\xa1\xd8\x38\xc2\x32\x61\x67\xfb\x89\x83\x51" "\xfb\x5f\x00\x00\x00\xff\xff\xf7\xe0\x03\xb9", 1667); syz_mount_image( /*fs=*/0x200000000140, /*dir=*/0x200000000340, /*flags=MS_I_VERSION|MS_REC|MS_SYNCHRONOUS|MS_STRICTATIME|MS_NODIRATIME*/ 0x1804810, /*opts=*/0x200000000180, /*chdir=*/1, /*size=*/0x683, /*img=*/0x2000000003c0); // mknod$loop arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 00} // (length 0xfa) // } // mode: mknod_mode = 0x0 (8 bytes) // dev: proc = 0x0 (4 bytes) // ] memcpy((void*)0x200000000240, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 250); syscall(__NR_mknod, /*file=*/0x200000000240ul, /*mode=*/0ul, /*dev=*/0x700); // 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 = 0x200401c (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 { // 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) // } // 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: {63 70 38 35 30} (length 0x5) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // creator: fs_opt["creator", array[int8, 4]] { // name: buffer: {63 72 65 61 74 6f 72} (length 0x7) // eq: const = 0x3d (1 bytes) // val: buffer: {f1 9e a2 da} (length 0x4) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[hfsplus_options] { // elem: union hfsplus_options { // barrier: buffer: {62 61 72 72 69 65 72} (length 0x7) // } // 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 { // creator: fs_opt["creator", array[int8, 4]] { // name: buffer: {63 72 65 61 74 6f 72} (length 0x7) // eq: const = 0x3d (1 bytes) // val: buffer: {c0 8d d6 d7} (length 0x4) // } // } // 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) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0xb (1 bytes) // size: len = 0x6cf (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x6cf) // } // ] // returns fd_dir memcpy((void*)0x200000000080, "hfsplus\000", 8); memcpy((void*)0x200000000180, "./bus\000", 6); memcpy((void*)0x2000000000c0, "gid", 3); *(uint8_t*)0x2000000000c3 = 0x3d; sprintf((char*)0x2000000000c4, "0x%016llx", (long long)0); *(uint8_t*)0x2000000000d6 = 0x2c; memcpy((void*)0x2000000000d7, "nls", 3); *(uint8_t*)0x2000000000da = 0x3d; memcpy((void*)0x2000000000db, "cp850", 5); *(uint8_t*)0x2000000000e0 = 0x2c; memcpy((void*)0x2000000000e1, "creator", 7); *(uint8_t*)0x2000000000e8 = 0x3d; memcpy((void*)0x2000000000e9, "\xf1\x9e\xa2\xda", 4); *(uint8_t*)0x2000000000ed = 0x2c; memcpy((void*)0x2000000000ee, "barrier", 7); *(uint8_t*)0x2000000000f5 = 0x2c; memcpy((void*)0x2000000000f6, "nodecompose", 11); *(uint8_t*)0x200000000101 = 0x2c; memcpy((void*)0x200000000102, "creator", 7); *(uint8_t*)0x200000000109 = 0x3d; memcpy((void*)0x20000000010a, "\xc0\x8d\xd6\xd7", 4); *(uint8_t*)0x20000000010e = 0x2c; memcpy((void*)0x20000000010f, "uid", 3); *(uint8_t*)0x200000000112 = 0x3d; sprintf((char*)0x200000000113, "0x%016llx", (long long)0); *(uint8_t*)0x200000000125 = 0x2c; *(uint8_t*)0x200000000126 = 0; memcpy( (void*)0x200000001e00, "\x78\x9c\xec\xdd\x4d\x6c\x1c\x67\xfd\x07\xf0\xef\xac\xd7\x6f\xf9\x4b\xa9" "\xd3\x26\xed\x1f\x54\x89\xb4\x91\x0a\x22\xa2\x71\x6c\xa5\x10\x2e\x09\x08" "\x21\x1f\xaa\xaa\x12\x07\x0e\x9c\xac\xc4\x69\xac\x6c\xd2\xca\x71\xc1\xad" "\x10\x0d\x50\xe0\xda\x43\xb9\x97\x43\x6e\x9c\x90\x38\x71\x09\x2a\x37\x24" "\x38\x72\x34\x9c\x2a\x21\x7a\xe1\x94\xdb\xa2\x79\x59\x7b\x13\xef\x26\xbb" "\x49\xec\x8d\xd5\xcf\x27\x9a\x9d\x67\xe6\x79\x99\xe7\xf9\xed\xbc\xae\x15" "\x4d\x80\x2f\xac\x95\xd3\x69\xdf\x49\x91\x95\xd3\xaf\x6f\x95\xcb\xdb\xb7" "\x97\x3b\xdb\xb7\x97\x67\x9b\xec\x4e\x92\x32\xdd\x4a\xda\xf5\x2c\xc5\x8d" "\xa4\xf8\x34\xb9\x98\x7a\xca\x97\xca\x95\x4d\xf9\x62\xd8\x76\x3e\x2e\xab" "\xff\x77\xfb\xb3\x24\xf3\x75\x5b\xed\x5e\xf9\xb2\xd1\x3f\xfd\xf5\x8d\x97" "\xfa\x4a\x7f\xd0\x1d\x6f\x14\xb7\x9a\x29\x27\x93\x4c\x35\xf3\xbd\xa6\xf7" "\xae\x9a\x7b\x78\x7b\x97\x86\xb6\x57\x9b\xed\x4b\x0f\x1e\x7f\xb1\x93\x53" "\x06\xec\x54\x2f\x70\x30\x69\xdd\x3d\x6e\x8d\x53\x7d\xe8\xf1\x0e\x1c\x1e" "\x45\x7d\xdd\xdc\x63\x21\x39\xd2\x5c\x26\xab\xeb\x5c\x73\x76\x68\x1d\x6c" "\xef\x9e\xbc\xb1\xce\x72\x00\x00\x00\x30\x61\x2b\xff\x39\xb1\x34\x4e\xf9" "\xf9\x66\xfe\xcc\xdd\xdc\xcd\xd6\xa1\x7f\x8c\x07\x00\x00\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\x03\xd5\xbc\xff\xbf\x68\xa6\x56\x2f\x7d\x32\x45\xef\xfd\xff" "\x33\xcd\xba\x34\xe9\x43\xed\xce\xa4\x3b\x00\x00\x00\x00\x00\x00\x00\x00" "\x23\x98\xed\x25\x2e\x0c\xce\xff\xca\xdd\xdc\xcd\x56\x8e\xf6\x96\xbb\x45" "\xf5\x37\xff\x97\xab\x85\xe3\xd5\xe7\xff\xe5\xdd\xdc\xcc\x5a\x36\xf2\x6a" "\xb6\xb2\x9a\xcd\x6c\x66\x23\x67\x93\x2c\xf4\x35\x34\xb3\xb5\xba\xb9\xb9" "\x71\x76\x84\x9a\x4b\x03\x6b\x2e\x3d\xd9\x71\x03\x00\x00\x00\x00\x00\x00" "\xc0\x17\xcc\x2f\xb2\xb2\xfb\xf7\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x78\x1a\x14\xc9\x54\x3d\xab\xa6\xe3\xbd\xf4\x42\x5a\xed\x24\x73" "\x49\x66\xca\x72\xb7\x92\xbf\xf7\xd2\x87\x44\x31\x68\xe5\x9d\x83\xef\x07" "\x00\x00\x00\x3c\x96\xb9\x47\xa8\x33\x93\xdc\xcd\x56\x8e\xf6\x96\xbb\x45" "\xf5\xcc\xff\x7c\xf5\xbc\x3c\x97\x77\x73\x23\x9b\x59\xcf\x66\x3a\x59\xcb" "\xe5\xe6\x19\xba\x7c\xea\x6f\x6d\xdf\x5e\xee\x6c\xdf\x5e\xbe\x5e\x4e\xfd" "\x2d\x76\x1b\xe3\x76\x23\xad\xd4\xbf\x3d\x0c\xde\xf2\xff\x57\x25\xe6\x73" "\x25\xeb\xd5\x9a\x57\x73\xa9\xea\xcc\xe5\xb4\xaa\x9a\xa5\x7f\x25\xb9\xde" "\xeb\xd3\xfd\xfd\x4a\x7e\xfe\x79\xd9\xf6\x85\xda\x4f\x46\xec\xd9\xe5\x66" "\x5e\x6e\xec\xa3\xde\xaf\x08\xb3\x63\x0d\x6e\x9f\x2c\x24\xed\x56\xa6\x77" "\x22\xb2\x58\xf5\xad\xde\x09\x8e\xf5\x47\x61\x6f\x24\xbe\xf3\xf9\xb0\x46" "\x2f\xd6\xb3\xf6\xfd\x5b\x4a\xff\x96\xce\xa6\xb5\xf3\xcb\xcf\xf1\x7a\x0b" "\x65\xf2\xa1\x31\xbf\x30\xe2\xc8\x8e\x34\xf3\x72\x3c\xbf\x1e\xf6\xcb\xcd" "\x93\x36\xb7\xbb\xd1\x5b\x43\x0b\xed\x44\xa2\x95\x2a\x12\x4b\x7d\x7b\xdf" "\xf3\x0f\x8e\x79\xf2\xd5\x3f\xfe\xfe\xa3\xa2\xb8\x71\xed\xea\x95\x9b\xa7" "\x0f\x64\x48\xfb\xe9\xfe\x7d\x62\xb9\x2f\x12\x2f\x8c\x10\x89\x1f\x5e\xed" "\x3c\xa5\x91\x68\x8f\x5e\xf4\x47\xbf\x4d\xb2\x58\x45\xe2\xc4\xce\xca\x95" "\x7c\x3f\x3f\xc8\xe9\x9c\xcc\x9b\xd9\xc8\x7a\x7e\x9c\xd5\x6c\x66\x2d\x45" "\x33\xd2\xd5\x66\x7f\x2e\x3f\x17\x1e\x1c\xa9\x8b\xf7\x2c\xbd\x39\xbc\x23" "\x1f\x56\x9f\x33\xcd\xf7\x52\x9f\x45\x47\xe9\xd3\xc9\x7c\xaf\x4a\xad\xe6" "\xe5\xaa\xee\xd1\xac\xa7\xc8\xdb\xb9\x9c\xb5\xbc\x56\xfd\x5b\xca\xd9\x7c" "\x33\xe7\x72\x2e\xe7\xfb\xbe\xe1\x13\x43\xfb\x5d\x8d\xad\x3a\xea\x5b\xe5" "\x11\xff\xcf\xec\x39\xea\x5b\x83\x87\x70\xea\x6b\x4d\x62\x3e\xc9\x6f\x9a" "\xf9\xa4\xd5\x27\x85\x32\xae\xc7\xfa\xe2\xda\x7f\xce\x5d\xa8\xf2\xfa\xd7" "\xec\x46\xe9\xd9\x2a\x3a\xb3\x23\x5d\x8f\xaa\x28\x3d\x7c\xc8\xed\x2f\x37" "\x89\x72\x1b\xbf\x1c\x1e\xcd\x09\xb8\x3f\x12\x67\xfb\x6e\x01\x9e\x7b\xf0" "\x7e\xfe\xbb\xaa\xe8\xcd\xce\x8d\x6b\x1b\x57\x57\xdf\x19\x78\x75\x9d\x6e" "\xe6\xbb\xb7\x16\xaf\x34\x6b\xca\x3d\xee\x57\x0f\xbf\xfd\xf9\xf3\x90\xf5" "\x4f\x6a\x37\xeb\x3b\x8f\x95\xfb\xcb\xb3\x99\x6b\xce\x24\xc7\x32\x5d\x77" "\x6d\xaa\x97\xf7\xdc\xce\x59\xe6\x9e\x78\x55\x79\xc7\x77\xf2\x5a\x7b\xf2" "\x4e\xd4\x5f\x77\xd1\x3b\x52\xdf\x18\x7a\xa4\xce\xd4\xf7\x70\xcd\xd8\xfa" "\x5b\x5a\xaa\xf2\x5e\x18\xb8\x95\xe5\x2a\xaf\xbc\xd3\x6a\xb7\xb3\xe7\x7e" "\x2b\x79\x3b\x9d\x9d\xfb\x21\x00\x9e\x62\x47\xbe\x7e\x64\x66\xfe\xdf\xf3" "\x7f\x9b\xff\x64\xfe\xc3\xf9\xab\xf3\xaf\xcf\x7d\x77\xf6\x5b\xb3\x2f\xce" "\x64\xfa\x2f\xd3\xdf\x6e\x2f\x4e\xbd\xd2\x7a\xb1\xf8\x43\x3e\xc9\xcf\x76" "\x9f\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\x47\x77\xf3\xbd\xf7\xaf\xad\x76\x3a\x6b" "\x1b\x83\x13\xad\xe1\x59\x0f\x4a\xf4\xde\xe4\x33\x7a\xad\xa2\x79\x93\xce" "\x48\x85\x5b\xe3\xf6\xe7\xb1\x13\xdd\x6e\xb7\x7b\x5f\x56\xf7\x83\xe4\xa0" "\xbb\x31\x30\xf1\x52\x92\x7d\x68\xb9\xd8\xa7\x3e\xa7\xb3\xb6\xd1\x7b\x89" "\xe0\x78\xd5\x17\xf7\xee\x51\x17\x27\x19\xf9\x7f\x8c\x5b\x2b\x73\x63\x0d" "\xb9\xfb\x4c\x1d\xa5\xb1\x36\xb1\x50\xd7\x19\xa1\xf0\x6c\x1d\xcc\xa9\x21" "\xc7\x69\xf3\x15\x3d\xca\xcb\x45\x81\x43\xe1\xcc\xe6\xf5\x77\xce\xdc\x7c" "\xef\xfd\x6f\xac\x5f\x5f\x7d\x6b\xed\xad\xb5\x1b\xd3\xe7\xce\x9d\x5f\x3c" "\x7f\xee\xb5\xe5\x33\x57\xd6\x3b\x6b\x8b\xf5\xe7\xa4\x7b\x09\xec\x87\xdd" "\x8b\xfe\xa4\x7b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8c\xea\x20\xfe" "\xbf\xc4\xa4\xc7\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x6e\x2b\xa7\xd3\xbe\x93\x22\x73\xcd" "\xf2\xf6\xed\xe5\x4e\x39\xf5\xd2\xbb\x25\xdb\x49\x5a\xad\xa4\xf8\x69\x52" "\x7c\x9a\x5c\x4c\x3d\x65\xa1\xaf\xb9\x62\xd8\x76\x3e\x5e\x3f\x3f\x95\xe4" "\xb3\xdd\xb6\xda\xbd\xf2\xad\x07\xd4\xeb\xce\x8e\x34\x8a\x5b\xcd\x94\x93" "\x49\xa6\x9a\xf9\x63\xb8\xa7\xbd\x4b\x8f\xdd\x5e\xb1\x33\xc2\x32\x60\xa7" "\x7a\x81\x83\x49\xfb\x5f\x00\x00\x00\xff\xff\xea\x97\xfc\x84", 1743); syz_mount_image( /*fs=*/0x200000000080, /*dir=*/0x200000000180, /*flags=MS_LAZYTIME|MS_REC|MS_SYNCHRONOUS|MS_NOEXEC|MS_NODEV*/ 0x200401c, /*opts=*/0x2000000000c0, /*chdir=*/0xb, /*size=*/0x6cf, /*img=*/0x200000001e00); // truncate arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // len: intptr = 0x3000000 (8 bytes) // ] memcpy((void*)0x200000000900, "./file1\000", 8); syscall(__NR_truncate, /*file=*/0x200000000900ul, /*len=*/0x3000000ul); } 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; }