// https://syzkaller.appspot.com/bug?id=8da73f8350f6714909902481d52352994a2b124f // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif #ifndef __NR_renameat2 #define __NR_renameat2 316 #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) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) 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, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000a40, "nilfs2\000", 7); memcpy((void*)0x20000040, "./file0\000", 8); *(uint16_t*)0x20000000 = 0; *(uint64_t*)0x20000002 = 0; *(uint8_t*)0x2000000a = -1; sprintf((char*)0x2000000b, "%023llo", (long long)-1); *(uint64_t*)0x20000022 = -1; *(uint32_t*)0x2000002a = -1; memcpy( (void*)0x20001540, "\x78\x9c\xec\xdd\x4f\x8c\x5b\x47\xfd\x00\xf0\xb1\x77\xbd\xc9\x26\xe9\x2f" "\x4e\x7f\x09\x5d\xd2\xd0\x26\x14\xda\x02\xed\x6e\xb3\x59\xc2\x9f\x08\x9a" "\xaa\xb9\x10\x35\x15\xb7\x4a\x15\x97\x28\x4d\x4b\x44\x1a\x10\xa9\x04\xad" "\x2a\x91\xe4\xc4\x8d\x56\x55\xb8\xf2\x47\x9c\x7a\xa9\x00\x21\xd1\x0b\x8a" "\x7a\xe2\x52\x89\x46\xe2\xd2\x53\xe9\x81\x03\x51\x90\x2a\x71\x80\x42\xb2" "\x28\xbb\x33\x5e\xef\x37\x36\xcf\xde\x24\xeb\xb5\xfd\xf9\x48\xb3\xe3\x79" "\x33\xf6\xcc\xf3\x3e\x3f\x3f\xbf\xf7\x66\x26\x01\x63\xab\xbe\xf4\x77\x61" "\x61\xa6\x96\xd2\xc5\xb7\xdf\x38\xf2\xb7\x07\xff\x3a\x7d\x63\xc9\xe3\xad" "\x12\xcd\xa5\xbf\x93\x6d\xa9\x46\x4a\xa9\x96\xd3\x93\xe1\xf5\x3e\x98\x58" "\x8e\xaf\x7d\xf4\xea\x89\x4e\x71\x2d\xcd\x2f\xfd\x2d\xe9\xf4\xf4\xd5\xd6" "\x73\xb7\xa6\x94\xce\xa5\xbd\xe9\x52\x6a\xa6\xdd\x17\x2f\xbf\xfe\xee\xfc" "\x53\xc7\xce\x1f\xbd\xb0\xef\xbd\x37\x0f\x5d\xb9\x33\x6b\x0f\x00\x00\xe3" "\xe5\x9b\x97\x0e\x2d\xec\xfa\xcb\x9f\xee\xdd\xf1\xf1\x5b\xf7\x1d\x4e\x9b" "\x5a\xcb\xcb\xf1\x79\x33\xa7\xb7\xe5\xe3\xfe\xc3\xf9\xc0\xbf\x1c\xff\xd7" "\xd3\xea\x74\xad\x2d\xb4\x9b\x0a\xe5\x26\x73\xa8\x87\x72\x13\x1d\xca\xb5" "\xd7\xd3\x08\xe5\x26\xbb\xd4\x3f\x15\x5e\xb7\xd1\xa5\xdc\xa6\x8a\xfa\x27" "\xda\x96\x75\x5a\x6f\x18\x66\x65\x3b\x6e\xa6\x5a\x7d\x76\x55\xba\x5e\x9f" "\x9d\x5d\xfe\x4d\x9e\x96\x7e\xd7\x4f\xd5\x66\xcf\x9c\x3a\xfd\xfc\xd9\x01" "\x35\x14\xb8\xed\xfe\x71\x7f\x4a\x69\xef\x88\x86\xe9\x0d\xd0\x06\x41\xd8" "\xc0\x61\x71\xfb\xa0\xf7\x40\x00\xcb\xe2\xf5\xc2\x9b\x9c\x8b\x67\x16\x6e" "\x4d\xeb\xd5\x26\x7b\xab\xff\xea\x13\xf5\xce\xcf\x87\xdb\x60\xbd\xb7\x7f" "\xf5\x0f\x57\xfd\xbf\x3a\x6f\x8f\xc3\xed\x33\xaa\x5b\x53\x59\xaf\xf2\x39" "\xda\x96\xd3\xf1\x3a\x42\xbc\x7f\xa9\xdf\xcf\x7f\x79\xbd\x78\x3d\xa2\xd1" "\x63\x3b\xbb\x5d\x47\x18\x96\xeb\x0b\xdd\xda\x39\xb1\xce\xed\x58\xab\x6e" "\xed\x8f\xdb\xc5\xa8\xfa\x5a\x8e\xcb\xfb\xf0\xf5\x90\xdf\xfe\xf9\x89\xff" "\xd3\x61\xf9\x1f\x03\x9d\xfd\x73\x94\xcf\xff\x0b\x82\xf0\x3f\xc3\xe2\xa0" "\x77\x40\xc0\x86\x15\xef\x9b\x5b\xcc\x4a\x7e\xbc\xaf\x2f\xe6\x6f\xaa\xc8" "\xdf\x5c\x91\x3f\x5d\x91\xbf\xa5\x22\x7f\x6b\x45\x3e\x8c\xb3\xdf\xbe\xf4" "\x93\xf4\x5a\x6d\xe5\x77\x7e\xfc\x4d\xdf\xef\xf9\xb0\x72\x9e\xed\xae\x1c" "\xff\x5f\x9f\xed\x89\xe7\x23\xfb\xad\x3f\xde\xf7\xdb\xaf\x5b\xad\x3f\xde" "\x4f\x0c\x1b\xd9\xef\x8f\x3f\x73\xf2\xcb\xcf\x3d\x7b\x79\xf9\xfe\xff\x5a" "\x6b\xfb\xbf\x9e\xb7\xf7\xbd\x39\xdd\xcc\x9f\xad\x4b\xb9\x40\x39\x5f\x18" "\xcf\xab\xb7\xee\xfd\x6f\xae\xae\xa7\xde\xa5\xdc\xdd\xa1\x3d\x77\x75\x28" "\xbf\xf4\x78\xe7\xea\x72\xb5\x9d\x2b\xaf\x93\xda\xf6\x33\x37\xb5\x63\x66" "\xf5\xf3\xb6\x77\x2b\xb7\x67\x75\xb9\x66\x28\x37\x9d\xc3\xe6\xd0\xde\x78" "\x7c\xb2\x25\x3c\xaf\x1c\x7f\x94\xfd\x6a\x79\xbf\x26\xc3\xfa\x36\xc2\x7a" "\x4c\x85\x76\x94\xfd\xca\x8e\x1c\xc7\x76\xc0\x5a\x94\xed\xb1\xdb\xfd\xff" "\x65\xfb\x9c\x49\x8d\xda\xf3\xa7\x4e\x9f\x7c\x2c\xa7\xcb\x76\xfa\xc7\x89" "\xc6\xa6\x1b\xcb\xf7\xaf\x73\xbb\x81\x5b\xd7\x6b\xff\x9f\x99\xb4\xba\xff" "\xcf\xb6\xd6\xf2\x46\xbd\x7d\xbf\xb0\x7d\x65\x79\xad\x7d\xbf\xd0\x0c\xcb" "\xe7\xbb\x2c\x3f\x90\xd3\xe5\x7b\xee\xdb\x13\xd3\x4b\xcb\x67\x4f\x7c\xf7" "\xf4\x73\xb7\x7b\xe5\x61\xcc\x9d\x7d\xf9\x95\xef\x1c\x3f\x7d\xfa\xe4\xf7" "\x3d\xf0\xc0\x03\x0f\x5a\x0f\x06\xbd\x67\x02\xee\xb4\xb9\x97\x5e\xfc\xde" "\xdc\xd9\x97\x5f\x79\xf4\xd4\x8b\xc7\x5f\x38\xf9\xc2\xc9\x33\x07\x0e\x1e" "\x3c\x30\x3f\x7f\xf0\x2b\x07\x16\xe6\x96\x8e\xeb\xe7\xda\x8f\xee\x81\x51" "\xb2\xf2\xa5\x3f\xe8\x96\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbd\xfa" "\xc1\xd1\x23\x97\xff\xfc\xce\x97\xde\x5f\xee\xff\xbf\xd2\xff\xaf\xf4\xff" "\x2f\x77\xfe\x96\xfe\xff\x3f\x0e\xfd\xff\x63\x3f\xf9\xd2\x0f\xbe\xf4\x03" "\xdc\xd1\x21\x7f\xa9\x4c\x18\x60\x75\x2a\x94\x6b\xe4\xf0\xff\xa1\xbd\x3b" "\x43\x3d\xbb\xc2\xf3\x3e\x91\xe3\xd6\x3c\x7e\xb9\xff\x7f\xa9\x2e\x8e\xeb" "\x5a\xda\x73\x4f\x58\x1e\xc7\xef\x2d\xe5\xc2\x70\x02\x37\x8d\x97\x32\x15" "\xc6\x20\x89\xf3\x05\x7e\x3a\xc7\x17\x72\xfc\xcb\x04\x03\x54\x9b\xee\xbc" "\x38\xc7\x55\xe3\x5b\x97\x6d\xbd\x8c\x4f\x61\x5c\x8a\xe1\x54\xfe\x6f\x65" "\x6b\x28\xe3\x98\x94\xfe\xdf\xdd\xc6\x75\x2a\xfb\xff\x1d\x1d\x5e\x8b\x8d" "\x6f\x3d\xba\x13\x0e\x7a\x1d\x81\xce\xfe\x6e\xfc\xef\xb1\x0a\x3f\x7a\x64" "\xf0\x6d\x10\x36\x4e\x98\x34\x8b\x07\xb0\x41\x0c\x7a\xfe\xcf\x72\xde\xb3" "\xc4\x67\xfe\xf0\x8d\xcd\x37\x42\x29\x76\xf5\x89\xd5\xfb\xcb\x38\x7e\x29" "\xdc\x8a\x8d\x3e\xff\xa4\xfa\x47\x6b\xfe\xcf\xd6\xfc\x77\x3d\xef\xff\xc2" "\x8c\x79\xcd\xb5\xd5\xfb\xaf\x9f\x5d\x79\xbf\xad\xda\xb4\xbb\xd7\xfa\xe3" "\xfa\x97\x71\xa0\x77\xf6\x57\xff\xc7\xb9\xfe\xb2\x36\x0f\xa5\xde\xea\x5f" "\xfc\x45\xa8\x3f\x5e\x10\xea\xd1\xbf\x43\xfd\x5b\x7a\xac\xff\xa6\xf5\xdf" "\xb3\xb6\xfa\xff\x93\xeb\x2f\x6f\xdb\xc3\x0f\xf4\x5a\xff\x72\x8b\x6b\xf5" "\xd5\xed\x88\xe7\x8d\xcb\xf5\xbf\x78\xde\xb8\xb8\x16\xd6\xbf\x8c\xed\xd9" "\xf7\xfa\xaf\x71\xa2\xc6\xeb\xb9\x7e\x18\x67\xc3\x32\xcf\x6c\xbf\x86\x65" "\xfe\xdf\x6e\xe2\x7d\x18\x5f\xcc\xe9\xb2\x23\x2c\xf7\x39\xc4\xf9\x4e\xfa" "\x6d\x7f\xb9\xbf\xa2\x7c\x0f\xec\x0a\xaf\x5f\xab\xf8\x7e\x1b\xe3\xf9\x7f" "\x47\x62\xaa\x97\xaf\xe6\xb8\xea\xf3\x50\xe6\xff\x2d\xdb\x63\xb3\x43\xba" "\xde\x96\x6e\x74\x78\x6f\x47\x75\x5f\x03\xc3\xea\x03\xd7\xff\x04\x61\x6c" "\xc3\xe2\xe2\xe2\x9d\x3d\xa1\x55\x61\xa0\x95\x33\xf0\xf7\x7f\xd0\xbf\x13" "\x06\x5d\xff\xa0\xdf\xff\x2a\x71\xfe\xdf\x78\x0c\x1f\xe7\xff\x8d\xf9\x71" "\xfe\xdf\x98\x1f\xe7\xff\x8d\xf9\x71\x7e\xbd\x98\x1f\xe7\xff\x8d\xef\x67" "\x9c\xff\x37\xe6\xdf\x13\x5e\x37\xce\x0f\x3c\x53\x91\xff\xc9\x98\xff\xe1" "\xea\x5f\x50\xbb\x2b\x9e\x7f\x6f\x45\xfe\x9e\x8a\xfc\x4f\x55\xe4\xef\xab" "\xc8\xbf\xaf\x22\xff\xfe\x8a\xfc\xbb\x2b\xf2\x1f\xa8\xc8\xff\x4c\x45\xfe" "\x67\x2b\xf2\x1f\xac\xc8\x7f\xb8\x22\xff\x73\x15\xf9\xa3\xae\xf4\x47\x19" "\xd7\xf5\x87\x71\x16\xfb\xe7\xf9\xfc\xc3\xf8\x28\xd7\x7f\xba\x7d\xfe\x77" "\x56\xe4\x03\xc3\xeb\xa7\x6f\xed\x7f\xf2\xd9\xdf\x7c\xab\xb9\xdc\xff\x7f" "\xaa\x75\x3e\xa4\x5c\xc7\x3b\x9c\xd3\x8d\xfc\xdb\xf9\x87\x39\x1d\xaf\x7b" "\xa7\xb6\xf4\x8d\xbc\x77\x72\xfa\xc3\x90\xbf\xd1\xcf\x77\xc0\x38\x89\xe3" "\x67\xc4\xef\xf7\x87\x2a\xf2\x81\xe1\x55\xee\xf3\xf2\xf9\x86\x31\x54\xeb" "\x3c\x5a\x4b\xaf\xe3\x56\x75\x3b\xce\x67\xb8\x7c\x3e\xc7\x5f\xc8\xf1\x23" "\x39\x7e\x34\xc7\xb3\x39\x9e\xcb\xf1\xfe\x1c\xcf\xaf\x53\xfb\xb8\x33\x9e" "\xfc\xf5\xef\x0e\xbd\x56\x5b\xf9\xbd\xbf\x3d\xe4\xf7\x7a\x3f\x79\xec\x0f" "\x14\xc7\x89\x3a\xd0\x63\x7b\xe2\xf9\x81\x7e\xef\x67\x8f\xe3\xf8\xf5\xeb" "\x56\xeb\x5f\x63\x77\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\x2f\xfd\x5d\x58" "\x98\xa9\xa5\x74\xf1\xed\x37\x8e\x3c\x73\xec\xd4\xdc\x8d\x25\x8f\xb7\x4a" "\x34\x97\xfe\x4e\xb6\xa5\x1a\xad\xe7\xa5\xf4\x58\x8e\x27\x72\xfc\xf3\xfc" "\xe0\xda\x47\xaf\x9e\x68\x8f\xaf\xe7\xb8\x96\xe6\x53\x2d\xd5\x5a\xcb\xd3" "\xd3\x57\x5b\x35\x6d\x4d\x29\x9d\x4b\x7b\xd3\xa5\xd4\x4c\xbb\x2f\x5e\x7e" "\xfd\xdd\xf9\xa7\x8e\x9d\x3f\x7a\x61\xdf\x7b\x6f\x1e\xba\x72\xe7\xde\x01" "\x00\x00\x00\x18\x7d\xff\x0d\x00\x00\xff\xff\xfb\x4d\x06\x13", 2589); syz_mount_image(0x20000a40, 0x20000040, 0x818, 0x20000000, 1, 0xa1d, 0x20001540); memcpy((void*)0x20000280, ".\000", 2); res = syscall(__NR_open, 0x20000280ul, 0ul, 0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000340, "./file0\000", 8); memcpy((void*)0x200002c0, "\023\023w\305\3745\324\024T\325\324\035)\255\032`)" "Y\201F\346\276\026nA\255\r\275@T\003<\2373\273\332\202$" "\242\363\327r\347cnH\263<\277p\203r\350\361\271\223>" "\305\022wC\276\"\006 \236\360-\371\313\362\366\350\200\3238/\000", 78); syscall(__NR_renameat2, r[0], 0x20000340ul, 0xffffff9c, 0x200002c0ul, 0ul); return 0; }