// https://syzkaller.appspot.com/bug?id=b3d4ed3e41b3085ce97f4504f4183e3f99115fb2 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_write #define __NR_write 64 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x1000410 (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 { // grpid: buffer: {67 72 70 69 64} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // 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) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x4 (1 bytes) // size: len = 0x4eb (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x4eb) // } // ] // returns fd_dir memcpy((void*)0x200004c0, "ext4\000", 5); memcpy((void*)0x20000500, "./file0\000", 8); memcpy((void*)0x20000100, "grpid", 5); *(uint8_t*)0x20000105 = 0x2c; memcpy((void*)0x20000106, "grpquota", 8); *(uint8_t*)0x2000010e = 0x2c; *(uint8_t*)0x2000010f = 0; memcpy( (void*)0x20000540, "\x78\x9c\xec\xdd\xcf\x6f\x54\x5b\x1d\x00\xf0\xef\x9d\x76\x68\x29\x03\x05" "\x65\xa1\x46\x05\x11\x45\x43\x98\xfe\x00\x1a\x82\x0b\x61\xa3\x31\x84\xc4" "\x48\x5c\xb9\x80\xda\x0e\x4d\xd3\x19\xa6\xe9\xb4\x48\x2b\x8b\xb2\x74\x6f" "\x22\x89\x2b\xfd\x13\xdc\xb9\x30\x61\xe5\xc2\x9d\x3b\xdd\xb9\xc1\x85\x09" "\x2a\x79\x2f\xf4\x25\x6f\x31\x2f\xf7\xce\xa5\x1d\xda\x0e\xed\x7b\xb4\x1d" "\xe8\x7c\x3e\xc9\xed\xbd\xe7\x9c\x61\xbe\xe7\xcc\x70\xce\x99\x7b\x60\x7a" "\x02\xe8\x59\x67\x23\x62\x35\x22\x8e\x44\xc4\xbd\x88\x18\xce\xf3\x93\xfc" "\x88\x1b\xad\x23\x7d\xdc\xab\x97\x8f\xa7\xd6\x5e\x3e\x9e\x4a\xa2\xd9\xbc" "\xf3\xbf\x24\x2b\x4f\xf3\xa2\xed\xcf\xa4\x8e\xe5\xcf\x39\x18\x11\x3f\xfb" "\x71\xc4\x2f\x93\xad\x71\x1b\xcb\x2b\x73\x93\xd5\x6a\x65\x21\x4f\x8f\x2c" "\xd6\xe6\x47\x1a\xcb\x2b\x97\x66\x0b\x79\xce\xf8\xc4\xd8\xc4\xe8\xb5\xcb" "\x57\xc7\xf7\xac\xad\x67\x6a\x7f\x7a\xf1\xa3\xd9\x5b\x3f\xff\xcb\x9f\xbf" "\xf1\xfc\xef\xab\xdf\xff\x75\x5a\xad\xd2\x6f\x8e\x67\x65\xed\xed\xd8\x4b" "\xad\xa6\x17\xa3\xd4\x96\xd7\x1f\x11\xb7\xf6\x23\x58\x97\xf4\xe7\x7f\x7f" "\xf8\xf0\xa4\xbd\xed\x4b\x11\x71\x2e\xeb\xff\xc3\xd1\x97\xbd\x9b\x00\xc0" "\x61\xd6\x6c\x0e\x47\x73\xb8\x3d\x0d\x00\x1c\x76\xe9\xfd\x7f\x29\x92\x42" "\x39\x5f\x0b\x28\x45\xa1\x50\x2e\xb7\xd6\xf0\x4e\xc7\x50\xa1\x5a\x6f\x2c" "\x5e\x1c\xae\x2f\x3d\x98\x8e\x6c\x0d\xeb\x64\x14\x0b\xf7\x67\xab\x95\xd1" "\x7c\xad\xf0\x64\x14\x93\x34\x3d\x96\x5d\x6f\xa4\xc7\x37\xa5\x2f\x47\xc4" "\xa9\x88\xf8\xed\xc0\xd1\x2c\x5d\x9e\xaa\x57\xa7\xbb\xf9\xc1\x07\x00\x7a" "\xd8\xb1\x4d\xf3\xff\xc7\x03\xad\xf9\x1f\x00\x38\xe4\x06\xbb\x5d\x01\x00" "\xe0\xc0\x99\xff\x01\xa0\xf7\x98\xff\x01\xa0\xf7\x7c\x8e\xf9\xdf\xb7\x03" "\x01\xe0\x90\x70\xff\x0f\x00\xbd\xc7\xfc\x0f\x00\xbd\x67\xc7\xf9\xff\xc9" "\xc1\xd4\x03\x00\x38\x10\x3f\xbd\x7d\x3b\x3d\x9a\x6b\xf9\xef\xbf\x9e\x7e" "\xb8\xbc\xf4\x83\xd2\xc3\x4b\xd3\x95\xc6\x5c\xb9\xb6\x34\x55\x9e\xaa\x2f" "\xcc\x97\x67\xea\xf5\x99\x6a\xa5\x3c\xd5\x6c\xee\xf4\x7c\xd5\x7a\x7d\x7e" "\xec\xca\x7a\xb2\xb1\xbc\x72\xb7\x56\x5f\x7a\xb0\x78\x77\xb6\x36\x39\x53" "\xb9\x5b\x29\xee\x73\x7b\x00\x80\x9d\x9d\x3a\xf3\xec\x9f\x49\x44\xac\x5e" "\x3f\x9a\x1d\xd1\xb6\x97\x83\xb9\x1a\x0e\xb7\x42\xb7\x2b\x00\x74\x4d\x5f" "\xb7\x2b\x00\x74\x8d\xef\xf3\x40\xef\xda\xc5\x3d\xbe\x65\x00\x38\xe4\xb6" "\xd9\xa2\xf7\x0d\x1d\xff\x8b\xd0\x53\x9b\xbf\xc2\x87\xea\xc2\x57\xad\xff" "\x43\xaf\xb2\xfe\x0f\xbd\xeb\x8b\xad\xff\xff\x70\xcf\xeb\x01\x1c\x3c\xeb" "\xff\xd0\xbb\x9a\xcd\xc4\x9e\xff\x00\xd0\x63\xac\xf1\x03\xef\xf4\xef\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\xd0\xa3\x4a\xd9\x91\x14\xca\xd9\x5e\xe0\xab\xe9" "\xcf\x42\xb9\x1c\x71\x3c\x22\x4e\x46\x31\xb9\x3f\x5b\xad\x8c\x46\xc4\x89" "\x88\xf8\xc7\x40\x71\x20\x4d\x8f\x75\xbb\xd2\x00\xc0\x3b\x2a\xfc\x27\xc9" "\xf7\xff\xba\x30\x7c\xbe\xb4\xb9\xf4\x48\xf2\xc9\x40\x76\x8e\x88\x5f\xfd" "\xfe\xce\xef\x1e\x4d\x2e\x2e\x2e\x8c\xa5\xf9\xff\x5f\xcf\x5f\x7c\x9a\xe7" "\x8f\x1f\xe9\x46\x03\x00\x80\x76\x37\xb6\x66\xb5\xe6\xe9\xfc\xdc\x76\x23" "\xff\xea\xe5\xe3\xa9\xd7\xc7\x41\x56\xf1\xc5\xcd\xd6\xe6\xa2\x69\xdc\xb5" "\xfc\x68\x95\xf4\x47\x7f\x76\x1e\x8c\x62\x44\x0c\x7d\x94\xe4\xe9\x96\xf4" "\xf3\x4a\xdf\x1e\xc4\x5f\x7d\x12\x11\x5f\xd9\x68\xff\xa3\xb6\x08\xa5\x6c" "\x0d\xa4\xb5\xf3\xe9\xe6\xf8\x69\xec\xe3\xfb\x10\x7f\xe3\xf5\xdf\x1c\xbf" "\xf0\x46\xfc\x42\x56\x96\x9e\x8b\xd9\x6b\xf1\xe5\x3d\xa8\x0b\xf4\x9a\x67" "\x37\x5b\xe3\x64\xde\xf7\xd2\x2e\x96\xf7\xbf\x42\x9c\xcd\xce\xdb\xf7\xff" "\xc1\x6c\x84\x7a\x77\xaf\xc7\xbf\xb5\x2d\xe3\x5f\x61\x7d\xfc\xeb\xdb\x12" "\x3f\xc9\xfa\xfc\xd9\xf5\xf4\xdb\x6b\xf2\xe2\xca\x5f\x7f\xb2\x25\xb3\x39" "\xdc\x2a\x7b\x12\xf1\xb5\xfe\xed\xe2\x27\xeb\xf1\x93\x0e\xe3\xef\xf9\x5d" "\xb6\xf1\x5f\x5f\xff\xe6\xb9\x4e\x65\xcd\x3f\x44\x5c\x88\xed\xe3\xb7\xd4" "\xb2\x61\x76\x64\xb1\x36\x3f\xd2\x58\x5e\xb9\x34\x5b\x9b\x9c\xa9\xcc\x54" "\x1e\x8c\x8f\x4f\x8c\x4d\x8c\x5e\xbb\x7c\x75\x7c\x24\x5b\xa3\x6e\xfd\xfc" "\xdb\x76\x31\xfe\x7b\xfd\xe2\x89\x4e\xf1\xd3\xf6\x0f\x75\x88\x3f\xb8\x43" "\xfb\xbf\xb3\xcb\xf6\xff\xf1\xd3\x7b\xbf\xf8\xd6\x5b\xe2\x7f\xef\xdb\xdb" "\xbf\xff\xa7\xdf\x12\x3f\x9d\x13\xbf\xbb\xcb\xf8\x93\x43\x37\x3a\x6e\xdf" "\x9d\xc6\x9f\xee\xd0\xfe\x9d\xde\xff\x8b\xbb\x8c\xff\xfc\xdf\x2b\xd3\xbb" "\x7c\x28\x00\x70\x00\x1a\xcb\x2b\x73\x93\xd5\x6a\x65\x61\x87\x8b\xf4\xb3" "\xe6\x4e\x8f\x71\xf1\x61\x5e\xc4\x6a\xc4\x7b\x50\x0d\x17\xef\xd5\x45\xb7" "\x47\x26\x60\xbf\x6d\x74\xfa\x6e\xd7\x04\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xe8\xa4\xb1\xbc\x32\x37\x10\xfb\xfb\x75\xa2\x6e\xb7\x11\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xc3\xeb\xb3\x00\x00\x00\xff\xff\x0f\xcf\xce\xf3", 1259); syz_mount_image(/*fs=*/0x200004c0, /*dir=*/0x20000500, /*flags=MS_SYNCHRONOUS|MS_STRICTATIME|MS_NOATIME*/ 0x1000410, /*opts=*/0x20000100, /*chdir=*/4, /*size=*/0x4eb, /*img=*/0x20000540); // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {68 75 67 65 74 6c 62 2e 31 47 42 2e 72 73 76 64 2e 75 73 61 // 67 65 5f 69 6e 5f 62 79 74 65 73 00} (length 0x20) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x20000000, "hugetlb.1GB.rsvd.usage_in_bytes\000", 32); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[0] = res; // write$binfmt_script arguments: [ // fd: fd_binfmt (resource) // data: ptr[in, binfmt_script] { // binfmt_script { // hdr: buffer: {23 21 20} (length 0x3) // bin: buffer: {} (length 0x0) // args: array[binfmt_script_arg] { // } // nl: const = 0xa (1 bytes) // data: buffer: {} (length 0x0) // } // } // len: bytesize = 0x208e24b (8 bytes) // ] memcpy((void*)0x20000380, "#! ", 3); *(uint8_t*)0x20000383 = 0xa; syscall(__NR_write, /*fd=*/r[0], /*data=*/0x20000380ul, /*len=*/0x208e24bul); // 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 = 0x8205 (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 = 0x15 // (18 bytes) // } // } // 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 = 0x0 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // grpid: buffer: {67 72 70 69 64} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // 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 { // data_err_ignore: buffer: {64 61 74 61 5f 65 72 72 3d 69 67 6e // 6f 72 65} (length 0xf) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // 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 { // sysvgroups: buffer: {73 79 73 76 67 72 6f 75 70 73} (length // 0xa) // } // 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) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x60a (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x60a) // } // ] // returns fd_dir memcpy((void*)0x20000140, "ext4\000", 5); memcpy((void*)0x200005c0, "./file1\000", 8); memcpy((void*)0x20000940, "max_dir_size_kb", 15); *(uint8_t*)0x2000094f = 0x3d; sprintf((char*)0x20000950, "0x%016llx", (long long)0x15); *(uint8_t*)0x20000962 = 0x2c; memcpy((void*)0x20000963, "stripe", 6); *(uint8_t*)0x20000969 = 0x3d; sprintf((char*)0x2000096a, "0x%016llx", (long long)0); *(uint8_t*)0x2000097c = 0x2c; memcpy((void*)0x2000097d, "grpid", 5); *(uint8_t*)0x20000982 = 0x2c; memcpy((void*)0x20000983, "errors=remount-ro", 17); *(uint8_t*)0x20000994 = 0x2c; memcpy((void*)0x20000995, "data_err=ignore", 15); *(uint8_t*)0x200009a4 = 0x2c; memcpy((void*)0x200009a5, "noblock_validity", 16); *(uint8_t*)0x200009b5 = 0x2c; memcpy((void*)0x200009b6, "sysvgroups", 10); *(uint8_t*)0x200009c0 = 0x2c; memcpy((void*)0x200009c1, "quota", 5); *(uint8_t*)0x200009c6 = 0x2c; *(uint8_t*)0x200009c7 = 0; memcpy( (void*)0x20001c40, "\x78\x9c\xec\xdd\xcf\x6b\x1c\xd7\x1d\x00\xf0\xef\xcc\x4a\xaa\x64\xab\x95" "\x5d\x8a\xa9\x4d\x4b\x05\x3d\xd8\x50\xac\x1f\xae\xa9\xdb\x9e\x6c\x5f\xea" "\x83\xa1\x86\xfa\x50\x4a\x0f\x16\x96\xe4\x0a\xaf\x6c\x61\xc9\x50\xbb\x86" "\xca\xd0\x43\x0b\x2d\x94\x90\x6b\x08\xbe\xe4\x1f\xc8\x3d\x98\x5c\x73\x0b" "\x81\x24\xb7\x9c\x03\x4e\x08\x0e\x39\x24\xc1\x1b\x66\x76\xc7\x5e\x56\xbb" "\xf2\x5a\xd1\xee\xac\x3d\x9f\x0f\xec\xea\xcd\x9b\xd9\x7d\xef\xbb\x4f\x4f" "\xf3\xde\xae\xde\x4e\x00\x95\x35\x9b\xdd\xa5\x11\x47\x23\xe2\x4a\x12\x31" "\xd3\xb6\x6f\x3a\x9a\x3b\x67\x5b\xc7\x3d\xfe\xe2\xde\xd5\xec\x96\x44\xa3" "\xf1\xa7\xcf\x93\x48\x5a\x79\xc5\xf1\x4f\x5a\x3f\x0f\x66\x77\x49\xc4\x64" "\x44\xbc\x7f\x3e\xe2\xc7\xb5\x9d\xe5\x6e\xde\xb9\x7b\x7d\xa9\xde\x68\xfa" "\x67\xc4\xfc\xd6\xfa\xc6\xfc\xe6\x9d\xbb\x27\xd7\xd6\x97\xae\xad\x5c\x5b" "\xb9\xb1\x78\xea\xb7\xa7\xcf\x2c\xfc\x6e\xf1\xf4\xe2\xbe\xc4\x59\xc4\x75" "\xe1\xe2\x1f\x7f\xf6\xbf\x7f\xfd\xed\x37\xab\x1f\xd4\x4f\x26\x71\x36\x2e" "\x8f\xff\x63\x39\x3a\xe2\xd8\x2f\xb3\x31\x1b\x4f\x5a\x21\xb6\xe7\x8f\x45" "\xc4\x99\x2c\xd1\xe5\x75\x79\xd9\x14\x21\x24\x25\xd7\x83\xbd\xa9\xb5\x7e" "\x1f\xc7\x23\xe2\x48\xcc\x44\x2d\xdf\x6a\x9a\x89\xb5\xff\x96\x5a\x39\x60" "\xa0\x1a\xb5\x88\x06\x50\x51\x89\xfe\x0f\x15\x55\x8c\x03\x8a\xb9\xfd\x20" "\xe6\xc1\xa3\xec\xd1\xb9\xe6\x04\x68\x67\xfc\x63\xcd\xf7\x46\x62\x32\x9f" "\x1b\x1d\x78\x9c\xb4\xcd\x8c\x9a\xf3\xdd\x43\xfb\x50\x7e\x56\xc6\xb7\xf7" "\x8e\xbd\x91\xdd\xa2\xc7\xfb\x10\x63\xfb\x50\x4e\x2f\xdb\xf7\x23\xe2\xa7" "\xdd\xe2\x4f\xf2\xba\x1d\xca\xdf\xc5\xc9\xe2\x4f\x23\x6d\x7b\x5c\x96\x5e" "\x88\x88\x89\xd6\x6b\xb1\xd7\xf9\xff\x6c\xc7\xf6\xb0\x7f\xff\x5e\x24\xfe" "\xf6\x76\xc8\xe2\x3f\xdb\xfa\x99\xe5\x9f\xdf\x63\xf9\x65\xc7\x0f\x40\x35" "\x3d\x3c\xd7\x3a\x91\x6f\x67\x5b\xcf\xce\x7f\xd9\xc8\xb0\x18\xff\x44\x97" "\xf1\xcf\x74\x97\x73\xd7\x5e\x94\x7d\xfe\xeb\x3d\xfe\x2b\xce\xf7\x93\xf9" "\x7b\xe4\x69\xc7\x38\x2c\x1b\xef\x5c\xea\xfe\x94\xe3\x9d\x19\x9f\xfc\xe7" "\xc2\x6b\xbd\xca\x6f\x1f\xff\x65\xb7\xac\xfc\x62\x2c\x38\x0c\x8f\xee\x47" "\x1c\xeb\x88\xff\xdf\xf9\x40\x2f\x79\xda\xfe\x49\x97\xf6\xcf\x0e\xb9\xd2" "\x67\x19\x7f\xf8\xf0\xb3\x0b\xbd\xf6\x95\x1d\x7f\xe3\x41\xc4\xf1\xae\xf3" "\x9f\x67\x23\xda\x2c\x35\xbf\xb5\xbe\x51\xe4\x75\x7c\x3e\x39\xbf\xba\x56" "\x5f\x59\x68\xde\x77\x2d\xe3\x9d\xf7\xfe\xfa\x56\xaf\xf2\xcb\x8e\x3f\x6b" "\xff\xe8\x11\xff\x6e\xed\x9f\xe5\x6d\xf4\x59\xc6\xdb\x97\x1e\xac\xf7\xda" "\x37\xfd\xdc\xf8\xd3\x4f\x27\x92\xcb\x79\x6a\xa2\x95\xf3\xf7\xa5\xad\xad" "\x5b\x8b\x11\x13\xc9\xc5\xd6\x21\x6d\xf9\xa7\x76\xaf\x4b\x71\x4c\xf1\x1c" "\x59\xfc\x27\x7e\xd9\xbd\xff\xef\x12\x7f\xde\xd0\xdb\x7d\xc6\xbf\xf1\xe7" "\xeb\x8f\x9b\xa9\x9d\xb3\xa4\xbe\xdb\x7f\xc7\x5f\x95\xdc\x93\x46\x9f\x75" "\xe8\x25\x8b\x7f\x79\x8f\xed\xff\xff\x3e\xcb\xf8\xea\x2f\xb7\x7f\xde\x91" "\x35\x55\x24\x76\x8b\x7f\x6a\xe7\x53\x25\xfd\xbe\xe6\x00\x00\x00\x00\x00" "\x00\x50\x45\x69\xfe\x19\x6c\x92\xce\x3d\x4d\xa7\xe9\xdc\x5c\x73\x0d\xef" "\x4f\xe2\x40\x5a\xbf\xb9\xb9\xf5\xab\xd5\x9b\xb7\x6f\x2c\x47\x9c\xc8\xff" "\x1f\x72\x3c\x2d\x3e\xe9\x9e\x69\x6e\x27\xd9\xf6\x62\xeb\xff\x61\x8b\xed" "\x53\x1d\xdb\xbf\x8e\x88\xc3\x11\xf1\x7a\x6d\x2a\xdf\x9e\xbb\x7a\xb3\xbe" "\x5c\x76\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x30\x22\x0e\xb6\xd6\xff\x17\xd7\xa9\xfe\xb2\xd6\x5c\xff\xdf\x97\xad\x23" "\x03\xae\x1d\x30\x70\x83\xbc\xc0\x1c\x30\xda\xf4\x7f\xa8\xae\xbc\xff\xa7" "\x65\xd7\x02\x28\x83\xf3\x3f\x54\x97\xfe\x0f\xd5\xa5\xff\x43\x75\xe9\xff" "\x50\x5d\xfa\x3f\x54\x97\xfe\x0f\xd5\xa5\xff\x43\x75\xe9\xff\x00\x00\x00" "\x00\xf0\x4a\x3a\xfc\x8b\x87\x1f\x27\x11\xb1\xfd\xfb\xa9\xfc\x96\x99\x68" "\xed\x1b\x2f\xb5\x66\xc0\xa0\xbd\x78\x1f\x9f\x1d\x48\x3d\x80\xe1\xab\x0d" "\xf5\x61\xc0\x28\x79\xfa\xd1\xbf\xe5\xff\x50\x39\x7d\x8d\xff\xbf\x6e\x7d" "\x39\xe0\xe0\xab\x03\x94\x20\xe9\x96\x99\x0f\x0e\x1a\xbb\x77\xfe\x87\x5d" "\x1f\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\xc0\xf1\xa3\xd6\xff" "\x43\x55\xa5\xf1\x6e\xd9\x55\x00\x4a\xf2\x3d\x16\xf2\xfb\x0e\x00\x78\xc9" "\xf9\xea\x7f\xa8\x2e\x73\x7c\xe0\x79\xab\xf8\x27\x7b\xed\xb0\xfe\x1f\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x86\x66\x3a\xbf\x25\xe9\x5c\xeb\x12" "\xa0\xd3\x91\xa6\x73\x73\x11\x3f\x8c\x88\x43\x31\x9e\xac\xae\xd5\x57\x16" "\x22\xe2\x47\x11\xf1\x51\x6d\xfc\x07\xd9\xf6\x62\xd9\x95\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x57\xcc\xe6\x9d\xbb\xd7" "\x97\xea\xf5\x95\x5b\xed\x89\x6f\x76\xe4\xbc\xda\x89\xe2\x2a\xa8\xa3\x52" "\x9f\xf6\x44\x24\xc3\x2f\x74\x2a\x22\x46\x21\xf6\xc1\x24\xc6\xda\x72\x92" "\x88\xed\xac\xe5\x47\xa2\x62\xb7\x36\x63\x24\xaa\x91\xe6\xd5\x28\xf9\x0f" "\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x54\x50\xdb" "\xda\xe3\xee\x8e\xbd\x39\xe4\x1a\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\xf0\x3d\xbb\xfe\xff\xde\x13\xc9\x73\x9e\xa7\xec\x18\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x97\xd3\x77\x01\x00\x00\xff\xff\xc1\xb4\x39\x27", 1546); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x200005c0, /*flags=MS_SILENT|MS_RDONLY|MS_NODEV|0x200*/ 0x8205, /*opts=*/0x20000940, /*chdir=*/1, /*size=*/0x60a, /*img=*/0x20001c40); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; use_temporary_dir(); loop(); return 0; }