// https://syzkaller.appspot.com/bug?id=83cd9dc1cd80e0c3f3a3576d199188ae8e20702c // 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 = 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) { errno = EMSGSIZE; return -1; } 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, 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 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &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); } 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*)0x20000100, "hfsplus\000", 8); memcpy((void*)0x20000640, "./file0\000", 8); memcpy((void*)0x20000040, "\x00\xe1\x88\x00\xeb\x80\x78\x01\x74\x31\x46\x57\x61\xe6\x34\xe2\xf0" "\x50\xc6\x83\x01\xd2\xa0\xc0\x00\xfa\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00", 38); memcpy( (void*)0x20000680, "\x78\x9c\xec\xdd\xbd\x6f\x1b\xe7\x1d\x07\xf0\xef\xd1\xb4\x6c\xba\x80\xa3" "\x24\xb6\xe3\x16\x01\x2a\xc4\x40\x5a\x54\xa8\xad\x17\x28\xad\xba\xd4\x2d" "\x8a\x42\x43\x50\x04\xe9\xd0\x59\xb0\xe5\x98\x30\xad\xa4\x12\x53\x28\x41" "\x51\xb8\xef\x6b\x87\xfc\x01\xe9\xa0\xad\x53\x81\xee\x06\xd2\xb9\xdd\xb2" "\x6a\x0c\x50\xa0\x4b\x26\x75\x52\x71\xc7\x23\xc5\x58\x8a\x42\xc5\xb6\x48" "\xc5\x9f\x8f\xf1\xf0\x79\x1e\x3e\x77\xcf\xfd\xee\x47\xde\x1d\x8f\x82\xc1" "\x00\xcf\xac\x95\xd9\x34\x1f\xa6\xc8\xca\xec\xeb\x5b\x65\x7f\x67\x7b\xb1" "\xb3\xb3\xbd\x78\xbf\xdf\x4e\x72\x2e\x49\x23\x69\xf6\xaa\x14\xeb\x49\xf1" "\x51\x72\x33\xbd\x92\xaf\x97\x4f\xd6\xd3\x15\x9f\xb7\x9d\x0f\xda\xcb\x6f" "\x7e\xfc\xe9\xce\x27\x65\xbb\x55\xcd\xd5\xec\x2f\xdf\x38\x6a\xbd\xd1\x3c" "\xa8\x4b\x66\x92\x9c\xa9\xeb\x27\x35\xdf\xad\xc7\x9e\xaf\x18\xec\x61\x99" "\xb0\x6b\xfd\xc4\xc1\xb8\xed\x1d\xf0\xcb\x2b\xc7\x58\xfd\x31\x8f\x5b\x60" "\x12\x14\xbd\xeb\xe6\x01\xd3\xc9\x85\x24\xe7\xeb\xcf\x01\xbd\xab\x62\xef" "\x9a\x7d\xaa\x3d\x18\x77\x00\x00\x00\x00\x70\x02\x9e\xdb\xcd\x6e\xb6\x72" "\x71\xdc\x71\x00\x00\x00\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\x69\x52\xff\xfe\x7f" "\x51\x97\x46\xbf\x3d\x93\xa2\xff\xfb\xff\x53\xf5\x73\xa9\xdb\xa7\xda\xc3" "\x71\x07\x00\x00\x00\x00\x00\x00\x00\x00\x4f\xc0\x37\x77\xb3\x9b\xad\x5c" "\xec\xf7\xf7\x8a\xea\x6f\xfe\xaf\x54\x9d\x4b\xd5\xe3\xd7\xf2\x6e\x36\xb3" "\x96\x8d\x5c\xcf\x56\x56\xd3\x4d\x37\x1b\x99\x4f\x32\x3d\x34\xd1\xd4\xd6" "\x6a\xb7\xbb\x31\x3f\xc2\x9a\x0b\x87\xae\xb9\x70\x32\xfb\x0b\x00\x00\x00" "\x00\x00\x00\x00\x5f\x51\xbf\xcb\xca\xfe\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\x60\x12\x14\xc9\x99\x5e\x55\x95\x4b\xfd\xf6\x74\x1a" "\xcd\x24\xe7\x93\x4c\x95\xcb\x3d\x48\xfe\xdd\x6f\x9f\x66\x0f\xc7\x1d\x00" "\x00\x00\x00\x9c\x80\xe7\x76\xb3\x9b\xad\x5c\xec\xf7\xf7\x8a\xea\x9e\xff" "\x4a\x75\xdf\x7f\x3e\xef\x66\x3d\xdd\xb4\xd3\x4d\x27\x6b\xb9\x5d\x7d\x17" "\xd0\xbb\xeb\x6f\xec\x6c\x2f\x76\x76\xb6\x17\xef\x97\xe5\xe0\xbc\x3f\xfa" "\xef\xb1\xc2\xa8\x66\x4c\xef\xbb\x87\xc3\xb7\x7c\xb5\x5a\xa2\x95\x3b\x69" "\x57\xcf\x5c\xcf\xad\xbc\x9d\x4e\x6e\xa7\x51\xad\x59\xba\xda\x8f\xe7\xf0" "\xb8\x7e\x5b\xc6\x54\xfc\xb0\x36\x62\x64\xb7\xeb\xba\xdc\xf3\xbf\xd4\xf5" "\x64\x98\xae\x32\x72\x76\x90\x91\xb9\x3a\xb6\x32\x1b\xcf\x1f\x9d\x89\x63" "\xbe\x3a\x8f\x6e\x69\x3e\x8d\xc1\x37\x3f\x97\x9e\x42\xce\x2f\xd4\x75\xb9" "\x3f\x7f\x9a\xe8\x9c\x2f\x0c\xbd\xfb\xae\x1c\x9d\x89\xe4\x5b\xff\xf8\xdb" "\x2f\xee\x76\xd6\xef\xdd\xbd\xb3\x39\x3b\x39\xbb\xf4\x25\x3d\x9a\x89\xc5" "\xa1\x4c\xbc\xf4\x4c\x65\x62\xae\xca\xc4\xe5\x41\x7f\x25\x3f\xcd\xcf\x33" "\x9b\x99\xbc\x91\x8d\xb4\xf3\xab\xac\xa6\x9b\xb5\xcc\xe4\x27\x55\x6b\xb5" "\x7e\x3f\x97\x8f\xd3\x47\x67\xea\xe6\x67\x7a\x6f\x7c\x51\x24\x53\xf5\xeb" "\xd2\x3b\x8b\x1e\x2f\xa6\x57\xaa\x75\x2f\xa6\x9d\x9f\xe5\xed\xdc\xce\x5a" "\x5e\xab\xfe\x2d\x64\x3e\xdf\xcb\x52\x96\xb2\x3c\xf4\x0a\x5f\x3e\x34\xee" "\x73\xfd\xcd\x55\x47\x7d\xe3\x78\x47\xfd\xb5\x6f\xd7\x8d\x56\x92\x3f\xd7" "\xf5\x64\x28\xf3\xfa\xfc\x50\x5e\x87\xcf\xb9\xd3\xd5\xd8\xf0\x33\xfb\x59" "\x7a\xe1\xc9\x9f\x1b\x9b\xdf\xa8\x1b\xe5\x36\x7e\x5f\xd7\x93\xe1\xd1\x4c" "\xcc\xa7\x39\x88\xee\xc5\xa3\x33\xf1\xd7\xbd\xf2\x71\xb3\xb3\x7e\x6f\xe3" "\xee\xea\x3b\x23\x6e\xef\xd5\xba\x2e\x8f\xa3\x3f\x4e\xd4\x55\xa2\x7c\xbf" "\xbc\x50\xbe\x58\x55\xef\xb3\xef\x8e\x72\xec\xc5\x43\xc7\xe6\xab\xb1\x4b" "\x83\xb1\xc6\x81\xb1\xcb\x83\xb1\x2f\x3a\x52\xa7\xea\xcf\x70\x07\x67\x5a" "\xa8\xc6\x5e\x3a\x74\x6c\xb1\x1a\xbb\x3a\x34\x76\xd8\xe7\x2d\x00\x26\xde" "\x85\xef\x5c\x98\x6a\xfd\xa7\xf5\xaf\xd6\x87\xad\x3f\xb4\xee\xb6\x5e\x3f" "\xff\xe3\x73\xdf\x3f\xf7\xf2\x54\xce\xfe\xf3\xec\x0f\x9a\x73\x67\x5e\x6d" "\xbc\x5c\xfc\x3d\x1f\xe6\x37\xfb\xf7\xff\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x97\xb7" "\xf9\xde\xfb\xf7\x56\x3b\x9d\xb5\x8d\xd3\xd0\xe8\xff\xf6\xdc\xa4\xc4\xa3" "\x31\x72\xe3\x7f\x7b\x7b\x7b\x13\x10\x86\xc6\xc8\x8d\x31\x9f\x98\x80\xa7" "\xee\x46\xf7\xfe\x3b\x37\x36\xdf\x7b\xff\xbb\xed\xfb\xab\x6f\xad\xbd\xb5" "\xb6\xbe\xbc\xb4\xb4\x3c\xb7\xbc\xf4\xda\xe2\x8d\x3b\xed\xce\xda\x5c\xef" "\x71\xdc\x51\x02\x4f\xc3\xfe\x45\x7f\xdc\x91\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xa3\x3a\x89\xff\x4e\x30\xee\x7d\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4e\xb7\x95" "\xd9\x34\x1f\xa6\xc8\xfc\xdc\xf5\xb9\xb2\xbf\xb3\xbd\xd8\x29\x4b\xbf\xbd" "\xbf\x64\x33\x49\x23\x49\xf1\xeb\xa4\xf8\x28\xb9\x99\x5e\xc9\xf4\xd0\x74" "\xc5\xe7\x6d\xe7\x83\xf6\xf2\x9b\x1f\x7f\xba\xf3\xc9\xfe\x5c\xcd\xfe\xf2" "\x8d\xa3\xd6\x1b\xcd\x83\xba\x64\x26\xc9\x99\xba\x7e\x52\xf3\xdd\x7a\xec" "\xf9\x8a\xc1\x1e\x96\x09\xbb\xd6\x4f\x1c\x8c\xdb\xff\x03\x00\x00\xff\xff" "\xc9\xff\x0e\xbb", 1516); syz_mount_image(0x20000100, 0x20000640, 0, 0x20000040, 1, 0x5ec, 0x20000680); memcpy((void*)0x20000000, "./file0/file0\000", 14); res = syscall(__NR_open, 0x20000000ul, 0x147042ul, 0ul); if (res != -1) r[0] = res; syscall(__NR_ftruncate, r[0], 0x2007ffful); return 0; }