// https://syzkaller.appspot.com/bug?id=82148e8173e51abf3a46e231a7e233950c815ca7 // 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"); } 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=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); memcpy((void*)0x20000000, "hfsplus\000", 8); memcpy((void*)0x20002380, "./file0\000", 8); *(uint8_t*)0x20000640 = 0; sprintf((char*)0x20000641, "%023llo", (long long)-1); memcpy((void*)0x20000658, "\x76\x90\x13\x57\xea\xfc\x68\xe6\xa4\xd3\x1a\xc3\xba\x0d\xa2\x8e\x85" "\x7e\x2a\x25\x0f\x0f\x14\x1a\xbd\x4a\xa5\xe9\x50\x2d\x41\xd5\xed\x0b" "\x72\x5c\xae\x18\x9c\xfe\x3a\x0c\x8b\xea\xc3\x92\x2a\x82\x18\x73\x93" "\xc2\x6d\x6d\x04\xbe\xd1\xd7\x51\x88\xdd\x88\xc9\xee\x67\x10\x4e\xf1" "\x20\x73\x95\x6c\x95\x0f\x48\x91\x73\x63\xc5\xe8\x88\xb5\x97\xa0\x89" "\xd3\x81\x64\x2a\x55\xec\xe5\x57\x1e\x06\xf7\x37\xe1\x29\xe8\x73\x97" "\x49\xaa\x2d\xd9\x38\x5b\x13\xe7\xfd\x24\xa2\xd9\xf3\x8d\x83\x2e\x06" "\x98\xb5\x7d\x92\x79\x25\x6d\xf3\xf5\xa6\x3c\x03\x6c\x63\x00\x00\x00", 136); sprintf((char*)0x200006e0, "0x%016llx", (long long)0); sprintf((char*)0x200006f2, "%020llu", (long long)-1); *(uint16_t*)0x20000706 = -1; *(uint64_t*)0x20000708 = -1; sprintf((char*)0x20000710, "0x%016llx", (long long)-1); memcpy((void*)0x20000722, ",uid=", 5); sprintf((char*)0x20000727, "0x%016llx", (long long)0); memcpy((void*)0x20000739, "\x2c\x4b\x45\x4c\x83\x25\xe0\x1c\xb2\x4c\x2f\x3c\x7b\xd4\x62\xc5\xb8" "\xf8\x6c\xa5\x68\x91\xf8\x08\x5d\xff\x0f\x00\x00\x00\x00\x00\x00\xb1" "\x2d\x3c\x55\xab\x09\x89\x8b\x83\x11\x62\xe9\x4a\xf5\xaa\xb9\x37\x46" "\xcc\x9c\x28\x46\x17\x2b\xef\xf3\x4b\x81\x59\x44\xf6\x2e\x60\x47\x0c" "\xf4\xd1\x63\x31\xb5\x3b\xb3\x59\xd1\xc4\x46\xb1\x89\x74\xae\x35\xbc" "\xed\x61\xd4\x8c\xfc\x81\x49\xeb\x43\xbe\xc8\x6d\x87\x1b\xc7\xc4\x37" "\x63\xc6\xe7\xda\xeb\xe3\x49\xc3\x00\x00\x00\x01\x00\x00\x00\x01\x2d" "\xc9\x0b\x9a\x5f\x8d\x0f\xf4\x11\x7e\xf9\x0a\xff\x14\x13\xe2\xe9\x19" "\x55\x8d\x4a\x64\x12\xb5\xfd\xaa\x26\x94\xc4\x1b\xab\x32\xc5\xc8\x1e" "\x01\x24\x3c\xce\xf8\xdc\xd8\x5a\x46\xcf\xb9\x23\x23\xa8\x07\x0d\xb4" "\x3b\x1e\xf5\x62\x69\x1c\x07\x0e\x27\x49", 180); sprintf((char*)0x200007ed, "%023llo", (long long)-1); sprintf((char*)0x20000804, "0x%016llx", (long long)-1); memcpy( (void*)0x20001540, "\x78\x9c\xec\xdd\x4b\x68\x1c\xe7\x1d\x00\xf0\xff\xac\x76\x57\xbb\x2a\x38" "\x72\xe2\x47\x5a\x02\x11\x31\xa4\xa5\xa2\xb6\x64\x21\xb7\xea\xa5\x6e\x29" "\x45\x87\x50\x42\x7a\xe8\x79\xb1\xe5\x58\x78\x2d\x07\x49\x29\xb2\x29\x8d" "\xdc\xc7\xbd\x87\x9c\x7a\x4a\x0f\xba\x85\x1e\x4a\x7a\x37\xb4\xe7\x86\x40" "\xc9\x55\xc7\x40\x21\x97\x9c\x74\x53\x99\xd9\xd9\x97\xf6\x6d\x59\x8f\xa4" "\xbf\x9f\x98\x99\x6f\xe6\x7b\xce\x7f\x76\x66\xf6\x81\x98\x00\xfe\x6f\xad" "\xce\x47\xf1\x59\x24\xb1\x3a\xff\xd6\x4e\xba\xbe\xbf\xb7\x54\x9f\xda\x5b" "\x9a\xce\xb3\xeb\x11\x51\x8e\x88\x42\x44\xb1\xb1\x88\x64\x23\xb2\xdc\xdb" "\xf9\x14\xdf\x4e\x37\xe6\xe5\x93\x41\xfd\x7c\xb8\xbe\xf2\xce\xe7\x5f\xed" "\x7f\xd1\x58\x2b\xe6\x53\x56\x3e\x19\x56\xaf\x8f\x72\xef\xa6\xdd\x7c\x8a" "\xb9\x88\x98\xca\x97\xbd\x4a\x03\x5a\xfc\xe4\x68\xf7\x5d\xed\xdd\x19\xd8" "\xde\xb8\xda\x7b\x98\x06\xec\x5a\x33\x70\xf1\x97\x63\xb5\x0a\xc7\x76\xd8" "\x63\xb7\x95\xf7\xf1\x7f\xb2\xf9\xb0\xea\x93\x9c\xb7\xc0\x39\x95\x34\xee" "\x9b\x3d\xe7\xf3\x6c\xc4\x4c\x44\x54\x22\x1a\x77\xfd\xdd\xb8\x15\xf9\x1b" "\x81\xaf\xb5\xdd\xb3\x1e\x00\x00\x00\x00\x4c\xaa\x3a\x79\x95\x97\x0e\xe2" "\x20\x76\xe2\xc2\x49\x0c\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbe\xa9" "\x3a\x9e\xff\x9f\xe4\xcf\xf7\xcf\xd2\x73\x91\x34\x9f\xff\x5f\xce\x4a\x34" "\x94\xcf\x74\xb0\x03\x8d\x7e\x10\xe2\x67\xd3\x8d\xe5\xb3\x93\x1f\x0c\x00" "\x00\x00\x00\x00\x00\x00\x9c\xb8\xd7\x0f\xe2\x20\x76\xe2\x42\x73\xfd\x30" "\xc9\x7e\xf3\x7f\x23\xff\xdd\x3f\xf5\xad\x78\x3f\xb6\x62\x2d\x36\xe3\x7a" "\xec\x44\x2d\xb6\x63\x3b\x36\x63\x31\x22\x66\x3b\x1a\x2a\xef\xd4\xb6\xb7" "\x37\x17\xb3\x9a\x11\x97\x86\xd4\xbc\x19\x9f\xf6\xa9\x79\x73\xf0\x18\x6f" "\xbf\xe0\x7d\x06\x00\x00\x00\x00\x00\x00\x80\x73\xae\x32\x22\xff\x41\xa9" "\x77\xdb\xef\x63\xb5\xfd\xfb\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x9c\x07\x49\xc4\x54\x63\x91\x4d\x97\x9a\xe9\xd9\x28\x14\x23\xa2\xd2" "\x2c\xb7\x1b\xf1\x69\x44\x94\xcf\x76\xb4\x13\x49\xfa\x6d\x7c\x76\xfa\xe3" "\x00\x00\x00\x80\x63\xa9\x74\xaf\x26\x95\x31\xea\xbc\xf4\x41\x1c\xc4\x4e" "\x5c\x68\xae\x1f\x26\xd9\x67\xfe\x2b\xd9\xe7\xe5\x4a\xbc\x1f\x1b\xb1\x1d" "\xeb\xb1\x1d\xf5\x58\x8b\xbb\xf9\x67\xe8\xf4\x53\x7f\x61\x7f\x6f\xa9\xbe" "\xbf\xb7\xf4\x30\x9d\x7a\xdb\xfd\xe9\x97\x13\x0d\x3d\x6b\x31\x1a\xdf\x3d" "\xf4\xef\xf9\xd5\xac\x44\x35\xee\xc5\x7a\xb6\xe5\x7a\xdc\x89\x24\x0e\x33" "\x85\xbc\x95\x57\xf7\xf7\x96\xd2\xe5\xc3\xfe\xe3\x7a\x9a\x8e\x29\xf9\x49" "\x6e\xc8\x68\xa6\x3a\xd2\x77\xd3\xd9\xd5\x4f\xb2\xf4\x9f\xbb\xbf\x45\x28" "\x4e\xb4\x8b\xcf\xa9\x30\x30\x67\x36\xcb\x2d\xb5\x22\xb2\x90\x8f\x2d\xad" "\x71\xb1\x19\x81\xfe\x91\x18\x79\x74\x8a\x43\x7b\x5a\x8c\x42\xeb\x9b\x9f" "\x4b\xc3\x7b\xea\x1f\xf3\xa7\x43\x3b\x7f\x3a\x73\xa4\x54\xdf\x6f\x6e\xce" "\xc4\xd1\x48\xdc\x8c\x42\xeb\x08\x5d\x19\x1e\x89\x88\xef\xfe\xe3\xe3\x5f" "\xdf\xaf\x6f\x3c\xb8\x7f\x6f\x6b\xfe\xfc\xec\x52\x5f\x1f\x8c\x2c\x71\x34" "\x12\x4b\x1d\x91\xb8\xfa\x0d\x8a\xc4\x68\x0b\x59\x24\x2e\xb7\xd6\x57\xe3" "\x17\xf1\xab\x98\x8f\x2f\xa7\xdf\x8e\xcd\x58\x8f\xdf\x44\x2d\xb6\x63\x6d" "\xae\x99\x5f\xcb\x5f\xcf\xe9\x7c\x76\x78\xa4\x3e\x9b\xe9\x5c\x7b\x7b\xdc" "\x11\x35\xae\x5f\xfd\xc6\x34\x17\x5d\x63\x8a\xb9\xf8\x79\x96\xaa\xc5\x1b" "\xd9\x31\xbd\x10\xeb\x91\xc4\xa3\x88\x58\x8b\x5b\xd9\xdf\xcd\x58\x6c\x5d" "\x0d\xda\x47\xf8\xf2\x18\x67\x7d\x61\x8c\x2b\x6d\x87\x6b\xdf\xcb\x16\xad" "\x30\x45\x75\x70\xd9\xbf\x8d\xd7\xe4\x8b\x92\x5e\xeb\x2e\x76\xc4\xb5\xf3" "\x9a\x3b\x9b\xe5\x75\x6e\x69\x47\xe9\xe5\xbe\x51\x6a\xde\xeb\xc6\xbf\x1f" "\x75\x28\x7e\x27\x4f\xa4\x2d\xfc\x61\xe8\xfd\xe1\xb4\x1d\x8d\xc4\x62\x47" "\x24\x5e\x19\xf4\x7a\x69\x84\xf4\xaf\x87\xe9\x7c\xab\xbe\xf1\x60\xf3\x7e" "\xed\xbd\x31\xfb\x7b\x33\x5f\xa6\xe7\xd1\x9f\xce\xd5\x5d\x22\x3d\xc2\x2f" "\x47\x25\xdf\xb9\x8b\xd9\x3c\xc9\xce\xa9\x85\x2c\xef\x95\xd6\x1d\xb6\x3b" "\x5e\xe5\xfc\x17\x97\x86\x42\x4f\xde\xe5\x56\xbd\xc6\x99\xfa\xcb\x78\x14" "\x77\xbb\xce\xd4\x1f\xc6\x72\x2c\xc7\x4a\x56\xfa\x4a\x56\xba\xd4\x73\xc7" "\x4a\xf3\xae\xb6\x5a\xea\xbe\x86\xa7\x79\xe9\x3b\xad\x62\xeb\x87\x9d\xce" "\xf7\x5b\x8f\xa2\xde\x78\x3f\x04\xc0\xf9\x36\xf3\xfd\x99\x72\xf5\xbf\xd5" "\x7f\x57\x3f\xaa\xfe\xb1\x7a\xbf\xfa\x56\xe5\x67\xd3\x3f\x9a\x7e\xad\x1c" "\xa5\x7f\x95\x7e\x5c\x5c\x98\x7a\xb3\xf0\x5a\xf2\xf7\xf8\x28\x7e\xd7\xfe" "\xfc\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x3c\xbf\xad\xc7\x4f\x1e\xd4\xea\xf5\xb5\xcd" "\xfe\x89\x42\xff\xac\x64\x78\xad\x5a\xfd\xb0\xf9\x20\xb1\x21\x65\xba\x12" "\x49\xfe\xa8\x9c\x31\x0a\x27\x5b\x8f\x9f\x1c\x8e\x6c\x70\x78\x62\x3a\x1f" "\xde\x04\xb5\x0a\xe3\x45\x6c\xe2\x44\xf3\x69\x8d\x1d\x59\x53\x11\xd1\xa7" "\xf0\xdc\x8b\xeb\xb4\x27\x91\xec\x1e\x3d\x5e\x95\xd1\x7b\xda\x0c\xc9\x18" "\x5d\x24\x3d\x01\x4f\x2b\x3f\xf7\x98\x9b\x3d\xb7\xb7\x94\x46\xd6\x3a\x2c" "\xf5\x8d\xea\x09\x26\xe6\x8e\x51\xbd\xd8\xbd\xa5\xf9\x82\xed\x28\x33\xd1" "\xab\x37\x4b\x54\xfb\x1d\xaf\x01\x2f\xb6\xfa\x88\x0b\xc7\xd4\x71\xaf\x3c" "\xc0\x59\xbb\xb1\xfd\xf0\xbd\x1b\x5b\x8f\x9f\xfc\x60\xfd\x61\xed\xdd\xb5" "\x77\xd7\x36\x4a\xcb\xcb\x2b\x0b\x2b\xcb\xb7\x96\x6e\xdc\x5b\xaf\xaf\x2d" "\x34\xe6\x1d\x15\x4e\xe5\xe1\xb7\xc0\x69\xe8\x7c\x3b\xd1\x52\x8e\x88\xd7" "\x47\xd7\x1d\xf2\xa0\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x04\x9d" "\xc6\xff\x42\x9c\xf5\x3e\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\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5f\x6f\xab\xf3\x51\x7c\x16\x49" "\x2c\x2e\x5c\x5f\x48\xd7\xf7\xf7\x96\xea\xe9\xd4\x4c\xb7\x4b\x16\x23\xa2" "\x10\x11\xc9\x6f\x23\x92\x7f\x46\xdc\x8e\xc6\x14\xb3\x1d\xcd\x25\x83\xfa" "\xf9\x70\x7d\xe5\x9d\xcf\xbf\xda\xff\xa2\xdd\x56\xb1\x59\xbe\x10\xb1\x3b" "\xb0\xde\x78\x76\xf3\x29\xe6\x22\x62\x2a\x5f\xbe\xa8\xf6\xee\x8c\x6e\xaf" "\xdc\x4e\x4e\xf7\xc9\x4e\x5a\x91\x49\x03\x76\xad\x19\xb8\xca\xf1\x06\x09" "\xc7\xf6\xbf\x00\x00\x00\xff\xff\x55\xad\xe6\xbc", 1776); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20002380, /*flags=MS_I_VERSION|MS_NOEXEC|MS_NODEV*/ 0x80000c, /*opts=*/0x20000640, /*chdir=*/1, /*size=*/0x6f0, /*img=*/0x20001540); memcpy((void*)0x20000240, "./file0\000", 8); syscall(__NR_chdir, /*dir=*/0x20000240ul); memcpy((void*)0x20000100, "./file1\000", 8); syscall(__NR_unlink, /*path=*/0x20000100ul); return 0; }