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