// 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*)0x20000580, "./file0\000", 8); memcpy((void*)0x20000200, "nls", 3); *(uint8_t*)0x20000203 = 0x3d; memcpy((void*)0x20000204, "iso8859-9", 9); *(uint8_t*)0x2000020d = 0x2c; memcpy((void*)0x2000020e, "umask", 5); *(uint8_t*)0x20000213 = 0x3d; sprintf((char*)0x20000214, "%023llo", (long long)0x10b); *(uint8_t*)0x2000022b = 0x2c; memcpy((void*)0x2000022c, "nodecompose", 11); *(uint8_t*)0x20000237 = 0x2c; memcpy((void*)0x20000238, "nobarrier", 9); *(uint8_t*)0x20000241 = 0x2c; memcpy((void*)0x20000242, "force", 5); *(uint8_t*)0x20000247 = 0x2c; memcpy((void*)0x20000248, "umask", 5); *(uint8_t*)0x2000024d = 0x3d; sprintf((char*)0x2000024e, "%023llo", (long long)0xdb); *(uint8_t*)0x20000265 = 0x2c; memcpy((void*)0x20000266, "creator", 7); *(uint8_t*)0x2000026d = 0x3d; memcpy((void*)0x2000026e, "\xac\x82\x09\xd1", 4); *(uint8_t*)0x20000272 = 0x2c; memcpy((void*)0x20000273, "gid", 3); *(uint8_t*)0x20000276 = 0x3d; sprintf((char*)0x20000277, "0x%016llx", (long long)0); *(uint8_t*)0x20000289 = 0x2c; memcpy((void*)0x2000028a, "part", 4); *(uint8_t*)0x2000028e = 0x3d; sprintf((char*)0x2000028f, "0x%016llx", (long long)2); *(uint8_t*)0x200002a1 = 0x2c; memcpy((void*)0x200002a2, "decompose", 9); *(uint8_t*)0x200002ab = 0x2c; memcpy((void*)0x200002ac, "uid", 3); *(uint8_t*)0x200002af = 0x3d; sprintf((char*)0x200002b0, "0x%016llx", (long long)0xee00); *(uint8_t*)0x200002c2 = 0x2c; memcpy((void*)0x200002c3, "umask", 5); *(uint8_t*)0x200002c8 = 0x3d; sprintf((char*)0x200002c9, "%023llo", (long long)0x40); *(uint8_t*)0x200002e0 = 0x2c; memcpy((void*)0x200002e1, "subj_type", 9); *(uint8_t*)0x200002ea = 0x3d; memcpy((void*)0x200002eb, "{:", 2); *(uint8_t*)0x200002ed = 0x2c; *(uint8_t*)0x200002ee = 0; memcpy( (void*)0x200005c0, "\x78\x9c\xec\xdd\x4d\x6c\x1c\x67\xfd\x07\xf0\xef\x6c\x9c\x8d\x37\x7f\xc9" "\x7f\xb7\x4d\xd2\x82\x90\x6a\x35\x52\x05\x8d\x48\x6c\x2f\x25\x41\x42\x22" "\x20\x84\x7c\xa8\x50\x24\x2e\xbd\x5a\x89\xd3\x58\xd9\xb8\x95\xed\x22\xb7" "\x42\x74\x0b\x14\x24\x4e\x9c\x50\x0f\x1c\x8a\x50\x38\xf4\x84\x38\x20\x15" "\x71\x40\x94\x33\x12\x12\x17\x4e\xb9\x47\xe2\x9e\x03\x60\x34\xb3\xb3\xf6" "\xfa\x7d\xe3\xd4\x59\x37\xfd\x7c\xa4\xf1\xf3\xcc\x3e\x6f\xbf\xf9\x65\x76" "\x66\x5f\x14\x6d\x80\xcf\xac\xb9\x57\x73\xb2\x9b\x22\x73\x17\x5e\x59\x2b" "\xf7\xef\xdd\x6d\x77\xee\xdd\x6d\xdf\xe9\xd7\x93\x9c\x4a\xd2\x48\xc6\x7a" "\x45\x8a\xa5\xa4\xf8\x38\xb9\x9a\xde\x96\xcf\x95\x0f\xd6\xd3\x15\x7b\xad" "\xf3\xf2\xfd\x8f\x8a\xb1\xf7\x3f\x6c\x57\x53\x54\x73\x8d\xf5\xfb\x37\xf6" "\x1b\xb7\xc3\xae\x3d\xbb\xf5\x96\xa9\x24\x27\x7a\x65\x59\xfc\xfb\xa1\x72" "\xb1\xc7\x7c\xd7\xeb\xf2\xf0\x8a\x8d\xb8\xcb\x84\x9d\xef\x27\x0e\x46\x6d" "\x7d\x87\xee\x66\x63\xe3\xc0\xe1\xc3\x3f\x6f\x81\x63\xeb\x9d\xde\x0d\x73" "\x87\xc9\xe4\x74\x92\xf1\xfa\x75\x40\xea\xab\xc3\xc1\x57\x86\xd1\xdb\xf7" "\xda\xd4\x7d\x7c\x71\x00\x00\x00\xc0\x51\xd9\xf5\xbd\xfc\xa0\xff\x7f\x90" "\x07\x59\xcb\xc4\xe3\x09\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\x9e\x0c" "\x45\xef\x37\x03\x8b\x7a\x6b\xf4\xeb\x53\x29\xfa\xbf\xff\xdf\x1c\xf8\x4d" "\xfd\xe6\x88\xc3\x7d\x44\xef\xdd\xac\x2b\xeb\x23\x0e\x04\x00\x00\x00\x00" "\x00\x00\x00\xf6\x36\x7f\x70\x97\xe7\x1f\xe4\x41\xd6\x32\xd1\xdf\x5f\x2f" "\xaa\xef\xfc\x5f\xa8\x76\xce\x54\x7f\xff\x2f\x6f\x66\x25\x0b\x59\xce\xc5" "\xac\x65\x3e\xab\x59\xcd\x72\x66\x92\x4c\x0e\x4c\xd4\x5c\x9b\x5f\x5d\x5d" "\x9e\xd9\x39\xf2\x97\x29\x47\xae\xaf\xaf\xbf\x53\x8f\x9c\xdd\x75\xe4\xec" "\xd6\xb8\xba\xc3\x1c\xdf\x50\x9d\x00\x00\x00\x00\x00\x00\x00\xe0\x33\xe1" "\x47\x99\xdb\xfc\xfe\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\x8e" "\x83\x22\x39\xd1\x2b\xaa\xed\x4c\xbf\x3e\x99\xc6\x58\x92\xf1\x24\xcd\x64" "\xb1\xd1\x4d\xfe\xd4\xab\x7f\xba\xfd\x79\xd4\x01\x00\x00\x00\xc0\xd1\x6b" "\xd5\xe5\x44\xf1\xdf\x5e\x65\xbd\xa8\xde\xf3\x9f\xab\xde\xf7\x8f\xe7\xcd" "\x2c\x65\x35\x8b\x59\x4d\x27\x0b\xb9\x51\x7d\x16\xd0\x7b\xd7\xdf\xf8\x7b" "\xb7\xdd\xb9\x77\xb7\x7d\xa7\xdc\x76\x4e\xfc\xcd\x7f\x6d\xd6\x87\xf8\x90" "\xa0\x9a\x31\xbd\xcf\x1e\x76\x5f\x79\xba\xea\x71\x76\x63\xc4\x5c\xbe\x93" "\xef\xe5\x42\xa6\x72\x2d\xcb\x59\xcc\xf7\x33\x9f\xd5\x2c\x64\x2a\xdf\xae" "\x6a\xf3\x29\x32\x59\x7f\x7a\x31\xd9\x8f\x73\xf7\x78\xaf\x6e\xd9\xbb\xb6" "\x3d\xb6\xe7\xb7\xed\x3f\x57\x45\xd2\xca\xcd\x2c\x56\xb1\x5d\xcc\xf5\x66" "\x3f\xf4\x46\xbf\xcf\xc0\x6a\x7f\x68\x26\xdb\x56\x7c\xb7\xcc\x4e\xf1\x8d" "\xda\xc1\xe9\xa9\xdc\xa8\xcb\xf2\x88\x7e\x51\x95\xc5\x90\x23\x8f\xda\x64" "\x75\xe4\x27\x37\x32\x32\x5d\xe7\xbe\xcc\xc6\x53\xfb\xe7\x7e\xf0\x3c\x39" "\xc4\x4a\x33\x69\x6c\x9c\x5e\x67\x36\x57\x29\x77\xb7\xaf\x74\xa8\x9c\x9f" "\xae\xcb\x32\xd3\x3f\xad\xcb\x23\xf2\x90\x1f\xa5\x6d\xcd\x44\xf7\xe7\xe5" "\x5e\xff\xec\x3b\xb7\x7f\xce\x93\x2f\xfd\xe3\x2f\xd7\x6e\x35\x96\x6e\xdf" "\xba\xb9\x72\xe1\xb8\x9c\x44\x87\xb6\xfd\x9c\x68\x0f\x64\xe2\xd9\xa1\x32" "\xd1\x29\x33\xd1\x7d\x84\x4c\x8c\x3f\x4a\xfc\x9f\x9c\x66\x9d\x8d\xde\x55" "\xf4\xe1\xae\x96\x2f\x54\x63\x27\xb2\x98\xef\xe6\xf5\xdc\xc8\x42\x2e\x67" "\x3a\x33\xb9\x92\xe9\x7c\x2d\xb3\x69\x67\x76\x20\xaf\x67\xf7\xcf\x6b\xf5" "\x5c\x6b\x3c\xdc\x73\xed\xfc\x17\xeb\x4a\x79\x4f\xfa\xd9\xc0\xbd\x69\xf4" "\xca\xbc\x3e\x35\x90\xd7\xc1\x2b\xdd\x64\xd5\x36\xf8\xc8\x66\x96\x9e\x1e" "\x22\x4b\x7b\x5e\x91\xfe\xb9\x6b\x28\x63\x9f\xaf\x2b\xe5\x1a\x3f\x1e\xb8" "\xe3\x8c\xde\xf6\x4c\xcc\x0c\x64\xe2\x99\xfd\x33\xf1\xeb\xff\xac\x27\x59" "\xe9\x2c\xdd\x5e\xbe\x35\xff\xc6\x90\xeb\xbd\x58\x97\xe5\xd3\xf6\xbd\xad" "\xd7\xe6\xdf\x7c\x22\x07\x74\x68\xe5\xf9\xf2\x74\xf9\x8f\x95\xde\x6d\x63" "\xf0\xec\x28\xdb\x9e\xe9\xb7\x6d\xcb\x57\xb3\xfe\xc6\xa5\xd7\xd6\xd8\xd1" "\x76\x76\xa3\xed\xa0\x67\x6a\xd9\xfb\xdc\xbb\xbb\xcd\xd4\x6b\x7b\x76\xd7" "\x55\xda\x55\xdb\x73\x03\x6d\x5b\x5e\xe5\xe4\xf5\x74\x36\x5e\x85\x00\x70" "\x8c\x9d\x7e\xe9\x74\xb3\x75\xbf\xf5\xb7\xd6\x07\xad\x9f\xb4\x6e\xb5\x5e" "\x19\xff\xd6\xa9\x2b\xa7\xbe\xd0\xcc\xc9\xbf\x8e\xfd\xf1\xc4\xef\x1a\xbf" "\x6d\x7c\xbd\x78\x29\x1f\xe4\x87\x99\x18\x75\xa4\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0" "\x24\x58\x79\xeb\xed\xdb\xf3\x9d\xce\xc2\xf2\x31\xac\xa4\x31\x82\x45\x9b" "\xc7\xe3\xd8\x9f\xc8\xca\xef\x93\xec\xd3\xa7\x39\x8a\xc0\x5a\x49\x8e\x4b" "\x7e\x8e\xbe\x72\x2a\xfb\xf6\x69\x65\xf3\x91\x51\x5f\x99\x80\xa3\x76\x69" "\xf5\xce\x1b\x97\x56\xde\x7a\xfb\xcb\x8b\x77\xe6\x5f\x5b\x78\x6d\x61\x69" "\xf6\xca\xe5\x2b\x97\xdb\x5f\x9d\xf9\xca\xa5\x9b\x8b\x9d\x85\xe9\xde\xdf" "\x51\x47\x09\x1c\x85\xcd\xbb\xff\xa8\x23\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x86\xf5\x38\xfe\xef\xc1\xa8\x8f\x11\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x74\x9b\x7b" "\x35\x27\xbb\x29\x32\x33\x7d\x71\xba\xdc\xbf\x77\xb7\xdd\x29\xb7\x7e\x7d" "\xb3\xe7\x58\x92\x46\x92\xe2\x07\x49\xf1\x71\x72\x35\xbd\x2d\x93\x03\xd3" "\x15\x7b\xad\xf3\xf2\xfd\x8f\x7e\xf5\xe2\xfb\x1f\xb6\x37\xe7\x1a\xeb\xf7" "\x6f\xec\x37\x6e\x38\xdd\x7a\xcb\x54\x92\x13\x75\x79\xb0\x53\x43\xcd\x77" "\x7d\x60\xbe\xee\xa1\xc2\x2b\x36\x8e\xb0\x4c\xd8\xf9\x7e\xe2\x60\xd4\xfe" "\x17\x00\x00\xff\xff\xc7\x77\x0d\x67", 1647); syz_mount_image(/*fs=*/0x200000c0, /*dir=*/0x20000580, /*flags=MS_POSIXACL*/ 0x10000, /*opts=*/0x20000200, /*chdir=*/2, /*size=*/0x66f, /*img=*/0x200005c0); memcpy((void*)0x20000000, "./file1\000", 8); syscall(__NR_unlink, /*path=*/0x20000000ul); return 0; }