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