// https://syzkaller.appspot.com/bug?id=6ff79a13ea188e28f1d76ce8093f6b3c24530a0a // 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_RDONLY); 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) { if (chdir(target) == -1) { err = errno; close(res); res = -1; } } 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_RDONLY); 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 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]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // test_dummy_encryption_v1: buffer: {74 65 73 74 5f 64 75 6d 6d // 79 5f 65 6e 63 72 79 70 74 69 6f 6e 3d 76 31} (length 0x18) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // acl: buffer: {61 63 6c} (length 0x3) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // oldalloc: buffer: {6f 6c 64 61 6c 6c 6f 63} (length 0x8) // } // 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 = 0x8 (18 bytes) // } // } // 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 = 0x5b9 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x5b9) // } // ] // returns fd_dir memcpy((void*)0x2000000005c0, "ext4\000", 5); memcpy((void*)0x200000000100, "./file0\000", 8); memcpy((void*)0x200000000000, "test_dummy_encryption=v1", 24); *(uint8_t*)0x200000000018 = 0x2c; memcpy((void*)0x200000000019, "acl", 3); *(uint8_t*)0x20000000001c = 0x2c; memcpy((void*)0x20000000001d, "oldalloc", 8); *(uint8_t*)0x200000000025 = 0x2c; memcpy((void*)0x200000000026, "debug_want_extra_isize", 22); *(uint8_t*)0x20000000003c = 0x3d; sprintf((char*)0x20000000003d, "0x%016llx", (long long)8); *(uint8_t*)0x20000000004f = 0x2c; *(uint8_t*)0x200000000050 = 0; memcpy( (void*)0x2000000012c0, "\x78\x9c\xec\xdd\x6d\x88\x1c\x77\x1d\x07\xf0\xdf\xec\xde\xa6\x79\xb8\x9a" "\x34\xb6\x6a\x6b\x6c\x4e\x43\x6d\x20\x74\xf7\x72\xb9\x84\x44\x7c\x61\x89" "\x0f\xb5\x26\xb5\xa2\xf8\x22\x14\xc2\x91\xdb\xee\x85\xec\xdd\x9e\xb9\x0d" "\xf4\xb6\x82\x2d\xbe\x29\x0a\x22\xf8\x46\x04\xa1\x62\x5f\x58\x11\x0d\xe4" "\x4d\xa5\xd4\xf6\x45\x8b\x6f\x14\x94\xfa\x40\xa5\xc6\x80\x0a\x22\x14\xad" "\x14\x44\x50\x57\x66\x1f\xae\x6b\x33\x69\x8a\xf7\x30\x78\xf3\xf9\xc0\xdc" "\xfd\xe7\x3f\x73\xfb\xff\xef\x2d\xdf\x9d\xd9\x9d\xff\xcc\x04\x50\x58\x13" "\xe9\x8f\x24\x62\x3c\x22\x2e\x45\xc4\xce\xfe\xec\x7f\xaf\x30\xd1\xff\xd5" "\x39\x74\x71\x2e\x9d\x92\xe8\x76\x3f\xfd\x97\xa4\xb7\xde\xec\xa1\x8b\x73" "\xc3\x55\x87\x7f\xb7\x23\xfd\x31\x16\xb1\x35\x22\x76\x1f\x4f\x62\x5f\xe5" "\xea\x76\x97\x96\x3b\xe7\x66\x9a\xcd\xfa\xf9\xc1\x7c\xad\x3d\xbf\x58\x5b" "\x5a\xee\xdc\x75\x76\x7e\xa6\x51\x6f\xd4\x17\x0e\x1f\x9d\x3e\x36\x75\x64" "\xfa\xe8\xf4\xda\x3d\xd7\xc9\x9f\x6e\xbf\xe5\x8f\x77\xdc\x77\xe5\x89\xe7" "\xff\xfe\xcf\x6f\xfe\xfa\xc8\xf7\xd3\xfe\x8e\x0f\x96\x8d\x3e\x8f\xb5\x32" "\x11\x13\x83\xff\x49\x25\x6e\x1a\xa9\x1f\x4b\x22\xee\x5d\xeb\xc6\x72\x52" "\xee\xbf\xd4\x71\xc7\x48\x5d\x32\x96\x63\x87\x78\xcb\xba\xdd\xdd\xdf\x4b" "\x5f\xbf\xb7\x47\xc4\xbe\x5e\xfe\x77\x46\x39\xfa\x2f\xde\x4b\x4f\x3f\xf0" "\xb7\x9d\xf1\xcb\x7b\xf2\xee\x23\xb0\x7e\xba\x43\xd9\x8b\x5f\xed\x02\x9b" "\x56\xa9\xb7\x0f\x9c\x94\xaa\x11\xd1\x2f\x97\x4a\xd5\x6a\x7f\x1f\xfe\xe6" "\xd8\x5e\x6a\xb6\x96\xda\x07\x1e\x6c\x5d\x58\x98\xed\xef\x2b\xef\x8a\x4a" "\xe9\xc1\xb3\xcd\xfa\xe4\xe0\xb3\xc2\xae\xa8\x24\xe9\xfc\xc1\x5e\xf9\xf5" "\xf9\xa9\x37\xcc\x1f\x8a\xe8\xed\x03\x3f\x56\xde\xd6\x9b\xaf\x9e\x69\x35" "\x67\x37\xfa\xcd\x0e\xe8\x19\x8f\xb8\x7c\xe9\x73\x67\xb6\xec\x78\x43\xfe" "\xff\x54\xee\xe7\x1f\xd8\xbc\xd2\xfc\xff\xe2\x85\xa7\x9e\x4d\xcb\xaf\x95" "\xf3\xee\x0d\xb0\x91\xd2\xfc\x7f\xf7\xb5\xf9\x4f\x84\xfc\x43\xe1\xc8\x3f" "\x14\x97\xfc\x43\x71\xc9\x3f\x14\x97\xfc\x43\x71\xc9\x3f\x14\x97\xfc\x43" "\x71\xc9\x3f\x14\x97\xfc\x43\x71\xc9\x3f\x14\xd7\x30\xff\xf7\x9f\x3c\x19" "\xf7\x9f\x3c\xd9\xed\x0c\xce\x7f\x5f\x68\x35\xce\x9e\x9b\x5b\x3c\x36\x35" "\x59\x9d\xbf\x70\xa6\x7a\xa6\x75\x7e\xb1\xda\x68\xb5\x1a\xbd\x33\x76\xe6" "\xaf\xff\xb8\xcd\x56\x6b\xf1\xe0\x54\x5c\x78\xa8\xd6\xae\x2f\xb5\x6b\x4b" "\xcb\x9d\xd3\xf3\xad\x0b\x0b\xed\xd3\xbd\xf3\xfa\x4f\xd7\x33\x2e\x05\x00" "\xe4\xe0\xd4\x95\xad\xf7\xde\xb4\xf7\xb9\x97\x92\x88\x78\xe4\x03\xdb\x7a" "\x53\x6a\xcb\x60\xb9\xac\xc2\xe6\xd6\xed\x26\x91\xf7\x39\xc8\x40\x3e\x7c" "\xf4\x87\xe2\x72\xa9\x36\x28\x2e\x9f\xf1\x81\xe4\x3a\xcb\xb7\x5e\x6b\x41" "\x73\xed\xfb\x02\x6c\x8c\x52\xde\x1d\x00\x72\x73\xe7\xad\x8e\xff\x41\x51" "\xf9\xfe\x1f\x8a\xcb\xf7\xff\x50\x5c\xf6\xf1\x01\xdf\xff\x43\xf1\xf8\xfe" "\x1f\x8a\x6b\xfc\x1a\xf7\xff\xba\x71\xe4\xde\x5d\x93\x11\xf1\xb6\x88\xf8" "\x49\xb9\x72\xc3\xf0\x5e\x5f\xc0\xff\xaf\xf1\x88\xcb\x97\xbf\xfd\xd9\xda" "\xca\x7d\xb8\x15\x14\x14\x14\x56\x0a\x79\xbf\x43\x01\xeb\xed\xf5\xd0\xe7" "\xdd\x13\x20\x2f\xb3\x87\x2e\xce\x0d\xa7\x8d\x6a\xf3\x99\xc6\x46\xb5\x04" "\x64\x79\xe5\xee\xfe\x20\xa0\x34\xf7\x9d\xc1\xd4\x5f\x32\xb6\x72\x6c\xa0" "\xb2\x4e\xe3\x84\x5e\x7e\x2c\x62\x22\x7e\xf8\xdb\xc7\xf7\xcf\x95\xd3\x29" "\x06\xef\x43\xeb\xd0\x14\x90\xe1\x91\x47\x23\xe2\x5d\x59\xdb\xff\xa4\x77" "\x6c\x60\xd7\x60\xbd\xdd\xfd\xd5\xe2\xe6\x88\xb8\x25\x22\xde\x11\x11\xef" "\x5c\x65\xdb\x5f\xff\x54\x9a\xff\x17\xea\xa3\x75\xf2\x0f\x1b\xe7\xad\xe6" "\xff\xd6\x88\xb8\x3d\x22\x6e\x8b\x88\x77\x47\xc4\x9e\x88\x78\xcf\x2a\xdb" "\xfe\xf9\xa5\x34\xff\xbf\xda\x36\x5a\x27\xff\x50\x0c\x9f\x7f\x3e\xef\x1e" "\x00\x79\xf9\xf8\x53\x79\xf7\x00\xc8\xcb\x29\x63\x0c\xa0\xb0\xbe\xf3\x70" "\xde\x3d\x00\xf2\xf2\xf4\x0f\xf2\xee\x01\x90\x97\xaf\xbc\x98\x77\x0f\xa0" "\xd8\x9e\xbb\x3b\x22\x26\xb3\x8e\xff\x95\x7a\xc7\xfb\x87\x2a\x83\xeb\x02" "\xde\x30\xb8\x16\xc0\xb6\x88\xd8\x1e\x11\x3b\x06\xe7\x10\xde\x38\x38\x47" "\x70\xe7\xc8\x31\xc3\xeb\x39\xfd\xc9\x88\x89\xb8\xfd\x47\xa3\x75\x8e\xff" "\xc1\xc6\x19\x8e\xff\xeb\x5c\x35\xfe\xaf\xb4\x32\xfe\xaf\x1c\x11\x7b\x57" "\xd1\xc6\x33\x1f\x1c\xff\x72\x56\xfd\xcc\x9e\x34\xff\x4f\x3c\x3c\x1c\xff" "\x97\x4e\x69\xfb\xc3\xb1\x80\xc0\xfa\x7a\xe5\xd1\x88\xdb\x32\xf3\x9f\xac" "\x8c\xf9\x4d\x22\xcd\x69\xc4\x7b\xff\xc7\x36\x26\xbe\x70\xe5\xc9\xac\xfa" "\x17\xef\x4b\x1f\xb7\xf2\x33\xf9\x87\x7c\x74\xbf\x15\xf1\xfe\xc8\xce\xff" "\x50\x5a\xaa\xb5\xe7\x17\x6b\x4b\xcb\x9d\xbb\x7a\xf7\xf1\x6e\xd4\x17\x0e" "\x1f\x9d\x3e\x36\x75\x64\xfa\xe8\x74\xad\x77\x89\x90\xda\xf0\x42\x21\x19" "\x4e\xfc\xf5\xd5\x03\x59\xf5\x2f\x4f\xa5\xf9\xff\xc6\x61\xf9\x87\x7c\xa4" "\xdb\xff\xed\xd7\xc8\xff\xe8\xfe\xff\xfb\x56\xd1\xc6\xf1\xaf\x7d\xe9\x54" "\x56\xfd\xf8\xef\xd3\xfc\xef\x79\xf6\xcd\xf3\x5f\xfa\xf3\x96\xe4\x33\xbd" "\xf9\xe1\x7d\x09\x1e\x9a\x69\xb7\xcf\x1f\x8c\xd8\x92\x9c\xb8\xba\x7e\x6a" "\x15\x1d\x85\x4d\x6e\x98\x91\x61\x86\xd2\xfc\xef\xdf\x97\xfd\xf9\x7f\xf7" "\xe0\x6f\xd2\xed\xff\xf1\x88\xf8\x70\xba\xbf\x10\x11\xff\x8a\x88\x7f\x47" "\xc4\x47\x22\xe2\xa3\x11\xf1\xb1\x88\xb8\xe7\x4d\xda\xfc\xea\x9d\x8d\x2b" "\x59\xf5\xbf\x7b\x32\xcd\xff\xe3\xe7\x6c\xff\x21\x1f\x69\xfe\x67\xaf\xb3" "\xfd\x4f\x7f\xff\x63\x15\x6d\x1c\xd8\xff\xe3\x2f\x66\xd5\x7f\x68\x6f\x9a" "\xff\xea\x6f\xfe\x70\xe2\x81\xb1\x74\x92\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\xb5\xb7\xb4\xdc\x39\x37\xd3\x6c\xd6" "\xcf\xaf\x63\x21\xef\xe7\x08\x00\x00\x00\x00\x00\x00\x45\xf1\x9f\x00\x00" "\x00\xff\xff\xc4\xe4\x34\xf2", 1465); syz_mount_image(/*fs=*/0x2000000005c0, /*dir=*/0x200000000100, /*flags=*/0, /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0x5b9, /*img=*/0x2000000012c0); // 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 = 0x8413 (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 { // norecovery: buffer: {6e 6f 72 65 63 6f 76 65 72 79} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // bsddf: buffer: {62 73 64 64 66} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nodiscard: buffer: {6e 6f 64 69 73 63 61 72 64} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // acl: buffer: {61 63 6c} (length 0x3) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // max_dir_size_kb: fs_opt["max_dir_size_kb", fmt[hex, int32]] { // name: buffer: {6d 61 78 5f 64 69 72 5f 73 69 7a 65 5f 6b 62} // (length 0xf) eq: const = 0x3d (1 bytes) val: int32 = 0x1 (18 // bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noblock_validity: buffer: {6e 6f 62 6c 6f 63 6b 5f 76 61 6c 69 // 64 69 74 79} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // usrjquota: buffer: {75 73 72 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // jqfmt_vfsv0: buffer: {6a 71 66 6d 74 3d 76 66 73 76 30} // (length 0xb) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // inode_readahead_blks: fs_opt["inode_readahead_blks", fmt[hex, // flags[ext4_inode_readahead_blks]]] { // name: buffer: {69 6e 6f 64 65 5f 72 65 61 64 61 68 65 61 64 // 5f 62 6c 6b 73} (length 0x14) eq: const = 0x3d (1 bytes) // val: ext4_inode_readahead_blks = 0x1000 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // errors_continue: buffer: {65 72 72 6f 72 73 3d 63 6f 6e 74 69 // 6e 75 65} (length 0xf) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nouid32: buffer: {6e 6f 75 69 64 33 32} (length 0x7) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nodiscard: buffer: {6e 6f 64 69 73 63 61 72 64} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // abort: buffer: {61 62 6f 72 74} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // usrjquota: buffer: {75 73 72 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // lazytime: buffer: {6c 61 7a 79 74 69 6d 65} (length 0x8) // } // 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 = 0x56a (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x56a) // } // ] // returns fd_dir memcpy((void*)0x2000000001c0, "ext4\000", 5); memcpy((void*)0x200000000000, "./file1\000", 8); memcpy((void*)0x200000001700, "norecovery", 10); *(uint8_t*)0x20000000170a = 0x2c; memcpy((void*)0x20000000170b, "bsddf", 5); *(uint8_t*)0x200000001710 = 0x2c; memcpy((void*)0x200000001711, "nodiscard", 9); *(uint8_t*)0x20000000171a = 0x2c; memcpy((void*)0x20000000171b, "acl", 3); *(uint8_t*)0x20000000171e = 0x2c; memcpy((void*)0x20000000171f, "max_dir_size_kb", 15); *(uint8_t*)0x20000000172e = 0x3d; sprintf((char*)0x20000000172f, "0x%016llx", (long long)1); *(uint8_t*)0x200000001741 = 0x2c; memcpy((void*)0x200000001742, "noblock_validity", 16); *(uint8_t*)0x200000001752 = 0x2c; memcpy((void*)0x200000001753, "usrjquota=", 10); *(uint8_t*)0x20000000175d = 0x2c; memcpy((void*)0x20000000175e, "jqfmt=vfsv0", 11); *(uint8_t*)0x200000001769 = 0x2c; memcpy((void*)0x20000000176a, "inode_readahead_blks", 20); *(uint8_t*)0x20000000177e = 0x3d; sprintf((char*)0x20000000177f, "0x%016llx", (long long)0x1000); *(uint8_t*)0x200000001791 = 0x2c; memcpy((void*)0x200000001792, "errors=continue", 15); *(uint8_t*)0x2000000017a1 = 0x2c; memcpy((void*)0x2000000017a2, "nouid32", 7); *(uint8_t*)0x2000000017a9 = 0x2c; memcpy((void*)0x2000000017aa, "nodiscard", 9); *(uint8_t*)0x2000000017b3 = 0x2c; memcpy((void*)0x2000000017b4, "abort", 5); *(uint8_t*)0x2000000017b9 = 0x2c; memcpy((void*)0x2000000017ba, "usrjquota=", 10); *(uint8_t*)0x2000000017c4 = 0x2c; memcpy((void*)0x2000000017c5, "lazytime", 8); *(uint8_t*)0x2000000017cd = 0x2c; *(uint8_t*)0x2000000017ce = 0; memcpy( (void*)0x200000000780, "\x78\x9c\xec\xdd\xcf\x6f\x1c\x57\x1d\x00\xf0\xef\x8c\xbd\xfe\x91\x38\xb1" "\x0b\x1c\xa0\x12\x6d\xa1\x45\x69\x04\x59\xc7\xb5\xda\x58\x1c\x4a\x91\x10" "\x9c\x2a\x81\xca\x3d\xb8\xf6\xda\xb2\xb2\xb6\x23\x7b\xdd\xc6\x56\xa5\x38" "\xe2\x0f\x40\x42\xa8\x20\x71\xe3\xc2\x05\x89\x0b\x37\x24\xa8\xd4\x0b\xc7" "\x0a\xa9\x12\x5c\x01\x01\x12\x42\x90\xc2\x01\x24\xe8\xa0\x59\xcf\xae\x17" "\x7b\x36\xd9\x26\x9b\x5d\xc7\xfe\x7c\xa4\xc9\xbc\xf7\x66\xdf\x7c\xdf\x1b" "\x7b\xc6\x33\x6f\x27\x33\x01\x9c\x59\xaf\x14\xd3\x87\x59\x96\x5d\x8e\x88" "\xe9\xa2\x3c\x2d\xa6\xcf\xe6\x99\xfd\x88\x67\x22\xe2\x83\xbb\x6f\x2d\xe5" "\x53\x12\x59\xf6\xda\xdf\x92\x48\x8a\xb2\xd6\xba\xb2\xa6\xf1\x38\x7f\x50" "\x25\x5f\xc1\x58\x7c\x2d\xe2\xf5\xe4\x78\xdc\xed\xdd\xbd\x1b\x8b\xf5\x7a" "\x6d\xab\xc8\xcf\x36\xd6\x6f\xce\x6e\xef\xee\x5d\x59\x5b\x5f\x5c\xad\xad" "\xd6\x36\xe6\xe7\xe7\x5e\x5a\xb8\xb6\xf0\xe2\xc2\xd5\x87\xe9\xde\xca\xf9" "\x22\x71\x21\x22\x5e\xfe\xca\x9f\xdf\xfe\xce\x8f\xbf\xfa\xf2\x2f\xbe\xf0" "\xe6\x1f\xae\xff\x65\xa4\xd5\xea\xdb\x71\xa4\x1f\x1f\xd1\x68\x79\x71\x67" "\xa7\x2b\x31\x91\xcf\x26\x0f\x4b\xb6\x1e\x30\xd8\x49\xd4\xda\x00\xcd\xdf" "\x9d\xc9\xde\xea\xdc\x29\x7e\x45\x00\x00\x18\xac\xfc\xbc\xf4\x63\xc5\x79" "\xfe\xe5\x98\x8e\x91\x6e\xa7\xb3\x00\x00\x00\xc0\x63\x2b\xfb\xd2\x54\xfc" "\x27\x69\x7d\x77\x77\xcc\x58\x97\x72\x00\x00\x00\xe0\x31\x92\x46\xc4\x54" "\x24\x69\xb5\xb8\xdf\x77\x2a\xd2\xb4\x5a\x8d\xe6\x3d\xbc\x9f\x88\x73\x69" "\x7d\x73\xbb\xf1\xf9\x95\xcd\x9d\x8d\xe5\x7c\x59\xc4\x4c\x54\xd2\x95\xb5" "\x7a\xed\x6a\x71\xbf\xe7\x4c\x54\x92\x3c\x3f\xd7\x4c\x1f\xe6\x5f\x38\x92" "\x9f\x8f\x88\x27\xd2\x88\xef\x4d\x4f\x36\xf3\xd5\xa5\xcd\xfa\xf2\xb0\x07" "\x3f\x00\x00\x00\xe0\x8c\x38\x7f\xe4\xfa\xff\x9f\xd3\x69\x3a\x3e\xec\x46" "\x01\x00\x00\x00\xfd\x37\x33\xec\x06\x00\x00\x00\x00\x8f\x9c\xeb\x7f\x00" "\x00\x00\x38\xfd\x5c\xff\x03\x00\x00\xc0\xa9\xf6\xf5\x57\x5f\xcd\xa7\xac" "\xf5\xfe\xeb\xe5\x37\x76\x77\x6e\x6c\xbe\x71\x65\xb9\xb6\x7d\xa3\xba\xbe" "\xb3\x54\x5d\xda\xdc\xba\x59\x5d\xdd\xdc\x5c\x6d\x3e\xb3\x6f\xfd\x9e\x2b" "\x6b\xbf\x3a\x70\x63\xe7\xd6\x6c\xa3\xb6\xdd\x98\x88\x88\xeb\xeb\x9b\x3b" "\x1b\x8d\xeb\x6b\x07\xaf\xc0\x06\x00\x00\x00\x06\xef\x89\xa7\xdf\xf9\x6d" "\x12\x11\xfb\x5f\x9c\x6c\x4e\xb9\xb1\x8e\xe5\xff\x2e\xde\x13\x30\xb4\x06" "\x02\x8f\x4c\x7b\xc8\x2e\x92\x62\x3e\x76\xfc\x43\xbf\xbf\x78\x30\xff\xd3" "\x80\x1a\x05\x0c\xc4\x48\x67\xe6\xed\xe1\xb5\x03\x18\xbc\xe6\xdf\xff\xc9" "\x07\xaa\xfa\x60\xb5\x80\x13\xa3\x32\xec\x06\x00\x43\x97\x1c\x26\xa7\xcb" "\x96\x4f\x24\xa3\xe5\x15\xdf\x2b\xe6\x9f\xe9\x35\x92\xd3\x06\x00\x00\x18" "\x96\x4b\x9f\xea\xfe\xfd\x7f\x7a\xcf\x9a\xfb\xf7\x5e\x0c\x9c\x78\x76\x62" "\x38\xbb\x46\x86\xdd\x00\x60\x68\x9a\xa3\xfa\x25\xb7\xfc\x95\x72\xb2\x00" "\xa7\x4a\xa5\x7d\x06\x90\x0c\xb9\x25\xc0\xb0\xdc\x6f\xef\xef\xfa\xf0\x8e" "\xf7\x7a\x8d\xd0\xf1\x7f\x88\xc6\x7b\xad\x03\x00\x00\xf4\xd3\x54\x73\x4a" "\xd2\x6a\x31\xbc\x37\x15\x69\x5a\xad\x46\x5c\x68\xbe\x16\xa0\x92\xac\xac" "\xd5\x6b\x57\x23\xe2\x62\x44\xfc\x66\xba\x32\x9e\xe7\xe7\x9a\x35\x13\x23" "\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xd0\xa3\x2c\x4b\x22\x03\x00\x00\x00\x4e\xb5\x88\x74\x3c\x79\xf7" "\xe0\x59\xfe\x97\xa6\x9f\x9b\x3a\x3a\x3e\x30\x96\xfc\x6b\x3a\x8a\x57\x84" "\xbe\xf9\xc3\xd7\xbe\x7f\x6b\xb1\xd1\xd8\x9a\xcb\xcb\xff\xde\x2e\x6f\xfc" "\xa0\x28\x7f\xe1\xf8\xf8\xc2\xe8\x40\x46\x31\x00\x00\x00\xe0\x6c\xe8\xf5" "\x95\xda\xad\xeb\xf4\xd6\x75\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf4\xd3\x07\x77\xdf\x5a\x6a\x4d\x83" "\x8c\xfb\xd7\x2f\x47\xc4\x4c\x59\xfc\xd1\x98\x68\xce\x27\xa2\x12\x11\xe7" "\xfe\x91\xc4\x68\x47\xbd\x24\x22\x46\xfa\x10\x7f\xff\x4e\x44\x7c\xb2\x2c" "\x7e\x92\x37\xab\x1d\xb2\x2c\xfe\xe4\xa3\x8f\x1f\x33\xc5\x56\x28\x8b\x7f" "\xbe\x0f\xf1\xe1\x2c\x7b\x27\x3f\xfe\xbc\x52\xb6\xff\xa5\xf1\x4c\x73\x5e" "\xbe\xff\x8d\x46\xfc\x5f\xfe\x41\x75\x3f\xfe\x45\xfb\xf8\x37\xd2\x65\xff" "\xbf\xd0\x63\x8c\x27\xdf\xff\xe9\x6c\x91\xbc\xf6\xb3\xa3\xf1\xef\x44\x3c" "\x39\x5a\x7e\xfc\x69\xc5\x4f\xba\xc4\x7f\xb6\xc7\xf8\xdf\xfa\xe6\xde\x5e" "\xf9\x92\x89\x76\xaa\x2c\x7e\x67\xac\xd9\xc6\xfa\xcd\xd9\xed\xdd\xbd\x2b" "\x6b\xeb\x8b\xab\xb5\xd5\xda\xc6\xfc\xfc\xdc\x4b\x0b\xd7\x16\x5e\x5c\xb8" "\x3a\xbb\xb2\x56\xaf\x15\xff\xe6\x5d\x3c\x76\x58\xfc\xee\xa7\x7f\xfe\x61" "\xb7\xb6\xe5\xfd\x3f\xd7\x25\xfe\xcc\x7d\xfa\xff\x5c\x8f\xfd\xff\xef\xfb" "\xb7\xee\x7e\x3c\x5e\xcf\x93\x95\xb2\xf8\xcf\x3f\x5b\x12\xff\x57\x3f\x6a" "\x6f\xa3\xa3\xf1\xd3\xe2\x6f\xdf\xe7\x8a\x74\xbe\xfc\x52\x2b\xbd\x7f\x90" "\xee\xf4\xd4\x4f\x7e\xfd\xd4\xbd\xfa\xbf\xdc\xa5\xff\xf7\xfb\xf9\x3f\xdf" "\x63\xff\x2f\x7f\xe3\xdb\x7f\xec\xf1\xa3\x00\xc0\x00\x6c\xef\xee\xdd\x58" "\xac\xd7\x6b\x5b\x8f\x4d\x22\x1b\x8f\x28\x5b\x34\xda\xa5\x56\x7e\x95\x3e" "\xe0\xa6\x46\x9c\x84\x0d\x75\x3c\x91\x16\x3f\xf4\x93\xd2\x9e\xa1\x27\x6e" "\x1f\x96\xfc\xf2\x77\x07\xdb\xe6\xe9\xf8\x88\xeb\x69\xed\x49\xf5\x7a\x96" "\x65\xd9\x43\x6e\xde\x24\xcb\xb2\xdb\x7d\xe8\xe0\x54\xd1\xa8\x9e\x6b\x5d" "\xba\x78\xf0\xe1\xe4\x58\xbf\x00\x00\x80\xd3\xe2\xf0\x32\xa0\xe3\xdb\x89" "\x8b\x43\x6e\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x9c\x31\xdb\xbb\xef\x3e\xf2\xa7\xac\x1d\x8d\xb9\xdf\x4e\x25\xfd\x78" "\x84\x36\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x40\x5f\xfc\x2f\x00\x00\xff\xff\xee\x10\xd7" "\x56", 1386); syz_mount_image( /*fs=*/0x2000000001c0, /*dir=*/0x200000000000, /*flags=MS_SYNCHRONOUS|MS_SILENT|MS_RDONLY|MS_NOSUID|0x400*/ 0x8413, /*opts=*/0x200000001700, /*chdir=*/1, /*size=*/0x56a, /*img=*/0x200000000780); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*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=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }