// 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 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 { // 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 { // jqfmt_vfsv1: buffer: {6a 71 66 6d 74 3d 76 66 73 76 31} // (length 0xb) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // mb_optimize_scan: fs_opt["mb_optimize_scan", fmt[hex, // int32[0:1]]] { // name: buffer: {6d 62 5f 6f 70 74 69 6d 69 7a 65 5f 73 63 61 // 6e} (length 0x10) eq: const = 0x3d (1 bytes) val: int32 = // 0x1 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // dioread_nolock: buffer: {64 69 6f 72 65 61 64 5f 6e 6f 6c 6f // 63 6b} (length 0xe) // } // 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) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x571 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x571) // } // ] // returns fd_dir memcpy((void*)0x200000000080, "ext4\000", 5); memcpy((void*)0x200000000100, "./file1\000", 8); memcpy((void*)0x200000000240, "nodiscard", 9); *(uint8_t*)0x200000000249 = 0x2c; memcpy((void*)0x20000000024a, "jqfmt=vfsv1", 11); *(uint8_t*)0x200000000255 = 0x2c; memcpy((void*)0x200000000256, "mb_optimize_scan", 16); *(uint8_t*)0x200000000266 = 0x3d; sprintf((char*)0x200000000267, "0x%016llx", (long long)1); *(uint8_t*)0x200000000279 = 0x2c; memcpy((void*)0x20000000027a, "dioread_nolock", 14); *(uint8_t*)0x200000000288 = 0x2c; memcpy((void*)0x200000000289, "grpid", 5); *(uint8_t*)0x20000000028e = 0x2c; *(uint8_t*)0x20000000028f = 0; memcpy( (void*)0x200000000780, "\x78\x9c\xec\xdd\xcf\x8f\x1b\x57\x1d\x00\xf0\xef\xcc\xfe\x72\x93\xb4\x9b" "\x40\x0f\x50\x01\x09\x50\x08\x28\x8a\x9d\x75\xda\xa8\xea\xa5\xe5\x02\x42" "\x55\x25\x44\xc5\x01\x71\x48\x97\x5d\x67\xb5\xc4\x8e\x43\xec\x2d\xdd\x25" "\x52\xb7\x7f\x03\x48\x20\x71\x82\x3f\x81\x03\x12\x07\xa4\x9e\x38\x70\xe3" "\x88\xc4\x01\x10\xe5\x80\x54\x20\x02\x25\x48\x1c\x06\xcd\xd8\xbb\xeb\x6c" "\xec\xc4\x8d\xbd\x76\xb3\xfe\x7c\xa4\xc9\xbc\x99\x37\xe3\xef\x7b\xf6\xce" "\xbc\xe7\x67\xc7\x2f\x80\x99\x75\x2e\x22\x76\x23\x62\x31\x22\xde\x8c\x88" "\xe5\xee\xfe\xa4\xbb\xc4\xab\x9d\x25\x3f\xee\xee\x9d\xdb\x6b\xf7\xee\xdc" "\x5e\x4b\x22\xcb\xde\xf8\x67\x52\xe4\xe7\xfb\xa2\xe7\x9c\xdc\xc9\xee\x63" "\x96\x22\xe2\x9b\x5f\x8b\xf8\x6e\xf2\x60\xdc\xd6\xf6\xce\xf5\xd5\x7a\xbd" "\x76\xab\xbb\x5d\x69\x37\x6e\x56\x5a\xdb\x3b\x17\x37\x1b\xab\x1b\xb5\x8d" "\xda\x8d\x6a\xf5\xca\xca\x95\x4b\x2f\x5d\x7e\xb1\x3a\xb6\xba\x9e\x6d\xfc" "\xf2\x83\xaf\x6e\xbe\xf6\xad\xdf\xfc\xfa\xd3\xef\xff\x7e\xf7\xcb\x3f\xcc" "\x8b\x75\xaa\x9b\xd7\x5b\x8f\x71\xea\x54\x7d\x61\x3f\x4e\x6e\x3e\x22\x5e" "\x3b\x8a\x60\x53\x30\xd7\x5d\x2f\x4e\xb9\x1c\x3c\x9e\x34\x22\x3e\x16\x11" "\x9f\x2b\xae\xff\xe5\x98\x2b\xfe\x3a\x01\x80\xe3\x2c\xcb\x96\x23\x5b\xee" "\xdd\x06\x00\x8e\xbb\xb4\x18\x03\x4b\xd2\x72\x44\xa4\x69\xb7\x13\x50\xee" "\x8c\xe1\x3d\x1b\x27\xd2\x7a\xb3\xd5\xbe\x70\xad\xb9\x75\x63\xbd\x33\x56" "\x76\x3a\x16\xd2\x6b\x9b\xf5\xda\xa5\x33\x4b\x7f\xfc\x7e\x71\xf0\x42\x92" "\x6f\xaf\x14\x79\x45\x7e\xb1\x5d\x3d\xb4\x7d\x39\x22\xce\x44\xc4\x8f\x97" "\x9e\x2a\xb6\xcb\x6b\xcd\xfa\xfa\x74\xba\x3c\x00\x30\xf3\x4e\xf6\xb6\xff" "\x11\xf1\x9f\xa5\x34\x2d\x97\x87\x3a\xb5\xcf\xa7\x7a\x00\xc0\x13\xa3\x34" "\xed\x02\x00\x00\x13\xa7\xfd\x07\x80\xd9\xa3\xfd\x07\x80\xd9\x33\x44\xfb" "\xdf\xfd\xb0\x7f\xf7\xc8\xcb\x02\x00\x4c\x86\xf7\xff\x00\x30\x7b\xb4\xff" "\x00\x30\x7b\xb4\xff\x00\x30\x53\xbe\xf1\xfa\xeb\xf9\x92\xdd\xeb\xfe\xfe" "\xf5\xfa\x5b\xdb\x5b\xd7\x9b\x6f\x5d\x5c\xaf\xb5\xae\x97\x1b\x5b\x6b\xe5" "\xb5\xe6\xad\x9b\xe5\x8d\x66\x73\xa3\xf8\xcd\x9e\xc6\xa3\x1e\xaf\xde\x6c" "\xde\x5c\x79\x21\xb6\xde\xae\xb4\x6b\xad\x76\xa5\xb5\xbd\x73\xb5\xd1\xdc" "\xba\xd1\xbe\x5a\xfc\xae\xf7\xd5\xda\xc2\x44\x6a\x05\x00\x3c\xcc\x99\xb3" "\xef\xfd\x21\x89\x88\xdd\x97\x9f\x2a\x96\xe8\x99\xcb\x41\x5b\x0d\xc7\x5b" "\x3a\xc6\xa3\x80\x27\xcb\xdc\x28\x27\xeb\x20\xc0\x13\xcd\x6c\x5f\x30\xbb" "\x86\x6a\xc2\x8b\x4e\xc2\xef\x8e\xbc\x2c\xc0\x74\xf4\xfd\x31\xef\x52\xdf" "\xe4\xfd\x7e\xfa\x21\x82\xf8\x9e\x11\x7c\xa4\x9c\xff\xe4\xf0\xe3\xff\xe6" "\x78\x86\xe3\xc5\xc8\x3e\xcc\xae\xc7\x1b\xff\x7f\x65\xec\xe5\x00\x26\xef" "\xb1\xc7\xff\xff\x3c\xde\x72\x00\x93\x97\x65\xc9\xe1\x39\xff\x17\xf7\xb3" "\x00\x80\x63\x69\x84\xaf\xf0\x65\xef\x8c\xab\x13\x02\x4c\xd5\xa3\x26\xf3" "\x1e\xcb\xe7\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\xcc\x9c\x8a\x88\xef\x45\x92" "\x96\x8b\xb9\xc0\xd3\xfc\xdf\xb4\x5c\x8e\x78\x3a\x22\x4e\xc7\x42\x72\x6d" "\xb3\x5e\xbb\x14\x11\xcf\xc4\xd9\x88\x58\x58\xca\xb7\x57\xa6\x5d\x68\x00" "\x60\x44\xe9\xdf\x93\xee\xfc\x5f\xe7\x97\x9f\x3f\x75\x38\x77\x31\xf9\xef" "\x52\xb1\x8e\x88\x1f\xfc\xec\x8d\x9f\xbc\xbd\xda\x6e\xdf\x5a\xc9\xf7\xff" "\x6b\x7f\xff\xd2\xde\xf4\x61\xd5\x83\xf3\x46\x98\x57\x10\x00\x18\xde\x5f" "\x87\x39\xa8\x68\xbf\xab\xdd\x75\xcf\x1b\xf9\xbb\x77\x6e\xaf\xed\x2d\x47" "\x58\xc6\x07\x7c\xf0\x95\xfd\xc9\x47\xd7\xee\xdd\xb9\x5d\x2c\x9d\x9c\xf9" "\xc8\xb2\x2c\x8b\x28\x15\x7d\x89\x13\xff\x4e\x62\xbe\x7b\x4e\x29\x22\x9e" "\x8b\x88\xb9\x31\xc4\xdf\x7d\x37\x22\x3e\xd1\xaf\xfe\x49\x31\x36\x72\xba" "\x3b\xf3\x69\x6f\xfc\xe8\xc6\x7e\x7a\xa2\xf1\xd3\xfb\xe2\xa7\x45\x5e\x67" "\x9d\x3f\x7d\x1f\x1f\x43\x59\x60\xd6\xbc\x97\xdf\x7f\x5e\x3d\x7c\xfd\xcd" "\x15\x57\xd6\xb9\xe2\x88\xfe\xd7\x7f\xa9\xb8\x43\x8d\xae\xb8\xff\x95\x22" "\xf6\xee\x7d\x07\xf7\xbf\xbd\xeb\xbd\x54\x94\xe6\x70\xfc\xfc\x9a\x3f\x37" "\x6c\x8c\x17\x7e\xfb\xf5\x07\x76\x66\xcb\x9d\xbc\x77\x23\x9e\x9b\xef\x17" "\x3f\xd9\x8f\x9f\x0c\x88\xff\xfc\x90\xf1\xff\xf4\xa9\xcf\xfc\xe8\x95\x01" "\x79\xd9\xcf\x23\xce\x47\xff\xf8\xbd\xb1\x2a\xed\xc6\xcd\x4a\x6b\x7b\xe7" "\xe2\x66\x63\x75\xa3\xb6\x51\xbb\x51\xad\x5e\x59\xb9\x72\xe9\xa5\xcb\x2f" "\x56\x2b\xc5\x18\x75\x65\x6f\xa4\xfa\x41\xff\x78\xf9\xc2\x33\x83\xca\x96" "\xd7\xff\xc4\x80\xf8\x9d\x57\xfe\xe4\xa1\xfa\x2f\xee\x9f\xfb\x85\x21\xeb" "\xff\x8b\xff\xbd\xf9\x9d\xcf\x1e\x6c\x2e\x1d\x8e\xff\xa5\xcf\xf7\x7f\xfd" "\x9f\x2d\xd6\xfd\x9f\xff\xbc\x4d\xfc\xe2\x90\xf1\x57\x4f\xfc\x6a\xe0\xf4" "\xdd\x79\xfc\xf5\x01\xf5\x7f\xd4\xeb\x7f\x61\xc8\xf8\xef\xff\x6d\x67\x7d" "\xc8\x43\x01\x80\x09\x68\x6d\xef\x5c\x5f\xad\xd7\x6b\xb7\x46\x4a\xe4\xef" "\x42\x3f\xfc\x59\x59\x96\xbd\x93\x97\xe1\x21\xc7\xe4\xd9\xc3\x3d\xe0\x5e" "\x77\x71\xb4\xea\xfc\x25\x8a\xc4\xc1\xd3\x92\x44\x12\xa3\x3f\x3f\xf7\x27" "\xf2\xce\xd8\x30\x07\x2f\x8c\x5c\x9d\xfb\x12\x7b\xc3\x25\xe3\xae\x4e\x9f" "\xc4\xfc\x7e\x5f\x71\xbc\x8f\xfc\xed\x87\xff\xb5\x0c\x4a\x2c\x8e\x12\x34" "\x1d\x7b\x2d\x1e\x27\x11\xa7\xbb\x89\xbb\x93\x0a\x3a\x95\xdb\x11\x30\x41" "\x07\x17\xfd\xb4\x4b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c" "\x32\x89\xff\xc3\x34\xed\x3a\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x7c\xfd\x3f\x00" "\x00\xff\xff\x67\x57\xbe\x2d", 1393); syz_mount_image(/*fs=*/0x200000000080, /*dir=*/0x200000000100, /*flags=*/0, /*opts=*/0x200000000240, /*chdir=*/1, /*size=*/0x571, /*img=*/0x200000000780); // 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 = 0x408003 (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 { // 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 = 0x5 (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 { // 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 { // grpjquota: buffer: {67 72 70 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nogrpid: buffer: {6e 6f 67 72 70 69 64} (length 0x7) // } // 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 { // grpjquota: buffer: {67 72 70 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // i_version: buffer: {69 5f 76 65 72 73 69 6f 6e} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // resuid: fs_opt["resuid", fmt[hex, uid]] { // name: buffer: {72 65 73 75 69 64} (length 0x6) // eq: const = 0x3d (1 bytes) // val: uid (resource) // } // } // comma: const = 0x32 (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1b (1 bytes) // size: len = 0x4f0 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x4f0) // } // ] // returns fd_dir memcpy((void*)0x200000000000, "ext4\000", 5); memcpy((void*)0x200000000300, "./file0\000", 8); memcpy((void*)0x200000000200, "max_dir_size_kb", 15); *(uint8_t*)0x20000000020f = 0x3d; sprintf((char*)0x200000000210, "0x%016llx", (long long)5); *(uint8_t*)0x200000000222 = 0x2c; memcpy((void*)0x200000000223, "noblock_validity", 16); *(uint8_t*)0x200000000233 = 0x2c; memcpy((void*)0x200000000234, "usrquota", 8); *(uint8_t*)0x20000000023c = 0x2c; memcpy((void*)0x20000000023d, "grpjquota=", 10); *(uint8_t*)0x200000000247 = 0x2c; memcpy((void*)0x200000000248, "nogrpid", 7); *(uint8_t*)0x20000000024f = 0x2c; memcpy((void*)0x200000000250, "errors=remount-ro", 17); *(uint8_t*)0x200000000261 = 0x2c; memcpy((void*)0x200000000262, "grpjquota=", 10); *(uint8_t*)0x20000000026c = 0x2c; memcpy((void*)0x20000000026d, "i_version", 9); *(uint8_t*)0x200000000276 = 0x2c; memcpy((void*)0x200000000277, "resuid", 6); *(uint8_t*)0x20000000027d = 0x3d; sprintf((char*)0x20000000027e, "0x%016llx", (long long)0); *(uint8_t*)0x200000000290 = 0x32; *(uint8_t*)0x200000000291 = 0; memcpy( (void*)0x200000000a40, "\x78\x9c\xec\xdd\x4d\x6b\x1c\xe7\x1d\x00\xf0\xff\x8c\xb4\xb6\x65\xcb\x95" "\x4c\x7b\x70\x0d\x75\x4d\xed\x22\x99\xd6\xbb\x92\x55\xdb\xa2\x07\xd7\x2d" "\xa5\x3d\x19\xda\xba\xe7\xba\xaa\xb4\x12\x42\x2b\xad\xd0\xae\x6c\x4b\x98" "\x56\xa6\x1f\xa0\x50\x4a\x5b\x28\x14\x72\xca\x25\x90\x0f\x10\x08\xfe\x08" "\x21\x60\x48\xee\x21\x09\x09\x21\xb1\x93\x83\x0f\x89\x37\xec\x9b\x5f\xe4" "\x5d\x69\x8d\x57\x5a\x23\xfd\x7e\x30\x9a\xe7\x99\x17\xfd\xff\xcf\x2e\x33" "\x3b\xcf\xcc\x30\x13\xc0\xbe\x75\x2a\x22\x4e\x47\xc4\xa3\x4a\xa5\x72\x36" "\x22\x86\x1a\xd3\xd3\xc6\x70\xa5\x5a\xd9\xa8\x2f\xf7\xe0\xfe\xed\xe9\xea" "\x90\x44\xa5\x72\xed\xf3\x24\x22\xa9\x4f\xab\x2e\x32\xfa\xd4\xff\x3c\x52" "\x5f\x25\x0e\x45\xc4\x1f\x7e\x1b\xf1\x97\xe4\xf9\xb8\xa5\xb5\xf5\x85\xa9" "\x42\x21\xbf\xd2\xa8\xe7\xca\x8b\xcb\xb9\xd2\xda\xfa\xb9\xf9\xc5\xa9\xb9" "\xfc\x5c\x7e\x69\x62\x62\xfc\xe2\xe4\xa5\xc9\x0b\x93\x63\x5d\x69\xe7\x60" "\x44\x5c\xfe\xf5\xc7\xff\xfe\xc7\xeb\xbf\xb9\xfc\xf6\x4f\x6f\x7e\x70\xfd" "\xd3\xd1\xbf\x26\x8d\xe9\x11\x4f\xda\xd1\x6d\xf5\xa6\x67\x6a\x9f\x45\x53" "\x7f\x44\xac\xec\x44\xb0\x1e\xe8\x6b\xb4\x27\xd3\xeb\x44\x00\x00\xe8\x48" "\xf3\x38\xff\x47\x11\x71\x36\x86\xa2\xaf\x76\x34\x07\x00\x00\x00\xec\x25" "\x95\x5f\x0c\xc6\xd7\x49\x44\x05\x00\x00\x00\xd8\xb3\xd2\xda\x3d\xb0\x49" "\x9a\x6d\xdc\x07\x30\x18\x69\x9a\xcd\xd6\xef\xe1\xfd\x5e\x1c\x4e\x0b\xc5" "\x52\xf9\x27\xb3\xc5\xd5\xa5\x99\xfa\xbd\xb2\xc3\x91\x49\x67\xe7\x0b\xf9" "\xb1\xc6\xbd\xc2\xc3\x91\x49\xaa\xf5\xf1\x5a\xf9\x49\xfd\xfc\xa6\xfa\x44" "\x44\x1c\x8b\x88\x7f\x0d\x0d\xd4\xea\xd9\xe9\x62\x61\xa6\xd7\x27\x3f\x00" "\x00\x00\x60\x9f\x38\xb2\xa9\xff\xff\xd5\x50\xbd\xff\x0f\x00\x00\x00\xec" "\x31\xc3\xbd\x4e\x00\x00\x00\x00\xd8\x71\xfa\xff\x00\x00\x00\xb0\xf7\xe9" "\xff\x03\x00\x00\xc0\x9e\xf6\xbb\xab\x57\xab\x43\xa5\xf9\xfe\xeb\x99\x1b" "\x6b\xab\x0b\xc5\x1b\xe7\x66\xf2\xa5\x85\xec\xe2\xea\x74\x76\xba\xb8\xb2" "\x9c\x9d\x2b\x16\xe7\x6a\xcf\xec\x5b\xdc\xee\xff\x15\x8a\xc5\xe5\x9f\xc5" "\xd2\xea\xad\x5c\x39\x5f\x2a\xe7\x4a\x6b\xeb\xd7\x17\x8b\xab\x4b\xe5\xeb" "\xf3\xcf\xbc\x02\x1b\x00\x00\x00\xd8\x45\xc7\x7e\x78\xf7\xfd\x24\x22\x36" "\x7e\x3e\x50\x1b\xaa\x0e\xf4\x3a\x29\x60\x57\xf4\xbf\xc8\xc2\x1f\xed\x5c" "\x1e\xc0\xee\xeb\xeb\x75\x02\x40\xcf\xbc\xd0\xef\x3f\xb0\xa7\x64\x7a\x9d" "\x00\xd0\x73\x49\x44\xfc\x7f\x8b\xf9\x6d\x6f\xde\x79\x67\x67\xf2\x01\x00" "\x00\xba\x6f\xe4\xfb\xad\xaf\xff\x27\xdb\x9e\x1b\xd8\x48\x77\x29\x45\x60" "\x87\x38\xff\x07\xfb\x97\xeb\xff\xb0\x7f\xb9\xfe\x0f\xfb\x57\x26\xfa\xa2" "\xf3\x8e\xfc\xc0\x8e\xe6\x02\xf4\x46\xb2\xcd\xfc\x97\xbf\xfe\x5f\xa9\xbc" "\x50\x42\x00\x00\x40\xd7\x0d\xd6\x86\x24\xcd\x46\xd4\xce\x03\x0c\x46\x9a" "\x66\xb3\x11\x47\x6b\xaf\x05\xc8\x24\xb3\xf3\x85\xfc\x58\x44\x7c\x27\x22" "\xde\x1b\xca\x1c\xac\xd6\xc7\x6b\x6b\x26\xdb\xf6\x19\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xba\x4a\x25" "\x89\x0a\x00\x00\x00\xb0\xa7\x45\xa4\x9f\x24\x8d\xf7\x7f\x8d\x0c\x9d\x19" "\xdc\x7c\x7e\xe0\x40\xf2\x70\xa8\x36\x8e\x88\x9b\xff\xbb\xf6\x9f\x5b\x53" "\xe5\xf2\xca\x78\x75\xfa\x17\x8f\xa7\x97\xff\xdb\x98\x7e\xbe\x17\x67\x30" "\x00\x00\x00\x80\xcd\x9a\xfd\xf4\x66\x3f\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\xba\xe9\xc1\xfd\xdb\xd3" "\xcd\x61\x37\xe3\x7e\xf6\xcb\x88\x18\x6e\x15\xbf\x3f\x0e\xd5\xc6\x87\x22" "\x13\x11\x87\xbf\x4c\xa2\xff\xa9\xf5\x92\x88\xe8\xeb\x42\xfc\x8d\x3b\x11" "\xf1\xab\x3f\xb5\x88\x9f\x54\xd3\x8a\xe1\x46\x16\xad\xe2\x0f\x74\x2b\xfe" "\xf1\x56\xed\xdf\x3a\x7e\x1a\x11\x47\xba\x10\x1f\xf6\xb3\xbb\xd5\xfd\xcf" "\x95\x56\xdb\x5f\x1a\xa7\x6a\xe3\xcd\xdb\xdf\xc1\xc7\xeb\xf6\x77\x21\x7e" "\xfb\xfd\x5f\xfa\x78\xff\xd7\xd7\x66\xfb\x3f\xda\x61\x8c\x13\xf7\xde\xcc" "\xb5\x8d\x7f\x27\xe2\x44\x7f\xeb\xfd\x4f\x33\x7e\xd2\x66\xff\x77\xba\xc3" "\xf8\x7f\xfe\xe3\xfa\x7a\xbb\x79\x95\xd7\x22\x46\x5a\xfe\xfe\x24\xcf\xc4" "\xca\x95\x17\x97\x73\xa5\xb5\xf5\x73\xf3\x8b\x53\x73\xf9\xb9\xfc\xd2\xc4" "\xc4\xf8\xc5\xc9\x4b\x93\x17\x26\xc7\x72\xb3\xf3\x85\x7c\xe3\x6f\xcb\x18" "\xff\xfc\xc1\x5b\x8f\xb6\x6a\xff\xe1\x36\xf1\x87\xb7\x69\xff\x99\x0e\xdb" "\xff\xcd\xbd\x5b\xf7\xbf\x5b\x2f\x66\x5a\xc5\x1f\x3d\xdd\xfa\xfb\x3f\xde" "\x26\x7e\xda\xf8\xed\xfb\x71\xa3\x5c\x9d\x3f\xd2\x2c\x6f\xd4\xcb\x4f\x3b" "\xf9\xc6\xbb\x27\xb7\x6a\xff\x4c\x9b\xf6\x6f\xf7\xfd\x8f\x76\xd8\xfe\xb3" "\xbf\xff\xfb\x87\x1d\x2e\x0a\x00\xec\x82\xd2\xda\xfa\xc2\x54\xa1\x90\x5f" "\xd9\xd7\x85\x97\xfa\x34\xaa\x87\x45\x9d\x2d\x9c\x36\xc2\xbc\x0a\x4d\x56" "\xc8\xaf\x94\xfe\xf6\x6a\xa4\xf1\x4a\x16\x9a\xdb\xc4\xc3\x9e\xec\x97\x00" "\x00\x80\xee\x7b\xbe\x0f\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xec\xb6\xee\x3c\x33\xac\xf9\x4c\xec\xad\x9f\xae\xd7\xb4" "\x51\x1f\x3d\xf7\x2c\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\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\x5e\xfa\x36\x00\x00\xff\xff" "\x6f\x7a\xcf\x63", 1264); syz_mount_image(/*fs=*/0x200000000000, /*dir=*/0x200000000300, /*flags=MS_SILENT|MS_RDONLY|MS_NOSUID|0x400000*/ 0x408003, /*opts=*/0x200000000200, /*chdir=*/0x1b, /*size=*/0x4f0, /*img=*/0x200000000a40); } 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; }