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