// 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 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // 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 { // grpquota: buffer: {67 72 70 71 75 6f 74 61} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // quota: buffer: {71 75 6f 74 61} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // quota: buffer: {71 75 6f 74 61} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // stripe: fs_opt["stripe", fmt[hex, int32]] { // name: buffer: {73 74 72 69 70 65} (length 0x6) // 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 = 0xff (1 bytes) // size: len = 0x4f9 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x4f9) // } // ] // returns fd_dir memcpy((void*)0x200000000180, "ext4\000", 5); memcpy((void*)0x200000000000, "./bus\000", 6); memcpy((void*)0x200000000300, "grpquota", 8); *(uint8_t*)0x200000000308 = 0x2c; memcpy((void*)0x200000000309, "quota", 5); *(uint8_t*)0x20000000030e = 0x2c; memcpy((void*)0x20000000030f, "quota", 5); *(uint8_t*)0x200000000314 = 0x2c; memcpy((void*)0x200000000315, "stripe", 6); *(uint8_t*)0x20000000031b = 0x3d; sprintf((char*)0x20000000031c, "0x%016llx", (long long)3); *(uint8_t*)0x20000000032e = 0x2c; memcpy((void*)0x20000000032f, "jqfmt=vfsold", 12); *(uint8_t*)0x20000000033b = 0x2c; *(uint8_t*)0x20000000033c = 0; memcpy( (void*)0x2000000005c0, "\x78\x9c\xec\xdd\xcf\x6f\x1b\x59\x1d\x00\xf0\xaf\x9d\x38\x71\xd2\xec\x26" "\xbb\xec\x01\x10\xec\x96\xdd\x85\x82\xaa\x3a\x89\xbb\x8d\xaa\x1e\xa0\x9c" "\x10\x42\x95\x10\x3d\x82\xd4\x86\xc4\x8d\xa2\xd8\x71\x14\x27\xa5\x09\x3d" "\xa4\x67\xae\x48\x20\x71\x82\x23\x7f\x00\xe7\x9e\xb8\x73\x41\x70\xe3\x52" "\x0e\x48\xfc\x88\x40\x0d\x12\x07\xa3\x19\x4f\x52\x37\xb5\x5b\xab\x49\xec" "\x28\xfe\x7c\xa4\xd1\xbc\x37\x6f\xea\xef\x7b\x4d\xe7\xbd\xfa\x9b\xc4\x2f" "\x80\xa1\x75\x39\x22\xf6\x22\x62\x2c\x22\xee\x47\xc4\x74\x76\x3d\x97\x1d" "\x71\xbb\x75\x24\xf7\x3d\xdf\x7f\xbc\x74\xb0\xff\x78\x29\x17\xcd\xe6\xdd" "\x7f\xe6\xd2\xf6\xe4\x5a\xb4\xfd\x99\xc4\xa5\xec\x35\x8b\x11\xf1\x83\xef" "\x44\xfc\x38\xf7\x6a\xdc\xc6\xce\xee\xda\x62\xb5\x5a\xd9\xcc\xea\xb3\x5b" "\xb5\x8d\xd9\xc6\xce\xee\xb5\xd5\xda\xe2\x4a\x65\xa5\xb2\x5e\x2e\x2f\xcc" "\x2f\xcc\xdd\xbc\x7e\xa3\x7c\x6a\x63\xfd\xa8\x36\x96\x95\xbe\xfc\xec\x0f" "\x7b\xdf\xf8\x69\xd2\xad\xa9\xec\x4a\xfb\x38\x4e\x53\x6b\xe8\x85\xa3\x38" "\x89\xd1\x88\xf8\xde\x59\x04\x1b\x80\x91\x6c\x3c\x63\x83\xee\x08\x6f\x25" "\x1f\x11\xef\x47\xc4\xc7\xe9\xf3\x3f\x1d\x23\xe9\x57\x13\x00\xb8\xc8\x9a" "\xcd\xe9\x68\x4e\xb7\xd7\x01\x80\x8b\x2e\x9f\xe6\xc0\x72\xf9\x52\x96\x0b" "\x98\x8a\x7c\xbe\x54\x6a\xe5\xf0\x3e\x88\xc9\x7c\xb5\xde\xd8\xba\xfa\xa0" "\xbe\xbd\xbe\xdc\xca\x95\xcd\x44\x21\xff\x60\xb5\x5a\x99\xcb\x72\x85\x33" "\x51\xc8\x25\xf5\xf9\xb4\xfc\xa2\x5e\x3e\x56\xbf\x1e\x11\xef\x45\xc4\xcf" "\xc7\x27\xd2\x7a\x69\xa9\x5e\x5d\x1e\xe4\x7f\x7c\x00\x60\x88\x5d\x3a\xb6" "\xfe\xff\x67\xbc\xb5\xfe\x03\x00\x17\x5c\x71\xd0\x1d\x00\x00\xfa\xce\xfa" "\x0f\x00\xc3\xc7\xfa\x0f\x00\xc3\xc7\xfa\x0f\x00\xc3\xa7\xb5\xfe\x4f\x0c" "\xba\x1b\x00\x40\x1f\x79\xff\x0f\x00\xc3\xc7\xfa\x0f\x00\x43\xe5\xfb\x77" "\xee\x24\x47\xf3\x20\xfb\xfc\xeb\xe5\x87\x3b\xdb\x6b\xf5\x87\xd7\x96\x2b" "\x8d\xb5\x52\x6d\x7b\xa9\xb4\x54\xdf\xdc\x28\xad\xd4\xeb\x2b\xe9\x67\xf6" "\xd4\xde\xf4\x7a\xd5\x7a\x7d\x63\xfe\xb3\xd8\x7e\x34\xf3\xcd\x8d\xc6\xd6" "\x6c\x63\x67\xf7\x5e\xad\xbe\xbd\xbe\x75\x2f\xfd\x5c\xef\x7b\x95\x42\x7a" "\xd7\x5e\x1f\x46\x06\x00\x74\xf3\xde\x47\x4f\xff\x9c\x4b\x56\xe4\x5b\x13" "\xe9\x11\x6d\x7b\x39\x14\x06\xda\x33\xe0\xac\xe5\x07\xdd\x01\x60\x60\x46" "\x06\xdd\x01\x60\x60\xec\xf6\x05\xc3\xeb\x04\xef\xf1\xa5\x07\xe0\x82\xe8" "\xb0\x45\xef\x4b\x8a\x9d\x7e\x41\xa8\xd9\x6c\x36\xcf\xae\x4b\xc0\x19\xbb" "\xf2\x05\xf9\x7f\x18\x56\x6d\xf9\x7f\x3f\x05\x0c\x43\x46\xfe\x1f\x86\x97" "\xfc\x3f\x0c\xaf\x66\x33\xd7\xeb\x9e\xff\xd1\xeb\x8d\x00\xc0\xf9\x26\xc7" "\x0f\x74\xf9\xfe\xff\xfb\xd9\xf9\xb7\xd9\x37\x07\x7e\xb4\x7c\xfc\x8e\x5f" "\x9e\x65\xaf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x7c\x3b\xdc\xff\xb7\x94\xed\x05" "\x3e\x15\xf9\x7c\xa9\x14\xf1\x4e\x44\xcc\x44\x21\xf7\x60\xb5\x5a\x99\x8b" "\x88\x77\x23\xe2\x4f\xe3\x85\xf1\xa4\x3e\x3f\xe0\x3e\x03\x00\x27\x95\xff" "\x5b\x2e\xdb\xff\xeb\xca\xf4\xa7\x53\x2f\x35\x7d\x78\xe9\xa8\x38\x16\x11" "\x3f\xf9\xd5\xdd\x5f\x3c\x5a\xdc\xda\xda\xfc\x63\xc4\x58\xee\x5f\xe3\x87" "\xd7\x53\xc9\xf5\x72\x5f\x3b\x0e\x00\xf4\xe8\x51\xb6\x4e\xa7\xe7\xb6\x37" "\xf2\xcf\xf7\x1f\x2f\x1d\x1e\xfd\xec\xcf\xdf\xbf\x1d\x11\xc5\x56\xfc\x83" "\xfd\xb1\x38\x38\x8a\x3f\x1a\xa3\xe9\xb9\x18\x85\x88\x98\xfc\x77\x2e\xab" "\xb7\xe4\xda\x72\x17\x27\xb1\xf7\x24\x22\x3e\xdf\x69\xfc\xb9\x98\x4a\x73" "\x20\xad\x9d\x4f\x8f\xc7\x4f\x62\xbf\xd3\xd7\xf8\xf9\x97\xe2\xe7\xd3\xb6" "\xd6\x39\xf9\xbb\xf8\xdc\x29\xf4\x05\x86\xcd\xd3\x64\xfe\xb9\xdd\xe9\xf9" "\xcb\xc7\xe5\xf4\xdc\xf9\xf9\x2f\xa6\x33\xd4\xc9\x65\xf3\x5f\xf2\x52\x4b" "\x07\xe9\x1c\xf8\x22\xfe\xe1\xfc\x37\xd2\x65\xfe\xbb\xdc\x6b\x8c\xcf\x7e" "\xff\xdd\x56\x69\xe2\xd5\xb6\x27\x11\x5f\x1c\x8d\x38\x8c\x7d\xd0\x36\xff" "\x1c\xc6\xcf\x75\x89\xff\x69\x8f\xf1\xff\xf2\xa5\x0f\x3f\xee\xd6\xd6\xfc" "\x75\xc4\x95\xe8\x1c\xbf\x3d\xd6\xec\x56\x6d\x63\xb6\xb1\xb3\x7b\x6d\xb5" "\xb6\xb8\x52\x59\xa9\xac\x97\xcb\x0b\xf3\x0b\x73\x37\xaf\xdf\x28\xcf\xa6" "\x39\xea\xd9\xee\xab\xc1\x3f\x6e\x5d\x7d\xb7\x5b\x5b\x32\xfe\xc9\x2e\xf1" "\x8b\x6f\x18\xff\x57\x7b\x1c\xff\x6f\xfe\x77\xff\x87\x5f\x79\x4d\xfc\xaf" "\x7f\xd2\x29\x7e\x3e\x3e\x78\x4d\xfc\x64\x4d\xfc\x5a\x8f\xf1\x17\x27\x7f" "\x57\xec\xd6\x96\xc4\x5f\xee\x32\xfe\x37\x7d\xfd\xaf\xf6\x18\xff\xd9\x5f" "\x77\x5f\xd9\x36\x1c\x00\x18\x9c\xc6\xce\xee\xda\x62\xb5\x5a\xd9\x54\x50" "\x38\xff\x85\xe4\x9f\xec\x39\xe8\x46\xc7\xc2\xb7\xfa\x15\x6b\x2c\x3a\x37" "\xfd\xec\x93\xd6\x33\x7d\xac\xa9\xd9\x7c\xab\x58\xdd\x66\x8c\xd3\xc8\xba" "\x01\xe7\xc1\xd1\x43\x1f\x11\xff\x1d\x74\x67\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x80\x8e\xfa\xf1\x1b\x4b\x83\x1e\x23\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x17\xd7\xff\x03\x00\x00\xff\xff\x0d\x62\xcc\xb5", 1273); syz_mount_image(/*fs=*/0x200000000180, /*dir=*/0x200000000000, /*flags=*/0, /*opts=*/0x200000000300, /*chdir=*/-1, /*size=*/0x4f9, /*img=*/0x2000000005c0); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x10 (8 bytes) // ] // returns fd memcpy((void*)0x2000000000c0, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x2000000000c0ul, /*mode=S_IWGRP*/ 0x10ul); if (res != -1) r[0] = res; // fallocate arguments: [ // fd: fd (resource) // mode: fallocate_mode = 0x0 (8 bytes) // off: intptr = 0xbf1 (8 bytes) // len: intptr = 0x20003fe (8 bytes) // ] syscall(__NR_fallocate, /*fd=*/r[0], /*mode=*/0ul, /*off=*/0xbf1ul, /*len=*/0x20003feul); // 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 { // delalloc: buffer: {64 65 6c 61 6c 6c 6f 63} (length 0x8) // } // 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 { // usrquota: buffer: {75 73 72 71 75 6f 74 61} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nolazytime: buffer: {6e 6f 6c 61 7a 79 74 69 6d 65} (length // 0xa) // } // 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 { // inlinecrypt: buffer: {69 6e 6c 69 6e 65 63 72 79 70 74} // (length 0xb) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // sysvgroups: buffer: {73 79 73 76 67 72 6f 75 70 73} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x18 (1 bytes) // size: len = 0x568 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x568) // } // ] // returns fd_dir memcpy((void*)0x2000000001c0, "ext4\000", 5); memcpy((void*)0x200000000000, "./file1\000", 8); memcpy((void*)0x200000000040, "delalloc", 8); *(uint8_t*)0x200000000048 = 0x2c; memcpy((void*)0x200000000049, "bsddf", 5); *(uint8_t*)0x20000000004e = 0x2c; memcpy((void*)0x20000000004f, "usrquota", 8); *(uint8_t*)0x200000000057 = 0x2c; memcpy((void*)0x200000000058, "nolazytime", 10); *(uint8_t*)0x200000000062 = 0x2c; memcpy((void*)0x200000000063, "max_dir_size_kb", 15); *(uint8_t*)0x200000000072 = 0x3d; sprintf((char*)0x200000000073, "0x%016llx", (long long)1); *(uint8_t*)0x200000000085 = 0x2c; memcpy((void*)0x200000000086, "noblock_validity", 16); *(uint8_t*)0x200000000096 = 0x2c; memcpy((void*)0x200000000097, "usrjquota=", 10); *(uint8_t*)0x2000000000a1 = 0x2c; memcpy((void*)0x2000000000a2, "jqfmt=vfsv0", 11); *(uint8_t*)0x2000000000ad = 0x2c; memcpy((void*)0x2000000000ae, "inode_readahead_blks", 20); *(uint8_t*)0x2000000000c2 = 0x3d; sprintf((char*)0x2000000000c3, "0x%016llx", (long long)0x1000); *(uint8_t*)0x2000000000d5 = 0x2c; memcpy((void*)0x2000000000d6, "inlinecrypt", 11); *(uint8_t*)0x2000000000e1 = 0x2c; memcpy((void*)0x2000000000e2, "sysvgroups", 10); *(uint8_t*)0x2000000000ec = 0x2c; *(uint8_t*)0x2000000000ed = 0; memcpy( (void*)0x200000000780, "\x78\x9c\xec\xdd\xcf\x6f\x1c\x57\x1d\x00\xf0\xef\x8c\xbd\xfe\x91\x38\x59" "\x57\x70\x80\x4a\xb4\x85\x16\xa5\x11\x64\x1d\xd7\x6a\x63\x71\x28\x45\x42" "\x70\xaa\x04\x2a\xf7\xe0\xda\x6b\xcb\xca\xda\x8e\xec\x75\x1b\x5b\x95\xe2" "\x88\x3f\x00\x09\xa1\x82\xc4\x8d\x4b\x2f\x48\xfc\x01\x48\x50\xa9\x17\x8e" "\x15\x52\x25\xb8\x02\x02\x24\x54\x41\x0a\x07\x90\xa0\x83\x66\x3d\xbb\x76" "\xed\x59\x67\x71\xec\x5d\x27\xfe\x7c\xa4\xc9\xbc\xf7\x66\xdf\x7e\xdf\x9b" "\xf5\xcc\xce\xbc\x9d\xcc\x04\x70\x6e\xbd\x52\x4c\x1f\x67\x59\x76\x35\x22" "\xaa\x45\x79\x5a\x4c\x5f\xc8\x33\x3b\x11\xcf\x44\xc4\x47\xf7\xdf\x9a\xcf" "\xa7\x24\xb2\xec\xb5\xbf\x25\x91\x14\x65\xed\xf7\xca\x5a\x46\xe3\xe2\x6e" "\x95\xfc\x0d\x46\xe2\x9b\x11\xaf\x27\x87\xe3\x6e\x6c\x6d\xdf\x9a\x6b\x34" "\xea\xeb\x45\x7e\xaa\xb9\x72\x7b\x6a\x63\x6b\xfb\xda\xf2\xca\xdc\x52\x7d" "\xa9\xbe\x3a\x33\x33\xfd\xd2\xec\x8d\xd9\x17\x67\xaf\x3f\x4c\xf7\x16\x2f" "\x16\x89\x4b\x11\xf1\xf2\xd7\xff\xf2\xf6\xf7\xdf\xf9\xc6\xcb\xbf\xfc\xf2" "\x9b\x7f\xbc\xf9\xd7\xa1\x76\xab\xef\xc6\x81\x7e\xfc\x9f\x86\xcb\x8b\xf7" "\x77\xba\x12\x63\xf9\x6c\x7c\xaf\x64\xfd\x98\xc1\xce\xa2\xf6\x0a\xa8\x1e" "\xe8\xf5\x51\xee\x15\x7f\x22\x00\x00\xf4\xd7\x58\x71\x58\x9a\x1f\xe7\x5f" "\x8d\x6a\x0c\x75\x3b\x9c\x05\x00\x00\x00\x1e\x59\xd9\x57\x27\xe2\x3f\x49" "\xfb\xb7\xbb\x43\x46\xba\x94\x03\x00\x00\x00\x8f\x90\x34\x22\x26\x22\x49" "\x6b\xc5\xf5\xbe\x13\x91\xa6\xb5\x5a\xb4\xae\xe1\xfd\x74\x5c\x48\x1b\x6b" "\x1b\xcd\x2f\x2d\xae\x6d\xae\x2e\xe4\xcb\x22\x26\xa3\x92\x2e\x2e\x37\xea" "\xd7\x8b\xeb\x3d\x27\xa3\x92\xe4\xf9\xe9\x56\x7a\x2f\xff\xc2\x81\xfc\x4c" "\x44\x3c\x91\x46\xfc\xb0\x3a\xde\xca\xd7\xe6\xd7\x1a\x0b\x83\x1e\xfc\x00" "\x00\x00\x80\x73\xe2\xe2\x81\xf3\xff\x7f\x56\xd3\x74\x74\xd0\x8d\x02\x00" "\x00\x00\x4e\xde\xe4\xa0\x1b\x00\x00\x00\x00\x9c\x3a\xe7\xff\x00\x00\x00" "\xf0\xf8\x73\xfe\x0f\x00\x00\x00\x8f\xb5\x6f\xbd\xfa\x6a\x3e\x65\xed\xe7" "\x5f\x2f\xbc\xb1\xb5\x79\x6b\xed\x8d\x6b\x0b\xf5\x8d\x5b\xb5\x95\xcd\xf9" "\xda\xfc\xda\xfa\xed\xda\xd2\xda\xda\x52\xeb\x9e\x7d\x2b\x47\xbe\x59\xe7" "\xd1\x81\xab\x9b\x77\xa6\x9a\xf5\x8d\xe6\x58\x44\xdc\x5c\x59\xdb\x5c\x6d" "\xde\x5c\xde\x7d\x04\x36\x00\x00\x00\xd0\x7f\x4f\x3c\xfd\xee\xef\x92\x88" "\xd8\xf9\xca\x78\x6b\xca\x8d\xec\x5b\xfe\xef\xe2\x39\x01\x03\x6b\x20\x70" "\x6a\x3a\x43\x76\x91\x14\xf3\x91\xc3\x2f\xfa\xc3\xe5\xdd\xf9\x9f\xfb\xd4" "\x28\xa0\x2f\x86\xf6\x67\xde\x1e\x5c\x3b\x80\xfe\x6b\x7d\xff\x8f\x1f\xab" "\xea\xf1\x6a\x01\x67\x46\x65\xd0\x0d\x00\x06\x2e\xd9\x4b\x56\xcb\x96\x8f" "\x25\xc3\xe5\x15\xdf\x2f\xe6\x9f\xef\x35\x92\xc3\x06\x00\x00\x18\x94\x2b" "\x9f\xed\xfe\xfb\x7f\x7a\x64\xcd\x9d\xa3\x17\x03\x67\x9e\x8d\x18\xce\xaf" "\xa1\x41\x37\x00\x18\x98\xd6\xa8\x7e\xc9\x25\x7f\xa5\x1c\x2c\xc0\x63\xa5" "\xd2\x39\x02\x48\x06\xdc\x12\x60\x50\x1e\xb4\xf5\x77\xbd\x79\xc7\xfb\xbd" "\x46\xd8\xf7\x7f\x88\x46\x7b\xad\x03\x00\x00\x9c\xa4\x89\xd6\x94\xa4\xb5" "\x62\x78\x6f\x22\xd2\xb4\x56\x8b\xb8\xd4\x7a\x2c\x40\x25\x59\x5c\x6e\xd4" "\xaf\x47\xc4\xe5\x88\xf8\x6d\xb5\x32\x9a\xe7\xa7\x5b\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\x1e\x6b\x11\xe9\x68\xf2\xde\xee\xbd" "\xfc\xaf\x54\x9f\x9b\x38\x38\x3e\x30\x92\xfc\xab\x1a\xc5\x23\x42\xdf\xfc" "\xc9\x6b\x3f\xba\x33\xd7\x6c\xae\x4f\xe7\xe5\x7f\xef\x94\x37\x7f\x5c\x94" "\xbf\x70\x78\x7c\x61\xb8\x2f\xa3\x18\x00\x00\x00\x70\x3e\xf4\xfa\x48\xed" "\xf6\x79\x7a\xfb\x3c\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x4e\xd2\x47\xf7\xdf\x9a\x6f\x4f\xfd\x8c\xfb" "\xe1\xd7\x22\x62\xb2\x2c\xfe\x70\x8c\xb5\xe6\x63\x51\x89\x88\x0b\xff\x48" "\x62\x78\x5f\xbd\x24\x22\x86\x4e\x20\xfe\xce\xbd\x88\xf8\x4c\x59\xfc\x24" "\x6f\x56\x27\x64\x59\xfc\xf1\xd3\x8f\x1f\x93\xc5\x5a\x28\x8b\x7f\xf1\x04" "\xe2\xc3\x79\xf6\x6e\xbe\xff\x79\xa5\x6c\xfb\x4b\xe3\x99\xd6\xbc\x7c\xfb" "\x1b\x8e\xf8\x44\xfe\xb8\xba\xef\xff\xa2\xb3\xff\x1b\xea\xb2\xfd\x5f\xea" "\x31\xc6\x93\x1f\xfc\x7c\xea\x13\x05\xef\xec\xed\x39\x3f\xbc\x17\xf1\xe4" "\x70\xf9\xfe\xa7\x1d\x3f\xe9\x12\xff\xd9\x1e\xe3\x7f\xf7\x3b\xdb\xdb\xe5" "\x4b\xc6\x3a\xa9\xb2\xf8\xfb\x63\x4d\x35\x57\x6e\x4f\x6d\x6c\x6d\x5f\x5b" "\x5e\x99\x5b\xaa\x2f\xd5\x57\x67\x66\xa6\x5f\x9a\xbd\x31\xfb\xe2\xec\xf5" "\xa9\xc5\xe5\x46\xbd\xf8\x37\x22\x6e\x1c\xda\x2d\xfe\xe0\x73\xbf\xf8\xb8" "\x5b\xdb\xf2\xfe\x5f\xe8\x12\x7f\xf2\x01\xfd\x7f\xae\xc7\xfe\xff\xf7\x83" "\x3b\xf7\x3f\x15\xaf\xe7\xc9\x4a\x59\xfc\xe7\x9f\x2d\x89\xff\xeb\x9f\x76" "\xd6\xd1\xc1\xf8\x69\xf1\xdd\xf7\xc5\x22\x9d\x2f\xbf\xd2\x4e\xef\xec\xa6" "\xf7\x7b\xea\x67\xbf\x79\xea\xa8\xfe\x2f\x74\xe9\xff\x83\x3e\xff\xe7\x7b" "\xec\xff\xd5\x6f\x7f\xef\x4f\x3d\xbe\x14\x00\xe8\x83\x8d\xad\xed\x5b\x73" "\x8d\x46\x7d\xfd\x91\x49\x64\x43\x11\x65\x8b\x86\xbb\xd4\xca\xcf\xd2\xfb" "\xdc\xd4\x88\xb3\xb0\xa2\x0e\x27\xd2\xe2\x43\x3f\x2b\xed\x19\x78\xe2\xee" "\x5e\xc9\xaf\x7e\xbf\xbb\x6e\x9e\x8e\xe3\xff\x65\x66\x59\xf6\x90\xab\x37" "\xc9\xb2\xec\xee\x09\x74\x70\xa2\xf8\xa4\x7b\xae\x75\xe5\xf2\xee\x8b\x93" "\x4e\xc9\x80\x76\x48\x00\x00\xc0\xa9\xd9\x3b\x0d\xd8\xf7\xeb\xc4\xe5\x01" "\x37\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce" "\x99\x8d\xad\xf7\x4e\xfd\x2e\x6b\x07\x63\xee\x74\x52\xc9\x49\xdc\x42\x1b" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xe0\x44\xfc\x2f\x00\x00\xff\xff\x24\xab\xda\x75", 1384); syz_mount_image( /*fs=*/0x2000000001c0, /*dir=*/0x200000000000, /*flags=MS_SYNCHRONOUS|MS_SILENT|MS_RDONLY|MS_NOSUID|0x400*/ 0x8413, /*opts=*/0x200000000040, /*chdir=*/0x18, /*size=*/0x568, /*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; use_temporary_dir(); loop(); return 0; }