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