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