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