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