// https://syzkaller.appspot.com/bug?id=90db4795bd44fcbb13fddc0adea831a625090d21 // 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 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_setxattr #define __NR_setxattr 5 #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*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file0\000", 8); *(uint8_t*)0x20000180 = 0; memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\x4d\x68\x1c\xe7\xfd\x07\xf0\xef\xae\x64\xd9\xeb\xe4\xaf" "\x28\x8e\x9d\x38\x7f\x02\x16\x31\xb4\x05\x51\x5b\x2f\x28\x8d\x4a\xa1\x6e" "\x29\x45\x87\x50\x42\x7a\xe8\x59\xd8\x72\x2c\xbc\x76\x52\x49\x29\x4a\x28" "\x8d\xfa\x7e\xcd\x21\xb7\x5e\xd2\x83\x6e\x3d\x15\x7a\x37\xa4\x97\x5e\xda" "\x43\x21\xb7\xa2\x63\xa0\xd0\x4b\x2e\x55\x0f\x65\xca\xcc\xce\x4a\x6b\xbd" "\xcb\x96\xb5\x72\xfb\xf9\x98\xd9\xe7\x79\xe6\x99\xe7\x99\xdf\xfc\x66\x67" "\x67\x77\x8d\xd8\x00\xff\xb3\x66\xc7\x32\xf8\x20\x8d\xcc\x8e\xbd\xb1\x52" "\xb6\xd7\xd7\xa6\xda\xeb\x6b\x53\xf7\xba\xf5\x24\x67\x93\x34\x93\xc1\x4e" "\x91\xc6\x3f\x8b\xa2\xf8\x34\xb9\x91\xce\x92\x97\xcb\x95\xf5\x74\x8d\xbd" "\xf6\xf3\xf1\xc2\xcc\x5b\x9f\x7d\xb1\xfe\x79\xdd\x1c\xea\xcc\x57\x6d\xdf" "\xdc\x6f\xdc\xe1\xac\xd6\x4b\x46\x93\x0c\xd4\xe5\x71\xcd\x77\xf3\xb1\xe7" "\x6b\x54\xcb\x60\xdd\xba\xda\x4d\x1c\xf4\xdb\x99\x24\xc5\x43\x7e\xf8\xa7" "\x67\x37\x7b\x7a\xb4\x76\x1b\x7d\xee\x44\x62\x04\x9e\xac\x46\xe7\xbe\xb9" "\xc3\x48\x72\xbe\xbe\xd0\xcb\xf7\x01\x9d\xbb\x62\xe7\x9e\xfd\x54\x5b\xed" "\x77\x00\x00\x00\x00\x70\x02\x9e\xdb\xc8\x46\x56\x32\xdc\xef\x38\x00\x00" "\x00\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\x69\x52\xff\xfe\x7f\xa3\x5e\xbe\xd1\xac" "\xeb\xa3\x69\x74\x7f\xff\x7f\xa8\xee\x4b\x5d\x3f\x5d\xae\x1c\x6d\xf3\x07" "\x4f\x2a\x0e\x00\x00\x00\x00\x00\x00\x00\x38\x41\x57\x36\xb2\x91\x95\x0c" "\x77\xdb\xc5\xbf\x8b\xa2\x48\x5e\xad\x1a\x17\xab\xc7\x67\xf2\x5e\x96\x32" "\x9f\xc5\x5c\xcb\x4a\xe6\xb2\x9c\xe5\x2c\x66\x22\xc9\x48\xcf\x44\x43\x2b" "\x73\xcb\xcb\x8b\x13\x87\x18\x39\xb9\xeb\xc8\xc9\x03\x02\x3d\x5b\x97\xad" "\xac\x9e\x3f\x9e\x43\x07\x00\x00\x00\x00\x00\x00\x80\x53\xaa\xf9\x28\x83" "\x7e\x96\xd9\xad\xff\xff\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\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80" "\xd3\xa0\x91\x0c\x74\x8a\x6a\xb9\xd8\xad\x8f\xa4\x39\x98\xe4\x5c\x92\xa1" "\x72\xbb\xd5\xe4\x2f\xdd\xfa\xd3\xec\x41\xbf\x03\x00\x00\x00\x80\x13\xf0" "\xdc\x46\x36\xb2\x92\xe1\x6e\xbb\x68\x54\x9f\xf9\x5f\xac\x3e\xf7\x9f\xcb" "\x7b\xb9\x9f\xe5\x2c\x64\x39\xed\xcc\xe7\x56\xf5\x5d\x40\xe7\x53\x7f\x73" "\x7d\x6d\xaa\xbd\xbe\x36\x75\xaf\x5c\x76\xce\xfb\xad\x7f\x1c\x29\x8c\x6a" "\xc6\x74\xbe\x7b\xd8\x7d\xcf\x97\xab\x2d\x5a\xb9\x9d\x85\x6a\xcd\xb5\xdc" "\xcc\x3b\x69\xe7\x56\x9a\xd5\xc8\xd2\xe5\x6e\x3c\xbb\xc7\xf5\xd3\x32\xa6" "\xc6\x37\x6b\x87\x8c\xec\x56\x5d\x96\x47\xfe\x51\x5d\xee\xf0\xe1\x91\x0e" "\x76\x2f\x47\xfc\x32\x65\xa4\xca\xc8\x99\xcd\x8c\x8c\xd7\xb1\x95\xd9\x78" "\x7e\xff\x4c\x5c\x39\xda\xd9\xd9\xbe\xa7\x89\x34\x37\x83\xbd\xb8\x6d\x4f" "\xd5\xfa\xbf\x3e\xd3\x1d\xfa\x48\x39\x3f\x5f\x97\xe5\xf1\xfc\x6a\xaf\x9c" "\xf7\xc5\xf6\x4c\x4c\xf6\x3c\xfb\x5e\xdc\x3f\xe7\xc9\x97\xff\xf0\xbb\x1f" "\xdc\x69\xdf\xbf\x7b\xe7\xf6\xd2\xd8\xe9\x39\xa4\xc3\x19\xa8\xcb\xa2\xbb" "\x62\x7b\x26\xa6\x7a\x32\xf1\xd2\x7f\x73\x26\xb2\xfd\x7a\x1f\xaf\x32\x71" "\x69\xb3\x3d\x9b\xef\xe6\xfb\x19\xcb\x68\xde\xcc\x68\xbd\x6e\x39\xf3\x19" "\xcd\x77\x32\x97\xe5\xcc\xd5\xcf\xe7\x46\xcf\x25\xbf\x47\xa6\x6e\x3c\xd4" "\x7a\xf3\xa0\xb0\x86\xea\xf3\xd2\x39\x59\x7b\xc5\xb4\x98\x85\xfc\xa8\x8a" "\xa4\x37\xa6\x57\xab\xb1\xc3\x59\xc8\xf7\xf2\x4e\x6e\x65\x3e\xaf\x55\xff" "\x26\x33\x91\xaf\x65\x3a\xd3\x99\xe9\x39\xc3\x97\x0e\xf1\x4a\xdb\xdc\xe3" "\xaa\x2f\xfe\x6f\xd7\xe0\xaf\x7e\xa5\xae\xb4\x92\xfc\xba\x2e\x77\xf1\x9b" "\x83\xb2\x70\xfc\xca\xbc\x3e\xdf\x93\xd7\xde\xd7\xdc\x91\xaa\xaf\x77\xcd" "\x56\x96\x2e\x1c\xff\xfd\x68\xf0\xff\xeb\x4a\xb9\x8f\x9f\xd7\xe5\xe9\x30" "\x52\x3d\x3e\x7c\x97\xe8\x46\xf7\xc2\xfe\x99\xf8\x6d\xf5\xb2\xb2\xd4\xbe" "\x7f\x77\xf1\xce\xdc\xbb\xd5\x2c\x07\xba\xf0\x51\x5d\x29\xaf\xa3\x5f\x9e" "\x9a\xbb\x44\xb3\x7e\xbe\x5c\x28\x4f\x56\xb5\xe6\xe1\x67\x47\xd9\xf7\xc2" "\xae\x7d\x13\x55\xdf\xc5\xcd\xbe\xe6\x8e\xbe\x4b\x9b\x7d\x9d\x2b\x75\x75" "\xcf\x2b\x75\xa8\x7e\x0f\xb7\x73\xa6\xc9\xaa\xef\xa5\x5d\xfb\xa6\xaa\xbe" "\xcb\x3d\x7d\xbb\xbd\xdf\x02\xe0\xd4\x1b\xc9\xf9\xa1\xd6\xdf\x5b\x7f\x6e" "\x7d\xd2\xfa\x45\xeb\x4e\xeb\x8d\x73\xdf\x3e\xfb\xfa\xd9\x57\x86\x72\xe6" "\x8f\x67\xbe\x3e\x38\x3e\xf0\xa5\xe6\x2b\x8d\xdf\xe7\x93\xfc\x64\xeb\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\xe8\x96\xde\xff\xe0\xee\x5c\xbb\x3d\xbf\xb8" "\xad\x52\x14\xc5\x87\x7b\x74\xf5\xa3\xd2\xfd\x5d\xa0\xbf\x0d\x27\x8f\x33" "\x4f\xf7\xe7\xcc\x4e\x30\xf8\x97\x9f\x4d\x4e\x45\x0e\x0f\x5b\x79\xfd\x49" "\xcc\xfc\xaf\xa2\x28\xea\x35\x8d\x7e\x1f\xe0\xc1\x95\xa2\x76\x5a\xe2\xe9" "\x47\xa5\x8f\x2f\x4a\xc0\x89\xb8\xbe\x7c\xef\xdd\xeb\x4b\xef\x7f\xf0\xd5" "\x85\x7b\x73\x6f\xcf\xbf\x3d\x7f\x7f\x66\x7a\x7a\x66\x7c\x66\xfa\xb5\xa9" "\xeb\xb7\x17\xda\xf3\xe3\x9d\xc7\x7e\x47\x09\x3c\x09\x5b\x37\xfd\x7e\x47" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\xd6\x49\xfc\x39\x41\xbf\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\x78\xba\xcd\x8e\x65\xf0\x41\x1a\x99\x18\xbf\x36\x5e\xb6" "\xd7\xd7\xa6\xda\xe5\xd2\xad\x6f\x6d\x39\x98\xa4\x99\xa4\xf1\xe3\xa4\xf1" "\x69\x72\x23\x9d\x25\x23\x3d\xd3\x35\xf6\xda\xcf\xc7\x0b\x33\x6f\x7d\xf6" "\xc5\xfa\xe7\x5b\x73\x0d\x76\xb7\x6f\xee\x37\xee\x70\x56\xeb\x25\xa3\x49" "\x06\xea\xf2\xb8\xe6\xbb\xf9\xd8\xf3\x35\x36\x8f\xb0\x4c\xd8\xd5\x6e\xe2" "\xa0\xdf\xfe\x13\x00\x00\xff\xff\xdd\x54\x12\xa5", 1632); syz_mount_image(/*fs=*/0x20000600, /*dir=*/0x20000040, /*flags=MS_POSIXACL|MS_SYNCHRONOUS|MS_NOATIME*/ 0x10410, /*opts=*/0x20000180, /*chdir=*/1, /*size=*/0x660, /*img=*/0x20000cc0); memcpy((void*)0x20000100, "./file0\000", 8); memcpy((void*)0x200000c0, "user.incfs.metadata\000", 20); syscall(__NR_setxattr, /*path=*/0x20000100ul, /*name=*/0x200000c0ul, /*val=*/0ul, /*size=*/0ul, /*flags=XATTR_REPLACE|XATTR_CREATE*/ 3ul); return 0; }