// https://syzkaller.appspot.com/bug?id=8a0515c326633c38c5145308835518579ea8af1e // 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_llistxattr #define __NR_llistxattr 12 #endif #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #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); if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000140, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file0\000", 8); *(uint32_t*)0x20001280 = 0; *(uint16_t*)0x20001284 = 0; sprintf((char*)0x20001286, "%023llo", (long long)-1); memcpy((void*)0x2000129d, "\x49\x96\x0c\x7b\x00\x84\x04\xc0\x38\xf4\x31\xd8\x6a\x57\x91\xe7\x46" "\x6a\xcc\x41\xb5\x60\x45\x5b\xdd\x92\xd9\xfe\xa6\xc5\xd2\x3f\x11\xf0" "\x67\x50\x4b\x7c\xee\x22\x4f\x76\xbb\xaf\xc0\x9f\x25\xac\x33\x2a\x11" "\x06\xf5\x55\x8b\x6d\xea\x2e\x8f\xdf\x50\x89\x38\xab\x3b\x52\x82\x82" "\xec\x6c\xca\x79\x1d\x42\x8b\xf4\x52\xf8\xe7\x98\x35\xf7\x10\x4a\x62" "\x3b\x6e\x57\x24\x97\xe8\xfb\x65\xb8\x0f\xcc\x5a\x65\x4f\xfe\xdd\x1c" "\x81\x90\xfc\x30\x9d\xbd\x9c\x32\xac\x44\xcd\xd4\xbb\x56\x9e", 117); sprintf((char*)0x20001312, "%020llu", (long long)-1); sprintf((char*)0x20001326, "0x%016llx", (long long)-1); *(uint16_t*)0x20001338 = -1; memcpy( (void*)0x20000a80, "\x78\x9c\xec\xdd\x4f\x6c\x1c\x57\x1d\x07\xf0\xef\x6c\x36\x76\x36\x84\xd4" "\x4d\x93\x36\x45\x95\x12\x35\xe2\x8f\x88\x48\xec\x58\x29\xb8\x12\x22\x20" "\x84\x72\xa8\x50\x55\x0e\x9c\xad\xc4\x69\xac\x6c\xd2\xe2\xb8\xc8\xad\x10" "\x0d\xff\xaf\x3d\x84\x23\x52\x39\xf8\xc6\x09\x89\x7b\xa4\x72\xe1\x02\xb7" "\x1e\xf1\xb1\x12\x82\x4b\x2f\x98\x0b\x8b\x66\x76\xd6\xde\xda\xbb\xfe\x13" "\x1c\xaf\xdd\x7e\x3e\xd1\xec\x7b\xb3\x6f\xde\x7b\xbf\xf7\xdb\xd9\x9d\xdd" "\xb5\xa2\x0d\xf0\x99\x75\xfd\x62\x9a\x8f\x52\xe4\xfa\xc5\x57\x96\xca\xfd" "\x95\xe5\xe9\xf6\xca\xf2\xf4\xdd\x5e\x3d\xc9\x78\x92\x46\xd2\xac\x8a\x22" "\xc5\xbf\x3b\x9d\xce\x07\xc9\xb5\x74\xb7\x3c\x9f\xa4\xa8\x87\x2b\x86\xcd" "\xf3\x70\x7e\xe6\xb5\x0f\x3f\x5e\xf9\xa8\xbb\xd7\xac\xb7\xea\xf8\xc6\x56" "\xfd\x76\xe6\x41\xbd\xe5\x7c\x92\x23\x75\xb9\x57\xe3\xdd\xd8\x6e\xbc\x63" "\xdb\x0d\x57\xac\xad\xb0\x4c\xd8\x85\x5e\xe2\x60\xd4\x8e\x26\xe9\x54\xfe" "\xf9\xb0\x7b\xcf\x8f\xfe\x72\x62\xad\xa5\x4f\x6b\x50\xef\x6d\xcf\x7c\xe0" "\x10\x28\xba\xd7\xcd\x4d\x26\x92\xe3\xf5\x13\xbd\x7c\x1f\xd0\xbd\x2a\x76" "\xaf\xd9\x87\xda\x83\x51\x07\x00\x00\x00\x00\xfb\xe0\xa9\xd5\xac\x66\x29" "\x27\x47\x1d\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\x1c\x26\xf5\xef\xff" "\x17\xf5\xd6\xe8\xd5\xcf\xa7\xe8\xfd\xfe\xff\x58\x7d\x5f\xea\xfa\xc1\x72" "\x6e\x77\x87\x3f\x7a\x52\x71\x00\x00\x00\x00\x00\x00\x00\xc0\x3e\x3a\xb7" "\x9a\xd5\x2c\xe5\x64\x6f\xbf\x53\x54\x7f\xf3\x7f\xb1\xda\x39\x5d\xdd\x7e" "\x2e\x6f\xe5\x7e\xe6\xb2\x90\x4b\x59\xca\x6c\x16\xb3\x98\x85\x4c\x25\x99" "\xe8\x1b\x68\x6c\x69\x76\x71\x71\x61\xaa\xbf\xe7\xf8\xe0\x9e\x57\x06\xf6" "\xbc\xb2\x4d\xa0\xe3\x75\xd9\xda\xa3\x85\x03\x00\x00\x00\x00\x00\x00\xc0" "\xa7\xcb\xcf\x73\x7d\xfd\xef\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\x91\x6e\x51\x6d\xa7\x7b\xf5\x89\x34\x9a\x49\x8e\x25" "\x19\x2b\x8f\x7b\x90\xfc\xad\x57\x3f\xcc\x1e\x8d\x3a\x00\x00\x00\x00\xd8" "\x07\x4f\xad\x66\x35\x4b\x39\xd9\xdb\xef\x14\xd5\x67\xfe\x67\xab\xcf\xfd" "\xc7\xf2\x56\xee\x65\x31\xf3\x59\x4c\x3b\x73\xb9\x59\x7d\x17\xd0\xfd\xd4" "\xdf\x58\x59\x9e\x6e\xaf\x2c\x4f\xdf\x2d\xb7\xcd\xe3\x7e\xfb\x5f\xbb\x0a" "\xa3\x1a\x31\xdd\xef\x1e\x06\xcf\x7c\xb6\x3a\xa2\x95\x5b\x99\xaf\xee\xb9" "\x94\x1b\x79\x23\xed\xdc\x4c\xa3\xea\x59\x3a\xdb\x8b\x67\x70\x5c\x3f\x2b" "\x63\x2a\xbe\x55\xdb\x61\x64\x37\xeb\xb2\x5c\xf9\x7b\x75\xb9\xc9\xbb\xbb" "\x5a\xec\x30\xbb\xfc\x32\x65\xa2\xca\xc8\xd1\xb5\x8c\x4c\xd6\xb1\x95\xd9" "\x78\x7a\xeb\x4c\xec\xf2\xd1\xd9\x38\xd3\x54\x1a\x6b\xc1\x9e\xde\x30\xd3" "\x86\x45\x3c\x56\xce\x8f\xd7\x65\xb9\x9e\x5f\x0f\xcb\xf9\x48\x6c\xcc\xc4" "\x95\xbe\xb3\xef\xd9\xad\x73\x9e\x7c\xf9\x4f\x7f\xf8\xe1\xed\xf6\xbd\x3b" "\xb7\x6f\xdd\xbf\x78\x70\x96\xb4\x33\x47\xea\xb2\x53\xdd\xb6\x36\x67\x62" "\xba\x2f\x13\xcf\x7d\x9a\x33\xb1\xc9\x64\x95\x89\x33\x6b\xfb\xd7\xf3\xbd" "\xfc\x20\x17\x73\x3e\xaf\x66\x21\xf3\xf9\x71\x66\xb3\x98\xb9\x9c\xcf\x77" "\xab\xda\x6c\x7d\x3e\x97\xb7\xe3\x75\x9f\x21\x99\xba\xf6\x89\xbd\x57\xb7" "\x8b\x64\xac\x3e\x43\xbb\x0f\xd6\xee\x62\x7a\xb1\xea\x7b\x32\xf3\xf9\x7e" "\xde\xc8\xcd\xcc\xe5\xa5\xea\xdf\x95\x4c\xe5\xeb\xb9\x9a\xab\x99\xe9\x7b" "\x84\xcf\xec\xe0\x95\xb6\x31\xe4\x59\xdf\xf9\xfc\xc0\xe0\x2f\x7c\xa5\xae" "\xb4\x92\xfc\xa6\x2e\x0f\x86\x32\xaf\x4f\xf7\xe5\xb5\xff\x35\x77\xa2\x6a" "\xeb\xbf\x67\x3d\x4b\xa7\xf6\xfe\x7a\xd4\xfc\x42\x5d\x29\xe7\xf8\x45\x5d" "\x1e\x0c\x1b\x33\x31\xd5\x97\x89\x67\xb6\xce\xc4\xef\xab\x97\x95\xfb\xed" "\x7b\x77\x16\x6e\xcf\xbe\xb9\xb3\xe9\x4e\xbd\x57\x57\xca\xe7\xd1\xaf\x0e" "\xd4\x55\xa2\x3c\x5f\x4e\x95\x0f\x56\xb5\xf7\xc9\xb3\xa3\x6c\x7b\x66\x60" "\xdb\x54\xd5\x76\x7a\xad\xad\xb1\xa9\xed\x4c\xaf\xed\xef\xbf\xfb\xed\xcb" "\xd5\x31\xc3\x9e\xa9\x63\xf5\x7b\xb8\xe6\x37\x67\x36\x5d\xb1\xca\xb6\xe7" "\x06\xce\x32\x5d\xb5\x9d\xed\x6b\xdb\xf0\x7e\xeb\x8b\x27\x46\x93\x50\x00" "\x76\xe7\xf8\x57\x8f\x8f\xb5\xfe\xd1\xfa\x6b\xeb\xfd\xd6\x2f\x5b\xb7\x5b" "\xaf\x1c\xfb\xce\xf8\x37\xc6\x5f\x18\xcb\xd1\x3f\x1f\x7d\xb9\x39\x79\xe4" "\x4b\x8d\x17\x8a\x3f\xe6\xfd\xfc\x74\xfd\xf3\x3f\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0" "\xf8\xee\xbf\xfd\xce\x9d\xd9\x76\x7b\x6e\x61\x43\xa5\xd3\xe9\xbc\x3b\xa4" "\x69\x58\xa5\x37\xe4\xee\x7a\xd5\x95\xff\x3e\x56\xaf\x5d\x57\x7a\x3f\x67" "\x36\xf4\x98\xa3\x7b\x3e\xe9\xf3\x27\x92\x27\xbe\xae\x21\x95\xb1\x24\xfb" "\x3e\xe9\xc0\xca\x7f\x3a\x9d\x4e\x7d\x4f\x71\x10\xe2\xd9\xba\xd2\x29\x8d" "\xa7\xf3\xc4\xe7\x6a\x26\x19\xd4\x74\x6e\xf4\x49\x18\xdd\x6b\x12\xb0\x3f" "\x2e\x2f\xde\x7d\xf3\xf2\xfd\xb7\xdf\xf9\xda\xfc\xdd\xd9\xd7\xe7\x5e\x9f" "\xbb\x37\x73\xf5\xea\xcc\xe4\xcc\xd5\x97\xa6\x2f\xdf\x9a\x6f\xcf\x4d\x76" "\x6f\x47\x1d\x25\xf0\x24\xac\x5f\xf4\x47\x1d\x09\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xb0\x53\xfb\xf1\xdf\x09\x86\xcf\x7e\x6c\x3f\x97\x0a\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x52\xd7\x2f\xa6\xf9\x28\x45\xa6\x26\x2f\x4d\x96\xfb\x2b\xcb\xd3" "\xed\x72\xeb\xd5\xd7\x8f\x6c\x26\x69\x24\x29\x7e\x92\x14\x1f\x24\xd7\xd2" "\xdd\x32\xd1\x37\x5c\x31\x6c\x9e\x87\xf3\x33\xaf\x7d\xf8\xf1\xca\x47\xeb" "\x63\x35\x7b\xc7\x37\xb6\xea\xb7\x33\x0f\xea\x2d\xe7\x93\x1c\xa9\xcb\xbd" "\x1a\xef\xc6\xff\x3d\x5e\xb1\xb6\xc2\x32\x61\x17\x7a\x89\x83\x51\xfb\x5f" "\x00\x00\x00\xff\xff\x9f\xbc\x04\x3c", 1647); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000040, /*flags=*/0, /*opts=*/0x20001280, /*chdir=*/1, /*size=*/0x66f, /*img=*/0x20000a80); memcpy((void*)0x20000040, "./file1\000", 8); syscall(__NR_llistxattr, /*path=*/0x20000040ul, /*list=*/0ul, /*size=*/0ul); return 0; }