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