// https://syzkaller.appspot.com/bug?id=c2ca225f7f68e05115f8bf2f543cb801895c1f33 // 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*)0x2000000000c0, "hfsplus\000", 8); memcpy((void*)0x200000000100, "\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*)0x200000000900, "nls", 3); *(uint8_t*)0x200000000903 = 0x3d; memcpy((void*)0x200000000904, "macinuit", 8); *(uint8_t*)0x20000000090c = 0x2c; memcpy((void*)0x20000000090d, "gid", 3); *(uint8_t*)0x200000000910 = 0x3d; sprintf((char*)0x200000000911, "0x%016llx", (long long)0); *(uint8_t*)0x200000000923 = 0x2c; memcpy((void*)0x200000000924, "umask", 5); *(uint8_t*)0x200000000929 = 0x3d; sprintf((char*)0x20000000092a, "%023llo", (long long)0x1000); *(uint8_t*)0x200000000941 = 0x2c; memcpy((void*)0x200000000942, "uid", 3); *(uint8_t*)0x200000000945 = 0x3d; sprintf((char*)0x200000000946, "0x%016llx", (long long)0); *(uint8_t*)0x200000000958 = 0x2c; memcpy((void*)0x200000000959, "type", 4); *(uint8_t*)0x20000000095d = 0x3d; memcpy((void*)0x20000000095e, "\x8c\xc6\x87\xef", 4); *(uint8_t*)0x200000000962 = 0x2c; memcpy((void*)0x200000000963, "force", 5); *(uint8_t*)0x200000000968 = 0x2c; memcpy((void*)0x200000000969, "nodecompose", 11); *(uint8_t*)0x200000000974 = 0x2c; memcpy((void*)0x200000000975, "type", 4); *(uint8_t*)0x200000000979 = 0x3d; memcpy((void*)0x20000000097a, "\x66\x4b\x98\x1f", 4); *(uint8_t*)0x20000000097e = 0x2c; *(uint8_t*)0x20000000097f = 0; memcpy( (void*)0x200000000240, "\x78\x9c\xec\xdd\x4d\x6c\x1c\x67\x19\x07\xf0\xff\x6c\x9c\x75\x36\x48\xa9" "\xdb\xa6\x6d\x40\x48\xb5\x1a\xa9\x82\x46\x24\x76\x56\x25\x41\x42\x6a\x40" "\x08\xe5\x10\xa1\x08\x2e\xbd\x5a\x89\xd3\x58\xd9\xa4\x95\xed\xa2\xb4\x42" "\x64\x03\x14\x24\x4e\x9c\x50\x0f\x1c\x8a\x50\x38\xf4\x84\x10\x42\x2a\x27" "\x44\x39\x23\x21\x71\xe1\xe4\x1b\x87\x48\xdc\x38\xe4\x00\x18\xcd\xec\xec" "\x7a\x6d\x6f\x1c\x3b\x8e\xbd\xa6\xfd\xfd\xa4\xc9\xbc\xb3\xef\xd7\x33\x8f" "\xe7\x63\x77\xec\x68\x03\x7c\x6a\x5d\x7c\x3d\x87\xbb\x29\x72\xf1\xd4\xa5" "\xdb\xe5\xf6\xca\xbd\x76\x67\xe5\x5e\xfb\x66\xbf\x9c\x64\x32\x49\x23\x99" "\xe8\xad\x52\xb4\x92\xe2\xe3\xe4\x42\x7a\x4b\x3e\x5b\xbe\x58\x0f\x57\x3c" "\x6c\x9e\x57\xef\x7f\x54\x4c\xbc\xff\x61\xbb\xb7\x35\x51\x2f\x55\xfb\xc6" "\x56\xfd\x36\x19\xd9\xb2\x9b\x1c\x19\x6c\x1c\x4a\x32\xdd\x2b\xfe\x7b\xdb" "\xc3\x6e\x1a\xaf\x5a\xaa\x71\xae\xac\x8d\xf7\x98\x8a\x41\xdc\x65\xc2\x4e" "\xf6\x13\x07\xe3\xb6\xba\x49\x77\xad\xb2\xf1\xc8\xee\xdb\x3f\x6f\x81\x03" "\xeb\x4e\xef\xbe\xb9\xc9\x54\x72\x34\xbd\xbb\x6b\xf9\x3e\x20\xf5\xd5\xe1" "\xd1\x57\x86\xf1\xdb\xf2\xda\xd4\xdd\xbf\x38\x00\x00\x00\x60\xaf\x8c\xfc" "\x2c\x3f\xec\xa9\x07\x79\x90\xdb\x39\xb6\x3f\xe1\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\x27\x43\xd1\xfb\xce\xc0\xa2\x5e\x1a\xfd\xf2\x74\x8a\xfe" "\xf7\xff\x37\x87\xbe\x53\xbf\x39\xe6\x70\x77\xe9\xbd\x6b\xd5\xea\xdb\x4f" "\x8d\x3b\x10\x00\x00\x00\x00\x00\x00\x00\xd8\x95\x17\x1f\xe4\x41\x6e\xe7" "\x58\x7f\x7b\xb5\xa8\x7e\xe7\xff\x52\xb5\x71\xbc\xfa\xf7\x33\x79\x3b\x4b" "\x99\xcf\x62\x4e\xe7\x76\xe6\xb2\x9c\xe5\x2c\x66\x36\xc9\xd4\xd0\x40\xcd" "\xdb\x73\xcb\xcb\x8b\xb3\xc3\x3d\xab\x3f\x12\x58\xfa\x79\xca\x9e\xab\xab" "\xab\x77\xea\x9e\x67\x47\xf6\x3c\xbb\x3e\xae\xee\xc6\x40\x47\xfd\xa5\xc1" "\xa6\x46\x00\x00\x00\x00\x00\x00\x00\xf0\xa9\xf5\x83\x5c\x5c\xfb\xfd\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\x1c\x04\x45\x72\xa8\xb7\xaa" "\x96\xe3\xfd\xf2\x54\x1a\x13\x49\x8e\x24\x69\x16\xd3\x83\xe6\xcd\xb1\x06" "\xfb\x04\xfc\x71\xdc\x01\x00\x00\x00\xc0\xde\x6b\xd5\xeb\x63\xc5\x7f\x7b" "\x85\xd5\xa2\xfa\xcc\xff\x7c\xf5\xb9\xff\x48\xde\xce\xad\x2c\x67\x21\xcb" "\xe9\x64\x3e\x57\xab\x67\x01\xbd\x4f\xfd\x8d\xbf\x76\xdb\x9d\x95\x7b\xed" "\x9b\xe5\xb2\x79\xe0\xaf\xfd\x73\x47\x71\x54\x23\xa6\xf7\xec\x61\xf4\xcc" "\x33\x55\x8b\xe7\x06\x3d\x2e\xe6\x9b\xf9\x4e\x4e\x65\x3a\x97\xb3\x98\x85" "\x7c\x37\x73\x59\xce\x7c\xa6\xf3\x8d\xaa\x34\x97\x22\x53\xf5\xd3\x8b\xa9" "\x95\x7b\xad\xf4\x63\xdd\x1c\xef\x85\x75\x5b\x97\x37\xc6\xf6\xe2\x50\xb9" "\x8c\xef\x44\x15\x49\x2b\xd7\xb2\x50\xc5\x76\x3a\x57\x9a\xfd\xd0\x1b\x75" "\xbb\x13\x43\xb3\xfd\xbe\x99\x6c\x98\xf1\x6e\x99\x9d\xe2\xb5\xda\x36\x73" "\x74\xb5\x5e\x97\x7b\xf4\xb3\x7a\x7d\x30\x4c\x55\x7b\x7e\x78\x90\x91\x99" "\x3a\xf7\x65\x36\x9e\x1e\xce\xfb\xe6\xdc\xef\xf0\x38\xd9\x38\xd3\x6c\x1a" "\x83\x67\x50\xc7\xd7\x66\x29\x37\x37\xce\xf4\x58\x39\x3f\x5a\xaf\xcb\x5c" "\xff\x78\x6f\x73\xbe\xc3\x47\x69\xeb\x33\xd1\xfd\x69\xb9\xd5\x3f\xfa\x9e" "\xdf\x3a\xe7\xc9\x17\xff\xf6\xa7\xcb\xd7\x1b\xb7\x6e\x5c\xbf\xb6\x74\xea" "\xe0\x1c\x46\x8f\x69\xe3\x31\xd1\x1e\xca\xc4\x0b\xdb\xca\x44\xa7\xcc\x44" "\x77\x17\x99\x38\xb2\x9b\xf8\x9f\x9c\x66\x9d\x8d\xde\x55\x74\x67\x57\xcb" "\x97\xaa\xbe\xc7\xb2\x90\x6f\xe5\xcd\x5c\xcd\x7c\xce\x65\x26\xb3\x39\x9f" "\x99\x7c\x25\x67\xd3\xce\xd9\xa1\xbc\x3e\xb7\x75\x5e\xab\x73\xad\xb1\xb3" "\x73\xed\xe4\x17\xea\x42\x79\x4f\xfa\xc9\xd0\xbd\x69\xdf\x4c\x3e\xac\xa2" "\xcc\xeb\xd3\x43\x79\x1d\xbe\xd2\x4d\x55\x75\xc3\xaf\xac\x65\xe9\x99\x6d" "\x64\xa9\x68\x66\x74\x96\xfe\x3e\x32\x94\x89\xcf\xd5\x85\x72\x8e\x1f\x0e" "\xdd\x71\xc6\x6f\x90\x89\xc6\xda\xb5\xb9\x1f\xdd\xb3\x5b\x67\xe2\x97\xff" "\x59\x4d\xb2\xd4\xb9\x75\x63\xf1\xfa\xdc\x5b\xdb\x9c\xef\xe5\x7a\x5d\x9e" "\xb6\xef\xad\xbf\x36\xff\xea\x89\xec\xd0\xce\xd5\xbb\x5b\x1e\x2f\xcf\x94" "\x3f\xac\xf4\x6e\x1b\xc3\x47\x47\x59\xf7\x6c\xbf\x6e\xdd\x91\x33\x5b\xd5" "\x1d\x1f\xd4\xad\xbf\xcf\x35\x9b\xa9\xce\xe7\x5e\xdd\xa3\xce\xd4\x72\xa4" "\xe7\xef\x8e\x1a\xa9\x57\xf7\xc2\xc8\x59\xda\x55\xdd\x89\xa1\xba\x75\xef" "\x72\xf2\x66\x3a\x83\x77\x21\x00\x1c\x60\x47\x5f\x39\xda\x6c\xdd\x6f\xfd" "\xa5\xf5\x41\xeb\x47\xad\xeb\xad\x4b\x47\xbe\x3e\x79\x7e\xf2\xf3\xcd\x1c" "\xfe\xf3\xc4\x1f\x0e\xfd\xa6\xf1\xeb\xc6\x57\x8b\x57\xf2\x41\xbe\x9f\x63" "\xe3\x8e\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x09\x96\xde\x79\xf7\xc6\x5c\xa7\x33" "\xbf\x78\x00\x0b\x69\x3c\xe1\x01\xef\x8e\xac\xea\xa7\xa2\xf7\x4a\xf3\x60" "\xec\xfb\x56\x85\xc3\xfb\x3b\xe9\xa1\x9d\x34\x9e\xdc\xea\x88\xfa\x6d\x92" "\x2d\xba\x37\xc7\x91\xcc\x56\x92\x03\xf0\x33\x9d\xeb\x64\x62\x1f\xe6\x9a" "\xcc\x88\xaa\x4b\x83\x57\x5a\x49\x63\x10\x4f\x92\x1b\x07\xe4\x0b\xee\x80" "\xbd\x70\x66\xf9\xe6\x5b\x67\x96\xde\x79\xf7\x4b\x0b\x37\xe7\xde\x98\x7f" "\x63\xfe\xd6\xd9\xf3\xe7\x5e\x3b\xd7\xfe\xf2\xec\x9d\x33\xd7\x16\x3a\xf3" "\x33\xbd\x7f\xc7\x1d\x25\xb0\x17\xd6\xde\x06\x8c\x3b\x12\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x60\xbb\x76\xf3\xdf\x09\xfe\x71\x69\x7b\x8d\x47\x4c" "\x5b\x74\xc7\xb0\xaf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xff\xa7\x8b\xaf\xe7\x70\x37\x45\x66" "\x67\x4e\xcf\x94\xdb\x2b\xf7\xda\x9d\x72\xe9\x97\xd7\x5a\x4e\x24\x69\x24" "\x29\xbe\x97\x14\x1f\x27\x17\xd2\x5b\x32\x35\x34\x5c\xf1\xb0\x79\x5e\xbd" "\xff\xd1\x2f\x5e\x7e\xff\xc3\xf6\xda\x58\x13\xfd\xf6\x8d\x0d\xfd\x7e\xf7" "\xaf\xd5\xd5\x1d\xee\x45\xb7\x5e\x32\x9d\xe4\x50\xbd\x7e\xb4\xc9\x6d\x8d" "\x77\x65\x68\xbc\xee\x0e\x03\xeb\x29\x06\x7b\x58\x26\xec\x64\x3f\x71\x30" "\x6e\xff\x0b\x00\x00\xff\xff\xfc\xdf\x06\xf4", 1721); syz_mount_image( /*fs=*/0x2000000000c0, /*dir=*/0x200000000100, /*flags=MS_LAZYTIME|MS_STRICTATIME|MS_RELATIME|MS_NODEV*/ 0x3200004, /*opts=*/0x200000000900, /*chdir=*/3, /*size=*/0x6b9, /*img=*/0x200000000240); memcpy((void*)0x200000000000, "./file1\000", 8); syscall(__NR_llistxattr, /*path=*/0x200000000000ul, /*list=*/0ul, /*size=*/0ul); return 0; }