// https://syzkaller.appspot.com/bug?id=411e5e9b60179d6150b0f928c95b1ac64c2e1158 // 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 #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_pwritev2 #define __NR_pwritev2 287 #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$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 = 0x400 (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 = 0x2 (1 bytes) // size: len = 0x786 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x786) // } // ] // returns fd_dir memcpy((void*)0x20000140, "ext4\000", 5); memcpy((void*)0x20000040, "./file1\000", 8); *(uint8_t*)0x20000180 = 0; memcpy( (void*)0x20000f80, "\x78\x9c\xec\xdd\xcf\x6b\x1c\x65\x1f\x00\xf0\xef\x6c\xb3\x49\xdf\xb4\xef" "\xdb\xbc\xf0\xc2\x6b\x3d\x05\x04\x0d\x94\x6e\x4c\x8d\xad\x82\x87\x8a\x07" "\x11\x2c\x14\xf4\x6c\xbb\x6c\xb6\xa1\x66\x93\x2d\xd9\x4d\x69\x42\x40\x8b" "\x08\x5e\x04\x15\x0f\x82\x5e\x7a\xb6\x5a\x6f\x5e\xfd\x71\xd5\x3f\xc0\xbb" "\x07\x69\xa9\x9a\x16\x23\x1e\x24\x32\x9b\xdd\x74\xdb\xec\xa6\x9b\x34\x9b" "\x6d\xd9\xcf\x07\x26\x79\x9e\x99\xd9\x7c\xe7\x3b\xcf\xcc\x3c\x4f\x76\x86" "\xdd\x00\xfa\xd6\x68\xfa\x23\x13\x71\x38\x22\x3e\x48\x22\x0e\xd5\xe7\x27" "\x11\x91\xad\x95\x06\x22\x4e\xae\xaf\xb7\xba\xb2\x5c\x48\xa7\x24\xd6\xd6" "\x5e\xfb\x2d\xa9\xad\x73\x7b\x65\xb9\x10\x4d\xaf\x49\x1d\xa8\x57\x1e\x8b" "\x88\xef\xde\x8d\x38\x92\xd9\x1c\xb7\xb2\xb8\x34\x93\x2f\x95\x8a\xf3\xf5" "\xfa\x78\x75\xf6\xc2\x78\x65\x71\xe9\xe8\xf9\xd9\xfc\x74\x71\xba\x38\x77" "\x7c\x62\x72\xf2\xd8\x89\x67\x4f\x1c\xdf\xbd\x5c\xff\xf8\x71\xe9\xe0\x8d" "\x0f\x5f\x7e\xea\xcb\x93\x7f\xbd\xf3\xff\x6b\xef\x7f\x9f\xc4\xc9\x38\x58" "\x5f\xd6\x9c\xc7\x6e\x19\x8d\xd1\xfa\x3e\xc9\xa6\xbb\xf0\x2e\x2f\xc5\x5b" "\xbb\x1d\xae\xa7\x92\x5e\x6f\x00\x3b\x92\x9e\x9a\xfb\xd6\xcf\xf2\x38\x9c" "\xa4\xe5\x81\x5e\x6f\x12\x00\xd0\x65\xe9\x28\x74\x0d\x00\xe8\x33\x89\xfe" "\x1f\x00\xfa\x4c\xe3\x7d\x80\xdb\x2b\xcb\x85\xc6\xd4\xdb\x77\x24\xf6\xd6" "\xcd\x17\x23\x62\xff\x7a\xfe\x8d\xfb\x9b\xeb\x4b\x06\xea\xf7\xec\xf6\xd7" "\xee\x83\x0e\xdf\x4e\xee\xba\x33\x92\x44\xc4\xc8\x2e\xc4\x1f\x8d\x88\xcf" "\xbe\x7e\xe3\x6a\x3a\x45\x97\xee\x43\x02\xb4\xf2\xf6\xe5\x88\x38\x3b\x32" "\xba\xf9\xfa\x9f\x6c\x7a\x66\x61\xbb\x9e\xee\x60\x9d\xd1\x7b\xea\x1b\xf1" "\x7f\xca\x3e\x60\x74\xe0\x7e\xbe\x49\xc7\x3f\xcf\xb5\x1a\xff\x65\x36\xc6" "\x3f\xd1\x62\xfc\x33\xd4\xe2\xdc\xdd\x89\xb6\xe7\xff\x86\xcc\xf5\x5d\x08" "\xd3\x56\x3a\xfe\x7b\xa1\xe9\xd9\xb6\xd5\xa6\xfc\xeb\x46\xf6\xd5\x6b\xff" "\xae\x8d\xf9\xb2\xc9\xb9\xf3\xa5\x62\x7a\x6d\xfb\x4f\x44\x8c\x45\x76\x28" "\xad\x4f\x6c\x11\x63\xec\xd6\xdf\xb7\xda\x2d\x6b\x1e\xff\xfd\xfe\xd1\x9b" "\x9f\xa7\xf1\xd3\xdf\x77\xd6\xc8\x5c\x1f\x18\xba\xfb\x35\x53\xf9\x6a\xfe" "\x41\x72\x6e\x76\xf3\x72\xc4\xe3\x03\xad\xf2\x4f\x36\xda\x3f\x69\x33\xfe" "\x3d\xdd\x61\x8c\x57\x9e\x7f\xef\xd3\x76\xcb\xd2\xfc\xd3\x7c\x1b\xd3\xe6" "\xfc\xbb\x6b\xed\x4a\xc4\x93\x2d\xdb\xff\xce\x13\x6d\xc9\x96\xcf\x27\x8e" "\xd7\x0e\x87\xf1\xc6\x41\xd1\xc2\x57\x3f\x7f\x32\xdc\x2e\x7e\x73\xfb\xa7" "\xd3\xea\xca\xf2\x5a\x12\x71\x75\xf7\x33\x6d\x2d\x6d\xff\xe1\xad\xf3\x1f" "\x49\x9a\x9f\xd7\xac\x6c\x3f\xc6\x0f\x57\x0e\x7d\xdb\x6e\x59\x8b\xfc\x0b" "\x8d\xff\x85\xd6\xb5\x3e\xfe\x07\x93\xd7\x6b\xe5\xc1\xfa\xbc\x4b\xf9\x6a" "\x75\x7e\x22\x62\x30\x79\x75\xf3\xfc\x63\x77\x5e\xdb\xa8\x37\xd6\x4f\xf3" "\x1f\x7b\xa2\xf5\xf9\xbf\xd5\xf1\x9f\x8e\x4e\xce\x76\x98\xff\xc0\x8d\x5f" "\xbf\xd8\x79\xfe\xdd\x95\xe6\x3f\xb5\xad\xf6\xdf\x7e\xe1\xda\xea\xcc\xbe" "\x76\xf1\x3b\x6b\xff\xc9\x5a\x69\xac\x3e\xa7\x93\xeb\x5f\xa7\x1b\xf8\x20" "\xfb\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x3a\x95\x89\x88\x83\x91\x64\x72\x1b\xe5\x4c\x26\x97\x5b\xff" "\x0e\xef\xff\xc5\x70\xa6\x54\xae\x54\x8f\x9c\x2b\x2f\xcc\x4d\x45\xed\xbb" "\xb2\x47\x22\x9b\x69\x7c\xd4\xe5\xa1\xa6\xcf\x43\x9d\xa8\x7f\x1e\x7e\xa3" "\x7e\xec\x9e\xfa\x33\x11\xf1\xdf\x88\xf8\x78\xe8\x5f\xb5\x7a\xae\x50\x2e" "\x4d\xf5\x3a\x79\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa8" "\x3b\xd0\xe6\xfb\xff\x53\xbf\x0c\xf5\x7a\xeb\x00\x80\xae\xd9\xdf\xeb\x0d" "\x00\x00\xf6\x9c\xfe\x1f\x00\xfa\x8f\xfe\x1f\x00\xfa\x8f\xfe\x1f\x00\xfa" "\x8f\xfe\x1f\x00\xfa\x8f\xfe\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x2e\x3b\x7d\xea\x54\x3a\xad\xfd\xb9\xb2\x5c\x48\xeb" "\x53\x17\x17\x17\x66\xca\x17\x8f\x4e\x15\x2b\x33\xb9\xd9\x85\x42\xae\x50" "\x9e\xbf\x90\x9b\x2e\x97\xa7\x4b\xc5\x5c\xa1\x3c\x7b\xbf\xbf\x57\x2a\x97" "\x2f\x4c\xc6\xdc\xc2\xa5\xf1\x6a\xb1\x52\x1d\xaf\x2c\x2e\x9d\x99\x2d\x2f" "\xcc\x55\xcf\x9c\x9f\xcd\x4f\x17\xcf\x14\xb3\x7b\x92\x15\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x4f\x65\x71\x69\x26\x5f\x2a\x15" "\xe7\x15\x1e\x81\xc2\x40\xbd\xd5\x1e\x96\xed\xd9\x51\x21\xd3\x48\x62\xaf" "\x82\x0e\x76\x2b\x8b\x87\x60\x67\x76\xaf\xd0\xc3\x8b\x12\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x23\xe4\x9f\x00\x00\x00\xff\xff\xd6\xa3\x21" "\x5e", 1926); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000040, /*flags=MS_NOATIME*/ 0x400, /*opts=*/0x20000180, /*chdir=*/2, /*size=*/0x786, /*img=*/0x20000f80); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: open_flags = 0x42 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x20000040, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000040ul, /*flags=O_CREAT|O_RDWR*/ 0x42, /*mode=*/0); if (res != -1) r[0] = res; // pwritev2 arguments: [ // fd: fd (resource) // vec: ptr[in, array[iovec[in, array[int8]]]] { // array[iovec[in, array[int8]]] { // iovec[in, array[int8]] { // addr: ptr[in, buffer] { // buffer: {fc 9b 89 77 2a 82 a4 51 f8 94 5d 83 04 44 90 d7 04 cc // a9 59 86 da 02 b6 71 d2 cc dc 52 7e c2 64 f7 83 4f 35 ed 4c fc // b2 59 af 8d 90 77 f6 a6 87 18 70 58 8b 5e aa 41 97 87 ac ae ba // 0d 7c 1a df 18 17 d5 bb 2b 56 76 38 17 b8 6a c2 cb 7a ca e8 0a // 0c 69 8d 64 34 39 25 a6 7e c0 9d dc cc 25 d5 c0 69 c0 2d 5b 1d // 47 cc fa 55 a1 08 ce 53 fa 9a 8f 4e 03 66 46 59 6a ff d5 08 cc // 6d 9e 64 19 76 c5 ef 02 f0 fa 60 16 f0 b4 63 12 78 19 4a 79 49 // ff 56 59 86 44 ec 32 73 79 60 23 01 27 81 c8 82 0f aa 1e 10 b5 // d4 c3 dd 75 f7 0d 6c e2 34 f1 73 24 a7 e7 5c 2a 1b f0 1e 2b ba} // (length 0xba) // } // len: len = 0xba (8 bytes) // } // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // iovec[in, array[int8]] { // addr: nil // len: len = 0x0 (8 bytes) // } // } // } // vlen: len = 0x5 (8 bytes) // off_low: int32 = 0xb (4 bytes) // off_high: int32 = 0xaecc (4 bytes) // flags: rwf_flags = 0x2 (8 bytes) // ] *(uint64_t*)0x20002940 = 0x20000240; memcpy((void*)0x20000240, "\xfc\x9b\x89\x77\x2a\x82\xa4\x51\xf8\x94\x5d\x83\x04\x44\x90\xd7\x04" "\xcc\xa9\x59\x86\xda\x02\xb6\x71\xd2\xcc\xdc\x52\x7e\xc2\x64\xf7\x83" "\x4f\x35\xed\x4c\xfc\xb2\x59\xaf\x8d\x90\x77\xf6\xa6\x87\x18\x70\x58" "\x8b\x5e\xaa\x41\x97\x87\xac\xae\xba\x0d\x7c\x1a\xdf\x18\x17\xd5\xbb" "\x2b\x56\x76\x38\x17\xb8\x6a\xc2\xcb\x7a\xca\xe8\x0a\x0c\x69\x8d\x64" "\x34\x39\x25\xa6\x7e\xc0\x9d\xdc\xcc\x25\xd5\xc0\x69\xc0\x2d\x5b\x1d" "\x47\xcc\xfa\x55\xa1\x08\xce\x53\xfa\x9a\x8f\x4e\x03\x66\x46\x59\x6a" "\xff\xd5\x08\xcc\x6d\x9e\x64\x19\x76\xc5\xef\x02\xf0\xfa\x60\x16\xf0" "\xb4\x63\x12\x78\x19\x4a\x79\x49\xff\x56\x59\x86\x44\xec\x32\x73\x79" "\x60\x23\x01\x27\x81\xc8\x82\x0f\xaa\x1e\x10\xb5\xd4\xc3\xdd\x75\xf7" "\x0d\x6c\xe2\x34\xf1\x73\x24\xa7\xe7\x5c\x2a\x1b\xf0\x1e\x2b\xba", 186); *(uint64_t*)0x20002948 = 0xba; *(uint64_t*)0x20002950 = 0; *(uint64_t*)0x20002958 = 0; *(uint64_t*)0x20002960 = 0; *(uint64_t*)0x20002968 = 0; *(uint64_t*)0x20002970 = 0; *(uint64_t*)0x20002978 = 0; *(uint64_t*)0x20002980 = 0; *(uint64_t*)0x20002988 = 0; syscall(__NR_pwritev2, /*fd=*/r[0], /*vec=*/0x20002940ul, /*vlen=*/5ul, /*off_low=*/0xb, /*off_high=*/0xaecc, /*flags=RWF_DSYNC*/ 2ul); // 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 = 0x0 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // data_err_ignore: buffer: {64 61 74 61 5f 65 72 72 3d 69 67 6e // 6f 72 65} (length 0xf) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noload: buffer: {6e 6f 6c 6f 61 64} (length 0x6) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // debug_want_extra_isize: fs_opt["debug_want_extra_isize", // fmt[hex, int32]] { // name: buffer: {64 65 62 75 67 5f 77 61 6e 74 5f 65 78 74 72 // 61 5f 69 73 69 7a 65} (length 0x16) eq: const = 0x3d (1 // bytes) val: int32 = 0x5a (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // errors_remount: buffer: {65 72 72 6f 72 73 3d 72 65 6d 6f 75 // 6e 74 2d 72 6f} (length 0x11) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // grpid: buffer: {67 72 70 69 64} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noquota: buffer: {6e 6f 71 75 6f 74 61} (length 0x7) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // min_batch_time: fs_opt["min_batch_time", fmt[hex, int32]] { // name: buffer: {6d 69 6e 5f 62 61 74 63 68 5f 74 69 6d 65} // (length 0xe) eq: const = 0x3d (1 bytes) val: int32 = 0x3 (18 // bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // jqfmt_vfsold: buffer: {6a 71 66 6d 74 3d 76 66 73 6f 6c 64} // (length 0xc) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x47a (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x47a) // } // ] // returns fd_dir memcpy((void*)0x20000240, "ext4\000", 5); memcpy((void*)0x20000000, "./file1\000", 8); memcpy((void*)0x20000300, "data_err=ignore", 15); *(uint8_t*)0x2000030f = 0x2c; memcpy((void*)0x20000310, "noload", 6); *(uint8_t*)0x20000316 = 0x2c; memcpy((void*)0x20000317, "debug_want_extra_isize", 22); *(uint8_t*)0x2000032d = 0x3d; sprintf((char*)0x2000032e, "0x%016llx", (long long)0x5a); *(uint8_t*)0x20000340 = 0x2c; memcpy((void*)0x20000341, "errors=remount-ro", 17); *(uint8_t*)0x20000352 = 0x2c; memcpy((void*)0x20000353, "grpid", 5); *(uint8_t*)0x20000358 = 0x2c; memcpy((void*)0x20000359, "noquota", 7); *(uint8_t*)0x20000360 = 0x2c; memcpy((void*)0x20000361, "min_batch_time", 14); *(uint8_t*)0x2000036f = 0x3d; sprintf((char*)0x20000370, "0x%016llx", (long long)3); *(uint8_t*)0x20000382 = 0x2c; memcpy((void*)0x20000383, "jqfmt=vfsold", 12); *(uint8_t*)0x2000038f = 0x2c; *(uint8_t*)0x20000390 = 0; memcpy( (void*)0x200006c0, "\x78\x9c\xec\xdb\xcb\x8f\x14\xc5\x1f\x00\xf0\x6f\xf7\x3e\x80\x1f\x8f\xe5" "\x87\xf8\x00\x51\x57\x89\xc9\x46\xe3\x2e\xbb\xa0\x72\xf0\xa2\xd1\xc4\x18" "\x8c\x26\x7a\xc0\xe3\x3a\x3b\x90\x0d\x03\x6b\xd8\xd5\x08\x12\x59\x8c\xf1" "\x64\x62\x48\xf4\x4c\x3c\x1a\xfd\x0b\xbc\x19\x13\xa3\x9e\x4c\xb8\x7a\xf2" "\x64\x48\x88\x72\x01\x3c\xad\xe9\x9e\x6e\x98\x1d\x66\x78\xb8\x33\xcc\xb2" "\xf3\xf9\x24\x3d\x53\xd5\x5d\x3d\x55\x35\xd5\x8f\xea\xaa\x99\x00\xfa\xd6" "\x68\xf6\x92\x44\x6c\x8a\x88\xdf\x23\x62\xa4\x1e\x5d\x9e\x60\xb4\xfe\x76" "\xe5\xd2\xa9\xca\xd5\x4b\xa7\x2a\x49\x2c\x2d\xbd\xf5\x57\x92\xa7\xbb\x7c" "\xe9\x54\xa5\x4c\x5a\xee\xb7\xb1\x88\x8c\xa5\x11\xe9\xa7\x49\x91\xc9\x72" "\xf3\x27\x4e\x1e\x99\xae\xd5\xaa\xc7\x8b\xf8\xc4\xc2\xd1\xf7\x26\xe6\x4f" "\x9c\x7c\xe6\x83\xa3\xd3\x87\xab\x87\xab\xc7\xa6\xf6\xef\xdf\xb7\x77\xf2" "\xf9\xe7\xa6\x9e\xed\x48\x3d\xb3\x7a\x5d\xde\xf9\xf1\xdc\xae\x1d\xaf\xbe" "\x73\xf6\xf5\xca\xc1\xb3\xef\xfe\xf2\x5d\x56\xde\x4d\xc5\xf6\xc6\x7a\x74" "\xca\x68\x56\xf1\xbf\x97\x72\xcd\xdb\x9e\xec\x74\x66\x3d\xb6\xb9\x21\x9c" "\x0c\xf6\xb0\x20\xdc\x91\x81\x88\xc8\x9a\x6b\x28\x3f\xff\x47\x62\x20\xae" "\x37\xde\x48\xbc\xf2\x49\x4f\x0b\x07\x74\x55\x76\x6f\x5a\xd7\x7e\xf3\xe2" "\x12\xb0\x86\x25\xd1\xeb\x12\x00\xbd\x51\xde\xe8\xb3\xe7\xdf\x72\xb9\x4b" "\x5d\x8f\x55\xe1\xe2\x8b\xf5\x07\xa0\xac\xde\x57\x8a\xa5\xbe\x65\x30\xd2" "\x22\xcd\x50\xd3\xf3\x6d\x27\x8d\x46\xc4\xc1\xc5\x7f\xce\x65\x4b\x74\x69" "\x1c\x02\x00\xa0\xd1\xe7\x95\xaf\x0e\x0c\x47\xc4\x47\x57\xbf\x7d\x2d\xeb" "\x7b\x8c\x44\x44\x39\x1e\xf4\x40\xfe\xfa\x47\xfe\xba\xa5\x98\x43\xd9\x1a" "\x11\xff\x8f\x88\x6d\x11\x71\x5f\x44\x6c\x8f\x88\xfb\x8b\xb4\x0f\x46\xc4" "\x43\x2b\x2c\xcf\x8d\xfd\x9f\xf4\xc2\x0a\x3f\xf2\xa6\xb2\xfe\xdf\x0b\xc5" "\xdc\xd6\xf2\xfe\x5f\xd9\xfb\x8b\xad\x03\x45\x6c\x73\x5e\xff\xa1\xe4\xd0" "\x6c\xad\xba\x27\xd6\xe5\xdf\xc9\x58\x0c\xad\xcb\xe2\x93\x37\xc9\xe3\x87" "\x97\xcf\x7f\xd1\x6e\x5b\x63\xff\x2f\x5b\xb2\xfc\xcb\xbe\x60\x51\x8e\x0b" "\x83\x4d\x03\x74\x33\xd3\x0b\xd3\x79\xa7\xb4\x03\x2e\x9e\x89\xd8\x39\xd8" "\xaa\xfe\xc9\xb5\x99\x80\x24\x22\x76\x44\xc4\xce\x3b\xfb\xe8\x2d\x65\x60" "\xf6\xa9\x6f\x76\xb5\x4b\xd4\xba\xfe\x97\xcf\xdd\x56\x0e\x1d\x98\x67\x5a" "\xfa\x3a\xab\xde\x62\x56\xff\xc5\x68\xaa\x7f\x29\x69\x9c\x9f\x9c\xbd\x61" "\x7e\x72\x62\x7d\xd4\xaa\x7b\x26\xea\x47\x45\x2b\xbf\xfe\xf6\xd9\x9b\xed" "\xf2\xbf\x75\xfb\x77\xd7\xc5\x6a\xfd\xbd\xa1\xfd\x9b\x93\x6c\x4d\x1a\xe7" "\x6b\xe7\x3b\x9b\xff\x7f\x3c\xfe\xd3\xe1\xe4\xed\x7c\x9e\x79\xb8\x58\xf7" "\xe1\xf4\xc2\xc2\xf1\xc9\x88\xe1\xe4\x40\x1e\x5f\xb6\x7e\xea\xfa\xbe\x65" "\xbc\x4c\x9f\x1d\xff\x63\xbb\x5b\x9f\xff\xdb\x8a\x7d\xb2\xfa\x3f\x1c\x11" "\xd9\x41\xfc\x48\x44\x3c\x1a\x11\x8f\x15\x65\x7f\x3c\x22\x9e\x88\x88\xdd" "\x37\xa9\xe3\xcf\x2f\xdd\xba\xfe\x91\xf6\xa8\xfd\xcf\x44\xcc\xb4\xbc\xfe" "\x5d\x3b\xfe\x9b\xda\xff\xce\x03\x03\x47\x7e\xfa\xbe\x5d\xfe\xb7\xd7\xfe" "\xfb\xf2\xd0\x58\xb1\x26\xbf\xfe\xdd\x42\xab\xe2\x64\x97\x8b\xe6\x02\xae" "\xe4\xbb\x03\x00\x00\x80\x7b\x45\x9a\xff\x06\x3e\x49\xc7\xaf\x85\xd3\x74" "\x7c\xbc\xfe\x1b\xfe\xed\xf1\xbf\xb4\x36\x37\xbf\xf0\xf4\xa1\xb9\xf7\x8f" "\xcd\xc4\xf9\x2d\xf5\xf1\xcf\xb4\x1c\xe9\x1a\x29\xc6\x43\x6b\xb3\xb5\xea" "\x64\xb2\x58\x7c\x62\x7d\x7c\x74\xaa\x18\x2b\x2e\xc7\x4b\xf7\x16\xe3\xc6" "\x5f\x0e\x6c\xc8\xe3\xe3\x95\xb9\xda\x4c\x8f\xeb\x0e\xfd\x6e\x63\x9b\xf3" "\x3f\xf3\xe7\x40\xaf\x4b\x07\x74\xd9\x86\x96\x6b\xa7\x86\xef\x7a\x41\x80" "\x1e\x68\x9e\x47\x4f\x97\x47\x4f\xbf\x11\x2e\x06\xb0\x56\xf9\xbf\x36\xf4" "\xaf\xf2\xfc\x6f\xf3\xbc\xdf\xf8\x3f\x18\x60\x8d\x71\xff\x87\xfe\xd5\xea" "\xfc\x3f\xdd\x14\x37\x17\x00\x6b\x93\xfb\x3f\xf4\x2f\xe7\x3f\xf4\xa9\xf4" "\xc7\x15\xec\xec\xa9\x00\xee\x75\xee\xff\xd0\x97\x56\xf2\xbf\xfe\x2e\x06" "\xd6\xaf\x8e\x62\xf4\x26\xb0\x5a\x1b\x25\x0f\x44\x94\x81\x74\x55\x94\x47" "\xa0\x4b\x81\x5e\x5f\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x3a\xe3\xdf\x00\x00\x00\xff\xff\x8f\x73\xe7\x6a", 1146); syz_mount_image(/*fs=*/0x20000240, /*dir=*/0x20000000, /*flags=*/0, /*opts=*/0x20000300, /*chdir=*/1, /*size=*/0x47a, /*img=*/0x200006c0); } 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; }