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