// https://syzkaller.appspot.com/bug?id=8e0acbfb5bd9bba1f7b845d711bdca16f3b79ceb // 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"); } 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)) { } memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000080, "./bus\000", 6); memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\x6c\x1c\xdb\x1b\x42\xea" "\xa6\x49\x1b\x50\xa5\x5a\x8d\x54\x10\x16\x89\x1d\xcb\x05\x73\x21\x20\x40" "\x3e\x54\xa8\x2a\x07\xce\x56\xe2\x34\x56\x36\x69\xb1\x5d\xe4\x56\x88\x9a" "\xd7\x5e\x7b\xe8\x1f\x50\x0e\xbe\x71\x42\xe2\x1e\xa9\x5c\xb8\xc0\xad\x57" "\x1f\x2b\x21\x71\xe9\x05\x73\x5a\x34\xb3\xb3\x7e\x5d\x27\xde\x24\xdd\x75" "\xca\xe7\x13\x8d\x9f\x67\xe6\x79\xe6\x99\xdf\xf3\x9b\x99\x1d\xef\x5a\xd1" "\x06\xf8\xbf\xb5\x30\x95\x91\xfb\x29\xb2\x30\xf5\xda\x7a\xb9\xbe\xb5\x39" "\xdb\xda\xda\x9c\xbd\xdb\xad\x27\x19\x4b\xb2\x91\x8c\x24\x69\x24\x29\xfe" "\xd3\x6e\xb7\x3f\x49\xae\x27\xc5\xce\x30\xc5\x81\xf2\x90\x8f\x96\xe7\xdf" "\xf8\xf4\xf3\xad\xcf\x3a\x6b\x23\xf5\x52\xf5\x1f\x7b\xfc\x59\x6c\xd4\x4b" "\x26\x93\x9c\xaa\xcb\x27\x35\xde\x8d\xc7\x1e\xaf\xd8\xc9\xcc\xf5\x24\x97" "\xeb\x12\x86\xee\x74\x92\xf6\x3e\xbf\xf8\xfb\xd9\x4e\xcb\xe8\xbe\x8e\xcd" "\x5e\x7b\x8f\x0f\x26\x48\xe0\x0b\x55\x74\x9e\x9b\x87\x4c\x24\x67\xea\x1b" "\xbd\x7a\x4e\x6f\x74\x36\x37\x06\x1b\xdd\x93\xb7\x31\xec\x00\x00\x00\x00" "\x60\x00\x9e\xd9\xce\x76\xd6\x8b\x73\xc3\x8e\x03\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x9e\x16\x1b\xbb\xdf\xff\x5f\xd4\x4b\xa3\x5b\x9f\x4c\xd1\xfd" "\xfe\xff\xd1\x7a\x5b\xea\xfa\xc9\xf2\x52\x7f\xdd\xef\x7f\x51\x71\x00\x00" "\x00\x00\x00\x00\x00\xc0\x00\xbd\xb4\x9d\xed\xac\xe7\x5c\x77\xbd\x5d\x54" "\x7f\xf3\x7f\xb9\x5a\xb9\x50\xfd\xfc\x4a\xde\xc9\x6a\x96\xb2\x92\x2b\x59" "\xcf\x62\xd6\xb2\x96\x95\xcc\x24\x99\xd8\x33\xd0\xe8\xfa\xe2\xda\xda\xca" "\xcc\x31\xf6\xbc\xd6\x73\xcf\x6b\x0f\x09\x74\xac\x2e\x9b\x4f\x66\xde\x00" "\x00\x00\x00\x00\x00\x00\xf0\x25\xf3\xdb\x2c\xec\xfe\xfd\x1f\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x4e\x82\x22\x39\xd5\x29\xaa\xe5\x42\xb7" "\x3e\x91\xc6\x48\x92\xf1\x24\xa3\x65\xbf\x8d\xe4\x9f\xdd\xfa\xd3\xec\xfe" "\xb0\x03\x00\x00\x00\x80\x47\x55\x54\xef\xcf\x4b\xcd\x87\x75\x7d\x66\x3b" "\xdb\x59\xcf\xb9\xee\x7a\xbb\xa8\xde\xf3\x3f\x5f\x8d\x32\x9e\x77\x72\x2f" "\x6b\x59\xce\x5a\x5a\x59\xca\xcd\xea\xb3\x80\xce\xbb\xfe\xc6\xd6\xe6\x6c" "\x6b\x6b\x73\xf6\x6e\xb9\x1c\x1e\xf7\x07\xff\xee\x2b\xe2\x6a\xc4\x74\x3e" "\x7b\xe8\x7d\xe4\x4b\x55\x8f\x66\x6e\x65\xb9\xda\x72\x25\x37\xf2\x56\x5a" "\xb9\x99\x46\xb5\x67\xe9\x52\x1d\x4f\x77\xd4\x03\x71\xfd\xa6\x8c\xa9\xf8" "\x7e\xed\x98\x91\xdd\xac\xcb\x72\xe6\x1f\xd6\xe5\x21\xef\xf7\x35\xd9\xa3" "\xf4\xf9\x61\xca\x44\x95\x91\xd3\x3b\x19\x99\xae\x63\x2b\xb3\xf1\x6c\xf7" "\xcc\xf4\x3e\x43\x7d\x9e\x9d\x83\x47\x9a\x49\x63\x27\xd8\x0b\x07\x8e\x74" "\x60\x12\x8f\x94\xf3\x33\x75\x59\xce\xe7\x8f\x47\xe5\x7c\x28\xf6\x65\x62" "\x3c\xd5\x5a\xf7\xea\x7b\xfe\xc1\x39\x4f\xbe\xf1\xd7\x3f\xff\xfc\x76\xeb" "\xde\x9d\xdb\xb7\x56\xa7\x4e\xce\x94\x8e\xe7\x54\x5d\xb6\xab\x9f\xcd\xc3" "\xd7\xc4\xec\x9e\x4c\xbc\xf0\x65\xce\xc4\x21\xd3\x55\x26\x2e\xee\xac\x2f" "\xe4\x27\xf9\x59\xa6\x32\x99\xd7\xb3\x92\xe5\xfc\x32\x8b\x59\xcb\x52\x26" "\xf3\xa3\xaa\xb6\x58\x5f\xcf\xc5\x9e\x5b\xfe\x88\x4c\x5d\xdf\xb7\xf6\xfa" "\xc3\x22\x19\xad\xaf\xd0\xce\xc9\xea\x2f\xa6\x97\xab\x7d\xcf\x65\x39\x3f" "\xcd\x5b\xb9\x99\xa5\xbc\x5a\xfd\xbb\x96\x99\x7c\x27\x73\x99\xcb\xfc\x9e" "\x33\x7c\xf1\xc1\x67\xb8\xba\xeb\x1b\x47\xdc\xf5\xed\xaf\xf6\x0c\xfe\xf2" "\x37\xeb\x4a\xf9\xcc\xfa\xe0\x38\xcf\xae\x81\x29\xf3\xfa\x6c\x37\xaf\x45" "\xf6\xbd\xe6\x4e\x54\x6d\x7b\xb7\xec\x66\xe9\xfc\x31\xb2\xd4\xe7\x6b\xe3" "\xc8\xd7\xeb\x7b\xb0\x3c\xc6\xef\xea\xf2\x64\x38\x98\x89\x99\x3d\x99\x78" "\xee\xc1\x99\xf8\x53\x35\xa5\xd5\xd6\xbd\x3b\x2b\xb7\x17\xdf\x3e\xde\xe1" "\xce\x7f\x58\x57\xca\xfb\xe8\x0f\x27\xea\x29\x51\x5e\x2f\xe7\xcb\x93\x55" "\xad\xed\xbf\x3a\xca\xb6\xe7\x7a\xb6\xcd\x54\x6d\x17\x76\xda\x1a\x87\xda" "\x2e\xee\xb4\x75\xee\xd4\x8d\x23\xef\xd4\xd1\xfa\x77\xb8\xc3\x23\x5d\xab" "\xda\x5e\xe8\xd9\x36\x5b\xb5\x5d\xda\xd3\xd6\xeb\xf7\x2d\x00\x4e\xbc\x33" "\xdf\x3a\x33\xda\xfc\x57\xf3\x1f\xcd\x8f\x9b\xbf\x6f\xde\x6e\xbe\x36\xfe" "\xc3\xb1\xef\x8e\xbd\x38\x9a\xd3\x7f\x3b\xfd\xbd\x91\xe9\x53\xaf\x34\x5e" "\x2c\xfe\x92\x8f\xf3\xeb\xdd\xf7\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xa3\x5b\x7d" "\xf7\xbd\x3b\x8b\xad\xd6\xd2\xca\xbe\xca\x46\xab\xdd\x6e\xbf\xdf\xb3\xe9" "\xe9\xae\x74\xbf\xce\x6c\x80\x07\xfd\xda\xd9\xe4\xa1\x9d\xcf\xee\x6e\xf9" "\xe0\x95\x4e\x88\x03\xce\x4f\xbb\xfe\x1a\xa5\xbe\xf6\x2a\x8a\xe3\x76\xfe" "\x6f\xbb\xdd\xae\xb7\x14\x27\xe2\x4a\x78\x60\xa5\x5d\x3b\x29\xf1\x0c\xa3" "\x32\xb4\x97\x24\x60\x40\xae\xae\xdd\x7d\xfb\xea\xea\xbb\xef\x7d\x7b\xf9" "\xee\xe2\x9b\x4b\x6f\x2e\xdd\x9b\x9f\x9b\x9b\x9f\x9e\x9f\x7b\x75\xf6\xea" "\xad\xe5\xd6\xd2\x74\xe7\xe7\xc1\xbd\xc6\x87\x13\x2c\xf0\x44\xed\x3e\xf4" "\x87\x1d\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x5c\x83\xf8\xef\x04" "\xc3\x9e\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\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xf0\x74\x5b\x98\xca\xc8\xfd\x14\x99\x99\xbe\x32" "\x5d\xae\x6f\x6d\xce\xb6\xca\xa5\x5b\xdf\xed\x39\x92\xa4\x91\xa4\xf8\x55" "\x52\x7c\x92\x5c\x4f\x67\xc9\xc4\x9e\xe1\x8a\xa3\x8e\xf3\xd1\xf2\xfc\x1b" "\x9f\x7e\xbe\xf5\xd9\xee\x58\x23\xdd\xfe\x8d\x1e\xfb\xfd\xb8\xbf\x59\x6c" "\xd4\x4b\x26\x93\x9c\xaa\xcb\xc7\xb0\x6f\xbc\x1b\xdd\x60\x1f\x59\xb1\x33" "\xc3\x32\x61\x97\xbb\x89\x83\x61\xfb\x5f\x00\x00\x00\xff\xff\x2f\xcb\x09" "\xc0", 1639); syz_mount_image( /*fs=*/0x20000600, /*dir=*/0x20000080, /*flags=MS_LAZYTIME|MS_POSIXACL|MS_SYNCHRONOUS|MS_NOATIME*/ 0x2010410, /*opts=*/0x20000000, /*chdir=*/3, /*size=*/0x667, /*img=*/0x20000cc0); memcpy((void*)0x20000040, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x20000040ul, /*flags=O_TRUNC|O_NOCTTY|O_NOATIME|O_DIRECT|O_CREAT|0x2002*/ 0x46342ul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x2008002ul); memcpy((void*)0x20000000, "hfsplus\000", 8); memcpy((void*)0x20000100, "./bus\000", 6); memcpy((void*)0x20000900, "nls=ascii,gid=", 14); sprintf((char*)0x2000090e, "0x%016llx", (long long)0); memcpy( (void*)0x20000920, "\x2c\x70\x61\x72\x74\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x62\x62\x2c\x6e\x6f\x62\x61\x72\x72\x69\x65\x72\x2c\x6e" "\x6f\x62\x61\x72\x72\x69\x65\x72\x2c\x63\x72\x65\x61\x74\x6f\x72\x3d\x7f" "\xcf\xb5\xb7\x2c\x70\x61\x72\x74\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x31\x30\x31\x2c\x67\x69\x64\x3d", 86); sprintf((char*)0x20000976, "0x%016llx", (long long)0); memcpy((void*)0x20000988, "\x2c\x75\x6d\x61\x73\x6b\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x2c\x64\x65\x63" "\x6f\x6d\x70\x6f\x73\x65\x2c\x66\x6f\x72\x63\x65\x2c\x6e\x6f\x64\x65" "\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x62\x61\x72\x72\x69\x65\x72\x2c\x6e" "\x6f\x64\x65\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x74\x79\x70\x65\x3d\xb0" "\x29\xe1\xc0\x2c\x75\x69\x64\x3d", 93); *(uint16_t*)0x200009e5 = -1; memcpy((void*)0x200009e7, "\x2c\x74\x79\x70\x65\x3d\xd2\x10\x0d\x1b\x2c\x75\x29\x64\x3d\xd4\xf8" "\x1c\x66\x21\x0b\xbc\xbf\x82\x44\x0a\x10\x4a\xb9\x56\xf2\xba\x5e\x36" "\xe4\x1c\xcb\x1b\x04\x0f\xa8\xb8\x29\xb0\xb8\x70\x78\xde\x65\x4c\x66" "\xac\x22\xae\xba\xa2\xc6\x53\xef\x12\x7e\x38\xe0\xaa\x22\x29\xf9\xcf" "\x6a\x85\x03\xe4\xea\xd3\xbb\x30\xeb\x04\xe1\x95\x23\x22\xfc\xbe\x93" "\x2b\xfa\xf6\x00\x00\x00\x00\x8a\xd9\x0e\x1e\x30\x45\xb0\x7a\x4b\x35" "\x98\x1d\x64\x4e\xfc\xe3\xf3\x3d\xb9\x28\x04\xd5\x26\x79\x00\x22\xb7" "\x0a\xb5\x51\x79\x6c\x99\xc3\x9c\x94\x10\x54\xf8\x05\xde\x46\x3f\x77" "\xb9\x51\x3a\xe9\xce\x34\x9a\xb4\x17\x83\x70\x85\xfe\xbc\x63\x57\x2b" "\x4e\x55\x64\xa4\x0f\x8f\x31\xf0\x20\x79\x16\xcb\x53\xfb\xb8\xb0\x6b" "\xbc\xd0\x80\x83\x56\xbc\xc1\xa9\x66\xa7\x8f\x8d\xa7\x1b\x0e\xa8\x20" "\x44\xf2\x4a\x3f\x53\x6c\x6d\x7e\x79\xbd\x63\x41\x91\xa8\x01\xca\x30" "\xce\x48\x94\xfa\x19\x53\x7b\x3f\x94\xf4\xa6\xe4\x40\x32\xf7\xfb\x91", 221); sprintf((char*)0x20000ac4, "%020llu", (long long)0); memcpy((void*)0x20000ad8, "\x06\x00\x00\xbd\x00", 5); *(uint32_t*)0x20000add = 0; *(uint8_t*)0x20000ae1 = 0; memcpy( (void*)0x20000dc0, "\x78\x9c\xec\xdd\x4b\x68\x1c\xe7\x1d\x00\xf0\xff\xac\x76\x57\xbb\x2a\x38" "\x72\xe2\x47\x5a\x02\x59\x62\x48\x4b\x45\x6d\xc9\x42\x69\xd5\x4b\xdd\x52" "\x8a\x0e\xa1\x84\xf4\xd0\xf3\x62\xcb\xb1\xf0\x5a\x0e\x92\x52\x64\x53\x1a" "\xa5\x8f\x7b\x0f\x39\x94\x9e\xd2\x83\x6e\xa1\x87\x92\xde\x0d\xed\xb9\x21" "\xa5\xe4\xaa\x63\xa0\x90\x4b\x4e\xba\xa9\xcc\xec\xcc\x3e\xa4\xd5\xee\xca" "\x92\x25\xd5\xf9\xfd\xc4\xec\x7c\x33\xdf\x63\xbe\xf9\xcf\x6b\x67\x07\x31" "\x01\x7c\x6d\x2d\xcd\x44\xf9\x49\x24\xb1\x34\xf3\xe6\x66\x3a\xbd\xb3\x3d" "\xdf\x9a\xd8\x9e\x9f\xcc\xb3\x5b\x11\x51\x8d\x88\x52\x44\x39\x1d\xa5\xe9" "\xd5\xc8\x72\x6f\xe5\x43\x7c\x33\x22\x92\xbc\x7c\xd2\x69\xf8\xdf\xfd\xcb" "\xf9\x70\x65\xf1\xed\xcf\xbf\xda\xf9\xa2\x3d\x55\xce\x87\xac\x7c\xd2\x57" "\x6f\xb4\xea\xc1\x59\x5b\xf9\x10\x8d\x88\x98\xc8\xc7\x07\x55\x0e\x69\xf1" "\x93\xfd\x8b\xef\x6b\xef\xf6\xa1\xed\x8d\xab\xbb\x86\x69\xc0\xae\x15\x81" "\x8b\x3f\x1f\xab\x55\x38\xb6\xbd\x03\xb6\x3a\x79\x1f\xff\x27\xfb\x1c\x56" "\xfd\x28\xc7\x2d\x70\x4e\x25\xed\xeb\xe6\x01\xd3\x11\x53\x11\x51\x8b\x68" "\x5f\xf5\xf3\xb3\x43\xe9\x74\x7b\x77\xf2\xb6\xce\xba\x03\x00\x00\x00\x70" "\x54\xf5\xa3\x57\x79\x61\x37\x76\x63\x33\x2e\x3c\x8b\xee\x00\x00\x00\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\xf3\x2a\x7f\xff\x7f\x92\x0f\xa5\x22\xdd\x88\xa4" "\x78\xff\x7f\x35\x9f\x17\x79\xfa\x1c\x1a\xfd\x22\xc4\xcf\x26\xdb\xe3\x27" "\xcf\xbe\x33\x00\x00\x00\x00\x00\x00\x00\xf0\xcc\xbd\xba\x1b\xbb\xb1\x19" "\x17\x8a\xe9\xbd\x24\x7b\xe6\xff\x5a\xcf\x33\xfe\x6f\xc4\x7b\xb1\x1e\xcb" "\xb1\x16\xd7\x63\x33\x9a\xb1\x11\x1b\xb1\x16\x73\x11\x31\xdd\xd3\x50\x75" "\xb3\xb9\xb1\xb1\x36\x97\xd5\x8c\xb8\x34\xa4\xe6\xcd\xf8\x74\x40\xcd\x9b" "\x87\xf7\xf1\xd6\x09\xaf\x33\x00\x00\x00\x00\x00\x00\x00\x9c\x73\xb5\x11" "\xf9\xf7\x2b\xd9\xe8\x4f\xbd\xff\xb7\xff\xdb\x58\xea\x3e\xff\x07\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\xf3\x20\x89\x98\x68\x8f\xb2\xe1\x52" "\x91\x9e\x8e\x52\x39\x22\x6a\x45\xb9\xad\x88\x4f\x23\xa2\x7a\xb6\xbd\x3d" "\x92\x64\xd0\xcc\x27\xa7\xdf\x0f\x00\x00\x00\x38\x96\x5a\xff\x64\x52\x1b" "\xa3\xce\x0b\xef\xc7\x6e\x6c\xc6\x85\x62\x7a\x2f\xc9\xee\xf9\xaf\x64\xf7" "\xcb\xb5\x78\x2f\x56\x63\x23\x56\x62\x23\x5a\xb1\x1c\x77\xf2\x7b\xe8\xf4" "\xae\xbf\xb4\xb3\x3d\xdf\xda\xd9\x9e\x7f\x90\x0e\x07\xdb\xfd\xf1\x97\x47" "\xea\x7a\xd6\x62\xb4\x7f\x7b\x18\xbc\xe4\x97\xb3\x12\xf5\xb8\x1b\x2b\xd9" "\x9c\xeb\x71\x3b\x92\xd8\xcb\x94\xf2\x56\x5e\xde\xd9\x9e\x4f\xc7\x0f\x06" "\xf7\xeb\x83\xb4\x4f\xc9\x8f\x72\x43\x7a\x33\xd1\x93\xbe\x93\x7e\x5c\xfd" "\x24\x4b\xff\xb1\xff\x57\x84\xf2\x91\x56\xf1\x29\x95\x0e\xcd\x99\xce\x72" "\x2b\x9d\x88\xcc\xe6\x7d\x4b\x6b\x5c\x2c\x22\x30\x38\x12\x7d\x5b\x67\xd0" "\x6e\x52\x1e\xba\xa4\xb9\x28\x75\x7e\xf9\xb9\x34\x7c\x49\x83\x63\xfe\xc1" "\xf0\x75\x9e\xda\x57\x6a\xe0\x2f\x37\x67\x62\x7f\x24\x6e\x46\xa9\xb3\x85" "\xae\x0c\x8f\x44\xc4\xb7\xff\xfe\xf1\x2f\xef\xb5\x56\xef\xdf\xbb\xbb\x3e" "\x73\x7e\x56\x69\xa0\xf7\x47\x96\xd8\x1f\x89\xf9\x9e\x48\x5c\x7d\x8e\x22" "\x31\xda\x6c\x16\x89\xcb\x9d\xe9\xa5\xf8\x59\xfc\x22\x66\xe2\xcb\xc9\xb7" "\x62\x2d\x56\xe2\x57\xd1\x8c\x8d\x58\x6e\x14\xf9\xcd\x7c\x7f\x4e\x3f\xa7" "\x87\x47\xea\xb3\xa9\xde\xa9\xb7\x46\xf5\x24\x3d\x26\x1b\x9d\xf3\xd7\xa0" "\x3e\x35\xa2\xaf\x4f\xd1\x88\x9f\x66\xa9\x66\xbc\x96\x6d\xd3\x0b\xb1\x12" "\x49\x3c\x8c\x88\xe5\x78\x23\xfb\xbb\x19\x73\x9d\xb3\x41\x77\x0b\x5f\x1e" "\xe3\xa8\x2f\x8d\x71\xa6\xed\x71\xed\x3b\xd9\xa8\x13\xa6\xa8\x1f\x5e\xf6" "\xaf\xe3\x35\x79\x52\xd2\xb8\x5e\xec\x89\x6b\xef\x39\x77\x3a\xcb\xeb\x9d" "\xd3\x8d\xd2\x8b\x03\xa3\x54\x5c\xeb\xc6\xbf\x1e\xf5\x28\x7f\x2b\x4f\xa4" "\x2d\xfc\x6e\xe8\xf5\xe1\xb4\xed\x8f\xc4\x5c\x4f\x24\x5e\x3a\x6c\x7f\x69" "\x87\xf4\x2f\xd9\xd5\x64\xbd\xb5\x7a\x7f\xed\x5e\xf3\xdd\x31\x97\xf7\x7a" "\x3e\x4e\x8f\xa3\x3f\x9c\xab\xab\x44\xba\x36\x2f\x46\x2d\x5f\xb9\x8b\xd9" "\x67\x92\x1d\x53\xb3\x59\xde\x4b\x9d\x2b\x6c\x7f\xbc\xaa\xf9\x13\x97\xb6" "\xd2\x81\xbc\xcb\x9d\x7a\xed\x23\xf5\xe7\xf1\x30\xee\xf4\x1d\xa9\xdf\x8f" "\x85\x58\x88\xc5\xac\xf4\x95\xac\x74\xe5\xc0\x15\x2b\xcd\xbb\xda\x69\xa9" "\xff\x1c\x9e\xe6\xa5\xdf\xb4\xca\x9d\x07\x3b\xbd\xdf\xb7\x1e\x46\xab\xfd" "\x7d\x08\x80\xf3\x6d\xea\xbb\x53\xd5\xfa\x7f\xeb\xff\xaa\x7f\x54\xff\x7d" "\xfd\x5e\xfd\xcd\xda\x4f\x26\x7f\x30\xf9\x4a\x35\x2a\xff\xac\xfc\xb0\x3c" "\x3b\xf1\x7a\xe9\x95\xe4\x6f\xf1\x51\xfc\xa6\x7b\xff\x0f\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x3c\xbd\xf5\x47\x8f\xef\x37\x5b\xad\xe5\xb5\xc1\x89\xd2\xe0\xac\x64" "\x78\xad\x66\x6b\xaf\x78\x91\xd8\x90\x32\x7d\x89\x24\x7f\x55\xce\x18\x85" "\x93\xf5\x47\x8f\xf7\x46\x36\x38\x3c\x31\x99\x77\xef\x29\xab\x9f\x64\xa2" "\x78\x0d\xdf\xe8\xc2\x8d\xa1\xed\x94\x8f\xd5\x8d\x64\x6b\xff\xf6\xaa\x8d" "\xde\x16\xc5\x5b\x9e\xc6\x58\x44\x72\x20\xe0\x69\xe5\xa7\x0e\x5d\xb1\xe4" "\xee\x9c\xca\x39\xd8\x94\xfb\x13\x8d\x93\x6b\xb0\xd8\x61\x7b\xb2\x8e\xb2" "\xf7\x56\xfa\x0e\xfa\xbe\xac\x89\x88\x18\x54\x6b\xc4\x89\x63\xe2\x78\xe7" "\x1d\xe0\xec\xdd\xd8\x78\xf0\xee\x8d\xf5\x47\x8f\xbf\xb7\xf2\xa0\xf9\xce" "\xf2\x3b\xcb\xab\x95\x85\x85\xc5\xd9\xc5\x85\x37\xe6\x6f\xdc\x5d\x69\x2d" "\xcf\xb6\x3f\x7b\x2a\x9c\xca\xcb\x6f\x81\xd3\xd0\xfb\x75\xa2\xa3\x1a\x11" "\xaf\x8e\xae\x3b\xe4\x45\xad\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x33" "\x74\x1a\xff\x0b\x71\xd6\xeb\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x7f\x5b\x9a\x89\xf2\x93" "\x48\x62\x6e\xf6\xfa\x6c\x3a\xbd\xb3\x3d\xdf\x4a\x87\x22\xdd\x2d\x59\x8e" "\x88\x52\x44\x24\xbf\x8e\x48\xfe\x11\x71\x2b\xda\x43\x4c\xf7\x34\x97\x1c" "\xb6\x9c\x0f\x57\x16\xdf\xfe\xfc\xab\x9d\x2f\xba\x6d\x95\x8b\xf2\xa5\x88" "\xad\x43\xeb\x8d\x67\x2b\x1f\xa2\x11\x11\x13\xf9\xf8\xa4\xda\xbb\x3d\xba" "\xbd\x6a\x37\x39\x39\x20\x3b\xe9\x44\x26\x0d\xd8\xb5\x22\x70\x70\xd6\xfe" "\x17\x00\x00\xff\xff\x9c\xeb\xea\x02", 1773); syz_mount_image( /*fs=*/0x20000000, /*dir=*/0x20000100, /*flags=MS_I_VERSION|MS_STRICTATIME|MS_NOEXEC|MS_NODEV*/ 0x180000c, /*opts=*/0x20000900, /*chdir=*/1, /*size=*/0x6ed, /*img=*/0x20000dc0); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; use_temporary_dir(); loop(); return 0; }