// https://syzkaller.appspot.com/bug?id=f720abbeee7668587bf17c323d92c4e7d571bd4b // 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 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, 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 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } 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 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); } } void execute_one(void) { memcpy((void*)0x20000040, "ntfs\000", 5); memcpy((void*)0x2001f200, "./file0\000", 8); memcpy( (void*)0x20000980, "\x78\x9c\xec\x9d\x4f\x6c\x1b\x59\x1d\xc7\xbf\x33\xb6\xe3\x6c\x92\xb6\x49" "\xa8\x50\x16\x0e\x3b\x45\xd6\xaa\x12\x28\xb2\x80\x95\xb8\xd5\xf9\xe3\x34" "\xae\xd2\x24\x9b\x38\x55\xb9\xd0\xb8\xc4\xdd\x86\x66\x63\x6f\xec\x6a\x37" "\xa8\x62\xcd\x6d\x11\x97\x1c\x11\x97\xed\x71\x85\x38\x44\x82\x03\x12\x12" "\xda\x23\x97\x0a\x8e\x08\x71\xe0\xb0\xb7\x5e\x2a\x71\x60\x0f\xa8\x46\xf3" "\xe6\xbd\xc9\xfc\xf1\xe4\x8f\x93\xd8\x4d\x7e\xdf\x8f\xd4\xbe\xe7\xf1\xf8" "\xcd\x9b\xf9\xfa\x4d\xfc\x7d\x7f\x7e\xf3\x72\x65\x6f\xb1\x3c\xb7\xea\x38" "\x8e\x83\x51\x0b\x1e\x5f\x7b\xc9\xc7\x55\x2f\x6d\xa1\x85\xb6\x7e\x2f\xad" "\x77\x69\xeb\xd4\xdd\xfc\x9f\x6b\xc0\x7f\x7f\xfb\xcb\xdb\xdf\x6d\xfc\x6d" "\x06\x23\xc0\xd5\x77\xfe\xf2\xd1\xb3\xdf\x7f\xe7\xcb\xe6\xf0\xbd\x3f\x5e" "\xfd\x73\x16\x2f\x46\x7f\xf2\xf2\xd5\xf7\xbf\x7a\xf1\xcd\x17\x6f\xbf\x7c" "\x5d\x7e\xbc\xd9\x70\x36\x1b\xce\x76\xad\xe9\x54\x9c\x87\xb5\x5a\xb3\xf2" "\x70\xab\xea\x6c\x6c\x36\x9e\x4c\x3a\xcb\x5b\xd5\x4a\xa3\xea\x6c\x6e\x37" "\xaa\x3b\xa1\xb7\x1f\x6d\xd5\xea\xf5\x5d\xa7\xb2\xbd\x71\x65\xa8\xbe\x53" "\x6d\x34\x9c\xca\xf6\xae\xf3\xa4\xba\xeb\x34\x6b\x4e\x73\x67\xd7\xa9\x7c" "\x50\xd9\xdc\x76\x26\x27\x27\x9d\x2b\x43\x20\xc7\x64\xed\x77\xfd\xae\x01" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x90" "\xb3\xa1\xdd\x46\xd6\x4d\x6f\xf5\xbb\x22\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\xe9\x9a\xb9\xd2\x42\x31\x8f" "\xb7\xfc\xd7\x16\x2c\xcc\xc3\xc2\x17\x16\x80\xd1\x83\xfd\xcc\xba\xff\xc1" "\x84\x72\xdc\x5d\xd7\x55\x6e\x42\xfd\x3f\xef\xe7\x0e\x67\xe0\x98\xf5\xcc" "\x03\x78\xec\x97\x6f\xe3\x8e\xca\x59\xc8\xa8\x6d\x19\xb4\xca\xf9\xed\x5f" "\xbf\xfe\x87\x95\x94\x62\x5f\x07\x30\xd0\xa9\x39\x6e\x3a\x95\xc3\x5d\xcc" "\xa1\xac\x5f\xb7\x74\xdd\x2d\x14\x74\x74\x03\x8f\x3b\x3a\x2d\x98\x0d\xfb" "\xfa\x8a\xac\x87\xd3\xb1\x5b\xe9\x1b\x23\xb7\x2c\xec\x87\xca\x49\xc5\xce" "\xc7\x2f\x67\x34\x94\xf8\xe9\x98\x65\xab\xb4\xdd\x6e\xb7\x8f\x79\x89\xba" "\x20\x49\x4d\x22\x03\xea\x2f\x1b\xea\x2f\x1b\xea\x2f\x1b\xea\x2f\x1b\xea" "\x2f\x1b\xea\x2f\x9b\xc1\x44\xff\xff\x38\xe2\xff\x53\xda\x0d\xdb\x09\x25" "\x25\xf9\xff\xa3\x7c\x79\x47\xff\x6f\xc5\x37\xb9\xfe\xbf\xee\x97\x6f\x63" "\xe5\xa4\xfe\xdf\x18\x6e\x9d\x9a\xe3\x0e\xfa\xfe\xff\x2e\x36\xb1\x83\x1d" "\xbd\x3d\xa9\x1f\x20\x15\x2e\x06\xd1\x72\x4d\x7a\x23\xed\xd9\xf6\xf3\xf5" "\xef\x84\x9c\x86\xa4\xd6\x4c\x64\x40\xfd\x65\x43\xfd\x65\x43\xfd\x65\x43" "\xfd\x65\x43\xfd\x65\x63\xc7\xfc\xbf\x7d\x88\xff\xb7\x2f\xb2\xff\xf7\x67" "\x30\x78\x69\xd0\xff\x2f\xa0\x86\x0f\x30\x87\x4d\x6c\x41\x3f\xf2\x20\xd1" "\xff\x9b\x38\x09\xbe\xff\x8f\x94\x6b\xd2\x1b\x85\x94\xfa\x50\x7f\xfc\xbf" "\x95\x3e\xde\x7e\x6c\xff\x97\x9c\xaf\x3a\x34\xa5\x00\xd4\x5f\x36\xd4\x5f" "\x36\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\x71\xff\x9f\xd2\xfe" "\xff\x55\xc4\xff\x0f\x04\xfa\x00\x3a\x31\xaa\xfd\xb2\xf1\xff\xf9\x2e\xfd" "\x7f\x78\x9e\xbf\x85\xe5\x13\xfb\xfc\x30\xa6\xfc\x6c\x2a\x87\x7b\xa8\x61" "\x0b\x4f\xf1\x21\xaa\xaa\xdc\x96\x7f\x1c\x1b\x1b\xfe\x11\xd3\x2d\xf7\x3c" "\xcc\x7a\x80\xeb\xea\xdd\x1f\xea\xf3\xbe\x8e\xcf\xad\x71\x58\xde\x51\x32" "\xe3\xfa\xf3\x6a\x9b\xb7\x43\xc6\x01\xe0\xd8\x08\xed\x13\x7d\x0f\xba\xaf" "\x24\xef\x1f\x3f\x8d\x71\x9d\x6b\x60\x17\x3f\xc7\x13\x54\xb0\xa5\x7a\x23" "\xcc\x7c\x84\x3a\x80\x9b\xfe\xfe\x19\x8c\x44\xd6\x57\xa4\xf4\x99\xb7\xfc" "\xed\x13\xfe\x6c\x85\x89\xc4\x7e\x08\xb6\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9" "\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\xc4\xfd\x7f\x5a\xfb\xff" "\xe7\xc3\xf1\xf5\xff\x69\xff\x1b\x53\x8e\x95\x74\x96\xfe\xff\x14\xe3\xfc" "\x07\x0b\xed\x87\xbc\x24\x38\xce\x3f\x85\x26\x9a\xd8\xc1\x2c\xaa\x78\xa4" "\xb7\x87\xfb\x01\x52\xc7\xee\x07\xf8\x15\xe2\xfd\x00\x6a\xdb\x09\xfb\x01" "\x94\x5f\x1f\x32\xc7\xb7\x9e\xb9\xbb\xb7\x3f\x05\x72\x58\x45\x19\x53\x58" "\xc4\x2c\xa6\xb0\x82\x59\x3c\x40\x09\x8b\x98\xc3\x12\x56\x70\x17\x53\x28" "\xa3\x84\x25\x2c\x9e\x40\xed\x38\xc9\xed\x3f\x20\xbd\x9a\xeb\x90\xd7\xf9" "\x79\x9d\xe6\x54\x0d\xca\x58\x41\x09\xd3\x58\x43\x19\x45\x3c\xc0\x02\x4a" "\xaa\xde\xe7\x8f\x13\xc8\xb7\x02\xf9\xb6\x26\x87\x39\x94\xb0\xa0\x6a\xb5" "\x88\x29\xdc\x45\xb1\x07\xb5\x3a\x20\x1f\xc8\x4f\x03\x98\x35\x79\x7d\xc9" "\x73\x58\xc2\x34\xee\xa0\x88\x19\x94\x95\xb6\xb3\xc7\x29\xf6\xcc\x1e\xd3" "\xe1\xcd\x5f\xb1\x03\x79\x8d\x65\xea\xb7\xaa\xea\xb6\xa6\x14\x2e\xe3\xc7" "\x78\x80\x59\x14\xb1\x8a\x19\xb5\x65\x19\x65\xf5\x4d\x3c\x2f\x96\x03\xf9" "\xce\xfa\xde\xc3\x12\x16\xb0\xa6\x94\xed\xbd\xc6\xeb\x81\x7c\x21\xd8\x92" "\xfc\xeb\x17\xae\xdf\xd9\xb7\xdd\xc3\xa9\x47\xea\x37\xa2\xf3\x26\xcd\xa9" "\xfb\x8a\x8d\xa9\x73\xac\xc3\x61\xb4\x12\xb6\x1f\xe8\x5b\x52\xf7\xbe\x22" "\xee\xe3\x01\x56\xb0\x84\xa5\x9e\xdc\x57\x0c\x7b\x81\x7c\xe1\xc8\xfa\x4d" "\x61\x01\x0b\x58\xc2\x4c\x4f\xb4\x75\x79\x1e\xc8\x77\x6e\x1f\xd3\xaa\xdd" "\xba\xdf\xb6\xe5\xc4\x52\xce\xef\xf7\xdf\xfe\x91\xf5\x5b\x41\x11\xcb\xea" "\x6f\xdb\xaa\x6a\x21\xcb\x58\x52\xd7\xb4\x37\x2a\x7f\x99\x50\x3f\x23\x76" "\x0e\x45\x4c\xf5\xa1\xdd\x1a\xfe\x6e\x32\x59\x2f\x31\x2b\x75\x4d\xea\xd5" "\xef\xb4\x74\xaf\xff\xbf\x13\xdf\xf1\x6e\x80\x39\xd5\x1e\x6e\xe3\x36\x8a" "\xea\xb7\xcb\x9a\xba\x76\x0b\xfe\xdf\x92\x55\xf5\xdb\xa1\xa8\xee\xda\xe7" "\x42\x60\x24\xa8\x95\xf4\xc6\x1b\x4c\x6f\xe6\x8d\xd2\xff\xc9\x86\xfa\xcb" "\x26\xee\xff\x33\xca\xff\xa7\x30\x6a\xc7\xc7\xff\x33\xea\xcf\x51\xbe\x63" "\x49\x47\xf9\xff\xe9\xf7\xde\xfb\x28\x98\x9a\xed\xef\x46\xca\xc9\x87\xd6" "\x11\x58\xca\x15\x9d\x72\xfc\x5f\x9d\x85\x95\x9a\x54\xaf\x97\x43\xf3\xfa" "\x0f\xbe\xff\xe6\x83\xfe\x6f\x3d\x6d\x30\xbf\x37\x1a\x4e\xc7\xec\x19\x95" "\xba\xbf\x0f\xef\xbb\x99\xb4\xd7\x6f\xf0\x23\xfd\x11\xf7\x77\xe1\x0f\x90" "\x57\xe7\x61\xe9\x0b\x63\xa6\x52\xdc\xd4\xff\x82\x95\x9c\x88\x44\x07\x7c" "\xae\xeb\x68\xa5\x0b\xfa\x8a\x87\x99\x0f\x5e\xf0\x0e\xa9\x39\xfe\x98\xe5" "\x79\xa1\x7d\x33\x6f\x20\xed\xcd\x33\x18\x0c\xd5\x33\xeb\xd7\x85\x71\x0a" "\x24\x92\xed\x77\x05\x48\x5f\xa1\xfe\xb2\xa1\xfe\xb2\xa1\xfe\x17\x1f\xdd" "\xa1\xf6\x69\x37\x9f\xa5\xfe\xb2\xa1\xfe\xb2\xc9\xc6\xfc\xff\x80\x1e\xff" "\x5f\xef\xb0\xfe\x7f\xa0\xcf\xeb\xff\x83\xf1\xff\x4f\xbc\x2e\x40\x9f\x4b" "\xc1\x3f\x4f\x7d\x05\x52\x39\x4c\x63\x13\x4d\x7c\x88\x0a\xea\x89\xeb\xfe" "\x0d\xd1\xb8\xfd\xd1\xf0\x7f\x63\xd6\x9c\x4a\x2f\x86\x9f\x66\xff\x9f\x6c" "\xa8\xbf\x6c\xa8\xbf\x6c\xa8\xbf\x6c\xa8\xbf\x6c\xa8\xbf\x6c\xa8\xbf\x6c" "\xe2\xe3\xff\x59\xed\xff\xff\xda\xe1\xf9\x7f\xd9\x9e\xaf\xff\xb7\xb1\x70" "\x52\x9f\x6f\x26\x86\xeb\xd4\x94\x9f\x51\x3e\xbf\x86\x1a\x9a\xea\xf5\x9b" "\x30\xef\xbf\x53\x3f\x43\xd2\x3c\x84\x68\x3a\xa6\xcb\x39\x5d\x3f\x03\xdb" "\xbf\x6c\xa8\xff\x25\x26\xfe\xd0\xd1\x18\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f" "\x36\xd4\x5f\x36\xd4\x5f\x36\x71\xff\x3f\xa8\xfd\xff\x67\x1d\xfc\xff\xe0" "\x19\x8c\xff\x9b\x30\xf9\xa7\x8b\xff\x9f\xea\x22\xfe\x7f\x98\x60\x5c\x80" "\x69\x54\xb0\x81\x19\x15\x1b\xb0\x01\xcf\x4f\x87\xe3\xe8\xd9\x7e\xae\x15" "\x9a\x9f\x7f\x50\xec\x6b\x9d\xf5\xe7\xe7\xbf\x7a\x27\x9c\x6a\xcc\xd1\xec" "\xb6\xf7\x81\xfe\xce\x13\x60\xfb\x97\x0d\xf5\x97\x0d\xf5\x97\x0d\xf5\x97" "\x0d\xf5\x97\x0d\xf5\x97\x0d\xf5\x97\x4d\xdc\xff\xbf\xa5\xfc\xff\x5b\xf8" "\x53\x64\xfd\x7f\x46\xbd\xe7\x7e\xa2\xd4\xb1\xa4\x53\xcc\xff\x77\xa2\x65" "\x59\x47\xce\xff\x3f\x93\xe7\x02\xa8\xe3\x66\x53\x39\xac\xa2\x8a\x9f\xe2" "\x29\x76\x50\x8d\xf8\xfb\x83\xf6\x51\xf0\xaf\x8f\x39\x61\xaf\x23\xe3\x7f" "\x08\xa7\x6e\x69\xb3\x58\xc5\xd8\xd4\x6d\xf5\x7a\xcf\xc4\x42\xd2\x71\x02" "\xf6\xfc\xf5\xf7\xee\x7e\x5e\x6f\xc1\x38\xc2\x71\x02\x5a\x81\x98\x35\x13" "\x6a\x06\x82\x7b\xfe\x5e\xe4\x9f\xf7\x73\x7f\x50\xd7\xc7\xa4\x66\xbf\x67" "\x00\x4a\x28\xc5\xf6\x7f\x35\x9e\xfa\xda\x2d\xd8\xa4\x08\xed\x6f\x87\xf4" "\xb3\x75\x7d\x9f\xe3\x20\x5e\x40\x2b\x50\xdf\x92\xd6\x7e\x34\x52\xdf\x7a" "\x20\xde\xd8\x75\x7d\xfc\x9b\xa6\xa3\x27\xe1\xd8\xd1\xfd\x92\xce\x29\x5a" "\xbf\x8b\xb1\xae\xe2\xa2\xc0\xfb\xbf\x6c\xa8\xbf\x4c\xcc\xcd\x98\xfa\xcb" "\x86\xfa\xcb\x86\xfa\x4b\xe4\xe0\x37\x34\xf5\x97\x4d\xdc\xff\x0f\xe9\xf1" "\xff\x2f\x3a\x8c\xff\x0f\xf5\x71\xfd\xff\x68\xc8\xff\xa7\xba\xf0\xff\xb6" "\x7f\xce\x88\xac\xff\x5f\x43\x1d\x33\xa8\xa0\x81\xaa\xf2\xba\x9d\xe6\xe5" "\x9b\x51\xfc\x42\xa8\x46\x88\x5d\x91\x1b\xce\x67\x2a\x35\xf3\xfb\x91\xf1" "\xe6\x0f\x38\x3a\x0e\x5f\x0e\x25\x6c\xe3\x11\x6a\x7a\x7f\xd3\xf9\x31\xb2" "\xf9\xed\x27\x1f\xff\xe2\x5f\xff\x8c\x9e\xf7\xf9\xfa\x5d\xb6\x7f\xd9\x50" "\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\xc4" "\xfd\xff\xb0\x8e\xff\xbf\x67\xc7\xe3\xff\x0d\xf7\xc8\xff\xf7\x68\xfc\x5f" "\x9d\x9d\xeb\xff\x8b\xf8\x04\x4d\x54\xb1\x8d\x0d\x35\xfe\xfd\x89\x65\xc6" "\xbf\x6d\xdc\xb7\x8e\x8e\xeb\x3f\x6f\x79\xff\x5c\xde\xf6\xce\x00\xeb\xfa" "\x29\x41\xc3\xfa\xff\x93\xd6\xef\x5d\xdd\x35\x30\x90\xca\x61\x09\x0f\xf1" "\x33\x94\xfc\x18\x05\x67\x57\xbe\xad\xca\x7f\x1f\x4f\x55\x5c\x84\x0a\x80" "\x6f\xe9\xf2\x1f\xeb\x67\xbb\x9d\xb6\xfe\x83\xa9\x1c\x56\x50\x45\x1d\x15" "\xec\xa8\x1e\x96\xf8\xf7\x86\xe3\xfa\xfd\x82\xf7\x7f\xd9\x50\x7f\xd9\x50" "\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\xc4\xfd\xff\x88\xf2\xee\x16" "\xf2\x1d\xe2\xff\x8f\xf4\x20\xfe\x5f\x38\x2e\x9f\x7d\xec\xb8\x7c\x9f\x5b" "\xf1\xb8\x7c\x6a\x5b\x37\xcf\xe3\xf7\x8f\x6f\xf9\xb9\xce\xfe\xb4\x70\xfc" "\x4b\xfd\x46\xc2\xf6\x2f\x1b\xea\x2f\x1b\xea\x2f\x8f\xc0\xd3\xd0\x8f\x11" "\x21\x92\x5c\x66\xd8\xfe\x65\x43\xfd\x65\x43\xfd\x65\x13\xf7\xff\x57\x0e" "\xf1\xff\x57\xe8\xff\x2f\x19\x6c\xff\xb2\xa1\xfe\xb2\xa1\xfe\xb2\xa1\xfe" "\xb2\xa1\xfe\xb2\xa1\xfe\xb2\xa1\xfe\xb2\x89\xfb\xff\xab\x87\xf8\xff\xab" "\xa2\xfd\xbf\x4d\xff\x4f\x2e\x19\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\xd4" "\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\x71\xff\x7f\xed\x10\xff\x7f\x4d\xb4\xff" "\xe7\xf8\x3f\xb9\x6c\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50\x7f\xd9\x50" "\x7f\xd9\x50\x7f\xd9\xc4\xfd\xbf\xf1\xf1\xbf\x41\xd8\xff\x1f\xf5\xc4\xa0" "\xb3\xf2\xff\x97\xd3\x67\xbf\xa9\xb0\xfd\xcb\x86\xfa\xcb\x86\xfa\xcb\x86" "\xfa\xcb\x86\xfa\xcb\x86\xfa\xcb\x86\xfa\xcb\x26\xee\xff\xc7\xe8\xff\x05" "\xc1\xf6\x2f\x1b\xea\x2f\x1b\xea\x2f\x1b\xea\x2f\x1b\xea\x2f\x1b\xea\x7f" "\x59\xe8\x2e\x94\x2b\xf5\x97\x4d\xdc\xff\x8f\xd3\xff\x0b\x82\xed\x5f\x36" "\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36\xd4\x5f\x36" "\x71\xff\xff\x0d\xfa\x7f\x41\xb0\xfd\xcb\x86\xfa\xcb\x86\xfa\xcb\x86\xfa" "\xcb\x86\xfa\xcb\x86\xfa\x5f\x10\xfe\x1f\x00\x00\xff\xff\x81\x2f\x07" "\x70", 2430); syz_mount_image(0x20000040, 0x2001f200, 0, 0x20000000, 0, 0x97e, 0x20000980); } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); use_temporary_dir(); loop(); return 0; }