// https://syzkaller.appspot.com/bug?id=6ac1b89ac13bded4b3756643443e319ecaec817c // 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_ftruncate #define __NR_ftruncate 46 #endif #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_pwritev2 #define __NR_pwritev2 287 #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[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000180, "hfsplus\000", 8); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x200000c0, "barrier", 7); *(uint8_t*)0x200000c7 = 0x2c; memcpy((void*)0x200000c8, "uid", 3); *(uint8_t*)0x200000cb = 0x3d; sprintf((char*)0x200000cc, "0x%016llx", (long long)0); *(uint8_t*)0x200000de = 0x2c; memcpy((void*)0x200000df, "nodecompose", 11); *(uint8_t*)0x200000ea = 0x2c; memcpy((void*)0x200000eb, "nodecompose", 11); *(uint8_t*)0x200000f6 = 0x2c; memcpy((void*)0x200000f7, "part", 4); *(uint8_t*)0x200000fb = 0x3d; sprintf((char*)0x200000fc, "0x%016llx", (long long)0x3ad4); *(uint8_t*)0x2000010e = 0x2c; *(uint8_t*)0x2000010f = 0; memcpy( (void*)0x20000280, "\x78\x9c\xec\xdd\x4d\x68\x1c\xf7\xdd\x07\xf0\xef\xac\x56\x6f\x7e\xc0\x91" "\x13\xbf\x3d\x25\x10\x11\x43\x5a\x6a\x6a\xcb\x16\x4e\xeb\x5e\xe2\x96\x52" "\x7c\x08\x25\xa4\xd0\x9e\x85\x2d\xc7\xc2\x6b\x3b\xc8\x4a\x51\xd2\xd2\x28" "\x7d\xb9\xf7\x90\x53\x4f\xe9\x41\xb7\xd0\x43\x49\xef\x86\xf4\xdc\x50\x28" "\xb9\xea\x18\x08\xe4\x92\x93\x6f\x2e\x33\x3b\xbb\x5a\x59\xfb\x62\x59\xb2" "\x24\x27\x9f\x8f\x99\x99\xff\xcc\xff\x65\x7e\xfb\x9b\x9d\x19\xed\x2e\x66" "\x02\x7c\x6b\x5d\x3d\x9b\xe6\xfd\x14\xb9\x7a\xf6\xf5\xd5\x72\x7d\x63\x7d" "\xbe\xb5\xb1\x3e\x3f\x59\x57\xb7\x92\x4c\x24\x69\x24\xcd\xf6\x22\xc5\x9d" "\xa4\xf8\x34\xb9\x92\xf6\x94\xff\x2f\x37\xd6\xed\x8b\x41\xfb\xf9\x70\xe9" "\xf2\x9b\x9f\x7f\xbd\xf1\x45\x7b\xad\x59\x4f\x55\xfb\x5f\xed\x30\xe4\x89" "\xed\x9b\xd6\xea\x29\xb3\x49\xc6\xea\xe5\x76\xe3\x03\x46\xfc\xe4\xd1\xb0" "\xb7\x8c\x77\x6d\xe0\x78\x8f\xab\xe8\x66\xa6\x4c\xd8\x99\x4e\xe2\xf2\xd7" "\x5d\x8d\x0a\xbb\xf6\x70\x9b\xb5\x6e\xdd\xc7\xff\x1d\xd9\x7d\xe0\xf9\x0e" "\x3c\x3b\x8a\xf6\x7d\x73\x9b\x99\xe4\x48\x92\xa9\x24\xd5\xdf\x04\xf5\xd5" "\xa1\xb1\xbf\xd1\xed\xbd\xb5\x83\x0e\x00\x00\x00\x00\x76\x6a\x7a\xe7\x5d" "\x9e\x7b\x90\x07\x59\xcd\xd1\xa7\x11\x0e\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x7c\x53\xd5\xcf\xff\x2f\xea\xa9\xd1\x29\xcf\xa6\xe8\x3c\xff\x7f\xa2" "\xde\x96\xba\xfc\x4c\xfa\xcf\x64\x7b\x79\xff\xa0\x03\x01\x00\x00\x00\x00" "\x00\x00\x80\x3d\xf0\xd2\x83\x3c\xc8\x6a\x8e\x76\xd6\x1f\x16\xd5\x6f\xfe" "\x2f\xf7\xfc\xc6\xff\x7f\x79\x27\xf7\xb2\x98\xe5\x9c\xcb\x6a\x16\xb2\x92" "\x95\x2c\xe7\x42\x92\x99\x9e\x81\x26\x56\x17\x56\x56\x96\x2f\x54\x3d\x93" "\xe3\x43\x7a\x5e\xcc\x67\x7d\x7a\x5e\x1c\x1c\xe3\x95\x3d\x7e\xcd\x00\x00" "\x00\x00\x00\x00\x00\x70\xc8\x4d\x8d\xa8\xbf\x35\xbe\x7d\xdb\x1f\x72\x75" "\xf3\xf7\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x0c\x8a\x64" "\xac\xbd\xa8\xa6\xe3\x9d\xf2\x4c\x1a\xcd\x24\x53\x49\x26\xca\x76\x6b\xc9" "\x67\x9d\xf2\x33\xa2\xe8\xb7\xf1\xfe\xfe\xc7\x01\x00\x00\x00\xbb\x32\x35" "\x62\xbd\x9f\xe7\xde\xcf\x83\xac\xe6\x68\x67\xfd\x61\x51\x7d\xe6\x3f\x59" "\x7d\x5e\x9e\xca\x3b\xb9\x93\x95\x2c\x65\x25\xad\x2c\xe6\x7a\xfd\x19\xba" "\xfc\xd4\xdf\xd8\x58\x9f\x6f\x6d\xac\xcf\xdf\x2e\xa7\xed\xe3\xfe\xe4\xab" "\x1d\x85\x5e\x8d\x98\xf6\x77\x0f\xfd\xf7\x7c\xba\x6a\x31\x9d\x1b\x59\xaa" "\xb6\x9c\xcb\xb5\xdc\x4d\x2b\xd7\xd3\xa8\x7a\x96\x4e\x6f\xac\xcf\x97\xcb" "\xdb\xfd\xe3\xfa\xa0\x8c\xa9\x78\xad\x34\x3c\x9a\xb1\x9e\xf2\xf5\x72\x76" "\xea\x93\xaa\xfc\x97\xad\xdf\x22\x34\x77\xf4\x12\x77\x6c\xad\x9a\x37\x06" "\xd6\xcf\x54\xb5\xe3\xdd\x8c\xcc\xd5\xb1\x95\x3d\x8e\x75\x32\xd0\x3f\x13" "\x23\x8f\x4e\x73\xe8\x9e\x2e\xa4\xd1\xfd\xe6\xe7\xf8\xf0\x3d\xf5\xe4\xbc" "\x27\xed\x1f\x0c\xdf\xfb\x91\x47\x5a\xf5\xfd\xe6\xe6\x40\x3c\x9a\x89\x8b" "\x3d\xef\xbe\x93\xc3\x33\x91\x7c\xf7\x9f\x1f\xff\xfa\x66\xeb\xce\xad\x9b" "\x37\xee\x9d\x3d\x3c\x2f\xa9\xaf\xf7\x47\xb6\x78\x34\x13\xf3\x3d\x99\x38" "\xf5\x0d\xca\xc4\x68\x73\x55\x26\x4e\x74\xd7\xaf\xe6\xe7\xf9\x65\xce\xe6" "\xab\xc9\x37\xb2\x9c\xa5\xfc\x26\x0b\x59\xc9\xe2\x6c\xa7\x7e\xa1\x7e\x3f" "\x97\xf3\x99\x51\x99\xea\xf5\xc6\xa8\x48\x26\xea\xe3\xd2\xbe\x7e\xf5\x8b" "\x69\x36\x5b\x62\xca\x6c\x7e\x56\x95\x16\xf2\x72\xd5\xf7\x68\x96\x52\xe4" "\x6e\x92\xc5\xbc\x5a\xfd\xbb\x98\x0b\xdd\xab\xc1\xe6\x11\x3e\xb1\x19\x73" "\xd1\xe7\x04\xad\xce\xfa\xc6\xa3\x67\xfd\x70\x67\xbe\x57\x2d\xda\x69\x9a" "\x4c\x32\xfd\x78\xfd\xf6\x41\x99\xd7\x63\x3d\x79\xed\xbd\xe6\x96\xf9\xfe" "\x7b\xd2\xb3\x65\x33\x4b\xcf\xf7\x3d\xba\x9d\x7b\xdd\x80\x6b\xe3\x70\xcd" "\xef\xd4\x85\x72\x84\x3f\x0e\xbd\x3f\xec\xb7\x99\x2a\x4b\x5b\xef\x12\x9d" "\xe8\x5e\x18\xf4\x3e\x6f\xa7\xf4\x6f\x0f\xcb\xf9\xbd\xd6\x9d\x5b\xcb\x37" "\x17\xde\x7e\xcc\xfd\xbd\x52\x2f\xcb\x37\xdf\x9f\x0f\xd5\x5d\xa2\x3c\xc2" "\xcf\x67\xaa\x7e\x71\xc7\xaa\x79\x51\x9d\x53\x73\x55\xdd\x0b\xdd\x3b\xec" "\xd6\x7c\x4d\xd4\xbf\xb8\xb4\x35\xb6\xd5\x9d\xe8\xf6\x6b\x9f\xa9\xbf\xc8" "\xdd\x5c\xdf\x72\xa6\xfe\x30\x97\x72\x29\x97\xab\xd6\x27\xab\xd6\xe3\x9d" "\x91\xaa\x8e\xe5\x1d\xab\xac\x3b\xd5\x1d\x69\xeb\x35\xbc\xac\x3b\xdd\x53" "\xd7\xef\xef\x2d\x00\x0e\xbd\x23\xdf\x3f\x32\x31\xfd\xe5\xf4\xbf\xa7\x3f" "\x9a\xfe\xd3\xf4\xcd\xe9\xd7\xa7\x7e\x3a\xf9\xa3\xc9\x17\x27\x32\xfe\xaf" "\xf1\x1f\x37\xe7\xc6\x5e\x69\xbc\x58\xfc\x23\x1f\xe5\xf7\x9b\x9f\xff\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x80\x27\x77\xef\xdd\xf7\x6e\x2d\xb4\x5a\x8b\xcb\xfd\x0b" "\x8d\xfe\x55\xc5\xf0\x5e\x0b\xad\x87\xf5\x83\xc4\x86\xb5\xd9\x52\xe8\x3c" "\x4d\xea\x31\x1a\x17\x8f\x35\xe0\xf0\xc2\x64\xfd\xf2\x77\x3b\xce\x1e\x14" "\x3a\x4f\x6b\x1c\xdd\x78\xf6\x29\x86\x51\xac\xd5\x07\x6c\x27\xbd\x3a\x4f" "\x79\x7a\xa2\x9d\x96\x9d\x9f\x38\xe6\xf6\x9e\x27\x73\x90\x07\x6e\x74\x61" "\x76\xef\x06\xec\xbc\x61\x77\x33\xce\x6b\xd3\xfd\x8e\xd7\x58\x92\x7e\xbd" "\x46\x5c\x38\xc6\xf6\xf0\x22\x04\x1c\x88\xf3\x2b\xb7\xdf\x3e\x7f\xef\xdd" "\xf7\x7e\xb0\x74\x7b\xe1\xad\xc5\xb7\x16\xef\x8c\x5f\xba\x74\x79\xee\xf2" "\xa5\x57\xe7\xcf\xdf\x58\x6a\x2d\xce\xb5\xe7\x3d\x1d\x9e\xf2\xc3\x6f\x81" "\xfd\xb3\x79\xd3\xef\xdd\xda\x48\x5e\x1a\xdd\xf7\xf0\x3c\xa8\x15\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xbe\x5d\xf6\xe3\xff\x42\x1c\xf4\x6b\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x6d\x57\xcf\xa6\x79\x3f\x45\x2e\xcc\x9d\x9b\x2b\xd7\x37\xd6" "\xe7\x5b\xe5\xd4\x29\x6f\xb6\x6c\x26\x69\x24\x29\x7e\x97\x14\x9f\x26\x57" "\xd2\x9e\x32\xd3\x33\x5c\x31\x68\x3f\x1f\x2e\x5d\x7e\xf3\xf3\xaf\x37\xbe" "\xd8\x1c\xab\xd9\x69\xdf\x48\xd6\x06\xf6\x1b\x61\x72\xb3\xb8\x56\xce\x66" "\x93\x8c\xd5\xcb\x1d\xf9\xf2\xb7\xbd\x6b\x6b\xbd\xe3\x5d\x1b\x3d\xde\x44" "\xbd\x1c\xdb\x12\x51\x57\xd1\xcd\x4c\x99\xb0\x33\x9d\xc4\xc1\x41\xfb\x5f" "\x00\x00\x00\xff\xff\x28\x8e\xea\x95", 1755); syz_mount_image( /*fs=*/0x20000180, /*dir=*/0x20000080, /*flags=MS_POSIXACL|MS_SILENT|MS_NODIRATIME|MS_NOATIME|0xc0*/ 0x18cc0, /*opts=*/0x200000c0, /*chdir=*/0x81, /*size=*/0x6db, /*img=*/0x20000280); memcpy((void*)0x20000000, "cpuacct.usage_all\000", 18); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[0] = res; syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/7ul); memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000180, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 251); memcpy( (void*)0x20000f80, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\x6c\x36\x4e\x36\x94\xd4" "\x4d\x93\x36\xa0\x4a\xb5\x1a\x09\x10\x16\x89\x5f\xe4\x82\xb9\x10\x10\x42" "\x3e\x54\xa8\x2a\x07\xce\x56\xe2\x34\x56\x36\x69\xb1\x5d\xe4\x56\x88\x9a" "\xf7\x6b\x0f\xfd\x03\xca\xc1\x37\x4e\x48\xdc\x23\x95\x0b\x17\xb8\xf5\xea" "\x63\x25\x24\x2e\xbd\x60\x4e\x8b\x66\x76\x76\xbd\xf1\x5b\xed\x36\xf1\xae" "\xdb\xcf\x27\x9a\x7d\x9e\x67\x9f\x99\x67\x7e\xcf\x6f\x66\x76\x76\xd7\x8a" "\x36\xc0\x97\xd6\xc2\x64\x9a\x0f\x53\x64\x61\xf2\x95\xf5\xb2\xbd\xb5\x39" "\xdb\xde\xda\x9c\xbd\xdf\xab\x27\x39\x97\x64\x23\x69\x26\x69\x24\x29\xfe" "\xdb\xe9\x74\x3e\x4c\x6e\x26\x45\x7f\x98\x62\x57\xb9\xc7\xfb\xcb\xf3\xaf" "\x7d\xf4\xc9\xd6\xc7\xdd\x56\xb3\x5e\xaa\xf5\x1b\x87\x6d\x77\x34\x1b\xf5" "\x92\x89\x24\x67\xea\xf2\x71\x8d\x77\xeb\x73\x8f\x57\xf4\x67\x78\x33\xc9" "\xb5\xba\x84\xa1\x3b\x9b\xa4\xf3\x88\x5f\xfc\xe3\xa9\x7e\xcf\x80\xd6\x7e" "\x5b\x9f\x3f\x91\x18\x81\x27\xab\xe8\xde\x37\xf7\x18\x4f\x2e\xd4\x17\x7a" "\xf9\x3e\xa0\x7b\x57\xec\xde\xb3\x4f\xb5\x8d\x61\x07\x00\x00\x00\x00\x27" "\xe0\xe9\xed\x6c\x67\xbd\xb8\x38\xec\x38\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xb4\xd8\xd8\xf9\xfd\xff\xa2\x5e\x1a\xbd\xfa\x44\x8a\xde\xef\xff" "\x8f\xd5\xcf\xa5\xae\x8f\x96\x17\x8f\xb7\xfa\xc3\x27\x15\x07\x00\x00\x00" "\x00\x00\x00\x00\x9c\xa0\x17\xb7\xb3\x9d\xf5\x5c\xec\xb5\x3b\x45\xf5\x37" "\xff\x97\xaa\xc6\xe5\xea\xf1\x2b\x79\x2b\xab\x59\xca\x4a\xae\x67\x3d\x8b" "\x59\xcb\x5a\x56\x32\x9d\x64\x7c\x60\xa0\xb1\xf5\xc5\xb5\xb5\x95\xe9\x23" "\x6c\x39\xb3\xef\x96\x33\x9f\x12\xe8\xb9\xba\x6c\x3d\x9e\x79\x03\x00\x00" "\x00\x00\x00\x00\xc0\x17\xcc\x6f\xb3\xb0\xf3\xf7\x7f\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x18\x05\x45\x72\xa6\x5b\x54\xcb\xe5\x5e\x7d\x3c" "\x8d\x66\x92\xf3\x49\xc6\xca\xf5\x36\x92\x7f\xf5\xea\xa7\xd9\xc3\x61\x07" "\x00\x00\x00\x00\x27\xe0\xe9\xed\x6c\x67\x3d\x17\x7b\xed\x4e\x51\x7d\xe6" "\x7f\xae\xfa\xdc\x7f\x3e\x6f\xe5\x41\xd6\xb2\x9c\xb5\xb4\xb3\x94\xdb\xd5" "\x77\x01\xdd\x4f\xfd\x8d\xad\xcd\xd9\xf6\xd6\xe6\xec\xfd\x72\xd9\x3b\xee" "\x0f\xff\x73\xac\x30\xaa\x11\xd3\xfd\xee\x61\xff\x3d\x5f\xad\xd6\x68\xe5" "\x4e\x96\xab\x67\xae\xe7\x56\xde\x48\x3b\xb7\xd3\xa8\xb6\x2c\x5d\xad\xe3" "\xe9\x8d\xba\x2b\xae\xdf\x94\x31\x15\x3f\xa8\x1d\x31\xb2\xdb\x75\x59\xce" "\xfc\xbd\xba\xdc\xe3\xdd\x63\x4d\xf6\x20\xc7\xfc\x32\x65\xbc\xca\xc8\xd9" "\x7e\x46\xa6\xea\xd8\xca\x6c\x3c\xd3\x3b\x32\xfb\x1f\xa1\x63\x1e\x9d\xdd" "\x7b\x9a\x4e\xa3\x1f\xec\xe5\x5d\x7b\xda\x35\x89\xcf\x94\xf3\x0b\x75\x59" "\xce\xe7\x8f\x07\xe5\x7c\x28\x76\x67\x62\x66\xe0\xec\x7b\xee\xf0\x9c\x27" "\xdf\xfc\xdb\x5f\x7e\x7e\xb7\xfd\xe0\xde\xdd\x3b\xab\x93\xa3\x33\xa5\xa3" "\x39\x53\x97\x9d\xea\xb1\xb5\x37\x13\xb3\x03\x99\x78\xfe\x8b\x9c\x89\x3d" "\xa6\xaa\x4c\x5c\xe9\xb7\x17\xf2\x93\xfc\x2c\x93\x99\xc8\xab\x59\xc9\x72" "\x7e\x99\xc5\xac\x65\x29\x13\xf9\x71\x55\x5b\xac\xcf\xe7\x62\xe0\x92\x3f" "\x20\x53\x37\x1f\x69\xbd\xfa\x69\x91\x8c\xd5\x67\x68\xf7\x60\x1d\x2f\xa6" "\x97\xaa\x6d\x2f\x66\x39\x3f\xcd\x1b\xb9\x9d\xa5\xbc\x5c\xfd\x9b\xc9\x74" "\xbe\x9b\xb9\xcc\x65\x7e\xe0\x08\x5f\x39\xfc\x08\x57\x57\x7d\xe3\x80\xab" "\xbe\xf3\xd5\x7d\x83\xbf\xf6\xad\xba\xd2\x4a\xf2\xa7\xba\x1c\x0d\x65\x5e" "\x9f\x19\xc8\xeb\xe0\x6b\xee\x78\xd5\x37\xf8\xcc\x4e\x96\x2e\x1d\x21\x4b" "\xc7\x7c\x6d\x6c\x7e\xbd\xae\x94\xfb\xf8\x5d\x5d\x8e\x86\xdd\x99\x98\x1e" "\xc8\xc4\xb3\x87\x67\xe2\xcf\xd5\xcb\xca\x6a\xfb\xc1\xbd\x95\xbb\x8b\x6f" "\x1e\x6d\x77\x97\xde\xab\x2b\xe5\x75\xf4\x87\x91\xba\x4b\x94\xe7\xcb\xa5" "\xf2\x60\x55\xad\x47\xcf\x8e\xb2\xef\xd9\x7d\xfb\xa6\xab\xbe\xcb\xfd\xbe" "\xc6\x9e\xbe\x2b\xfd\xbe\xee\x95\xba\x71\xe0\x95\x3a\x56\xbf\x87\xdb\x3b" "\xd2\x4c\xd5\xf7\xfc\xbe\x7d\xb3\x55\xdf\xd5\x81\xbe\xfd\xde\x6f\x01\x30" "\xf2\x2e\x7c\xfb\xc2\x58\xeb\xdf\xad\x7f\xb6\x3e\x68\xfd\xbe\x75\xb7\xf5" "\xca\xf9\x1f\x9d\xfb\xde\xb9\x17\xc6\x72\xf6\xef\x67\xbf\xdf\x9c\x3a\xf3" "\x8d\xc6\x0b\xc5\x5f\xf3\x41\x7e\xbd\xf3\xf9\x1f\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8" "\xec\x56\xdf\x7e\xe7\xde\x62\xbb\xbd\xb4\xb2\xab\xd2\xe9\x74\xde\x3d\xa0" "\xeb\x34\x57\x7a\x3f\x67\x76\x82\x3b\xfd\xda\x53\xc9\x48\xcc\x7d\xa8\x95" "\xff\x75\x3a\x9d\xfa\x99\x62\x14\xe2\x39\xbc\xd2\xa9\x8d\x4a\x3c\xc3\xa8" "\x0c\xf9\x85\x09\x78\xe2\x6e\xac\xdd\x7f\xf3\xc6\xea\xdb\xef\x7c\x67\xf9" "\xfe\xe2\xeb\x4b\xaf\x2f\x3d\x98\x9f\x9b\x9b\x9f\x9a\x9f\x7b\x79\xf6\xc6" "\x9d\xe5\xf6\xd2\x54\xf7\x71\xd8\x51\x02\x4f\xc2\xce\x4d\x7f\xd8\x91\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x47\x75\x12\xff\x9d\x60\xd8\x73\x04" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xb7\x85\xc9\x34\x1f\xa6\xc8\xf4\xd4\xf5\xa9\xb2\xbd\xb5" "\x39\xdb\x2e\x97\x5e\x7d\x67\xcd\x66\x92\x46\x92\xe2\x57\x49\xf1\x61\x72" "\x33\xdd\x25\xe3\x03\xc3\x15\x07\xed\xe7\xfd\xe5\xf9\xd7\x3e\xfa\x64\xeb" "\xe3\x9d\xb1\x9a\xbd\xf5\x1b\x87\x6d\x77\x34\x1b\xf5\x92\x89\x24\x67\xea" "\xf2\x71\x8d\x77\xeb\x73\x8f\x57\xf4\x67\x58\x26\xec\x5a\x2f\x71\x30\x6c" "\xff\x0f\x00\x00\xff\xff\x26\x08\x0e\xdb", 1594); syz_mount_image( /*fs=*/0x20000600, /*dir=*/0x20000180, /*flags=MS_LAZYTIME|MS_POSIXACL|MS_SYNCHRONOUS|MS_NOATIME*/ 0x2010410, /*opts=*/0x20000440, /*chdir=*/1, /*size=*/0x63a, /*img=*/0x20000f80); memcpy((void*)0x20000100, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000100ul, /*flags=O_SYNC|O_CREAT|FASYNC|O_RDWR*/ 0x103042, /*mode=*/0); if (res != -1) r[1] = res; *(uint64_t*)0x200001c0 = 0x20000140; memset((void*)0x20000140, 29, 1); *(uint64_t*)0x200001c8 = 1; syscall(__NR_pwritev2, /*fd=*/r[1], /*vec=*/0x200001c0ul, /*vlen=*/1ul, /*off_low=*/0x7fff, /*off_high=*/0, /*flags=*/0ul); } 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; }