// https://syzkaller.appspot.com/bug?id=af320a5a97570a0040c32e06da9727aff0d8fd36 // 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 #include #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_truncate #define __NR_truncate 45 #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, max_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 void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } 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, 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) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); 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) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) 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) reset_loop_device(loopname); errno = err; return res; } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); memcpy((void*)0x20000000, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file1\000", 8); memcpy( (void*)0x200007c0, "\x78\x9c\xec\xdd\x4d\x6c\x1c\x57\x1d\x00\xf0\xff\xac\xf7\xc3\x1b\x50\xea" "\xb4\x49\x1a\x50\x25\xac\x46\x2a\x08\x8b\xc4\xb1\xe5\x14\x73\x69\x40\x08" "\x2c\x51\xa1\xaa\x1c\x10\xc7\x55\xe2\x34\x96\x37\x6e\x65\x6f\x91\x63\xa1" "\x12\xbe\x0f\x5c\x38\xf4\x4e\x91\xf0\x8d\x0b\x48\xdc\x83\xca\x19\x38\xf5" "\xea\x63\x25\x24\x2e\x39\x05\x38\x2c\x9a\x8f\x5d\xef\xae\x13\x7b\x77\xe3" "\x64\x6d\xf1\xfb\x45\xb3\xef\xcd\xbc\x8f\x79\xef\xbf\x33\x3b\x33\x6b\x45" "\x1b\xc0\xff\xad\x95\xb9\x28\x3f\x88\x24\x56\xe6\xde\xdc\x4e\xd7\xf7\x76" "\x17\x9b\x7b\xbb\x8b\x77\x3b\xf9\x88\xa8\x45\x44\x29\xa2\x9c\x27\x91\x6c" "\x44\x24\x1f\x47\xdc\x88\x7c\x89\xcf\xa5\x1b\x8b\xee\x92\x27\xed\xe7\xc3" "\xb5\xe5\xb7\x3f\x79\xb8\xf7\x69\xbe\x56\xbe\x52\xcf\xfa\xcb\xea\x97\x0e" "\x6b\x77\xc0\xf5\xd2\x63\x36\xde\x2f\x96\x98\x8d\x88\xa9\x22\x7d\x0a\x7d" "\xfd\xdd\x1c\xe8\xaf\x3a\x72\x77\x49\x77\x86\x69\xc0\x2e\x77\x02\x07\x93" "\x56\x89\x88\x76\x9f\x1f\x5c\xdc\x2f\x39\xd2\xf0\xe7\x2d\x70\x62\x25\xf9" "\x75\xf3\xc0\x09\x3d\x13\x71\x26\x22\xa6\x8b\xfb\x80\xfc\xaa\x98\x5f\xb3" "\x4f\xb5\xfb\x93\x1e\x00\x00\x00\x00\x3c\x07\x2f\xfc\x3a\x7b\x84\x3f\x3b" "\xe9\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\xfc\xfe\x7f\x52" "\x2c\xa5\x4e\x7e\x36\x92\xce\xef\xff\x57\x8b\x6d\x51\xe4\x4f\xb5\x07\x93" "\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x8c\xee\x3b\x9f\x1d\xd8\xf0\x85\x47" "\xf1\x28\xb6\xe3\x6c\x67\xbd\x9d\x64\x7f\xf3\x7f\x35\x5b\x39\x9f\xbd\x7e" "\x26\xde\x8f\xad\x58\x8d\xcd\xb8\x12\xdb\xd1\x88\x56\xb4\x62\x33\xbe\x5d" "\x8d\x98\xc9\xca\x2b\xd9\x6b\x75\xbb\xd1\x6a\x6d\x5e\x1b\xa2\xe5\x42\x74" "\x5a\x46\x4f\xcb\x85\x21\x67\x50\x1f\x7f\xf2\x00\x00\x00\x00\x00\x00\x00" "\x70\x5a\x94\x47\x6f\xf2\xd3\x58\xd9\xff\xfb\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\x9c\x04\x49\xc4\x54\x9e\x64\xcb\xf9\x4e\x7e\x26\x4a" "\xe5\x88\x98\x8e\x88\x6a\x5a\xef\x7e\xc4\xdf\x3b\xf9\x13\xe9\xb7\x7f\xe9" "\x5d\x6b\xff\xb7\x9d\x39\x50\xed\xc1\xf3\x1c\x13\x00\x00\x00\x4c\xc8\x0b" "\x8f\xe2\x51\x6c\xc7\xd9\xce\x7a\x3b\xc9\x9e\xf9\x2f\x66\xcf\xfd\xd3\xf1" "\x7e\x6c\x44\x2b\xd6\xa2\x15\xcd\x58\x8d\x5b\xd9\x77\x01\xf9\x53\x7f\x69" "\x6f\x77\xb1\xb9\xb7\xbb\x78\x37\x5d\x0e\xf6\xfb\xf5\x7f\x8d\x34\x8c\xac" "\xc7\xc8\xbf\x7b\x78\xfc\x9e\x2f\x65\x35\xea\x71\x3b\xd6\xb2\x2d\x57\xe2" "\x66\xbc\x1b\xcd\xb8\x15\xa5\xac\x65\xea\x52\x67\x3c\x8f\x1f\xd7\x4f\xd2" "\x31\x25\x6f\x14\x86\x1c\xd9\xad\x22\x4d\x67\xfe\x9b\xa8\x8c\x34\xab\x71" "\x24\x43\xd7\x9c\xc9\x22\x92\x8e\x28\x8f\xc8\x7c\xd1\x36\x8d\xc6\xb9\xc3" "\x23\x31\xe2\xbb\xd3\xd9\x53\x27\xf6\xd7\xa2\xd4\xfd\xe6\xe7\xfc\x71\xc6" "\x7c\x3b\x4f\x5e\xff\x7d\x9e\xa6\xf3\xf9\xe5\x48\x31\x79\xd6\x06\x23\xb1" "\xd0\x73\xf4\x5d\x3c\x3c\x12\x11\x5f\xfc\xf3\x1f\xbe\x7f\xa7\xb9\xb1\x5e" "\xbb\xbd\x35\x77\x72\xa6\x34\x82\x5a\xcf\x37\x68\x83\x91\x58\xec\x89\xc4" "\xcb\xc3\x46\xe2\xce\x69\x8d\x44\xaf\xf9\x2c\x12\x17\xba\xeb\x2b\xf1\xad" "\xf8\x5e\xcc\xc5\x6c\xbc\x15\x9b\xb1\x16\x3f\x8c\x46\xb4\x62\x35\x66\xe3" "\x9b\xd1\x88\xa9\x68\x14\xc7\x73\xfa\x3a\x73\x78\xa4\x6e\xf4\xad\xbd\x75" "\xd4\x48\xaa\xd9\xfb\x52\x29\x3e\x45\x87\x1f\x53\x2b\x1a\xf1\x6a\xd6\xf6" "\x6c\xac\xc5\x77\xe3\xdd\xb8\x15\xab\x71\x3d\xfb\xb7\x10\xd7\xe2\xf5\x58" "\x8a\xa5\x58\xee\x79\x87\x2f\x0c\x71\xd6\x97\x46\xfb\xa4\xbd\xfc\xa5\xea" "\xfe\x34\x7e\x15\x11\xf5\xc1\x1a\x1f\x0c\xd7\xd1\xf1\x4b\x07\x76\xae\x7b" "\x75\xea\x3d\xea\xe7\xb3\xf3\xe0\x5c\xdf\x96\xfd\x28\xbd\x78\xfc\xd7\xa3" "\xf2\xe7\x8b\x4c\xba\x8f\x9f\x15\xe9\xc9\x30\x18\x89\x6b\x3d\x91\x78\xe9" "\xb1\x91\xa8\x75\x9a\xfe\x2e\xfb\x58\xd9\x6a\x6e\xac\x6f\xde\x69\xbc\x37" "\xe4\xfe\x5e\x2b\xd2\xf4\x3c\xfa\xc5\xa1\x57\x89\xf2\xd8\x73\x1a\x4f\x7a" "\xbc\xbc\xd8\xdd\x6f\xff\xd1\x91\x96\xbd\x34\x58\x36\x9d\xc7\xab\x5a\xfc" "\xc5\x25\x2f\xeb\xbf\xe2\xa6\x65\x17\xba\x65\x47\x9d\xa9\xd5\xe2\x1e\xee" "\x60\x4f\x0b\x59\xd9\xcb\xdd\xb2\x6a\xdf\x67\x78\x5a\x76\xa9\xa7\x5d\xdf" "\xfd\xd6\x8d\xfc\x7e\x0b\x80\x13\xef\xcc\x97\xcf\x54\xeb\xff\xac\xff\xad" "\xfe\x51\xfd\xe7\xf5\x3b\xf5\x37\xa7\xbf\x51\xfb\x6a\xed\x95\x6a\x54\xfe" "\x5a\xf9\x5a\x79\x7e\xea\xb5\xd2\x2b\xc9\x9f\xe2\xa3\xf8\x60\xff\xf9\x1f" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x18\xdf\xd6\xbd\x9d\xf5\x46\xb3\xb9\xba\x39\x90\x69" "\xb7\xdb\x3f\x7e\x42\xd1\x73\xca\x44\x1c\x55\xa7\x12\x47\xd7\x39\xfe\x4c" "\x2d\x76\xd6\xab\x11\xb1\xb9\x55\xda\x59\x2f\x67\x99\x91\xfb\xa9\x0d\x55" "\xb9\xba\xff\xee\xbc\xf1\xc7\xa7\x19\x73\x65\xd4\x56\x11\xc7\x12\xb1\xce" "\xef\x2f\xdd\xdb\x59\xff\x77\xbb\xdd\x9e\xd0\x81\xd4\x97\xa9\x1c\x72\xcc" "\xef\x67\xda\x85\x89\x0e\x75\x8c\xcc\x7f\xda\xc7\xd7\xe1\x84\x3f\x98\x80" "\x67\xee\x6a\xeb\xee\x7b\x57\xb7\xee\xed\x7c\x65\xed\x6e\xe3\x9d\xd5\x77" "\x56\x37\x96\x97\x96\x96\xe7\x97\x97\xae\xff\xe3\xea\xed\xb5\xe6\xea\x7c" "\xfe\x3a\xe9\x51\x02\xcf\x42\xef\xfd\x76\xe6\xea\x84\x07\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x1c\xe9\xf9\xfc\x4f\x1e\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xf1\xad" "\xcc\xd5\x8a\xdc\x95\xf9\xf4\x75\x6f\x77\xb1\x99\x2e\x9d\x7c\xb7\x62\x56" "\xad\x14\x11\xc9\x8f\x22\x92\x8f\x23\x6e\x44\xbe\xc4\x4c\x4f\x77\xc9\x93" "\xf6\xf3\xe1\xda\xf2\xdb\x9f\x3c\xdc\xfb\x34\x5f\x2b\x17\x4b\x56\xbf\xd4" "\xd7\xae\x32\xce\x2c\xee\x17\x4b\xcc\x46\xc4\x54\x91\xf6\x9a\x7e\x8a\xfe" "\x6e\x16\xe9\x58\x23\xcb\x24\xdd\x19\xa6\x01\xbb\xdc\x09\x1c\x4c\xda\xff" "\x02\x00\x00\xff\xff\x7d\x3b\x12\xbe", 1683); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000040, /*flags=MS_NOATIME*/ 0x400, /*opts=*/0x20000140, /*chdir=*/1, /*size=*/0x693, /*img=*/0x200007c0); memcpy((void*)0x20000080, "./file1\000", 8); syscall(__NR_truncate, /*file=*/0x20000080ul, /*len=*/0x8000000000000ul); return 0; }