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