// https://syzkaller.appspot.com/bug?id=badad2dede6b94b2b829498e485cd76573e37d4f // 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 void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } 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, 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) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); 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"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } 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) reset_loop_device(loopname); errno = err; return res; } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x200000000600, "hfsplus\000", 8); memcpy((void*)0x200000000640, "./file0\000", 8); *(uint16_t*)0x200000000080 = 0; memcpy( (void*)0x200000000740, "\x78\x9c\xec\xdd\x4f\x6b\x1c\xe7\x1d\x07\xf0\xef\xac\xd6\x8a\xe4\x82\xb3" "\x49\xec\x24\x2d\x2d\x15\xf6\xa1\x25\xa6\xb6\x56\x9b\x38\x3a\xb4\xd8\x2d" "\xa5\xe8\x10\x4a\xa0\x97\x5c\x72\x10\xb6\x1c\x0b\xaf\x95\x20\x29\x45\x09" "\xa5\xc8\xfd\x7b\xed\x3b\x48\x7a\x90\xcf\x3d\xf5\x50\x7a\x30\xa4\xe7\xbe" "\x05\x41\x29\x39\x14\x7a\xd7\xcd\x65\x66\x67\x57\x1b\x4b\x96\x57\x8e\xe3" "\x5d\xa5\x9f\x0f\x3c\xfb\x3c\xb3\xcf\xcc\xf3\xe7\xe7\x99\x47\x3b\xb3\x98" "\x0d\xf0\x7f\x6b\xe9\x9d\x9c\xba\x9f\x22\x4b\x17\xdf\xda\x2a\xb7\x77\x77" "\x3a\xdd\xdd\x9d\xce\x9d\x7e\x39\xc9\x73\x49\x1a\x49\xb3\x97\xa5\x58\x4b" "\x8a\xcf\x92\x6b\xe9\xa5\x7c\xb3\x7c\xb3\x6e\xae\x78\x54\x3f\xef\x7e\xf2" "\xe6\xe2\xe7\xed\x7b\x77\x7b\x5b\xcd\x3a\x55\xfb\x37\x8e\x3a\x6e\x34\xdb" "\x75\xca\x5c\x92\xa9\x3a\x3f\xa6\xe6\xa3\xda\xbb\xfe\x64\xed\x0d\x29\x06" "\x33\x2c\x03\x76\xa1\x1f\x38\x18\xb7\x07\x07\x6c\x1f\xe7\xf0\x2f\x79\xdd" "\x02\x93\xa0\xe8\xfd\xdd\x3c\xa0\x95\x9c\x4e\x32\x53\x7f\x0e\x48\xbd\x3a" "\x34\x9e\xed\xe8\x9e\xbe\x63\xad\x72\x00\x00\x00\x70\x42\x3d\xbf\x97\xbd" "\x6c\xe5\xcc\xb8\xc7\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\x27\x49\xfd" "\xfb\xff\x45\x9d\x1a\xfd\xf2\x5c\x8a\xfe\xef\xff\x4f\xd7\xef\xa5\x2e\x9f" "\x68\xf7\xc7\x3d\x00\x00\x00\x00\x00\x00\x00\x00\x78\x0a\xbe\x5b\x6c\xef" "\x65\x2b\x67\xfa\xdb\x0f\x8a\xea\x3b\xff\xf3\xd5\xc6\xd9\xea\xf5\x1b\xf9" "\x30\x1b\x59\xc9\x7a\x2e\x65\x2b\xcb\xd9\xcc\x66\xd6\xd3\x4e\xd2\x1a\x6a" "\x68\x7a\x6b\x79\x73\x73\xbd\x3d\xc2\x91\x0b\x87\x1e\xb9\xf0\x6c\xe6\x0b" "\x00\x00\x00\x00\x00\x00\x00\x5f\x53\xbf\xc9\xd2\xfe\xf7\xff\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x30\x09\x8a\x64\xaa\x97\x55\xe9\x6c\xbf" "\xdc\x4a\xa3\x99\x64\x26\xc9\x74\xb9\xdf\x76\xf2\xf7\x7e\xf9\x24\xbb\x3f" "\xee\x01\x00\x00\x00\xc0\x33\xf0\xfc\x5e\xf6\xb2\x95\x33\xfd\xed\x07\x45" "\x75\xcf\xff\x72\x75\xdf\x3f\x93\x0f\xb3\x96\xcd\xac\x66\x33\xdd\xac\xe4" "\x46\xf5\x2c\xa0\x77\xd7\xdf\xd8\xdd\xe9\x74\x77\x77\x3a\x77\xca\x74\xb0" "\xdd\x1f\xff\xf7\x58\xc3\xa8\x5a\x4c\xef\xd9\xc3\xe1\x3d\xcf\x57\x7b\x14" "\x83\x23\x96\xf2\xb3\xfc\x22\x17\x33\x97\xb7\xb3\x9e\xd5\xfc\x32\xcb\xd9" "\xcc\x4a\xe6\xf2\xd3\xaa\xb4\x9c\x22\xad\xfa\xe9\x45\xab\x3f\xce\xc3\xc7" "\x7b\xed\x0b\x5b\x6f\x3f\x6a\x8c\x53\x75\xfe\x6a\x35\x92\xd9\xdc\xcc\x6a" "\x35\xb6\x4b\xb9\x9e\xf7\xd3\xcd\x8d\x34\xaa\x39\x54\xfb\x1c\xdd\xe3\xdd" "\x32\x3a\xc5\x54\xae\x56\x46\x8c\xd1\x8d\x3a\x2f\x67\xf4\xa7\x3a\x9f\x0c" "\xad\x2a\x22\xa7\x06\x11\x99\xaf\x63\x55\x46\xe3\x85\xa3\x23\x71\xcc\xf3" "\xe4\xe1\x9e\xda\x69\x0c\x9e\x41\x9d\x1d\x25\xe6\x57\xaf\x1e\x2b\xe6\xa7" "\xeb\xbc\x8c\xf5\x1f\x26\x3a\xe6\x0b\x43\x67\xdf\xcb\x47\x47\x22\x39\xff" "\xaf\xef\xfc\xf5\x56\x77\xed\xf6\xad\x9b\x1b\x17\x27\x67\x4a\x4f\xe8\xe1" "\x48\x74\x86\x22\xf1\xca\x63\x23\x31\x93\xaf\x47\x24\x8a\x66\x6f\x15\x6d" "\x0d\x56\xaa\x46\xce\x0d\x6a\x1f\xbf\x5a\x9e\xaf\x8e\x3d\x93\xd5\xfc\x3c" "\xef\xe7\x46\x56\xf2\x46\x16\xf3\x46\x16\xf2\x7a\x5e\xcf\x7c\x16\x73\x65" "\x28\xae\xe7\x46\xb8\xd6\x1a\xc7\xbb\xd6\x2e\x7c\xbf\x2e\xcc\x26\xf9\x63" "\x9d\x4f\x86\x32\xae\x2f\x0c\xc5\x75\x78\xa5\x6b\x55\x75\xc3\xef\xec\x47" "\xe9\xc5\x63\xac\x48\x3f\xfa\xf7\x48\x43\x69\x7e\xab\x2e\x94\x7d\xfc\xb6" "\xce\x27\xc3\xc3\x91\x68\x0f\x45\xe2\xa5\xa3\x23\xf1\xe7\x07\xe5\xeb\x46" "\x77\xed\xf6\xfa\xad\xe5\x0f\x46\xec\xef\x7b\x75\x5e\x5e\xb6\xbf\x9f\xa8" "\xb5\xb9\x3c\x5f\x5e\x2c\xff\xb1\xaa\xad\x2f\x9e\x1d\x65\xdd\x4b\x87\xd6" "\xb5\xab\xba\xb3\x83\xba\xc6\x81\xba\x73\x83\xba\xc7\x5d\xa9\xd3\xf5\x67" "\xb8\x83\x2d\x2d\x54\x75\xaf\x1c\x5a\xd7\xa9\xea\x5e\x1d\xaa\x3b\xec\x53" "\x0e\x00\x13\xef\xf4\x6b\xa7\xa7\x67\xff\x33\xfb\xcf\xd9\x4f\x67\x7f\x37" "\x7b\x6b\xf6\xad\x99\x9f\x3c\xb7\xf8\xdc\xb7\xa7\x73\xea\x1f\xcd\xbf\x4d" "\xfd\xa5\x71\xaf\xf1\xc3\xe2\xb5\x7c\x9a\x5f\xef\xdf\xff\x03\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x4f\x6e\xe3\xa3\x8f\x6f\x2f\x77\xbb\x2b\xeb\x0a\x0a\x63\x2a\x4c" "\x39\x0f\x27\xb0\x30\xee\x95\x09\xf8\xaa\x5d\xde\xbc\xf3\xc1\xe5\x8d\x8f" "\x3e\xfe\xc1\xea\x9d\xe5\xf7\x56\xde\x5b\x59\xeb\x74\xda\x57\x16\x16\xaf" "\x2c\x2e\x5c\xb9\x7c\x73\xb5\xbb\x32\xdf\x7b\x1d\xf7\x30\x81\xaf\xc0\xfe" "\x1f\xfd\x71\x8f\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\xd5\xb3\xf8" "\xef\x04\xe3\x9e\x23\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x70\xb2\x2d\xbd\x93\x53\xf7\x53\xa4\x3d" "\x7f\x69\x3e\x45\x92\x9d\x4e\x77\x77\xa7\xd3\x2d\xeb\xfa\x79\x4f\x33\x49" "\x23\x49\xf1\xab\xa4\xf8\x2c\xb9\x96\x5e\x4a\x6b\xa8\xb9\xe2\x51\xfd\xbc" "\xfb\xc9\x9b\x8b\x9f\xb7\xef\xdd\xdd\x6f\xab\xd9\xdf\xbf\x71\xd4\x71\xa3" "\xd9\xae\x53\xe6\x92\x4c\xd5\xf9\xd3\x6a\xef\xfa\x97\x6e\xaf\x18\xcc\xb0" "\x0c\xd8\x85\x7e\xe0\x60\xdc\xfe\x17\x00\x00\xff\xff\x1a\x1f\x0a\xba", 1529); syz_mount_image(/*fs=*/0x200000000600, /*dir=*/0x200000000640, /*flags=MS_RDONLY*/ 1, /*opts=*/0x200000000080, /*chdir=*/0, /*size=*/0x5f9, /*img=*/0x200000000740); memcpy((void*)0x200000000000, "fuse\000", 5); memcpy((void*)0x200000000700, "./file0\000", 8); syz_mount_image( /*fs=*/0x200000000000, /*dir=*/0x200000000700, /*flags=MS_I_VERSION|MS_UNBINDABLE|MS_POSIXACL|MS_REC|MS_REMOUNT|MS_RELATIME|0x20c0*/ 0xa360e0, /*opts=*/0x200000000040, /*chdir=*/1, /*size=*/0, /*img=*/0); memcpy((void*)0x2000000001c0, "./file1\000", 8); memcpy((void*)0x200000000240, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 252); syscall(__NR_link, /*old=*/0x2000000001c0ul, /*new=*/0x200000000240ul); return 0; }