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