// https://syzkaller.appspot.com/bug?id=2315a07914323f51d81c704cebded8a243eedadd // 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 #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; 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) { unsigned len; s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; 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->out != (unsigned char*)0) { if (s->outcnt + len > s->outlen) return 1; while (len--) s->out[s->outcnt++] = s->in[s->incnt++]; } else { s->outcnt += len; s->incnt += len; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int len; int code; int first; int count; int index; int bitbuf; int left; short* next; bitbuf = s->bitbuf; left = s->bitcnt; code = first = index = 0; len = 1; next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; 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 symbol; int len; int left; short offs[MAXBITS + 1]; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } 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) { int symbol; int len; unsigned dist; 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}; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->out != (unsigned char*)0) { if (s->outcnt == s->outlen) return 1; s->out[s->outcnt] = symbol; } s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->out != (unsigned char*)0) { if (s->outcnt + len > s->outlen) return 1; while (len--) { s->out[s->outcnt] = dist > s->outcnt ? 0 : s->out[s->outcnt - dist]; s->outcnt++; } } else s->outcnt += len; } } 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) { int symbol; short lengths[FIXLCODES]; lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; 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) { int nlen, ndist, ncode; int index; int err; short lengths[MAXCODES]; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman lencode, distcode; static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; nlen = puff_bits(s, 5) + 257; ndist = puff_bits(s, 5) + 1; ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; 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; 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; int last, type; int err; s.out = dest; s.outlen = *destlen; s.outcnt = 0; s.in = source; s.inlen = *sourcelen; s.incnt = 0; s.bitbuf = 0; s.bitcnt = 0; if (setjmp(s.env) != 0) err = 2; else { do { last = puff_bits(&s, 1); 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); } if (err <= 0) { *destlen = s.outcnt; *sourcelen = s.incnt; } 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, unsigned long destlen) { if (sourcelen < ZLIB_HEADER_WIDTH) return -12; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; void* ret = mmap(0, destlen, PROT_WRITE | PROT_READ, MAP_SHARED, dest_fd, 0); if (ret == MAP_FAILED) return -13; unsigned char* dest = (unsigned char*)ret; unsigned long destlen_copy = destlen; int err = puff(dest, &destlen_copy, source, &sourcelen); if (err) return err; err = munmap(dest, destlen); if (err) return -14; return 0; } static int setup_loop_device(long unsigned size, long unsigned compressed_size, unsigned char* data, const char* loopname, int* memfd_p, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (ftruncate(memfd, size)) { err = errno; goto error_close_memfd; } err = puff_zlib_to_file(data, compressed_size, memfd, size); if (err) { 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; } } *memfd_p = memfd; *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile unsigned long size, volatile unsigned long compressed_size, volatile long flags, volatile long optsarg, volatile long change_dir, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!compressed_size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(size, compressed_size, data, loopname, &memfd, &loopfd) == -1) return -1; 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) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); } errno = err; return res; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x200005c0, "udf\000", 4); memcpy((void*)0x20000600, "./file0\000", 8); memcpy((void*)0x200000c0, "\x00\x89\xef\x9a\x29\xc6\xfa\x11\x53\xbb\x1a\x84\xf0\x5f\x43\xa4\x40" "\xaa\xe4\xad\x07\xf0\x9b\x96\xad\x3a\x13\x8d\x22\x62\xf0\xca\x16\x1d" "\x95\x2c\xda\xd8\xdd\xf2\x46\x56\x0e\xee\x1a\xca\x72\x07\x76\xba\xaa" "\x71\x7c\xe1\xd3\xe5\x22\xe1\x1f\xeb\xcf\x70\x56\x20\xd7\xbf\x0f\x30" "\x87\x4c\x01\x46\x6e\x51\xb7\x91\xb9\x15\xcd\x00\xe3\x1c\x16\xf6\xaa" "\x13\xd8\x21\xee\x78\x99\x3a\x46\x33\x54\x52\x7e\x9c\xe0\x33\xa9\x5f" "\xad\x31\x50\x38\xce\x5b\x0b\xba\xd6\xaf\xc9\x54\x59\x60\x9d\x91\x20" "\x9d\xa1\x65\x0b\xec\xbc\xc4\x51\x7c\x31\x46\xe7\x98\x47\x2d\xc1\x37" "\xef\x97\xd5\xac\x86\xc8\x50\xf4\x9d\x31\x45\x90", 148); memcpy( (void*)0x20000680, "\x78\x9c\xec\xdd\xcf\x6f\x1c\x57\x1d\x00\xf0\xef\xdb\x59\x3b\xeb\x6d\xea" "\x6e\x92\xd2\x34\xa8\x20\x57\x20\x11\x15\x88\xec\xa4\x21\x2d\x41\x02\xa7" "\xae\x55\xa4\xa8\x48\xa4\xe6\x90\x43\x85\x89\x9d\xd4\xc4\xb1\x43\x9c\x02" "\x89\x10\xcd\x85\x13\x27\xfe\x02\x0e\x08\x38\x20\xb8\x73\x00\x89\x8a\xa2" "\x22\x71\xea\x29\x5c\xf9\x75\x80\x8b\xb9\xb4\xdc\x82\x66\x3c\xbb\x3b\x6b" "\x96\x78\xd3\xd8\xde\xda\xfd\x7c\xa2\xf8\xcd\xbc\xf9\x7a\xf3\x66\x0e\x91" "\xbe\xef\xbb\xf3\x5e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x11\xe7\x5e\x9c\x9e\x9c\x4a\xc3\x1e\x05\x00\x00\x00\xb0\x93\x5e\xbe" "\xf0\xd5\xc9\x53\xf2\x7f\x00\x00\x00\xd8\xd7\x5e\x51\xff\x07\x00\x00\x00" "\x00\x00\x00\x80\xbd\x2e\x45\x16\x7f\x88\x14\xbf\x38\xb6\x9e\x0e\x16\xe7" "\x1b\x1a\xe7\x97\x56\x5e\xff\xee\xdc\xcc\x6c\xff\x5f\x1b\x4b\x91\xa2\x16" "\x59\x11\x9f\xff\x6d\x4c\x9d\x3c\xf5\xec\xe9\xcf\x9d\x79\xae\xdd\xde\xff" "\xf7\xb7\xdb\xb1\xf8\xca\x85\x57\xa6\x27\x5e\x58\xbd\x76\xfd\xc6\xe2\xda" "\xda\xe2\xc2\xc4\xdc\xca\xd2\xa5\xd5\x85\xc5\x81\x3f\xe1\x61\x7f\x7f\xb3" "\x67\x8a\x07\x30\x71\xed\xea\xeb\x0b\x97\x2f\xaf\x4d\x9c\x3c\x71\xaa\xf7" "\x7a\xeb\x1f\x07\x1e\x39\x34\xf6\xa9\xc9\x99\xe9\x73\xed\xd8\xb9\x99\xd9" "\xd9\x0b\x95\x90\xfa\xc8\xfb\xfe\xd7\xff\x87\x6f\x78\x00\x00\x00\x7c\xb8" "\x8d\x46\x16\xff\x8a\x14\x7f\x9b\xfe\x55\x7a\x34\x22\x6a\xf1\xf0\xb9\xf0" "\x16\x73\x07\x3b\x6d\x2c\x5a\x79\xfe\x5d\xdc\xc4\xdc\xcc\x6c\x71\x23\xcb" "\x4b\xf3\x2b\x37\xf3\x8b\xa9\x56\x46\xb5\x7a\x73\xe2\xd1\x76\x8e\xbc\x0b" "\xb9\xf8\x43\x69\x45\x1c\xce\xc7\x3a\x2a\xa3\x07\x00\x00\x60\x70\x23\x91" "\xc5\xab\x91\xe2\x47\x6f\xad\xa7\xf1\x88\xc8\xda\x79\xf0\xa7\x8b\x85\x01" "\xb7\xfe\x80\xd6\x2e\x0c\xb2\x8f\x7a\x44\x1c\x89\x88\xe3\xb1\x07\x72\x76" "\x00\x00\x00\x18\xb2\x03\x91\xc5\x85\x48\xf1\x9b\xe5\x56\x3c\x56\xe6\xd5" "\x45\xfe\xff\xa5\x88\xb3\xc3\x1e\x1c\x00\x00\x00\xb0\x2d\xea\x91\xc5\xad" "\x48\xb1\x9a\xd6\x53\xab\xf8\x3e\x40\x44\x3c\x33\x37\x33\x3b\x71\xfe\x6b" "\x13\x5f\x5e\xb9\xbc\x5a\x89\x4d\xb5\xb2\xa2\xbe\xd7\xdf\x0f\xd8\x4d\xbe" "\x9b\x00\x00\x00\xc0\x07\x40\x23\xb2\x18\x2f\x2a\xfe\xeb\xe9\xd0\xb0\x07" "\x03\x00\x00\x00\xec\x88\xb1\xc8\xe2\xed\x48\xf1\xe6\xb7\xbe\x5d\xac\x2b" "\xd7\x5e\x97\x7e\xaa\xf5\xf4\x78\x75\x85\xb9\xa3\x5b\x7c\x4e\x1e\x7b\xa2" "\x58\x88\x7f\xb0\x77\xf2\x47\xca\xb5\x06\x53\x2d\xff\xb3\xfd\xf7\x05\x00" "\x00\x00\x74\x35\x52\x16\x7f\x8f\x14\xef\xfd\xb9\x51\x9c\x1f\x6f\xbf\x03" "\x70\xe7\xde\xbd\x7b\xc3\x1e\x1c\x00\x00\x00\xb0\x3d\x52\x16\xbf\x8b\x14" "\xef\xfc\x67\x3d\x15\xf5\xfe\xca\xbe\xf4\x59\x65\x7f\xff\x8e\xbd\xfe\xee" "\xff\xce\x8e\x7f\xac\xf1\xc2\xea\xf5\x5b\x37\x96\xae\xbc\x76\xb3\xef\xf5" "\x66\x63\xfa\x1b\x6b\x37\x6f\xcc\x5f\xea\x7f\x79\x63\xef\xc2\x7a\xb5\x67" "\xab\x7d\x0c\x37\x6b\x95\x7b\x38\x02\x00\x00\x40\x45\x33\x65\xf1\x9d\x48" "\xf1\xd8\x1b\x77\x3b\x79\x63\xb9\x07\xc0\xa3\x1b\x67\xdd\xec\xff\xa7\xdf" "\xeb\x9e\x1d\xdf\xd4\x76\xa2\x2a\xf3\x07\x83\x1c\x0f\xbc\x8b\xfd\x03\xac" "\xa3\xd7\x2a\xc7\x95\x0d\xfc\x14\x00\x00\x00\x60\x7f\x4b\x29\x8b\x03\x91" "\xe2\x93\x6f\x3e\x59\xee\xfd\xdf\x54\x43\x06\x00\x00\x80\x7d\xa6\x99\xb2" "\xb8\x18\x29\xfe\xf4\x93\xbb\x9d\xef\x9d\x97\xf5\xff\xf2\xb4\x52\xff\xff" "\x42\x77\x5e\xa0\x91\x7a\xdb\xfb\xd5\xff\xa7\x6a\x93\x1f\xff\x7f\xfd\x3b" "\x55\xff\xcf\xc7\x65\x8b\x3d\x00\x00\x00\xd8\x90\x52\x16\xbf\x8f\x14\x3f" "\xae\x3d\x59\xe4\xcb\xed\xfa\x7f\xbd\x4f\xdc\x0f\x22\xc5\xc5\xfa\x53\x65" "\x5c\x6d\x34\x8f\x1b\x2d\xaf\xb7\x8a\x9f\x8d\xcb\x4b\xcb\x8b\x93\x79\xec" "\xe7\x23\xc5\xcf\x97\xdb\xb1\x51\xc4\xb6\x37\xde\x3f\xd2\x8d\x9d\xca\x63" "\x7f\x98\x7f\x6e\xb3\x37\xb6\x59\xc6\x3e\xde\x8d\x3d\x99\xc7\xbe\x1c\x29" "\xc6\x8f\xf5\x8f\xfd\x48\x37\xf6\x54\x1e\xfb\xc7\x48\xf1\xcb\x7f\x4f\xb4" "\x63\x9b\x79\xec\x78\x19\xfb\x44\x37\xf6\xc4\xa5\xd5\xe5\x85\x1d\x7b\xc0" "\x00\x00\x00\xf0\x01\xd0\x4c\x59\xfc\x3a\x52\x2c\xbe\xfb\x52\x6a\xe7\xf2" "\xbd\xf5\xff\xee\x5b\xf4\xd5\xf7\xff\xef\x6c\x6a\x3b\xfa\xd4\xfc\xef\x77" "\xbc\x5d\xf5\xff\x56\xa5\xef\x4e\x39\x5f\xf1\x56\x39\xaf\x31\xba\xc5\xbc" "\xc6\xd3\x91\xe2\x8d\xdb\x4f\x95\x71\x1b\x73\x0a\x07\xca\xeb\x87\x8a\x9f" "\xdd\x79\x8d\xbf\x46\x8a\xf9\x8b\xbd\xb1\x8d\x32\xf6\x70\x37\x76\x6a\xd0" "\xdb\x02\x00\x00\x80\xdd\x90\xe7\xff\xff\x8c\x14\x2f\xfd\xec\x2f\xf5\x76" "\xce\x5b\xe6\xff\x65\x66\xdd\x3f\xff\xff\x68\xbd\xb7\xed\x18\x52\xfe\x7f" "\xa8\xd2\x97\x8f\x69\xed\xd6\xed\xab\xf3\xcb\xcb\x8b\x37\x1c\x38\x70\xe0" "\xa0\x73\xf0\x00\xff\x39\x02\x00\xc0\x3e\x93\xe7\xff\x6f\x47\x8a\xab\xe7" "\xb2\xd4\xae\x63\x97\xf9\xff\xc1\x8d\xb3\x6e\xfe\xff\xde\xf7\xbb\xf9\xff" "\xd9\x4d\x6d\xc7\x90\xf2\xff\xc3\x95\xbe\xb3\xe5\x7a\x04\x23\xf5\x88\xc6" "\xcd\x6b\xd7\x47\x8e\x46\x34\xd6\x6e\xdd\xfe\xec\xd2\xb5\xf9\x2b\x8b\x57" "\x16\x57\xa6\x4e\x4f\x3d\xff\xfc\xe9\xd3\xcf\x3d\x7b\x66\x64\xb4\x5d\xdc" "\xef\x1e\x0d\xfc\xec\x00\x00\x00\x60\xaf\xc8\xf3\xff\x33\x91\x22\x9d\x7f" "\xa7\xf3\x7e\xfe\x20\xf5\xff\xe6\xa6\xb6\x63\x48\xf9\xff\x91\xea\x3d\x45" "\xb5\xfe\x3f\xf0\xa3\x00\x00\x00\x80\x7d\x2b\xcf\xff\x5f\x8c\x14\xaf\xbe" "\x7b\xb7\x93\xcb\xf7\xe6\xff\xbd\xfb\xff\xb7\xd7\xff\x3f\xfe\x89\xde\xb6" "\x33\x4b\x30\xa4\xfc\xff\xf1\x4a\x5f\xab\x1c\xd7\x23\x0f\xf8\x2c\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x58\x9a\x29\x8b" "\xeb\x91\xe2\xb7\xaf\x7d\x26\x8d\x97\x7d\x83\xac\xff\xb7\xb0\xa9\xed\x18" "\xd2\xfb\xff\x4f\x54\xfa\x16\x62\x77\xf6\xff\x1b\xf8\x21\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\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\x87\x44\x2d\xb2\xf8\x66\xa4\xf8\xd8\xd1\xf5" "\xf4\xc5\xbc\xe3\xeb\x11\x07\xab\x2d\x00\x00\x00\xb0\xe7\xfd\x37\x00\x00" "\xff\xff\x35\x43\x3b\x5c", 1446); syz_mount_image(0x200005c0, 0x20000600, 0x40000, 0x5a6, 0, 0x200000c0, 1, 0x20000680); memcpy((void*)0x20000040, "./file0\000", 8); res = syscall(__NR_open, 0x20000040ul, 0ul, 0ul); if (res != -1) r[0] = res; syscall(__NR_lseek, r[0], 6ul, 0ul); syscall(__NR_getdents, r[0], 0ul, 0ul); return 0; }