// https://syzkaller.appspot.com/bug?id=b3d4ed3e41b3085ce97f4504f4183e3f99115fb2 // 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 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #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$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x1018e58 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x61d (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x61d) // } // ] // returns fd_dir memcpy((void*)0x20000140, "ext4\000", 5); memcpy((void*)0x200005c0, "./file1\000", 8); *(uint8_t*)0x20000000 = 0; memcpy( (void*)0x20001680, "\x78\x9c\xec\xdd\xcf\x6b\x1c\x65\x1f\x00\xf0\xef\xec\x26\x69\xd2\xe6\x7d" "\xd3\xbe\xbc\x88\x0d\x8a\x01\x0f\x2d\x48\xd3\xa4\x16\xab\x5e\x6c\xeb\xc1" "\x1e\x0a\x16\xec\x41\xc4\x43\x43\x93\xd4\xd0\xed\x0f\x9a\x14\x6c\x2d\xb4" "\x05\x0f\x0a\x0a\x22\x5e\x8b\xf4\xe2\x3f\xe0\x5d\x7a\xf7\x26\x82\x7a\xf3" "\x2c\x54\x91\x8a\x82\x96\xac\xcc\xec\x6c\xbb\x49\x66\x9b\x34\xed\xee\x26" "\x9d\xcf\x07\x76\x77\xe6\x99\xd9\x79\x9e\xef\x3e\x7d\x3a\xcf\xb3\x93\x67" "\x27\x80\xd2\x1a\x4b\x9f\x2a\x11\x3b\x23\x16\x4f\x24\x11\x23\x2d\xdb\x86" "\xa3\xb1\x71\x2c\xdf\xef\xce\xef\x57\x4e\xa6\x8f\x24\xea\xf5\xb7\x7e\x4b" "\x22\xc9\xd3\x9a\xfb\x2f\xe6\xaf\xdb\xd2\xa7\x24\x62\x30\x22\xbe\x3b\x1c" "\xf1\xbf\xea\xca\x7c\xe7\x2f\x5d\x3e\x3d\x55\xab\x37\x5c\x8d\xd8\xbb\x70" "\xe6\xfc\xde\xf9\x4b\x97\xf7\xcc\x9d\x99\x3a\x35\x73\x6a\xe6\xec\xe4\xbe" "\x97\xf7\x1f\x98\x78\x65\x72\xff\xe4\x63\x89\x73\x5b\xfe\x7a\xe4\xe8\x9b" "\xcf\x7c\xfa\xe1\x7b\x2f\xcd\x7e\x5f\xdb\x93\xc4\xc1\x38\xde\xff\xc1\x74" "\x2c\x8b\x63\x1d\xea\x49\x41\xe2\x58\x8c\xc5\x62\x1e\x62\x6b\x7a\x5f\x44" "\x1c\x48\x17\x0a\x3e\x97\xcd\x66\x4d\x21\x6c\xe9\x7c\x39\x58\x9f\x6a\xfe" "\xef\xb1\x3f\x22\x9e\x8a\x91\xa8\x66\x6b\x0d\x23\x31\xf7\x49\x4f\x0b\x07" "\x74\x54\xbd\x1a\x51\x07\x4a\x2a\xd1\xfe\xa1\xa4\x9a\xfd\x80\xe6\xd8\x7e" "\x6d\xe3\xe0\xe3\x1d\xee\x95\x74\xcf\xed\x43\x8d\x01\xd0\xca\xf8\xfb\x1a" "\xdf\x8d\xc4\x60\x36\x36\xda\x7a\x27\x69\x19\x19\x35\xbe\xdb\xd8\xfe\x18" "\xf2\x4f\xf3\xb8\x7b\x65\xf4\x46\xfa\x88\x25\xdf\x43\xfc\x75\xaf\x76\xfa" "\x1e\x43\x3e\xed\x5c\xbb\x1e\x11\x4f\x17\xc5\x9f\x64\x65\xdb\x9e\x45\x9a" "\xc6\x5f\x59\x32\xd6\x4f\x22\x62\x22\x22\x06\xf2\xf2\xbd\xbe\x8e\xac\x5b" "\x8f\xd5\xf4\x88\xdf\xc3\x3c\x7c\x21\x1e\x22\xfe\xd6\x7a\xa8\x44\xc4\xc1" "\xfc\x35\x4d\x3f\xbc\xce\xfc\xc7\x96\xad\x77\x3b\x7e\x00\xca\xe9\xd6\xa1" "\xfc\x44\x9e\x9d\x8d\xef\x9f\xff\xd2\xbe\x47\xb3\xff\x13\x05\xfd\x9f\xe1" "\x82\x73\xd7\x7a\xf4\xfa\xfc\xd7\xbe\xff\xd7\x3c\xdf\x0f\x66\xfd\x9e\xca" "\xb2\x7e\x58\xda\x67\x39\x56\x7c\xc8\xfe\xe5\x09\x3f\x7f\x7c\xe4\xf3\x76" "\xf9\xb7\xf6\xff\xee\x5e\x49\xb2\x72\x34\xfb\x82\xdd\x70\xfb\x7a\xc4\xe8" "\xb2\xf8\x3f\x4a\x83\xcd\xfb\x3f\x69\xfc\x49\x41\xfd\xa7\xbb\x9c\x38\xb8" "\xb6\x3c\xde\xf8\xe1\xd7\x23\xed\xb6\x2d\x8d\x7f\xf4\x46\xb7\xe3\xaf\xdf" "\x8c\xd8\x55\x38\xfe\xb9\xdf\x2b\x4d\x97\x1e\x70\x7d\x72\xef\xec\x5c\x6d" "\x66\xa2\xf1\x5c\x98\xc7\x37\xdf\xbe\xfb\x55\xbb\xfc\x7b\x1d\x7f\x5a\xff" "\x5b\xdb\xc4\xdf\x52\xff\x95\xe5\xef\x4b\x3f\x93\xf3\x6b\xcc\xe3\xeb\x63" "\x37\xcf\x0c\xb4\xd9\x36\xbc\x6a\xfc\x95\x5f\x06\x92\xc6\x78\xb3\x79\x8c" "\xf7\xa7\x16\x16\x2e\x4c\x46\x0c\x24\x47\xf3\x5d\x5a\xd2\xf7\x3d\xb8\x2c" "\xcd\x7d\x9a\xc7\x48\xe3\xdf\xfd\x7c\x71\xfb\x5f\xf2\xef\xff\xfa\xd2\xe3" "\x0c\xb5\x0e\x60\x56\x71\xfe\xed\xd3\x77\xda\x6d\x5b\x4f\xfd\xb7\x5c\x4c" "\x5e\xac\xaf\xb1\x0c\xed\xa4\xf1\x4f\xaf\x5e\xff\x2b\xda\x7f\x9a\xf6\xd9" "\x1a\xf3\xf8\xf3\x9d\x8b\xcf\xb6\xdb\x56\x10\x7f\x44\x1e\xff\xd0\xa3\x04" "\x06\x00\x00\x00\x00\x00\x00\x25\x54\xc9\xae\xc1\x26\x95\xf1\x7b\xcb\x95" "\xca\xf8\x78\x63\xbe\xec\xff\x63\x6b\xa5\x76\x6e\x7e\xe1\x85\xd9\x73\x17" "\xcf\x4e\x47\xec\xce\xfe\x1e\xb2\xbf\xd2\xbc\xd2\x3d\xd2\x58\x4f\xd2\xf5" "\xc9\xfc\xef\x61\x9b\xeb\xfb\x96\xad\xbf\x18\x11\x3b\x22\xe2\x8b\xea\x50" "\xb6\x3e\x7e\xf2\x5c\x6d\xba\xd7\xc1\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xc0\x06\xb1\x2d\x9f\xff\xdf\xbc\x4f\xf5\x1f\xd5" "\xc6\xfc\x7f\xa0\x24\x3a\x79\x83\x39\x60\x63\xd3\xfe\xa1\xbc\xb2\xf6\xbf" "\xe2\x16\x4f\x40\x19\x38\xff\x43\x79\x69\xff\x50\x5e\xda\x3f\x94\x97\xf6" "\x0f\xe5\xa5\xfd\x43\x79\x69\xff\x50\x5e\xda\x3f\x94\x97\xf6\x0f\x00\x00" "\x00\x00\x4f\xa4\x1d\xcf\xdd\xfa\x29\x89\x88\x6b\xaf\x0e\x65\x8f\xd4\x40" "\xbe\xad\xda\xd3\x92\x01\x9d\xd6\x5f\x90\x56\xbf\xda\x83\x82\x00\x5d\xe7" "\x1c\x0f\xe5\x75\xef\xd2\xbf\xe9\xff\x50\x3a\x45\xfd\xff\x15\xfe\xce\x7f" "\x1c\xb0\xf3\xc5\x01\x7a\x20\x29\x4a\xcc\x3a\x07\xf5\x07\x37\xfe\x5b\x85" "\xef\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3a\x60\xd7\xce\xf6\xf3" "\xff\xd7\x34\x37\x00\xd8\xb4\x4c\xfb\x83\xf2\x7a\x84\xf9\xff\x7e\x3a\x00" "\x36\x39\x3f\xfd\x0f\xe5\x65\x8c\x0f\xac\x36\x8b\x7f\xb0\xdd\x06\xf3\xff" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x6b\x86\xb3\x47\x52\x19\xcf" "\xe7\x02\x0f\x47\xa5\x32\x3e\x1e\xf1\x9f\x88\xd8\x1e\xfd\xc9\xec\x5c\x6d" "\x66\x22\x22\xfe\x1b\x11\x3f\x56\xfb\xb7\xa4\xeb\x93\xbd\x2e\x34\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x61\xe6\x2f\x5d" "\x3e\x3d\x55\xab\xcd\x5c\x68\x5d\xf8\x67\x45\xca\x93\xbd\xd0\xbc\x0b\x6a" "\x17\xf2\x7a\x2d\x1e\xf2\x5d\x91\x74\xff\x63\x19\x8a\x88\x9e\x57\x4a\xc7" "\x16\xfa\x5a\x52\x92\x88\x6b\x69\xcd\x6f\x88\x82\x5d\x98\x8f\x8d\x51\x8c" "\x6c\xa1\xc7\xff\x31\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x40\x09\xb5\xcc\x3d\x2e\x36\xfa\x65\x97\x4b\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\xdd\x77\xff\xfe\xff\x9d\x5b\xe8\x75\x8c" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xc0\xe6\xf4\x6f\x00\x00\x00\xff\xff\x28\x45\x42\x1f", 1565); syz_mount_image( /*fs=*/0x20000140, /*dir=*/0x200005c0, /*flags=MS_POSIXACL|MS_SYNCHRONOUS|MS_STRICTATIME|MS_SILENT|MS_NOEXEC|0xe40*/ 0x1018e58, /*opts=*/0x20000000, /*chdir=*/1, /*size=*/0x61d, /*img=*/0x20001680); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0xb80 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xb80) // } // ] // returns fd_dir memcpy((void*)0x20000b80, "ext4\000", 5); memcpy((void*)0x20000bc0, "./file0\000", 8); *(uint8_t*)0x20000c00 = 0; memcpy( (void*)0x20000c40, "\x78\x9c\xec\xdc\xcb\x6b\x5c\x55\x18\x00\xf0\xef\xde\x3c\x9a\x36\xb1\x93" "\x8a\xa8\x2d\x82\x01\xa9\x15\xc5\x69\xda\x14\x85\xae\x5a\xd7\xa2\x82\x2e" "\xba\xec\x98\x4c\x4a\xc8\xf4\x61\x26\x82\x09\x5d\xa4\x75\xaf\x2e\x44\x5c" "\x14\xa4\x7f\x82\xe0\xde\xba\x70\x25\xb8\xa8\x0b\xad\x7f\x41\x11\x8b\x14" "\xdd\xb4\x2e\x22\x77\x1e\xe9\xd0\x64\x92\xd8\xce\xf4\xf4\xf1\xfb\xc1\x99" "\x7b\xce\x9c\xe9\x7c\xdf\x37\x97\xce\x3d\x07\xe6\x26\x80\x27\xd6\x44\xf1" "\x90\x47\xec\x8d\x88\x93\x59\x44\xa9\xf5\x7c\x1e\x11\xc3\x8d\xde\x48\xc4" "\x4a\xf3\x75\xb7\x6f\x9e\x9f\x2e\x5a\x16\xab\xab\xef\xff\x95\x45\x16\x11" "\xb7\x6e\x9e\x9f\x6e\xbf\x57\xd6\x3a\x8e\xb6\x06\x23\x11\x71\xf5\xad\x2c" "\x9e\xfe\x74\x7d\xdc\xfa\xd2\xf2\x7c\xa5\x56\xab\x2e\xb4\xc6\x07\x17\x4f" "\x9f\x3b\x58\x5f\x5a\x7e\x7d\xee\x74\xe5\x54\xf5\x54\xf5\xcc\x91\xa9\x37" "\x8f\x4c\xbd\x31\x35\xd5\xc3\x5a\xaf\x9f\xfb\xf0\xeb\x17\x7e\x79\xe7\xe5" "\x8b\x97\x3f\x9b\x7c\xf7\xab\xdd\x3f\x65\x71\x2c\xc6\x5a\x73\x9d\x75\xf4" "\xca\x44\x4c\xac\x7d\x26\x9d\x06\x23\xa2\xd2\xeb\x60\x89\x0c\xb4\xea\xe9" "\xac\x33\x1b\x4c\x98\x10\x00\x00\x9b\xca\x3b\xd6\x70\xcf\x46\x29\x06\xe2" "\xce\xe2\xad\x14\x3f\xfe\x9a\x34\x39\x00\x00\x00\xa0\x27\x56\x07\x22\x56" "\x01\x00\x00\x80\xc7\x5c\x66\xff\x0f\x00\x00\x00\x8f\xb9\xf6\xef\x00\x6e" "\xdd\x3c\x3f\xdd\x6e\x69\x7f\x91\xf0\x60\xdd\x38\x1e\x11\xe3\xcd\xfa\xdb" "\xf7\x37\x37\x67\x06\x63\xa5\x71\x1c\x89\xa1\x88\xd8\xf5\x77\x16\x9d\xb7" "\xb5\x66\xcd\x7f\x76\xdf\x26\x8a\x48\xdf\xfd\x5c\x2d\x5a\xf4\xe9\x3e\xe4" "\xcd\xac\x5c\x88\x88\xe7\x37\x3a\xff\x59\xa3\xfe\xf1\xc6\x5d\xdc\xeb\xeb" "\xcf\x23\x62\xb2\x07\xf1\x27\xee\x1a\x3f\x4a\xf5\x1f\xeb\x41\xfc\xd4\xf5" "\x03\xf0\x64\xba\x72\xbc\x79\x21\x5b\x7f\xfd\xcb\xd7\xd6\x3f\xb1\xc1\xf5" "\x6f\x70\x83\x6b\xd7\xbd\x48\x7d\xfd\x6b\xaf\xff\x6e\xaf\x5b\xff\xdd\xa9" "\x7f\xa0\xcb\xfa\xef\xbd\x6d\xc6\xd8\xf7\xef\xab\x57\xbb\xcd\x75\xae\xff" "\x4e\x7c\xfe\xfb\x4c\x11\xbf\x38\xde\x57\x51\xff\xc3\x8d\x0b\x11\xfb\x06" "\x37\xaa\x3f\x5b\xab\x3f\xeb\x52\xff\xc9\x6d\xc6\x18\x9d\xbe\x7e\xa9\xdb" "\x5c\x51\x7f\x51\x6f\xbb\x3d\xe8\xfa\x57\x2f\x47\xec\x8f\x8d\xeb\x6f\xcb" "\x36\xfb\xfb\x44\x07\x67\xe7\x6a\xd5\xc9\xe6\x63\x97\x18\xfb\x7f\x38\x71" "\xa0\x5b\xfc\xce\xf3\x5f\xb4\x22\x7e\x7b\x2f\xf0\x20\x14\xe7\x7f\x57\x97" "\xfa\xb7\x3a\xff\xe7\xb6\x19\x63\xfc\xb9\x3f\xf7\x76\x9b\xdb\xba\xfe\xfc" "\x8f\xe1\xec\x83\x46\x6f\xb8\xf5\xcc\x27\x95\xc5\xc5\x85\x43\x11\xc3\xd9" "\xdb\xeb\x9f\x3f\xbc\x79\x2e\xed\xd7\xb4\xdf\xa3\xa8\xff\x95\x97\x36\xff" "\xff\xbf\x51\xfd\xc5\x77\xc2\x4a\xeb\x73\x28\xf6\x02\x17\x5a\xc7\x62\x7c" "\xf1\xae\x98\xa3\xfb\x0f\x7f\x7b\xef\xf5\xf7\x57\x51\xff\xcc\x3d\x9e\xff" "\x2f\xb6\x19\xe3\x9b\xef\x2f\x7d\xd4\x6d\x2e\x75\xfd\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x3c\x1a\xf2\x88\x18\x8b\x2c\x2f\xaf\xf5\xf3\xbc\x5c\x8e\x18\x8d" "\x88\x67\x62\x57\x5e\x3b\x5b\x5f\x7c\x6d\xf6\xec\xc7\x67\x66\x8a\xb9\x88" "\xf1\x18\xca\x67\xe7\x6a\xd5\xc9\x88\x28\x35\xc7\x59\x31\x3e\xd4\xe8\xdf" "\x19\x1f\xbe\x6b\x3c\x15\x11\x7b\x22\xe2\xcb\xd2\xce\xc6\xb8\x3c\x7d\xb6" "\x36\x93\xba\x78\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd6\x8c\x46\xc4\x58" "\x64\x79\x39\x22\xf2\x88\xf8\xa7\x94\xe7\xe5\x72\xea\xac\x00\x00\x00\x80" "\x9e\x1b\x4f\x9d\x00\x00\x00\x00\xd0\x77\xf6\xff\x00\x00\x00\xf0\xf8\xb3" "\xff\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\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\xcf" "\xf6\xbc\x78\xe5\x5a\x16\x11\x2b\x47\x77\x36\x5a\x61\xb8\x35\x37\x94\x34" "\x33\xa0\xdf\xf2\xd4\x09\x00\xc9\x0c\xa4\x4e\x00\x48\x66\x30\x75\x02\x40" "\x32\xf6\xf8\x40\xb6\xc5\xfc\x48\xd7\x99\x1d\x3d\xcf\x05\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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" "\x87\xd7\x81\xbd\x57\xae\x65\x11\xb1\x72\x74\x67\xa3\x15\x86\x5b\x73\x43" "\x49\x33\x03\xfa\x2d\x4f\x9d\x00\x90\xcc\x40\xea\x04\x80\x64\x06\x53\x27" "\x00\x24\x63\x8f\x0f\x64\x5b\xcc\x8f\x74\x9d\xd9\xd1\xf3\x5c\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x78\x8d\x35\x5a\x96\x97\x23\x22\x6f\xf4\xf3\xbc\x5c\x8e\x78\x2a" "\x22\xc6\x63\x28\x9b\x9d\xab\x55\x27\x23\x62\x77\x44\xfc\x56\x1a\xda\x51" "\x8c\x0f\xa5\x4e\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\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\x9e\xab\x2f\x2d" "\xcf\x57\x6a\xb5\xea\x82\x8e\x8e\x8e\xce\x5a\x27\xf5\x37\x13\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x29\xd4\x97\x96\xe7\x2b\xb5\x5a\x75\xa1\x9e\x3a\x13" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x20\xb5\xfa\xd2\xf2\x7c\xa5\x56\xab\x2e\xf4\xb1\x93\xba\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" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd2" "\xf9\x2f\x00\x00\xff\xff\xb3\x35\x06\x19", 2944); syz_mount_image(/*fs=*/0x20000b80, /*dir=*/0x20000bc0, /*flags=*/0, /*opts=*/0x20000c00, /*chdir=*/1, /*size=*/0xb80, /*img=*/0x20000c40); // syz_mount_image$exfat arguments: [ // fs: nil // dir: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: mount_flags = 0x4800 (8 bytes) // opts: nil // chdir: int8 = 0x0 (1 bytes) // size: len = 0x0 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x0) // } // ] // returns fd_dir memcpy((void*)0x20000100, "./bus\000", 6); syz_mount_image(/*fs=*/0, /*dir=*/0x20000100, /*flags=MS_REC|MS_NODIRATIME*/ 0x4800, /*opts=*/0, /*chdir=*/0, /*size=*/0, /*img=*/0x20000000); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000, /*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=*/0x21000000ul, /*len=*/0x1000, /*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; }