// https://syzkaller.appspot.com/bug?id=b3d4ed3e41b3085ce97f4504f4183e3f99115fb2 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 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*)0x200000000bc0, "ext4\000", 5); memcpy((void*)0x200000000140, "./file1\000", 8); *(uint8_t*)0x2000000000c0 = 0; memcpy( (void*)0x200000002380, "\x78\x9c\xec\xdc\xcd\x6b\x1c\xe7\x19\x00\xf0\x67\x46\xab\x95\x6c\xab\x5d" "\xb9\x94\x52\xf7\x52\x95\x52\x6c\x28\x5d\x4b\x2e\x32\xb5\x29\xd4\x2e\x2e" "\xbd\xf4\x50\x68\xaf\x05\xab\xf2\xca\x08\xad\x3f\x90\x54\x5c\xc9\x3a\xac" "\x92\x7f\x20\x5f\xe7\x40\x2e\x81\x24\x26\x21\x87\xf8\xec\x4b\x42\x72\xcd" "\x25\xb1\xaf\x09\x39\x04\x4c\x50\xac\x04\x42\x48\x14\x66\x3f\xa4\x8d\xa5" "\x95\xe4\x78\x57\xa3\xc8\xbf\x1f\xbc\x9a\xf7\x9d\x77\xb4\xcf\xf3\xec\xb0" "\x3b\xf3\xc2\xee\x06\xf0\xc4\x1a\xc9\xfe\xa4\x11\xc7\x22\xe2\x62\x12\x51" "\x6a\xee\x4f\x23\xa2\x58\xef\x0d\x46\xd4\x1a\xc7\xad\xae\x2c\x4d\x7e\xb9" "\xb2\x34\x99\xc4\xda\xda\xbf\x3e\x4b\x22\x89\x88\x07\x2b\x4b\x93\xad\xc7" "\x4a\x9a\xdb\x23\xcd\xc1\x60\x44\xbc\xff\xd7\x24\x7e\xf6\xf4\xe6\xb8\x73" "\x0b\x8b\x33\x13\xd5\x6a\x65\xb6\x39\x3e\x39\x7f\xe5\xfa\xc9\xb9\x85\xc5" "\x3f\x4c\x5f\x99\xb8\x5c\xb9\x5c\xb9\x3a\x76\xfa\x4f\xe3\xa7\xc6\x4f\x8f" "\x9e\x19\xef\x5a\xad\x5f\x7d\x74\xee\xf6\x17\xbf\xf9\xfb\x27\xb5\xaf\x5f" "\xfd\xe6\xd6\xe7\xcf\xbf\x9c\xc4\xb9\x18\x6a\xce\xb5\xd7\xd1\x2d\x23\x31" "\xb2\xfe\x9c\xb4\x2b\x44\xc4\x44\xb7\x83\xe5\xa4\xaf\x59\x4f\x7b\x9d\x49" "\x61\x87\x7f\x4a\x7b\x9c\x14\x00\x00\x1d\xa5\x6d\xf7\x70\xbf\x88\x52\xf4" "\xc5\xc6\xcd\x5b\x29\xde\xfe\x20\xd7\xe4\x00\x00\x00\x80\xae\x58\xeb\x8b" "\x58\x03\x00\x00\x00\x0e\xb8\xc4\xfa\x1f\x00\x00\x00\x0e\xb8\xd6\xe7\x00" "\x1e\xac\x2c\x4d\xb6\x5a\xbe\x9f\x48\xd8\x5b\xf7\xcf\x47\xc4\x70\xa3\xfe" "\xd5\x66\x6b\xcc\x14\xa2\x56\xdf\x0e\x46\x7f\x44\x1c\x7e\x90\x44\xfb\xd7" "\x5a\x93\xc6\xbf\x3d\xb6\x91\x88\xf8\xf8\xde\x99\x37\xb2\x16\x3d\xfa\x1e" "\xf2\x76\x6a\xcb\x11\xf1\xcb\xad\xce\x7f\x52\xaf\x7f\xb8\xfe\x2d\xee\xcd" "\xf5\xa7\x11\x31\xda\x85\xf8\x23\x0f\x8d\x7f\x4c\xf5\x9f\xeb\x42\xfc\xbc" "\xeb\x07\xe0\xc9\x74\xe7\x7c\xe3\x42\xb6\xf9\xfa\x97\xae\xdf\xff\xc4\x16" "\xd7\xbf\xc2\x16\xd7\xae\x1f\x22\xef\xeb\x5f\xeb\xfe\x6f\x75\xd3\xfd\xdf" "\x46\xfd\x7d\x1d\xee\xff\xfe\xb9\xcb\x18\x37\x5f\x79\xf1\x46\xa7\xb9\xac" "\xfe\x3f\xdf\xfe\xdb\xeb\xad\x96\xc5\xcf\xb6\x8f\x55\xd4\x23\xb8\xbf\x1c" "\xf1\xab\xc2\x56\xf5\x27\xeb\xf5\x27\x1d\xea\xbf\xb8\xcb\x18\xa5\x6f\x6f" "\x54\x3a\xcd\xe5\x5d\xff\xda\x4b\x11\xc7\x63\xeb\xfa\x5b\x92\xed\x7f\x9f" "\xe8\xe4\xd4\x74\xb5\x32\xda\xf8\xbb\x65\x8c\xe5\xf7\xc6\x5f\xeb\x14\x3f" "\xef\xfa\xb3\xf3\x7f\xb8\x43\xfd\xad\xdf\x7f\xea\x74\xfe\xaf\xef\x32\xc6" "\x7f\x2e\x5c\x78\x73\xd3\xce\x7b\x1b\xdd\xed\xeb\x4f\x3f\x2d\x26\xff\xae" "\xf7\x8a\xcd\x3d\xff\x9f\x98\x9f\x9f\x1d\x8b\x28\x26\xff\xd8\xbc\xff\xd4" "\xf6\xb9\xb4\x8e\x69\x3d\x46\x56\xff\x89\xdf\x6e\xff\xfa\xdf\xaa\xfe\xec" "\x3d\xa1\xd6\x7c\x1e\xb2\xb5\xc0\x72\x73\x9b\x8d\x9f\x7a\x28\xe6\x5f\x6e" "\xdd\x7c\xab\x53\x3e\xad\xf5\x5f\x9e\xe7\xff\x52\x87\xf3\xdf\x5e\xff\xbb" "\x85\xcd\xe7\xff\x99\x5d\xc6\xf8\xdd\x3b\xcf\x9d\xe8\x34\xd7\xbe\xfe\xcd" "\x5a\x16\xbf\xb5\x16\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\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\x96\x34\x22\x86\x22" "\x49\xcb\xeb\xfd\x34\x2d\x97\x23\x8e\x44\xc4\xcf\xe3\x70\x5a\xbd\x36\x37" "\xff\xfb\xa9\x6b\xff\xbb\x7a\x29\x9b\x8b\x18\x8e\xfe\x74\x6a\xba\x5a\x19" "\x8d\x88\x52\x63\x9c\x64\xe3\xb1\x7a\x7f\x63\x7c\xea\xa1\xf1\x1f\x23\xe2" "\x68\x44\xbc\x50\x3a\x54\x1f\x97\x27\xaf\x55\x2f\xe5\x5d\x3c\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xeb\x8e\x44\xc4\x50\x24\x69\x39\x22\xd2\x88\x58" "\x2d\xa5\x69\xb9\x9c\x77\x56\x00\x00\x00\x40\xd7\x0d\xe7\x9d\x00\x00\x00" "\x00\xd0\x73\xd6\xff\x00\x00\x00\x70\xf0\x59\xff\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x63\x47\x7f\x7d\xe7\x6e\x12\x11" "\xb5\xb3\x87\xea\x2d\x53\x6c\xce\xf5\xe7\x9a\x19\xd0\x6b\x69\xde\x09\x00" "\xb9\xe9\xcb\x3b\x01\x20\x37\x85\xbc\x13\x00\x72\xf3\x88\x6b\x7c\xb7\x0b" "\x70\x00\x25\x3b\xcc\x0f\x76\x9c\x19\xe8\x7a\x2e\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\x5f" "\xc7\x8f\xdd\xb9\x9b\x44\x44\xed\xec\xa1\x7a\xcb\x14\x9b\x73\xfd\xb9\x66" "\x06\xf4\x5a\xda\xd6\x4f\x72\xcc\x03\xd8\x7b\x7d\xdb\x4d\x16\xf6\x2e\x0f" "\x60\xef\x79\x89\xc3\x93\xcb\x1a\x1f\xd8\x69\xed\x3f\xb8\x71\x4c\xed\xfb" "\x33\x03\x3d\xcb\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\xfd\x67\xa8\xde\x92\xb4\x1c\x11\xc5" "\xe6\xbe\x72\x39\xe2\x27\x11\x31\x1c\xfd\xc9\xd4\x74\xb5\x32\x1a\x11\x3f" "\x8d\x88\x0f\x4b\xfd\x03\xd9\x78\x2c\xe7\x9c\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xe8\xbe\xb9\x85\xc5\x99\x89\x6a\xb5\x32\x9b\x75\xd2\x68\x76\xd6" "\xf7\xf4\xa0\xd3\xd7\x8c\xdc\xc3\x10\xbd\xe9\x24\x8d\xbc\x6b\xfb\x25\x9f" "\x83\xdd\x19\x78\x76\xa7\x63\xfe\x1b\x8f\x19\xa2\x18\xfb\xa2\xd2\x7d\xda" "\xc9\xf3\x5d\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\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\xbc\xcc\x2d\x2c\xce\x4c" "\x54\xab\x95\xd9\xb9\xbc\x33\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xf2\x36\xb7\xb0\x38\x33\x51\xad\x56\x66" "\x7b\xd8\xc9\xbb\x46\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xf2\xf3\x5d\x00\x00\x00\xff\xff\x8c\x0b\x06" "\x47", 3025); syz_mount_image(/*fs=*/0x200000000bc0, /*dir=*/0x200000000140, /*flags=*/0, /*opts=*/0x2000000000c0, /*chdir=*/2, /*size=*/0xbd1, /*img=*/0x200000002380); memcpy((void*)0x200000000100, "./file1\000", 8); syscall(__NR_creat, /*file=*/0x200000000100ul, /*mode=S_IRGRP|S_IXUSR|S_IWUSR*/ 0xe0ul); memcpy((void*)0x200000000580, "ext4\000", 5); memcpy((void*)0x2000000005c0, "./file0\000", 8); *(uint8_t*)0x200000000600 = 0; memcpy( (void*)0x200000009ec0, "\x78\x9c\xec\xdd\x4f\x6b\x1c\x65\x1c\x07\xf0\xdf\x33\xd9\xa4\x7f\xd2\x9a" "\x54\x04\xad\x3d\x18\x28\xd8\x82\x9a\x34\x69\x45\x11\xc1\x16\xeb\xcd\x83" "\x7f\x0a\x9e\x04\x63\x92\x96\xd2\x6d\x1b\x9a\x08\xb6\x56\x6c\xa1\xbe\x03" "\x7d\x01\x82\x37\x2f\xe2\xb1\x88\x14\xf5\xe2\xd5\x9b\xe0\x0b\x90\x62\x91" "\x36\x17\x6f\x91\xd9\xcc\xa4\xdb\x76\x37\xcd\x9f\x4d\xa7\x66\x3e\x1f\xd8" "\x64\x9e\x79\x32\x3c\xcf\x64\xf9\xee\x33\xfb\xec\xcc\x6c\x00\xb5\x35\x92" "\xff\xc8\x22\xf6\x46\xc4\x6c\x8a\x18\x6a\xab\x6b\x44\x51\x39\xb2\xf4\x77" "\x77\x6e\x5f\x9e\x5a\xb8\x7d\x79\x2a\xc5\xe2\xe2\xfb\xff\xa4\x48\xc5\xba" "\xf2\xef\x53\xf1\x7b\xb0\xd8\x78\x7b\x44\xfc\xfe\x73\x8a\x27\xfb\x1e\x6c" "\x77\xee\xe2\xa5\x33\x93\xcd\xe6\xcc\x85\xa2\x3c\x36\x7f\x76\x76\x6c\xee" "\xe2\xa5\x97\x4e\x9f\x9d\x3c\x35\x73\x6a\xe6\xdc\xc4\xf8\x2b\xe3\x2f\x1f" "\x39\x3c\x71\xe4\x50\x4f\xf6\x73\x77\x44\xfc\x3a\x7a\xbc\x71\xed\xe4\x9b" "\xfb\xbe\x9f\xfa\x76\xcf\x17\x3f\x7e\x77\x3d\xc5\xd1\xd8\x55\xd4\xb7\xef" "\x47\xaf\x8c\xc4\xc8\xf2\xff\xa4\x5d\xfe\x7f\x7d\xb5\xd7\x8d\x55\xa4\xaf" "\xd8\x9f\xf6\xa7\x38\x35\x2a\xec\x10\x6b\x52\x3e\x7f\xfd\x11\xf1\x74\x0c" "\x45\x5f\xdc\x7d\xf2\x86\xe2\xcb\x77\x2b\xed\x1c\xb0\xa9\x16\x53\xc4\x22" "\x50\x53\x49\xfe\xa1\xa6\xca\xe3\x80\xfc\xfd\x6f\xf9\xa8\xf6\x88\x04\x78" "\x54\x6e\x1d\x5b\x9a\x00\xb8\x93\x96\xe6\xf6\x16\x96\xf3\xdf\x58\x9a\x1b" "\x8c\xed\xad\xb9\x81\x9d\x0b\x29\xda\xa7\x75\x52\x44\xf4\x62\x66\x2e\x6f" "\x63\xf6\xf9\x34\x94\x3f\x62\x93\xe6\xe1\x80\xce\xae\x5c\x8d\x88\x67\x3a" "\x8d\xff\xa9\x95\xcd\xe1\xd6\x2c\x7e\x9e\xff\xec\x9e\xfc\x67\x11\xf1\x4e" "\xf1\x3b\x5f\xff\xde\x3a\xdb\x1f\xb9\xaf\x2c\xff\xf0\xe8\x6c\x24\xff\x1f" "\xb5\xe5\xff\xe3\x75\xb6\x2f\xff\x00\x00\x00\x00\x00\x00\xd0\x3b\x37\x8e" "\x45\xc4\x8b\x9d\x3e\xff\xcb\x96\xcf\xff\x89\x0e\xe7\xff\x0c\x46\xc4\xd1" "\x1e\xb4\xff\xf0\xcf\xff\xb2\x9b\x3d\x68\x06\xe8\xe0\xd6\xb1\x88\xd7\x23" "\xa2\x3c\xf7\x6f\xa1\x2d\xff\x85\xe1\xbe\xa2\xb4\xbb\x75\x3e\x40\x7f\x3a" "\x79\xba\x39\x73\x28\x22\x9e\x88\x88\x83\xd1\xbf\x2d\x2f\x8f\xaf\xd0\xc6" "\xc8\xbe\xdf\xfa\xbb\xd6\xb5\x9d\xff\x97\x3f\xf2\xf6\xcb\x73\x01\x8b\x7e" "\xdc\x6c\x6c\xbb\x77\x9b\xe9\xc9\xf9\xc9\x8d\xec\x33\xb0\xe4\xd6\xd5\x88" "\x67\x1b\x9d\xf2\x9f\x96\xc7\xff\xd4\x61\xfc\xcf\x5f\x0f\x66\x57\xd9\xc6" "\xe2\xf1\x37\x7e\xe9\x56\xf7\xf0\xfc\x03\x9b\x65\xf1\x9b\x88\x03\x1d\xc7" "\xff\xbb\x77\xae\x48\x2b\xdf\x9f\x63\xac\x75\x3c\x30\x56\x1e\x15\x3c\xe8" "\xb3\x0f\xaf\xff\xd0\xad\x7d\xf9\x87\xea\xe4\xe3\xff\xce\x95\xf3\x3f\x9c" "\xda\xef\xd7\x33\xb7\xf6\x36\x3e\xff\xfb\xcf\x0d\xe4\xbf\xf3\xf1\xff\x40" "\x3a\xd1\xba\xe5\xcc\x40\xb1\xee\xd3\xc9\xf9\xf9\x0b\xe3\x11\x03\xe9\xed" "\x07\xd7\x4f\xac\xbd\xcf\xb0\x15\x95\x79\x28\xf3\x92\xe7\xff\xe0\xfe\xce" "\xef\xff\x57\x3a\xfe\xdf\x11\x11\x57\x56\xd9\xe6\x89\x9f\xde\xba\xd6\xad" "\xce\xf8\x0f\xd5\xc9\xf3\x3f\xbd\xa6\xf1\x7f\xed\x0b\xfb\x3f\xf8\xfa\xdf" "\x6e\xed\xaf\x6e\xfc\x3f\xd2\x1a\xd3\x0f\x16\x6b\xcc\xff\xc1\xca\x56\x1b" "\xd0\xaa\xfb\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x47\x59\x44\xec\x8a\x94" "\x8d\x2e\x2f\x67\xd9\xe8\x68\xc4\x60\x44\x3c\x15\x3b\xb3\xe6\xf9\xb9\xf9" "\x17\x4e\x9e\xff\xe4\xdc\x74\x5e\xd7\xfa\xfe\xff\xac\xfc\xa6\xdf\xa1\xa5" "\x72\x2a\xbf\xff\x7f\xb8\xad\x3c\x71\x5f\xf9\x70\x44\xec\x89\x88\xaf\xfa" "\x76\xb4\xca\xa3\x53\xe7\x9b\xd3\x55\xef\x3c\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x26\x06\xbb\x5c\xff\x9f\xfb\xab\xaf" "\xea\xde\x01\x9b\xae\x51\x75\x07\x80\xca\xc8\x3f\xd4\x97\xfc\x43\x7d\xc9" "\x3f\xd4\x97\xfc\x43\x7d\xc9\x3f\xd4\x97\xfc\x43\x7d\xc9\x3f\xd4\x97\xfc" "\x43\x7d\xc9\x3f\x00\x00\x00\x00\x00\x6c\x29\x7b\x9e\xbb\xf1\x47\x8a\x88" "\x2b\xaf\xed\x68\x3d\x72\x03\x45\x5d\x7f\xa5\x3d\x03\x36\x5b\x56\x75\x07" "\x80\xca\xb8\xc5\x0f\xd4\x97\x53\x7f\xa0\xbe\x52\xd5\x1d\x00\x2a\xf7\xb0" "\xd7\x81\xed\xeb\xde\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\x95" "\x03\x7b\x5d\xff\x0f\x75\xe5\xfa\x7f\xa8\xaf\xee\xd7\xff\xbb\x33\x00\x6c" "\x75\xae\xff\x87\xfa\xf2\x1e\x1f\x70\xfd\x3f\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x3c\xfe\xe6\x2e\x5e\x3a\x33\xd9\x6c\xce\x5c\x58\xef\xc2\xb6" "\x8d\x6d\x6e\xc1\x42\x7d\x16\x22\xf5\x20\x71\x8f\x68\xa1\xea\x57\x26\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\xf4" "\x5f\x00\x00\x00\xff\xff\x76\xde\xf6\x36", 1414); syz_mount_image(/*fs=*/0x200000000580, /*dir=*/0x2000000005c0, /*flags=MS_SYNCHRONOUS*/ 0x10, /*opts=*/0x200000000600, /*chdir=*/1, /*size=*/0x582, /*img=*/0x200000009ec0); memcpy((void*)0x2000000000c0, "/proc/sys/fs/binfmt_misc/register\000", 34); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x2000000000c0ul, /*flags=*/1, /*mode=*/0); if (res != -1) r[0] = res; memcpy((void*)0x200000000100, ".\000", 2); syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000100ul, /*type=*/0ul, /*flags=MS_REMOUNT|MS_RDONLY*/ 0x21ul, /*data=*/0ul); *(uint8_t*)0x200000000000 = 0x3a; memcpy((void*)0x200000000001, "syz2", 4); *(uint8_t*)0x200000000005 = 0x3a; memset((void*)0x200000000006, 69, 1); *(uint8_t*)0x200000000007 = 0x3a; sprintf((char*)0x200000000008, "%020llu", (long long)7); *(uint8_t*)0x20000000001c = 0x3a; memset((void*)0x20000000001d, 77, 1); *(uint8_t*)0x20000000001e = 0x3a; memset((void*)0x20000000001f, 77, 1); *(uint8_t*)0x200000000020 = 0x3a; memcpy((void*)0x200000000021, "./file2", 7); *(uint8_t*)0x200000000028 = 0x3a; *(uint8_t*)0x200000000029 = 0x46; syscall(__NR_write, /*fd=*/r[0], /*data=*/0x200000000000ul, /*len=*/0x2aul); memcpy((void*)0x200000000f40, "msdos\000", 6); memcpy((void*)0x200000000f00, ".\000", 2); syz_mount_image( /*fs=*/0x200000000f40, /*dir=*/0x200000000f00, /*flags=MS_I_VERSION|MS_PRIVATE|MS_SYNCHRONOUS|MS_STRICTATIME|MS_SILENT|MS_REMOUNT|0x202408*/ 0x1a4a438, /*opts=*/0x200000000f80, /*chdir=*/0xb, /*size=*/0, /*img=*/0x200000000000); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }