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