// https://syzkaller.appspot.com/bug?id=0e77b741e3a1b835114f0f7f0f3e53e12c9a73bc // 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*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000800, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 251); memcpy( (void*)0x20000900, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xac\x1d\x3b\x1b\x20\x75" "\xd3\xa4\x4d\x51\xa5\x46\x8d\x04\x08\x8b\xc4\x2f\x72\xc1\x5c\x08\x08\x21" "\x1f\x2a\x54\x95\x03\x67\x2b\x71\x1a\x2b\x9b\xb4\xd8\x2e\x72\x2b\x44\xcd" "\xfb\xb5\x07\xfe\x80\x72\xf0\x8d\x13\x12\xf7\x48\xe5\xc2\x05\x6e\xbd\xfa" "\x58\x09\x89\x4b\x2e\x98\xd3\xa0\x99\x9d\xb5\x37\x7e\xab\xdd\xc6\x5e\xbb" "\x7c\x3e\xd1\xec\xf3\xcc\x3c\x33\xcf\xf3\x7b\x7e\x3b\xb3\xb3\xbb\x56\xb4" "\x01\xfe\x6f\xcd\x8d\x67\xf8\x51\x8a\xcc\x8d\xbf\xb6\x5a\xad\x6f\xac\x4f" "\x77\x36\xd6\xa7\x1f\xf4\xea\x49\x46\x93\xb4\x92\xe1\x6e\x91\xe2\x3f\x65" "\x59\x7e\x94\xdc\x4a\x77\xc9\x8b\xd5\xc6\xa6\xbb\x62\xbf\x71\xfe\xb8\x38" "\xfb\xc6\xc7\x8f\x37\x3e\xe9\xae\x0d\x37\x4b\xbd\x7f\xeb\xa0\xe3\x0e\x67" "\xad\x59\x72\x2d\xc9\x50\x53\x3e\xad\xfe\x6e\x7f\xee\xfe\x8a\xad\x19\x56" "\x09\xbb\xde\x4b\x1c\x0c\xda\xb9\x24\xe5\x13\x7e\xf6\xf7\x2f\x6f\xb5\xf4" "\x69\xef\x75\xf4\xf9\x13\x89\x11\x38\x5e\x45\xf7\xbe\xb9\xcb\x58\x72\xa1" "\xb9\xd0\xab\xf7\x01\xdd\xbb\x62\xf7\x9e\x7d\xa6\xad\x0d\x3a\x00\x00\x00" "\x00\x38\x01\xcf\x6c\x66\x33\xab\xb9\x38\xe8\x38\x00\x00\x00\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\x2c\x69\x7e\xff\xbf\x68\x96\x56\xaf\x7e\x2d\x45\xef\xf7" "\xff\x47\x9a\x6d\x69\xea\xa7\xcb\xcb\x47\xdb\xfd\xd1\x71\xc5\x01\x00\x00" "\x00\x00\x00\x00\x00\x27\xe8\xe5\xcd\x6c\x66\x35\x17\x7b\xeb\x65\x51\xff" "\xcd\xff\x95\x7a\xe5\x72\xfd\xf8\xa5\xbc\x93\xe5\x2c\x64\x29\x37\xb2\x9a" "\xf9\xac\x64\x25\x4b\x99\x4c\x32\xd6\xd7\xd1\xc8\xea\xfc\xca\xca\xd2\xe4" "\x21\x8e\x9c\xda\xf3\xc8\xa9\x4f\x09\x74\xb4\x29\xdb\x4f\x67\xde\x00\x00" "\x00\x00\x00\x00\x00\xf0\x05\xf3\xeb\xcc\x6d\xff\xfd\x1f\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x4e\x83\x22\x19\xea\x16\xf5\x72\xb9\x57\x1f" "\x4b\x6b\x38\xc9\xf9\x24\x23\xd5\x7e\x6b\xc9\x3f\x7b\xf5\x33\x6c\x74\xd0" "\x01\x00\x00\x00\xc0\x49\x78\x66\x33\x9b\x59\xcd\xc5\xde\x7a\x59\xd4\x9f" "\xf9\x9f\xaf\x3f\xf7\x9f\xcf\x3b\x79\x98\x95\x2c\x66\x25\x9d\x2c\xe4\x4e" "\xfd\x5d\x40\xf7\x53\x7f\x6b\x63\x7d\xba\xb3\xb1\x3e\xfd\xa0\x5a\x76\xf7" "\xfb\xfd\x7f\x1f\x29\x8c\xba\xc7\x74\xbf\x7b\xd8\x7b\xe4\xab\xf5\x1e\xed" "\xdc\xcd\x62\xbd\xe5\x46\x6e\xe7\xad\x74\x72\x27\xad\xfa\xc8\xca\xd5\x5e" "\x3c\x7b\xc7\xf5\xab\x2a\xa6\xe2\x7b\x8d\x43\x46\x76\xa7\x29\xab\x99\x7f" "\xd0\x94\xbb\xbc\x7f\xa4\xc9\xee\xe7\x88\x5f\xa6\x8c\xd5\x19\x39\xb7\x95" "\x91\x89\x26\xb6\x2a\x1b\xcf\x1e\x9c\x89\x23\x3e\x3b\x3b\x47\x9a\x4c\x6b" "\x2b\xd8\xcb\x3b\x46\xda\x31\x89\xcf\x94\xf3\x0b\x4d\x59\xcd\xe7\xf7\xfb" "\xe5\x7c\x20\x76\x66\x62\xaa\xef\xec\x7b\xfe\xe0\x9c\x27\x5f\xff\xeb\x9f" "\x7f\x7a\xaf\xf3\xf0\xfe\xbd\xbb\xcb\xe3\xa7\x67\x4a\x87\x33\xd4\x94\x65" "\xfd\xd8\xde\x9d\x89\xe9\xbe\x4c\xbc\xf0\x45\xce\xc4\x2e\x13\x75\x26\xae" "\x6c\xad\xcf\xe5\x47\xf9\x49\xc6\x73\x2d\xaf\x67\x29\x8b\xf9\x79\xe6\xb3" "\x92\x85\x5c\xcb\x0f\xeb\xda\x7c\x73\x3e\x17\x7d\x97\xfc\x3e\x99\xba\xf5" "\xc4\xda\xeb\x9f\x16\xc9\x48\x73\x86\x76\x9f\xac\xa3\xc5\xf4\x4a\x7d\xec" "\xc5\x2c\xe6\xc7\x79\x2b\x77\xb2\x90\x57\xeb\x7f\x53\x99\xcc\xb7\x33\x93" "\x99\xcc\xf6\x3d\xc3\x57\x0e\xf1\x4a\xdb\xda\xe7\xaa\x2f\xbf\xb2\x67\xf0" "\xd7\xbf\xd1\x54\xda\x49\xfe\xd0\x94\xa7\x43\x95\xd7\x67\xfb\xf2\xda\xff" "\x9a\x3b\x56\xb7\xf5\x6f\xd9\xce\xd2\xa5\xa7\x7f\x3f\x1a\xfe\x6a\x53\xa9" "\xc6\xf8\x4d\x53\x9e\x0e\x3b\x33\x31\xd9\x97\x89\xe7\x0e\xce\xc4\x9f\xea" "\x97\x95\xe5\xce\xc3\xfb\x4b\xf7\xe6\xdf\x3e\xdc\x70\x97\x3e\x68\x2a\xd5" "\x75\xf4\xbb\x53\x75\x97\xa8\xce\x97\x4b\xd5\x93\x55\xaf\x3d\x79\x76\x54" "\x6d\xcf\xed\xd9\x36\x59\xb7\x5d\xde\x6a\x6b\xed\x6a\xbb\xb2\xd5\xd6\xbd" "\x52\xd7\xf6\xbd\x52\x47\x9a\xf7\x70\xbb\x7b\x9a\xaa\xdb\x5e\xd8\xb3\x6d" "\xba\x6e\xbb\xda\xd7\xb6\xd7\xfb\x2d\x00\x4e\xbd\x0b\xdf\xbc\x30\xd2\xfe" "\x57\xfb\x1f\xed\x0f\xdb\xbf\x6d\xdf\x6b\xbf\x76\xfe\x07\xa3\xdf\x19\x7d" "\x69\x24\xe7\xfe\x76\xee\xbb\xc3\x13\x43\x5f\x6b\xbd\x54\xfc\x25\x1f\xe6" "\x97\xdb\x9f\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xcf\x6e\xf9\xdd\xf7\xee\xcf\x77" "\x3a\x0b\x4b\x3b\x2a\x65\x59\xbe\xbf\x4f\xd3\x59\xae\x0c\x65\xfa\x71\x59" "\x26\x27\x38\xe8\x8b\xe5\x68\x72\x1a\xe6\x3e\xd0\xca\x7f\xcb\xb2\x6c\xb6" "\x14\xa7\x21\x9e\x83\x2b\x65\x63\x57\x53\xef\xb7\xa6\x06\x1e\x61\xb7\x32" "\x77\x8c\x43\x34\x33\xbd\x35\xc0\x17\x27\xe0\x58\xdd\x5c\x79\xf0\xf6\xcd" "\xe5\x77\xdf\xfb\xd6\xe2\x83\xf9\x37\x17\xde\x5c\x78\x38\x3b\x33\x33\x3b" "\x31\x3b\xf3\xea\xf4\xcd\xbb\x8b\x9d\x85\x89\xee\xe3\xa0\xa3\x04\x8e\xc3" "\xf6\x4d\x7f\xd0\x91\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x87\x75\x12" "\xff\x51\x61\xd0\x73\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\xb6\xb9\xf1\x0c\x3f\x4a\x91\xc9" "\x89\x1b\x13\xd5\xfa\xc6\xfa\x74\xa7\x5a\x7a\xf5\xed\x3d\x87\x93\xb4\x92" "\x14\xbf\x48\x8a\x8f\x92\x5b\xe9\x2e\x19\xeb\xeb\xae\xd8\x6f\x9c\x91\xcc" "\xbe\xf1\xf1\xe3\x8d\x4f\xb6\xfb\x1a\xee\xed\xdf\x3a\xe8\xb8\xc3\x59\x6b" "\x96\x5c\x4b\x32\xd4\x94\x4f\xab\xbf\xdb\x9f\xbb\xbf\x62\x6b\x86\x55\xc2" "\xae\xf7\x12\x07\x83\xf6\xbf\x00\x00\x00\xff\xff\x4d\x56\x11\x2c", 1600); syz_mount_image(/*fs=*/0x20000600, /*dir=*/0x20000800, /*flags=*/0x10410, /*opts=*/0x20000440, /*chdir=*/1, /*size=*/0x640, /*img=*/0x20000900); memcpy((void*)0x200002c0, "./file1\000", 8); memcpy((void*)0x20000440, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 251); syscall(__NR_link, /*old=*/0x200002c0ul, /*new=*/0x20000440ul); return 0; }