// https://syzkaller.appspot.com/bug?id=f86606dfb403cc9435c0ed5f17e1d80c110cddef // 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*)0x200000c0, "hfsplus\000", 8); memcpy((void*)0x20000a40, "\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); memcpy((void*)0x20000180, "uid", 3); *(uint8_t*)0x20000183 = 0x3d; sprintf((char*)0x20000184, "0x%016llx", (long long)0); *(uint8_t*)0x20000196 = 0x2c; memcpy((void*)0x20000197, "barrier", 7); *(uint8_t*)0x2000019e = 0x2c; memcpy((void*)0x2000019f, "gid", 3); *(uint8_t*)0x200001a2 = 0x3d; sprintf((char*)0x200001a3, "0x%016llx", (long long)0xee00); *(uint8_t*)0x200001b5 = 0x2c; *(uint8_t*)0x200001b6 = 0; memcpy( (void*)0x200001c0, "\x78\x9c\xec\xdd\x4d\x6c\x1c\x67\x19\x07\xf0\xff\xac\x37\xeb\x6c\x90\x52" "\xb7\x4d\xd3\x80\x90\x6a\x35\x52\x05\x8d\x48\xec\xac\x4a\x82\x84\xd4\x80" "\x10\xca\x21\x42\x11\x5c\x7a\xb5\x12\xa7\xb1\xe2\xa4\x95\xed\xa2\xb4\x42" "\x64\x83\x28\x48\x9c\x38\xa1\x1e\x38\x14\xa1\x70\xe8\x09\x21\x84\x54\x4e" "\x88\x72\x46\x42\xe2\xc2\x29\xf7\x48\xdc\x38\xe4\x00\x2c\x9a\xd9\x0f\xaf" "\xed\xad\xb3\x76\x62\xaf\x53\x7e\x3f\x69\x3c\xef\xec\x3b\xef\xf3\x3e\xf3" "\x74\x76\x66\x3f\x1a\x6d\x80\xff\x5b\x17\xdf\xc8\xa1\x76\x8a\x5c\x3c\x75" "\xe9\x76\xb9\x7d\xff\x5e\x6b\xf9\xfe\xbd\xd6\xcd\x7e\x3b\xc9\x74\x92\x5a" "\x52\xef\xae\x52\x34\x93\xe2\x93\xe4\x42\xba\x4b\x3e\x5f\x3e\xd8\x0b\x57" "\x0c\x85\x6e\x0c\xcf\xf3\xda\x83\x8f\x8b\xfa\x07\x1f\xb5\xaa\x10\x55\xac" "\x7a\x7f\xff\xda\xa6\x71\xdb\x1b\xb9\x67\x3b\x39\x3c\xd8\x98\x4a\x32\xdb" "\x6d\xfe\x7b\xec\xb0\x5b\xe2\x55\x4b\x15\xe7\xca\x7a\xbc\x5d\x2a\x06\x79" "\x97\x05\x3b\xd9\x2f\x1c\x4c\x5a\x67\x8b\xf6\x7a\x67\xed\x91\xc3\xc7\x7f" "\xde\x02\x07\xd6\x9d\xee\x7d\x73\x8b\x99\xe4\x48\xba\x77\xd7\xf2\x75\x40" "\x7a\x57\x87\x47\x5f\x19\x26\x6f\xdb\x6b\x53\x7b\xff\xf2\x00\x00\x00\x80" "\xbd\x32\xf2\xbd\xfc\xb0\x67\x1e\xe6\x61\x6e\xe7\xe8\xfe\xa4\x03\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x9f\x0d\x45\xf7\x37\x03\x8b\xde\x52\xeb\xb7" "\x67\x53\xf4\x7f\xff\xbf\x31\xf4\x9b\xfa\x8d\x09\xa7\xfb\x98\xde\xbf\x56" "\xad\xbe\xfb\xcc\xa4\x13\x01\x00\x00\x00\x00\x00\x00\x80\xc7\xf2\xd2\xc3" "\x3c\xcc\xed\x1c\xed\x6f\x77\x8a\xea\x3b\xff\x97\xab\x8d\x63\xd5\xdf\xcf" "\xe5\x9d\xac\x66\x31\x2b\x39\x9d\xdb\x59\xc8\x5a\xd6\xb2\x92\xf9\x24\x33" "\x43\x81\x1a\xb7\x17\xd6\xd6\x56\xe6\xb7\x8e\xfc\x45\xca\x91\x9d\x4e\xe7" "\x4e\x6f\xe4\xd9\x91\x23\xcf\x6e\xcc\xab\xbd\x39\xd1\x51\xff\xa7\xc1\x96" "\x9d\x00\x00\x00\x00\x00\x00\x00\xe0\xe9\x57\xdf\xdd\xb0\x1f\xe5\xe2\xfa" "\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\x70\x10\x14\xc9\x54" "\x77\x55\x2d\xc7\xfa\xed\x99\xd4\xea\x49\x0e\x27\x69\x14\xb3\x83\xdd\x1b" "\x13\x4d\xf6\x09\xf8\xd3\xa4\x13\x00\x00\x00\x80\xbd\xd7\xec\xad\x8f\x16" "\xff\xed\x36\x3a\x45\xf5\x9e\xff\x78\xf5\xbe\xff\x70\xde\xc9\xad\xac\x65" "\x29\x6b\x59\xce\x62\xae\x56\x9f\x05\x74\xdf\xf5\xd7\xfe\xd6\x6e\x2d\xdf" "\xbf\xd7\xba\x59\x2e\x5b\x03\x7f\xe3\x9f\x3b\xca\xa3\x8a\x98\xee\x67\x0f" "\xa3\x67\x9e\xab\xf6\x78\x61\x30\xe2\x62\xbe\x9d\xef\xe5\x54\x66\x73\x39" "\x2b\x59\xca\xf7\xb3\x90\xb5\x2c\x66\x36\xdf\xaa\x5a\x0b\xdd\x50\x55\xc6" "\x33\xf7\xef\x35\xd3\xcf\x75\x6b\xbe\x17\x36\x6c\x5d\xde\x9c\xdb\x4b\x43" "\xed\x32\xe8\x89\x2a\x93\x66\xae\x65\xa9\xca\xed\x74\xae\x34\xfa\xa9\xd7" "\x7a\xfb\x9d\x18\x9a\xed\x0f\x8d\x64\xd3\x8c\x77\xcb\xea\x14\xaf\xf7\x8c" "\x59\xa3\xab\x59\x3f\xa2\x9f\xf7\xd6\x07\xc3\x4c\x75\xe4\x87\x06\x15\x99" "\x4b\xd1\x7b\x2c\x79\x76\xb8\xee\x5b\x6b\xbf\xc3\xf3\x64\xf3\x4c\xf3\xa9" "\x0d\x3e\x83\x3a\xb6\x3e\x4b\xb9\xb9\x79\xa6\x5d\xd5\xfc\x48\x6f\x5d\xd6" "\xfa\x27\x7b\x5b\xf3\x1d\x7e\x94\xb6\xb1\x12\xed\x9f\x95\x5b\xfd\xb3\xef" "\xf8\xf6\x35\x4f\xbe\xfc\xf7\x3f\x5f\xbe\x5e\xbb\x75\xe3\xfa\xb5\xd5\x53" "\x07\xe7\x34\xda\xa5\xcd\xe7\x44\x6b\xa8\x12\x2f\x8e\x55\x89\xe5\xb2\x12" "\xed\xc7\xa8\xc4\xe1\xc7\xc9\xff\xc9\x69\xf4\xaa\x31\xd5\xdb\x7a\xf4\xd5" "\x72\xaa\x7f\xb5\xcc\xcb\xd5\xd8\xa3\x59\xca\x77\xf2\x56\xae\x66\x31\xe7" "\x32\x97\xf9\x9c\xcf\x5c\xbe\x96\xb3\x69\xe5\xec\x50\x5d\x5f\xd8\xbe\xae" "\xd5\x73\xad\xb6\xb3\xe7\xda\xc9\x2f\xf5\x1a\xe5\x3d\xe9\xa7\x43\xf7\xa6" "\x7d\x33\xfd\x69\x1d\x65\x5d\x9f\x1d\xd4\x75\xe3\x95\x6e\xa6\xea\x1b\x7e" "\x64\xbd\x4a\xcf\x8d\x51\xa5\xa2\x91\xd1\x55\xfa\xc7\xc8\x54\xea\x5f\xe8" "\xb7\x7a\x67\x6b\x6d\x77\xc7\xba\x07\x36\x57\x62\x7e\xa8\x12\xcf\x6f\x5f" "\x89\x5f\xfd\xa7\x93\x64\x75\xf9\xd6\x8d\x95\xeb\x0b\x6f\x8f\x39\xdf\x2b" "\xbd\x75\x59\x88\xf7\x37\x5e\x9b\x7f\xfd\x44\x0e\x68\xe7\x7a\x87\x5b\x9e" "\x2f\xcf\x95\xff\xb1\xd2\xbd\x6d\x0c\x9f\x1d\x65\xdf\xf3\xdd\xbe\xf6\xe6" "\x7a\x35\x7a\xdf\xb8\xd4\x7b\xc1\x36\xf4\x35\x52\x3d\x9f\xbb\x7d\x8f\x7a" "\xa6\x96\x91\x8e\xdf\x1d\x15\xa9\xdb\xf7\xe2\xc8\x59\x5a\x55\xdf\x89\xa1" "\xbe\x0d\xaf\x72\xf2\x56\x96\x07\xaf\x42\xba\xee\xee\x63\x71\x01\x18\xdb" "\x91\x57\x8f\x34\x9a\x0f\x9a\x7f\x6d\x7e\xd8\xfc\x71\xf3\x7a\xf3\xd2\xe1" "\x6f\x4e\x9f\x9f\xfe\x62\x23\x87\xfe\x52\xff\xe3\xd4\x6f\x6b\xbf\xa9\x7d" "\xbd\x78\x35\x1f\xe6\x87\x39\x3a\xe9\x4c\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xb3\x60" "\xf5\xdd\xf7\x6e\x2c\x2c\x2f\x2f\xae\x1c\xc0\x46\x6a\x4f\x38\xe0\xdd\x91" "\x5d\xfd\x52\x74\x1f\x69\x8c\x1f\xb0\xf6\x14\xd4\x70\xbf\x1b\xd3\xdb\x55" "\xe3\x77\x49\xb6\x19\xde\x98\x44\xce\xcd\x24\x07\xa2\x74\xa9\xef\xc3\x5c" "\xd3\x19\xd1\x75\x69\xf0\x48\x33\xa9\x0d\xf2\x49\x72\xe3\x80\xfc\xc0\x1d" "\xb0\x17\xce\xac\xdd\x7c\xfb\xcc\xea\xbb\xef\x7d\x65\xe9\xe6\xc2\x9b\x8b" "\x6f\x2e\xde\x3a\x7b\xfe\xdc\xeb\xe7\x5a\x5f\x9d\xbf\x73\xe6\xda\xd2\xf2" "\xe2\x5c\xf7\xef\xa4\xb3\x04\xf6\x42\x75\xaf\xef\x74\x16\x57\x56\x27\x9d" "\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\xae\xfd\xf8\xe7\x0d\x23\xa6" "\x2d\xda\x13\x38\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\xe9\x74\xf1\x8d\x1c\x6a\xa7\xc8\xfc" "\xdc\xe9\xb9\x72\xfb\xfe\xbd\xd6\x72\xb9\xf4\xdb\xeb\x7b\xd6\x93\xd4\x92" "\x14\x3f\x48\x8a\x4f\x92\x0b\xe9\x2e\x99\x19\x0a\x57\x7c\xda\x3c\xaf\x3d" "\xf8\xf8\x97\xaf\x7c\xf0\x51\x6b\x3d\x56\xbd\xbf\x7f\x6d\xd3\xb8\xdf\xff" "\xab\xd3\xd9\xe1\x51\xb4\x7b\x4b\x66\x93\x4c\xf5\xd6\x8f\x36\x3d\x56\xbc" "\x2b\x43\xf1\xda\x3b\x4c\xac\xab\x18\x1c\x61\x59\xb0\x93\xfd\xc2\xc1\xa4" "\xfd\x2f\x00\x00\xff\xff\x37\x9b\x05\xea", 1720); syz_mount_image( /*fs=*/0x200000c0, /*dir=*/0x20000a40, /*flags=MS_SYNCHRONOUS|MS_STRICTATIME|MS_SILENT|MS_MANDLOCK|0x80*/ 0x10080d0, /*opts=*/0x20000180, /*chdir=*/1, /*size=*/0x6b8, /*img=*/0x200001c0); memcpy((void*)0x20000a00, "./file1\000", 8); syscall(__NR_unlink, /*path=*/0x20000a00ul); return 0; }