// https://syzkaller.appspot.com/bug?id=7ee6f789df99bead0bded3c4b044a21896aca50c // 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; } 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*)0x20000000, "udf\000", 4); memcpy((void*)0x20000040, "./file0\000", 8); memcpy((void*)0x200002c0, "uid=forget,iocharset=cp861,noadinicb,uid=forget,undelete,adinicb,gid=" "ignore,nostrict,mode=00000000000000000004001,uid=ignore,volume=" "00000000000000000004,novrs,rootdir=00000000000000000003,undelete,uid=" "ignore,iocharset=cp949,longad,iocharset=macgaelic,iocharset=iso8859-" "4,umask=01777777777777777777001,uid=forget,novrs,gid=", 322); sprintf((char*)0x20000402, "%020llu", (long long)0); memcpy((void*)0x20000416, "\x05\x00", 2); memcpy( (void*)0x20001a40, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x91\xe2\x4a\x6e\x2b" "\x26\x76\x14\xbb\x8d\x8b\x4d\x5b\xa4\x32\x63\xb9\xfa\x17\x53\xb1\x0a\x77" "\x55\xd3\x6c\x03\xc8\x32\x11\x8a\xb9\x05\xe0\x8a\xa4\xd4\x85\x29\x92\x20" "\xa9\x46\x36\xd2\x82\xe9\xa5\x87\x1e\x02\x14\x45\x0f\x39\x11\x68\x8d\x02" "\x29\x1a\x18\x4d\x11\xf4\xc8\xb4\x2e\x90\x5c\x7c\x28\x72\xea\x89\x68\x61" "\x23\x28\x7a\x60\x8b\x00\x39\x05\x2c\x66\xf6\xad\xb8\xa4\x48\x4b\x16\xff" "\x88\xb2\x3f\x1f\x9b\xfa\xee\xce\xbe\x37\xf3\xde\xbc\xf5\x8c\x2c\xe8\xcd" "\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\xe2\xf7\x5f" "\xbd\x7c\xe6\x6c\x7a\xd4\xad\x00\x00\x0e\xd2\xd5\xd1\xaf\x9e\x39\xe7\xfe" "\x0f\x00\x9f\x28\xd7\xfc\xff\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1c\x76\x29\x8a\x78\x32\x52\xcc\x5d\x5d\x4b\xe3\xd5\xfb\xb6\xda\x95" "\x56\xef\xed\x3b\x63\x43\xc3\xdb\x57\x3b\x96\xaa\x9a\x47\xaa\xf2\xe5\x4f" "\xed\xec\xb9\xf3\x17\xbe\xf4\xe2\xe0\xc5\x4e\x5e\x69\xcd\x7c\x48\xfd\xbd" "\xf6\x4c\xbc\x3e\x7a\xed\x72\xfd\x95\xd9\x5b\x73\xf3\x53\x0b\x0b\x53\x93" "\xf5\xb1\x99\xd6\xc4\xec\xe4\xd4\x03\xef\x61\xb7\xf5\xb7\x1a\xa8\x4e\x40" "\xfd\xd6\x1b\xb7\x27\x6f\xdc\x58\xa8\x9f\x7b\xe1\xfc\xa6\x8f\xef\xf4\x7f" "\xd0\xf7\xc4\xc9\xfe\x4b\x83\xcf\x9d\x7e\xb6\x53\x76\x6c\x68\x78\x78\x74" "\xa3\x48\xed\xa1\x8f\xbd\x8d\x9d\x66\x78\x1c\x8d\x22\x4e\x47\x8a\xe7\xbf" "\xf7\xd3\xd4\x8c\x88\x22\x76\x7f\x2e\x6a\x07\x3b\xf6\x5b\x1d\xab\x3a\x31" "\x50\x75\x62\x6c\x68\xb8\xea\xc8\x74\xab\x39\xb3\x58\x7e\x38\xd2\x39\x11" "\x45\x44\xbd\xab\x52\xa3\x73\x8e\xb6\x1f\x8b\xe8\xe9\x3d\xd0\x3e\xec\xac" "\x11\xb1\x54\x36\xbf\x6c\xf0\x40\xd9\xbd\xd1\xb9\xe6\x7c\xf3\xfa\xf4\x54" "\x7d\xa4\x39\xbf\xd8\x5a\x6c\xcd\xce\x8c\xa4\x76\x6b\xcb\xfe\xd4\xa3\x88" "\x8b\x29\x62\x39\x22\x56\xfb\xee\xdd\x5d\x6f\x14\xd1\x13\x29\xbe\x73\x62" "\x2d\x5d\x8f\x88\x23\x9d\xf3\xf0\xc5\x6a\x62\xf0\x4e\xad\xd8\x66\x4f\x07" "\xab\x6c\x67\xbd\x37\x62\xb9\x78\x0c\xc6\xec\x10\xeb\x8b\x22\x5e\x8b\x14" "\x3f\x7b\xf7\x54\x4c\x94\xe7\x2c\xff\xc4\x17\x22\x5e\x2b\xf3\x07\x11\x6f" "\x97\xf9\x72\x44\x2a\xbf\x18\x17\x22\xde\x7f\xe4\xa3\xcf\x5e\xe9\x89\x22" "\xfe\xa2\x1c\xff\x4b\x6b\x69\xb2\xba\x1e\x74\xae\x2b\x57\xbe\x56\xff\xca" "\xcc\x8d\xd9\xae\xb2\x9d\xeb\xca\x47\xbc\x3f\x14\x5b\x37\x3c\xa2\xfb\xc3" "\xb1\x2d\x79\x30\x0e\xf9\xb5\xa9\x16\x45\x34\xab\x2b\xfe\x5a\x7a\xf8\xdf" "\xec\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xd7\x8e\x45" "\x11\xcf\x44\x8a\x57\xff\xfd\x8f\xab\x79\xc5\x51\xcd\x4b\x3f\x71\x69\xf0" "\x0f\xfa\x7f\xb9\x7b\xce\xf8\xd3\xf7\xd9\x4f\x59\xf6\x85\x88\x58\x2a\x1e" "\x6c\x4e\xee\xd1\x3c\x31\x70\x24\x8d\xa4\x74\xcf\x0c\x41\x0e\x4a\x2d\x8a" "\xf8\x93\x3c\xff\xef\x5b\x8f\xba\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x9f\x68\x45\xfc\x24\x52\xbc\xf4\xde\xa9\xb4\x1c" "\xdd\x6b\x8a\xb7\x66\x6e\xd6\xaf\x35\xaf\x4f\xb7\x57\x85\xed\xac\xfd\xdb" "\x59\x33\x7d\x7d\x7d\x7d\xbd\x9e\xda\xd9\xc8\x39\x9e\x73\x29\xe7\x72\xce" "\x95\x9c\xab\x39\xa3\xc8\xf5\x73\x36\x72\x8e\xe7\x5c\xca\xb9\x9c\x73\x25" "\xe7\x6a\xce\x38\x92\xeb\xe7\x6c\xe4\x1c\xcf\xb9\x94\x73\x39\xe7\x4a\xce" "\xd5\x9c\xd1\x93\xeb\xe7\x6c\xe4\x1c\xcf\xb9\x94\x73\x39\xe7\x4a\xce\xd5" "\x9c\x71\x48\xd6\xee\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x38" "\x29\xa2\x88\x5f\x44\x8a\x6f\x7f\x63\x2d\x45\x8a\x88\x46\xc4\x78\xb4\x73" "\xa5\xef\x51\xb7\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x28\xf5\xa5\x22\xbe\x1f\x29\xea\x7f\xd8\xb8\xbb" "\xad\x27\x22\x52\xf5\x6f\xdb\xa9\xf2\x97\x0b\xd1\x38\x5a\xe6\xa7\xa3\x31" "\x58\xe6\xcb\xd1\xb8\x9c\xb3\x59\x65\x4f\xe3\x5b\x8f\xa0\xfd\xec\x4e\x6f" "\x2a\xe2\xc7\x91\xa2\xaf\xf6\xce\xdd\x01\xcf\xe3\xdf\xdb\x7e\x77\xf7\x6b" "\x10\x6f\x7f\x73\xe3\xdd\xaf\xf6\xb4\xf3\x48\xe7\xc3\xfe\x0f\xfa\x9e\x38" "\x79\xe2\xd2\xe0\xf0\xaf\x3f\xbd\xd3\xeb\xb4\x5d\x03\x06\xae\xb4\x66\x6e" "\xdf\xa9\x8f\x0d\x0d\x0f\x8f\x76\x6d\xee\xc9\x47\xff\x74\xd7\xb6\xfe\x7c" "\xdc\x62\x6f\xba\x4e\x44\x2c\xbc\xf9\xd6\x1b\xcd\xe9\xe9\xa9\xf9\x87\x7f" "\x51\x7e\x05\x76\x51\xdd\x0b\x2f\x0e\xeb\x8b\xe8\x39\x14\xcd\x78\x34\x7d" "\xe7\x13\xa0\xbc\xff\xbf\x1f\x29\x7e\xe7\xbd\xff\xe8\xdc\xf0\x3b\xf7\xff" "\x5f\x6a\xbf\xbb\x7b\x87\x8f\x9f\xff\xe9\xc6\xfd\xff\xa5\xad\x3b\x7a\xc0" "\xfb\x7f\xcf\xd6\x7a\xf7\xb9\xff\x3f\xd9\xb5\xed\xa5\xfc\xbb\x91\xde\x9e" "\x88\xda\xe2\xad\xb9\xde\x93\x11\xb5\x85\x37\xdf\x3a\xdd\xba\xd5\xbc\x39" "\x75\x73\x6a\xe6\xc2\x99\x33\x5f\x1e\x1c\xfc\xf2\xf9\x33\xbd\x47\x23\x6a" "\x37\x5a\xd3\x53\x5d\xaf\xf6\xe4\x74\x01\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x1c\x9c\x54\xc4\xef\x45\x8a\xe6\x8f\xd7\x52\x3d\x22\xee" "\x54\xf3\xb5\xfa\x2f\x0d\x3e\x77\xfa\xd9\x23\x71\xa4\x9a\x6f\xb5\x69\xde" "\xf6\xeb\xa3\xd7\x2e\xd7\x5f\x99\xbd\x35\x37\x3f\xb5\xb0\x30\x35\x59\x1f" "\x9b\x69\x4d\xcc\x4e\x4e\x3d\xe8\xe1\x6a\xd5\x74\xaf\xb1\xa1\xe1\x7d\xe9" "\xcc\x7d\x1d\xdb\xe7\xf6\x1f\xab\xbd\x32\x3b\xf7\xe6\x7c\xeb\xe6\x1f\x2d" "\x6e\xfb\xf9\xf1\xda\xe5\xeb\x0b\x8b\xf3\xcd\x89\xed\x3f\x8e\x63\x51\x44" "\x34\xba\xb7\x0c\x54\x0d\x1e\x1b\x1a\xae\x1a\x3d\xdd\x6a\xce\x54\x55\x47" "\xb6\x9d\x4c\xff\xd1\xf5\xa6\x22\xfe\x33\x52\x4c\x5c\xa8\xa7\xcf\xe7\x6d" "\x79\xfe\xdf\xd6\x19\xfe\x9b\xe6\xff\x2f\x6d\xdd\xd1\x3e\xcd\xff\xff\x54" "\xd7\xb6\xf2\x98\x29\x15\xf1\xf3\x48\xf1\xdb\x7f\xf9\x74\x7c\xbe\x6a\xe7" "\xf1\xb8\xe7\x9c\xe5\x72\x7f\x1b\x29\x06\x2e\x7e\x2e\x97\x8b\xa3\x65\xb9" "\x4e\x1b\xda\xcf\x15\x68\xcf\x0c\x2c\xcb\xfe\x6f\xa4\xf8\xc7\x5f\x6c\x2e" "\xdb\x99\x0f\xf9\xe4\x46\xd9\xb3\x0f\x7c\x62\x1f\x13\xe5\xf8\x9f\x88\x14" "\xdf\xff\xf3\xef\xc6\x6f\xe4\x6d\x9b\x9f\xff\xb0\xfd\xf8\x1f\xdf\xba\xa3" "\x7d\x1a\xff\xa7\xba\xb6\x1d\xdf\xf4\xbc\x82\x5d\x77\x9d\x3c\xfe\xa7\x23" "\xc5\xcb\x4f\xbe\x13\xbf\x99\xb7\x7d\xd8\xf3\x3f\x3a\xcf\xde\x38\x95\x0b" "\xdf\x7d\x3e\xc7\x3e\x8d\xff\x67\xba\xb6\xf5\xe7\xe3\xfe\xd6\xde\x74\x1d" "\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xb1\xd6\x9b\x8a\xf8\xbb\x48\xf1\xc3" "\xe1\x9e\xf4\x62\xde\xf6\x20\x7f\xff\x6f\x72\xeb\x8e\xf6\xe9\xef\x7f\x7d" "\xb6\x6b\xdb\xe4\xde\xac\x57\x74\xdf\x17\xbb\x3e\xa9\x00\x00\x00\x00\x70" "\x48\xf4\xa6\x22\x7e\x12\x29\x6e\x2e\xbe\x73\x77\x0e\xf5\xe6\xf9\xdf\x5d" "\xf3\x3f\x7f\x77\x63\xfe\xe7\x50\xda\xf2\x69\xf5\xe7\x7c\xbf\x52\x3d\x37" "\x60\x2f\xff\xfc\xaf\x5b\x7f\x3e\xee\xf8\xee\xbb\x0d\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x87\x4a\x4a\x45\xbc\x98\xd7\x53" "\x1f\xaf\xe6\xf3\x4f\xee\xb8\x9e\xfa\x4a\xa4\x78\xf5\xbf\x9f\xcf\xe5\xd2" "\xc9\xb2\x5c\x67\x1d\xf8\xfe\xea\xd7\xda\xd5\xd9\x99\xd3\x97\xa7\xa7\x67" "\x27\x9a\x8b\xcd\xeb\xd3\x53\xf5\xd1\xb9\xe6\xc4\x54\x59\xf7\xa9\x48\xb1" "\xf6\x37\x9f\xcb\x75\x8b\x6a\x7d\xf5\xce\x7a\xf3\xed\x35\xde\x37\xd6\x62" "\x9f\x8f\x14\xc3\x7f\xdf\x29\xdb\x5e\x8b\xbd\xb3\x36\xf9\x53\x1b\x65\xcf" "\x96\x65\x3f\x15\x29\xfe\xeb\x1f\x36\x97\xed\xac\x63\xfd\x99\x8d\xb2\xe7" "\xca\xb2\x7f\x1d\x29\xbe\xfe\xcf\xdb\x97\x3d\xb9\x51\xf6\x7c\x59\xf6\xbb" "\x91\xe2\x47\x5f\xaf\x77\xca\x1e\x2f\xcb\x76\x9e\x8f\xfa\xd9\x8d\xb2\x2f" "\x4c\xcc\x16\xfb\x30\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x7c\xd2\xf4\xa6\x22\xfe\x2c\x52\xfc\xcf\xad\xe5\xbb\x73\xf9" "\xf3\xfa\xff\xbd\x5d\x6f\x2b\x6f\x7f\xb3\x6b\xbd\xff\x2d\xee\x54\xeb\xfc" "\xf7\x57\xeb\xff\xef\xf4\xfa\x61\xd6\xff\xaf\x9e\x2b\xb0\xb4\xd3\x51\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xe3" "\x29\x45\x11\x6f\x45\x8a\xb9\xab\x6b\x69\xa5\xaf\x7c\xdf\x56\xbb\xd2\x9a" "\xb9\x7d\x67\x6c\x68\x78\xfb\x6a\xc7\x52\x55\xf3\x48\x55\xbe\xfc\xa9\x9d" "\x3d\x77\xfe\xc2\x97\x5e\x1c\xbc\xd8\xc9\x0f\xaf\xbf\xd7\x9e\x89\xd7\x47" "\xaf\x5d\xae\xbf\x32\x7b\x6b\x6e\x7e\x6a\x61\x61\x6a\xb2\x3e\x36\xd3\x9a" "\x98\x9d\x9c\x7a\xe0\x3d\xec\xb6\xfe\x56\x03\xd5\x09\xa8\xdf\x7a\xe3\xf6" "\xe4\x8d\x1b\x0b\xf5\x73\x2f\x9c\xdf\xf4\xf1\x9d\xfe\x0f\xfa\x9e\x38\xd9" "\x7f\x69\xf0\xb9\xd3\xcf\x76\xca\x8e\x0d\x0d\x0f\x8f\x76\x95\xe9\xe9\x7d" "\xe8\xa3\xdf\x23\xed\xb0\xfd\x68\x14\xf1\x57\x91\xe2\xf9\xef\xfd\x34\xfd" "\xb0\x2f\xa2\x88\xdd\x9f\x8b\xfb\x7c\x77\xf6\xdb\xb1\xaa\x13\x03\x55\x27" "\xc6\x86\x86\xab\x8e\x4c\xb7\x9a\x33\x8b\xe5\x87\x23\x9d\x13\x51\x44\xd4" "\xbb\x2a\x35\x3a\xe7\xe8\x00\xc6\x62\x57\x1a\x11\x4b\x65\xf3\xcb\x06\x0f" "\x94\xdd\x1b\x9d\x6b\xce\x37\xaf\x4f\x4f\xd5\x47\x9a\xf3\x8b\xad\xc5\xd6" "\xec\xcc\x48\x6a\xb7\xb6\xec\x4f\x3d\x8a\xb8\x98\x22\x96\x23\x62\xb5\xef" "\xde\xdd\xf5\x46\x11\x6f\x44\x8a\xef\x9c\x58\x4b\xff\xd2\x17\x71\xa4\x73" "\x1e\xbe\x78\x75\xf4\xab\x67\xce\xed\xdc\x8e\x62\x1f\xfb\xf8\x00\xca\x76" "\xd6\x7b\x23\x96\x8b\xc7\x60\xcc\x0e\xb1\xbe\x28\xe2\x9f\x22\xc5\xcf\xde" "\x3d\x15\xff\xda\x17\xd1\x13\xed\x9f\xf8\x42\xc4\x6b\x65\xfe\x20\xe2\xed" "\x68\x8f\x77\x2a\xbf\x18\x17\x22\xde\xdf\xe6\x7b\xc4\xe3\xa9\x27\x8a\xf8" "\xbf\x72\xfc\x2f\xad\xa5\x77\xfb\xca\xeb\x41\xe7\xba\x72\xe5\x6b\xf5\xaf" "\xcc\xdc\x98\xed\x2a\xdb\xb9\xae\x3c\xf6\xf7\x87\x83\x74\xc8\xaf\x4d\xb5" "\x28\xe2\x47\xd5\x15\x7f\x2d\xfd\x9b\xff\xae\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x0e\x91\x22\x7e\x2d\x52\xbc\xf4\xde\xa9\x54\xcd" "\x0f\xbe\x3b\xa7\xb8\x35\x73\xb3\x7e\xad\x79\x7d\xba\x3d\xad\xaf\x33\xf7" "\xaf\x33\x67\x7a\x7d\x7d\x7d\xbd\x9e\xda\xd9\xc8\x39\x9e\x73\x29\xe7\x72" "\xce\x95\x9c\xab\x39\xa3\xc8\xf5\x73\x36\xca\xac\xad\xaf\x8f\xe7\xf7\x4b" "\x39\x97\x73\xae\xe4\x5c\xcd\x19\x47\x72\xfd\x9c\x8d\x9c\xe3\x39\x97\x72" "\x2e\xe7\x5c\xc9\xb9\x9a\x33\x7a\x72\xfd\x9c\x8d\x9c\xe3\x39\x97\x72\x2e" "\xe7\x5c\xc9\xb9\x9a\x33\x0e\xc9\xdc\x3d\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xe0\xe3\xa5\xa8\xfe\x49\xf1\xed\x6f\xac\xa5\xf5" "\xbe\xf6\xfa\xd2\xe3\xd1\xce\x15\xeb\x81\x7e\xec\xfd\x7f\x00\x00\x00\xff" "\xff\x0a\xf9\xfb\x5f", 3101); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000040, /*flags=*/0x2000002, /*opts=*/0x200002c0, /*chdir=*/0xfe, /*size=*/0xc1d, /*img=*/0x20001a40); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x200000c0, "\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_rename, /*old=*/0x20000080ul, /*new=*/0x200000c0ul); memcpy((void*)0x20000200, "./file0\000", 8); memcpy((void*)0x20000240, "./bus\000", 6); syscall(__NR_rename, /*old=*/0x20000200ul, /*new=*/0x20000240ul); return 0; }