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