// https://syzkaller.appspot.com/bug?id=f86606dfb403cc9435c0ed5f17e1d80c110cddef // 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 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, 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; } uint64_t r[1] = {0xffffffffffffffff}; 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); intptr_t res = 0; memcpy((void*)0x20000140, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file2\000", 8); memcpy( (void*)0x20000440, "\x78\x9c\xec\xdd\x4f\x6b\x1c\xe7\x1d\x07\xf0\xef\xac\x2d\x79\xe5\x82\xb3" "\x76\xec\x38\x2d\x85\x8a\xf4\xd0\x12\x53\x47\xd2\x06\xe3\x42\xa1\x6d\x9a" "\x16\x51\x42\x09\xf4\x92\xeb\x62\xaf\x23\xe1\xb5\x63\xa4\x4d\x51\x7c\x28" "\xee\x9f\x73\xf2\x16\xd2\x83\x7a\xee\xa1\xa7\xe2\x82\x0f\x3d\xf7\x2d\xa8" "\xe4\x52\x28\xed\x5d\xa7\x3a\xcc\xec\xec\x6a\x2d\xaf\x14\x39\x56\xbc\xeb" "\xf8\xf3\x81\xd9\xe7\x79\xe6\x99\x79\xe6\x37\x3f\xcd\x3e\xcc\x8c\x31\x1b" "\xe0\x85\xb5\xfa\x5e\xe6\x1e\xa4\xc8\xea\xa5\x77\xb6\xca\xf6\xce\x76\xbb" "\xb7\xb3\xdd\xbe\x35\xac\x27\x39\x95\xa4\x91\x34\x93\x14\xe5\xea\xbf\x26" "\xf9\x2c\xb9\x97\xc1\x92\x6f\x0e\x3b\xc6\xca\xc7\x14\x9f\xac\x5e\x5b\xbb" "\xff\xf1\xc5\x41\xab\x39\xbe\x7d\x71\xd8\x7e\x47\x33\x8a\xa5\x35\x88\xb5" "\x2a\x8f\x6b\xbc\x95\x27\x19\x6f\x7e\xd2\xca\xbd\x33\x5c\x4c\x72\xae\x2e" "\x61\xea\x1e\x0e\xfd\x6b\x62\xf7\x53\x7e\x2f\x01\x80\x59\x56\x24\x27\x26" "\xad\x6f\x25\xa7\x33\xb8\xf9\x2f\x9f\x03\x06\x77\xc5\x83\x7b\xec\xe7\xda" "\xbd\x69\x07\x00\x00\x00\x00\xcf\xc0\x4b\xbb\xd9\xcd\x56\xce\x4c\x3b\x0e" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x9e\xd4\xbf\xff\x5f\xd4\x4b\x63" "\x58\x5f\x4c\x31\xfc\xfd\xff\xf9\x7a\x5d\xea\xfa\x73\xed\xc1\xb4\x03\x00" "\x00\x00\x00\x00\x00\x00\x80\x63\xf0\x9d\xdd\xec\x66\x2b\x67\x86\xed\x87" "\x45\xb3\x2c\x5e\xab\x1a\xe7\xab\xcf\x6f\xe4\xc3\x6c\xa6\x9b\x8d\x5c\xce" "\x56\x3a\xe9\xa7\x9f\x8d\x2c\x27\x69\x8d\x0d\x34\xbf\xd5\xe9\xf7\x37\x96" "\x8f\xb0\xe7\xca\xc4\x3d\x57\x0e\x8e\xf1\xff\xc7\x7b\xca\x00\x00\x00\x00" "\x00\x00\x00\xf0\x75\xf4\xfb\xac\xee\xfd\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\x4c\xd7\x7c\xf5\x59\x24\x27\x06\x45\xb5\x9c\x1f\xd6" "\x5b\x69\x9c\x4c\xd2\x1c\x6e\x78\x2f\xb9\x3f\xda\xe9\x39\xf6\x60\xda\x01" "\x00\x00\x00\xc0\x33\xf0\xd2\x6e\x76\xb3\x95\x33\xc3\xf6\xc3\xa2\x7a\xe6" "\x7f\xa5\x7a\xee\x6f\xe6\xc3\xdc\x4e\x3f\xeb\xe9\xa7\x97\x6e\xae\x57\xef" "\x02\x06\x4f\xfd\x8d\x9d\xed\x76\x6f\x67\xbb\x7d\xab\x5c\x1e\x1f\xf7\xa7" "\xff\x7b\xa2\x30\xaa\x11\x33\x78\xf7\x30\xf9\xc8\x4b\xd5\x16\x17\x46\x7b" "\xac\xe6\x17\xf9\x75\x2e\x65\x31\xef\x66\x23\xeb\xf9\x4d\xb6\xd3\x4f\x37" "\x8b\x79\x3b\x9d\xf4\xd3\x49\x91\x56\xfd\xf6\xa2\x35\x8c\x73\x72\xbc\x3f" "\x79\xa4\xf5\xee\x17\xc5\xfa\x6a\x15\xc9\x42\x6e\x64\xbd\x8a\xed\x72\xae" "\xe5\x83\xf4\x72\x3d\x8d\xea\x1c\xaa\x6d\x0e\x3f\xe2\xef\xca\xec\x14\x3f" "\xae\x1d\x31\x47\xd7\xeb\xb2\x3c\xa3\x5f\xd6\xe5\x6c\x68\x55\x19\x99\x1b" "\x65\x64\xa9\xce\x7d\x99\x8d\xb3\x87\x67\xe2\x09\xaf\x93\xfd\x47\x5a\x4e" "\x63\xf4\x0e\xea\xfc\xce\xf6\xa9\xba\x7a\x6c\x39\x3f\x5d\x97\x65\xae\xdf" "\x9e\xe9\x9c\xaf\x8c\x5d\x7d\xaf\x1c\x9e\xf3\x64\x69\xe5\xbf\x77\xd6\x7a" "\xb7\x6f\xae\xdd\xd8\xbc\x34\x3b\xa7\xf4\x25\xed\xcf\x44\x7b\x2c\x13\x17" "\x5f\xa8\x4c\xcc\xd7\xd9\x18\xcc\xa2\x87\xcf\x96\x9d\x7d\xb3\xe5\x6b\xd5" "\xbe\x67\xb2\x9e\x5f\xe5\x83\x5c\x4f\x37\x57\xb3\x94\xab\xb9\x92\x37\xd3" "\xce\x95\xfc\x30\x57\xc6\xf2\x7a\xe1\x08\xf3\x5b\xe3\xc9\xbe\x6b\xdf\xfd" "\x7e\x5d\x99\x4b\xf2\xf3\xba\x7c\x86\x0e\xf9\xeb\x97\x79\x3d\x3b\x96\xd7" "\xf1\x99\xae\x55\xf5\x8d\xaf\xd9\xcb\xd2\xb9\x41\x76\xd2\x3c\xbe\x19\xe9" "\xe4\xb7\xc6\xc2\x7d\x6b\xe6\x66\xa4\xb3\xfb\xe6\xe6\x61\x26\x5e\x2e\xcf" "\xfe\x0f\x07\x5e\x2f\x7f\x7a\x58\x7e\x6e\xf6\x6e\xdf\xdc\x58\xeb\xdc\x39" "\xe2\xf1\xbe\x57\x97\x65\x06\x7e\x36\x53\x99\x28\xaf\x97\x73\xe5\x1f\xab" "\x6a\x3d\x7a\x75\x94\x7d\x2f\x4f\xec\x5b\xae\xfa\xce\x8f\xfa\x1a\x8f\xf5" "\x5d\x18\xf5\x7d\xd1\x37\x75\xbe\xbe\x87\x7b\x7c\xa4\x95\xaa\xef\xe2\xc4" "\xbe\x76\xd5\xf7\xea\x58\xdf\xa4\xbb\x1c\x00\x66\xde\xe9\xd7\x4f\xcf\x2f" "\xfc\x67\xe1\x9f\x0b\x9f\x2e\xfc\x71\x61\x6d\xe1\x9d\xe6\x5b\xa7\xae\x9e" "\xfa\xf6\x7c\xe6\xfe\x71\xf2\x6f\x27\xfe\xd2\xf8\x73\xe3\x47\xc5\xeb\xf9" "\x34\xbf\xdd\x7b\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\xbe\xbc\xcd\x8f\xee\xde\xec" "\xf4\x7a\xdd\x0d\x95\xa3\x55\xe6\x32\x13\x61\xa8\xa8\x7c\xb5\x95\x69\xcf" "\x4c\xc0\x57\xed\x8d\xfe\xad\x3b\x6f\x6c\x7e\x74\xf7\x07\xeb\xb7\x3a\xef" "\x77\xdf\xef\xde\x7e\x73\xf9\xee\xb0\xeb\xc6\x7a\xaf\xbb\x34\xf8\x9c\x72" "\x94\x00\xc0\x71\xda\xbb\xe9\x9f\x76\x24\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\x41\x9e\xc5\x7f\x27\x9e\xf6\x39\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5f\x6f\xab\xef\x65\xee" "\x41\x8a\x2c\x2f\x5d\x5e\x2a\xdb\x3b\xdb\xed\x5e\xb9\x0c\xeb\x7b\x5b\x36" "\x93\x14\x65\xe5\xef\x49\x3e\x4b\xee\x65\xb0\xa4\x35\x36\x5c\x71\xd0\x71" "\x8a\x4f\x56\xaf\xad\xdd\xff\xf8\xe2\xde\x58\xcd\xe1\xf6\x45\xfe\x7d\xf0" "\x7e\x47\xf3\x48\x2c\x8d\x7d\x31\x3d\xed\x78\x2b\x4f\x3d\x5e\x31\xca\xcc" "\x62\x92\x73\x75\x09\x53\xf7\x79\x00\x00\x00\xff\xff\x15\x9f\xfc\xb5", 1511); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000040, /*flags=MS_LAZYTIME|MS_POSIXACL*/ 0x2010000, /*opts=*/0x20000080, /*chdir=*/1, /*size=*/0x5e7, /*img=*/0x20000440); memcpy((void*)0x200001c0, "./file2\000", 8); res = syscall(__NR_creat, /*file=*/0x200001c0ul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x800ul); return 0; }