// https://syzkaller.appspot.com/bug?id=82ad35bc46edf3f7249743dfc76b48af0a13c78e // 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_unlinkat #define __NR_unlinkat 35 #endif static unsigned long long procid; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) 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; retry: while (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW) == 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, MNT_DETACH | UMOUNT_NOFOLLOW) == 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, MNT_DETACH | UMOUNT_NOFOLLOW)) 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, MNT_DETACH | UMOUNT_NOFOLLOW)) 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 setup_sysctl() { char mypid[32]; snprintf(mypid, sizeof(mypid), "%d", getpid()); struct { const char* name; const char* data; } files[] = { {"/proc/sys/kernel/hung_task_check_interval_secs", "20"}, {"/proc/sys/net/core/bpf_jit_kallsyms", "1"}, {"/proc/sys/net/core/bpf_jit_harden", "0"}, {"/proc/sys/kernel/kptr_restrict", "0"}, {"/proc/sys/kernel/softlockup_all_cpu_backtrace", "1"}, {"/proc/sys/fs/mount-max", "100"}, {"/proc/sys/vm/oom_dump_tasks", "0"}, {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/kernel/keys/gc_delay", "1"}, {"/proc/sys/vm/oom_kill_allocating_task", "1"}, {"/proc/sys/kernel/ctrl-alt-del", "0"}, {"/proc/sys/kernel/cad_pid", mypid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) printf("write to %s failed: %s\n", files[i].name, strerror(errno)); } } 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 (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); 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; NONFAILING(memcpy((void*)0x200010c0, "hfsplus\000", 8)); NONFAILING(memcpy((void*)0x20000080, "./file1\000", 8)); NONFAILING(memcpy((void*)0x20000000, "barrier", 7)); NONFAILING(*(uint8_t*)0x20000007 = 0x2c); NONFAILING(memcpy((void*)0x20000008, "gid", 3)); NONFAILING(*(uint8_t*)0x2000000b = 0x3d); NONFAILING(sprintf((char*)0x2000000c, "0x%016llx", (long long)0)); NONFAILING(*(uint8_t*)0x2000001e = 0x2c); NONFAILING(memcpy((void*)0x2000001f, "uid", 3)); NONFAILING(*(uint8_t*)0x20000022 = 0x3d); NONFAILING(sprintf((char*)0x20000023, "0x%016llx", (long long)0)); NONFAILING(*(uint8_t*)0x20000035 = 0x2c); NONFAILING(memcpy((void*)0x20000036, "nls", 3)); NONFAILING(*(uint8_t*)0x20000039 = 0x3d); NONFAILING(memcpy((void*)0x2000003a, "cp737", 5)); NONFAILING(*(uint8_t*)0x2000003f = 0x2c); NONFAILING(memcpy((void*)0x20000040, "nodecompose", 11)); NONFAILING(*(uint8_t*)0x2000004b = 0x2c); NONFAILING(*(uint8_t*)0x2000004c = 0); NONFAILING(memcpy( (void*)0x200000c0, "\x78\x9c\xec\xdd\x4d\x68\x9c\x79\x1d\x07\xf0\xef\x33\x49\xa6\x9d\x0a\xd9" "\xd9\x97\xee\x56\x11\x5a\xb6\x58\x74\x8b\x6d\xd2\x71\x6d\x05\xc1\x2a\x22" "\x3d\x2c\x52\xf0\xb2\xd7\xd0\xa6\xdb\xd0\x69\xb7\x24\x59\x49\x8b\xd8\xf8" "\xb2\x7a\xd4\x93\xf4\xb0\x87\x15\xa9\x87\x3d\x89\x07\x61\xc5\x83\xb8\x9e" "\x05\xc1\x7b\xef\x05\xef\xbd\xe8\xc8\x33\xf3\x4c\x32\xc9\x64\xa7\x49\x9b" "\x49\x62\xf7\xf3\x81\x67\x9e\xff\xf3\xfc\xdf\x7e\xcf\x8f\xe7\xf9\x67\x66" "\x42\x48\x80\xcf\xac\x4b\x6f\x67\x6a\x35\x45\x2e\x9d\x7e\x6b\xa5\x3c\x7e" "\xf8\xa0\xd5\x7e\xf8\xa0\x75\xb3\x5f\x4e\x72\x28\x49\x2d\x99\xec\xed\x52" "\xdc\x4a\x8a\x4f\x92\x8b\xe9\x6d\xf9\x7c\x79\xb2\x1a\xae\xf8\xb4\x79\xde" "\x7c\xf4\xf1\x07\xa7\xee\x7f\xd4\xea\x1d\x4d\x56\x5b\xb7\x7d\x6d\x54\xbf" "\x75\x9d\x11\x33\xac\x56\x5b\x4e\x24\x99\xa8\xf6\xcf\x60\xc3\x78\x57\xb6" "\x18\xef\xde\x8e\x86\x2b\xd6\xe2\x2e\x13\x76\xb2\x9f\x38\xd8\x6f\x9d\x21" "\xab\x3b\xe9\xbe\x8d\xe7\x16\x38\xe8\xee\x25\x13\x53\x5b\x9c\x6f\x26\x47" "\x92\x1c\xae\xde\x07\xa4\x5a\x1d\x6a\x7b\x1c\xde\xae\xdb\xd1\x2a\x07\x00" "\x00\x00\x07\xd3\xc4\x93\x1a\xbc\xf0\x38\x8f\xb3\x92\xe9\xbd\x09\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\x9e\x0f\x45\xef\x7f\x06\x16\xd5\x56\xeb" "\x97\x4f\xa4\xe8\xff\xff\xff\x7a\x75\xae\x54\xaf\xef\x73\xbc\xcf\xe6\xfd" "\x6b\xfb\x1d\x01\x00\x00\x00\x00\x00\x00\x00\xec\x86\xe3\x8f\xf3\x38\x2b" "\x99\xee\x1f\x77\x8a\xee\xef\xfc\x5f\xef\x1e\xbc\xd2\x7d\xfd\x5c\xde\xcb" "\x52\xe6\xb3\x98\x33\x59\xc9\x5c\x96\xb3\x9c\xc5\xcc\x26\x53\xd3\x03\x03" "\xd5\x57\xe6\x96\x97\x17\x67\x87\x7b\xfe\x26\x65\xcf\x4e\xa7\x73\xaf\xea" "\x79\x2e\x49\x73\xa8\xe7\xb9\xbd\xb9\x5e\x00\x00\x00\x00\x00\x00\x00\x78" "\x4e\xfd\x34\x97\x32\xbd\xdf\x41\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xa0\x22\x99\xe8\xed\xba\xdb\x2b\xfd\x72\x33\xb5\xc9\x24\x87\x93" "\xd4\xcb\x76\xab\xc9\x5f\xfa\xe5\x03\x67\x07\x51\xfd\x75\x9c\x71\x00\x00" "\x00\xc0\xc1\xd0\xa8\xf6\xd3\xc5\x7f\x7b\x85\x4e\xd1\xfd\xcc\xff\x6a\xf7" "\x73\xff\xe1\xbc\x97\x5b\x59\xce\x42\x96\xd3\xce\x7c\xae\x76\xbf\x0b\xe8" "\x7d\xbe\xae\xfd\x73\xb5\xd5\x7e\xf8\xa0\x75\xb3\xdc\x86\x07\xfe\xf6\xbf" "\x77\x14\x47\x77\xc4\xf4\xbe\x7b\xd8\x7a\xe6\x99\x6e\x8b\xa3\x6b\x3d\x2e" "\xe5\x7b\xf9\x41\x4e\xe7\x44\x2e\x67\x31\x0b\xf9\x61\xe6\xb2\x9c\xf9\x9c" "\xc8\x77\xcb\x8b\xc8\x5c\x8a\x34\xab\x6f\x2f\x9a\xfd\x38\xb7\x8e\xf7\xe2" "\x86\xa3\xcb\x9b\x63\x3b\xbe\xe9\xf8\x58\x37\x92\x46\xae\x65\xa1\x1b\xdb" "\x99\x5c\xa9\xf7\x43\xaf\x55\xf1\x1f\x1b\x98\xed\x4f\xf5\x64\xd3\x8c\x3f" "\x29\xb3\x53\x7c\xab\xb2\xcd\x1c\x5d\xad\xf6\xe5\x15\xfd\xba\xda\x57\x3a" "\x2f\x6c\x73\x8c\xf1\x68\x76\xaf\x7c\x6a\x2d\x23\x33\x55\xee\xcb\x6c\xbc" "\x38\x3a\xf7\x3b\xbc\x4f\x36\xcf\x34\x9b\xda\xda\xb7\x3d\xaf\xac\xcf\x52" "\x1e\x6e\x9e\xe9\xa9\x72\x7e\xa4\xda\x97\xb9\xfe\xc5\xc6\x9c\xef\xb6\x1d" "\x7e\x95\xb6\x39\x13\xe7\x52\xab\xee\xbe\xe4\xd5\x8d\x39\xbf\xfd\xa5\xfb" "\x2f\x6d\xec\xfc\x95\x7f\xfd\xed\xf2\xf5\xda\xad\x1b\xd7\xaf\x2d\x9d\x1e" "\xe3\x25\xed\x8d\xcd\x99\x68\x0d\x64\xe2\xb5\xd1\x77\x5f\x95\x89\x76\x99" "\x89\xd5\xed\x67\x62\x6a\xf3\x89\xc3\xcf\x7a\x0d\xbb\xa3\x5e\x65\xa3\xb7" "\x8a\x6e\x77\xb5\x2c\x4b\x73\x79\xbd\xdb\x77\xfa\x3f\x9d\x7c\x3f\xef\xe6" "\x6a\xe6\x73\x3e\x33\x99\xcd\x85\xcc\xe4\x1b\x39\x97\xd6\x86\x3b\xec\xe8" "\xe8\xbc\x76\x9f\xb5\xda\xf0\xb3\xd6\x18\x11\xfc\xc9\x2f\x0f\x34\xfa\xe5" "\x13\x1a\xef\xad\x32\xaf\x2f\x0e\xe4\x75\x70\xa5\x6b\x76\xeb\xaa\x33\x17" "\x7f\x95\x99\x81\x2c\xbd\xb4\x8d\x2c\xed\x70\x45\x9a\xfc\x42\x55\x28\xe7" "\xf8\xd9\xda\x4f\x9c\x83\x60\x43\x26\xaa\xb5\xb9\x1f\xdd\xcb\xa3\x33\xf1" "\xdb\x4e\xf9\xba\xd4\xbe\x75\x63\xf1\xfa\xdc\xed\x6d\xce\x77\xaa\xda\x97" "\x8f\xed\xfb\x1b\xd7\xe6\xdf\xed\xc6\xf5\x3c\xbd\xf2\x7e\x29\x57\xdc\xc9" "\xee\x51\x3f\x27\xe5\x0f\xe9\x99\x6e\xdd\xcb\x43\x75\xbd\x7c\xd5\xab\xdf" "\xb8\xf4\xea\x6a\x43\x75\x47\xd7\xea\x9a\x99\xce\xc2\x88\x27\xb5\x5e\xbd" "\x87\x1b\x1e\xa9\x57\xf7\xda\x96\x75\xad\x6e\xdd\xb1\x81\xba\x0d\xef\x72" "\xf2\x6e\xda\x6b\xef\x42\x00\x38\xc0\x8e\xbc\x71\xa4\xde\x78\xd4\xf8\x47" "\xe3\xc3\xc6\xcf\x1b\xd7\x1b\x6f\x1d\xfe\xce\xa1\x0b\x87\xbe\x58\xcf\xd4" "\xdf\x27\xff\x3c\xf1\x87\xda\xef\x6b\xdf\x2c\xde\xc8\x87\xf9\x71\xa6\xf7" "\x3b\x52\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x78\x1e\x2c\xdd\xb9\x7b\x63\xae\xdd\x9e\x5f" "\x1c\x6b\xa1\x78\xaa\x5e\xa9\x8d\x3d\xb0\xf5\xb9\x8a\xaa\x50\x1f\xff\x5c" "\x9f\xd9\xc2\x1f\x93\x8c\x68\x53\x7f\xe6\x29\x8a\xf1\xdf\xcf\xe5\x43\xb3" "\xfb\x23\x77\x26\x76\x6f\xc0\xc9\x11\x49\x38\x94\xb5\x33\x69\x0e\xb7\x69" "\x64\xfd\xcc\x7e\xaf\x4c\xc0\xb8\x9d\x5d\xbe\x79\xfb\xec\xd2\x9d\xbb\x5f" "\x5d\xb8\x39\xf7\xce\xfc\x3b\xf3\xb7\xce\x5d\x38\x7f\xe1\x7c\xeb\xeb\xb3" "\x5f\x3b\x7b\x6d\xa1\x3d\x3f\xd3\x7b\xdd\xef\x28\x81\x71\x58\xba\x73\x77" "\x62\xbf\x63\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x76\x66\xec\x7f\x2f" "\x51\x5f\x5c\xda\x7a\xe6\xe3\x7b\x7d\xa9\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\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\xff\xa9\x4b\x6f" "\x67\x6a\x35\x45\x66\x67\xce\xcc\x94\xc7\x0f\x1f\xb4\xda\xe5\xd6\x2f\xaf" "\xb7\x9c\x4c\x52\x4b\x52\xfc\x28\x29\x3e\x49\x2e\xa6\xb7\xa5\x39\x30\x5c" "\xf1\x69\xf3\xbc\xf9\xe8\xe3\x0f\x4e\xdd\xff\xa8\xb5\x3e\xd6\x64\xbf\x7d" "\x6d\x54\xbf\xed\x59\xad\xb6\x9c\x48\x32\x51\xed\x9f\xec\xd0\x16\xc3\x0c" "\x8f\x77\x65\x60\xbc\xd5\xa7\x0a\xaf\x58\xbb\xc2\x32\x61\x27\xfb\x89\x83" "\xfd\xf6\xbf\x00\x00\x00\xff\xff\xe2\x13\x06\x5e", 1686)); res = -1; NONFAILING(res = syz_mount_image(/*fs=*/0x200010c0, /*dir=*/0x20000080, /*flags=MS_REC|MS_NODIRATIME*/ 0x4800, /*opts=*/0x20000000, /*chdir=*/0, /*size=*/0x696, /*img=*/0x200000c0)); if (res != -1) r[0] = res; NONFAILING(memcpy((void*)0x200007c0, "./file1\000", 8)); syscall(__NR_unlinkat, /*fd=*/r[0], /*path=*/0x200007c0ul, /*flags=*/0ul); NONFAILING(memcpy((void*)0x20000000, "hfsplus\000", 8)); NONFAILING(memcpy((void*)0x20000040, "./file0\000", 8)); NONFAILING(memcpy((void*)0x200001c0, "gid", 3)); NONFAILING(*(uint8_t*)0x200001c3 = 0x3d); NONFAILING(sprintf((char*)0x200001c4, "0x%016llx", (long long)0xee01)); NONFAILING(*(uint8_t*)0x200001d6 = 0x2c); NONFAILING(memcpy((void*)0x200001d7, "type", 4)); NONFAILING(*(uint8_t*)0x200001db = 0x3d); NONFAILING(memcpy((void*)0x200001dc, "\xe9\x09\xa6\x08", 4)); NONFAILING(*(uint8_t*)0x200001e0 = 0x2c); NONFAILING(memcpy((void*)0x200001e1, "nls", 3)); NONFAILING(*(uint8_t*)0x200001e4 = 0x3d); NONFAILING(memcpy((void*)0x200001e5, "koi8-ru", 7)); NONFAILING(*(uint8_t*)0x200001ec = 0x2c); NONFAILING(memcpy((void*)0x200001ed, "creator", 7)); NONFAILING(*(uint8_t*)0x200001f4 = 0x3d); NONFAILING(memcpy((void*)0x200001f5, "\xcb\x73\xa2\xaf", 4)); NONFAILING(*(uint8_t*)0x200001f9 = 0x2c); NONFAILING(memcpy((void*)0x200001fa, "decompose", 9)); NONFAILING(*(uint8_t*)0x20000203 = 0x2c); NONFAILING(memcpy((void*)0x20000204, "umask", 5)); NONFAILING(*(uint8_t*)0x20000209 = 0x3d); NONFAILING(sprintf((char*)0x2000020a, "%023llo", (long long)0x7f)); NONFAILING(*(uint8_t*)0x20000221 = 0x2c); NONFAILING(*(uint8_t*)0x20000222 = 0); NONFAILING(memcpy( (void*)0x20001040, "\x78\x9c\xec\xdd\xcd\x6b\x1c\xe7\x1d\x07\xf0\xef\xac\x57\x6b\xc9\x2d\xae" "\x92\xd8\x89\x29\x81\x0a\x1b\xd2\x82\xa8\xad\x17\x94\x56\xbd\xd4\x2d\xa5" "\xe8\x10\x4a\x48\x0f\x3d\x0b\x5b\x8e\x85\xd7\x72\x90\x94\xa2\x84\x52\xd4" "\xf7\x53\xa1\x94\xfc\x01\x69\x41\xb7\x9e\x0a\xed\xd9\xc5\x3d\xa7\xb7\x5c" "\x75\x0c\x14\x7a\x09\x3d\xf8\xa6\x32\xb3\xb3\xd6\x4a\x5a\xc9\x7a\x97\xdc" "\x7c\x3e\x66\xf6\x79\x66\x9f\x67\x9e\xf9\xcd\x6f\xe7\x65\x67\xd7\x62\x03" "\x7c\x61\xcd\x8c\xa6\xf9\x38\x45\x66\x46\xdf\x5a\x29\xe7\xd7\xd7\x26\xdb" "\xeb\x6b\x93\x17\xeb\xe6\x76\x92\xb2\xde\x48\x9a\x9d\x22\xc5\x42\x52\x3c" "\x49\x6e\x97\xed\x45\xcf\x94\x9e\x72\x87\x8f\xe6\xa7\xdf\xf9\xf4\xf3\xf5" "\xcf\x3a\x73\xcd\x7a\xaa\xfa\x37\xf6\x5a\x6e\x7f\x56\xeb\x29\x23\x49\x2e" "\xd4\xe5\x4e\x03\x87\x1a\xef\x4e\x92\xc1\x1d\x5d\x5a\xfb\x1d\x6b\x4b\xc7" "\x32\x69\x37\xea\x12\xce\xdc\xc6\x0e\xab\x07\x59\xfc\x88\xc7\x2d\x70\x96" "\xba\x57\xa7\xa2\x73\xdd\xdc\x61\x38\xb9\x54\x5f\xff\xaa\xf7\x04\xf5\xd9" "\xa1\x71\x7a\x11\x9e\x8c\x03\x9d\xe5\x00\x00\x00\xe0\xfc\xda\xd8\xab\xf1" "\x93\x47\xa7\x17\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\xfc\xbf\xa8\x7f" "\xff\xbf\xa8\xa7\x46\x5d\x66\x24\x45\xf7\xf7\xff\x5b\xdd\xe7\xea\xfa\x0b" "\xed\xf1\x59\x07\x00\x00\x00\x00\x00\x00\x00\x00\x07\xd3\xec\xf7\xe4\xd7" "\x9e\xe6\x69\x56\x72\xb9\x3b\xbf\x51\x54\xdf\xf9\x5f\xaf\x66\xae\x54\x8f" "\x5f\xca\xfb\x59\xca\x5c\x16\x73\x33\x2b\x99\xcd\x72\x96\xb3\x98\xf1\x24" "\xc3\x3d\x03\xb5\x56\x66\x97\x97\x17\xc7\xf7\xb1\xe4\x44\xdf\x25\x27\x4e" "\x64\x9b\x01\x00\x00\x00\x00\x00\x00\xe0\x8b\xe2\x97\x99\xd9\xfc\xfe\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\xce\x83\x22\xb9\xd0\x29\xaa" "\xe9\x4a\xb7\x3e\x9c\x46\x33\x9d\xb6\x56\xd9\x6f\x35\xf9\x57\xb7\xfe\x82" "\x28\xfa\x3d\xf9\xf8\xf4\xe3\x00\x00\x00\x80\x23\x19\x3c\xc4\x32\x5f\x79" "\x9a\xa7\x59\xc9\xe5\xee\xfc\x46\x51\xdd\xf3\xbf\x5a\xdd\x2f\x0f\xe6\xfd" "\x2c\x64\x39\xf3\x59\x4e\x3b\x73\xb9\x5b\xdf\x43\x97\x77\xfd\x8d\xf5\xb5" "\xc9\xf6\xfa\xda\xe4\xc3\x72\xda\x39\xee\xf7\xfe\x73\xa0\x30\xaa\x11\xeb" "\xcf\x17\xfa\xaf\xf9\x5a\xd5\x63\x28\xf7\x32\x5f\x3d\x73\x33\x77\xaa\x60" "\xee\xa6\x51\x2d\x59\xba\xd6\x8d\xa7\x7f\x5c\xbf\x28\x63\x2a\xbe\x5b\xdb" "\x67\x64\xcd\xba\x2c\x57\xf6\x87\xdd\x3e\x45\x38\x13\xc3\x75\x70\xdd\x8c" "\x8c\xd5\xb1\x95\xd9\x78\xa9\x93\x81\xa2\xfa\xa0\x26\xd9\x9e\x89\xe7\xbe" "\x3a\xcd\xed\x6b\x4a\x23\x03\xcf\xd6\x34\x9e\xc6\xb3\x4f\x7e\xae\x9c\x40" "\xce\x2f\xd5\x65\xb9\x3d\xbf\x3d\x6f\x39\xef\x64\xa2\x91\x2a\x13\x13\x3d" "\x7b\xdf\xab\x7b\x67\x22\xf9\xfa\xdf\xfe\xf2\x93\xfb\xed\x85\x07\xf7\xef" "\x2d\x8d\x9e\x9f\x4d\x3a\xa4\xed\xfb\xc4\x64\x4f\x26\x5e\x7b\xa1\x33\xd1" "\x3c\x60\xff\xb1\x2a\x13\x57\x9f\xcd\xcf\xe4\x87\xf9\x71\x46\x33\x92\xb7" "\xb3\x98\xf9\xfc\x34\xb3\x59\xce\x5c\x36\xea\xf6\xd9\x7a\x7f\x2e\x1f\x87" "\xf7\xce\xd4\xed\x2d\x73\x6f\x3f\x2f\x92\x56\xfd\xba\x74\xce\xa2\xfb\x89" "\x69\x24\x3f\xa8\x6a\xb3\xb9\x5e\x2d\x7b\x39\xf3\x29\xf2\x28\x77\x33\x97" "\x37\xab\x7f\x13\x19\xcf\xb7\x32\x95\xa9\x4c\xf7\xbc\xc2\x57\x77\x8d\xbb" "\xda\xb6\xea\xa8\x6f\xec\x76\xd4\xff\xa3\x6f\xf0\x37\xbe\x51\x57\x86\x92" "\xfc\xae\x2e\xf7\xf4\xf7\x3f\x3e\xaf\xc7\x91\x75\x2e\xa9\x65\x5e\x5f\xea" "\xc9\xeb\x40\xcf\x39\x77\xb8\x6a\xeb\x7d\x66\x33\x4b\x2f\x77\xb3\x33\xd0" "\x77\xf0\xc3\x9c\x1b\x9b\x5f\xad\x2b\xe5\x3a\x7e\x55\x97\xe7\xc3\xf6\x4c" "\x8c\xf7\x64\xe2\x95\xbd\xf7\xf3\x3f\x55\xc7\xc6\x52\x7b\xe1\xc1\xe2\xfd" "\xd9\xf7\x76\x19\x7f\x75\xdb\xfc\x1b\x75\x59\xee\x71\xbf\xd9\xf7\x55\xa2" "\xff\x4b\x71\xbc\xca\xfd\xe5\xe5\x0c\xd6\x67\x92\xad\x7b\x47\xd9\xf6\xca" "\xb3\xb3\xcc\xd6\x7c\xb5\xea\x6f\x5c\x3a\x6d\x8d\x1d\x6d\x57\xab\xb6\xa2" "\xe8\x1e\xa9\x3f\xda\xf5\x48\x6d\xd5\xef\xe1\x76\x8e\x34\x51\xb5\xbd\xd6" "\xb7\x6d\xb2\x6a\xbb\xd6\xd3\xb6\xe5\xfd\x56\x1e\xa5\x9d\xbb\xa7\x90\x3f" "\x00\x8e\x68\x38\x97\x5a\x43\xff\x1e\xfa\x64\xe8\xe3\xa1\x5f\x0f\xdd\x1f" "\x7a\x6b\xf0\xfb\x17\xbf\x7d\xf1\xf5\x56\x06\xfe\x39\xf0\x9d\xe6\xd8\x85" "\x37\x1a\xaf\x17\x7f\xcd\xc7\xf9\xf9\xe6\xfd\x3f\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70" "\x78\x4b\x1f\x7c\xf8\x60\xb6\xdd\x9e\x5b\xec\x5f\x69\xec\xde\x74\xbc\x95" "\xa2\xfe\x21\x9f\xd3\x58\xd7\x69\x54\x06\x93\x9c\x83\x30\xce\x69\xa5\xfb" "\x23\x82\xfd\xfb\xfc\x7e\xff\x03\xde\x3e\x17\x9b\xf3\x42\x57\x2e\x24\xe9" "\xd7\x74\xc6\x27\x26\xe0\xc4\xdd\x5a\x7e\xf8\xde\xad\xa5\x0f\x3e\xfc\xe6" "\xfc\xc3\xd9\x77\xe7\xde\x9d\x5b\x18\x98\x9a\x9a\x1e\x9b\x9e\x7a\x73\xf2" "\xd6\xbd\xf9\xf6\xdc\x58\xe7\xf1\xac\xa3\x04\x4e\xc2\xe6\x45\xff\xac\x23" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf6\xab\xdf\x1f\x06\x5c\xff\xf2" "\x71\xfc\xed\x4a\xcb\xff\x2c\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\x8e\xc5\xcc\x68\x9a\x8f\x53" "\x64\x7c\xec\xe6\x58\x39\xbf\xbe\x36\xd9\x2e\xa7\x6e\x7d\xb3\x67\x33\x49" "\xa3\x91\x14\x3f\x4b\x8a\x27\xc9\xed\x74\xa6\x0c\xf7\x0c\x57\xe4\xcf\x4f" "\xfa\xae\xe7\xa3\xf9\xe9\x77\x3e\xfd\x7c\xfd\xb3\xcd\xb1\x9a\x9d\xfe\x49" "\xa3\x2e\x8f\x60\xb5\x9e\x32\x92\xe4\x42\x5d\x1e\xd7\x78\x77\x8e\x3c\x5e" "\xf1\xdf\xee\x16\x96\x09\xbb\xd1\x4d\x1c\x9c\xb5\xff\x05\x00\x00\xff\xff" "\xe5\xfa\xfa\xa7", 1624)); NONFAILING(syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000040, /*flags=*/0, /*opts=*/0x200001c0, /*chdir=*/7, /*size=*/0x65a, /*img=*/0x20001040)); } 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); setup_sysctl(); install_segv_handler(); for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }