// https://syzkaller.appspot.com/bug?id=336d0d6a49a60210954b3df4cc926e5fc7697e68 // 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"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } 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=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x200000000000, "hfsplus\000", 8); memcpy((void*)0x200000000480, "./file1\000", 8); memcpy( (void*)0x200000001080, "\x78\x9c\xec\xdd\x4d\x6c\x5c\x57\xd9\x07\xf0\xff\x9d\xd8\x8e\x27\x6f\xdf" "\xd4\x49\x93\x36\x45\x95\x12\x35\x12\x20\x22\x12\x3b\x56\x0a\x66\xd3\x80" "\x10\xca\xa2\x42\xa8\x2c\x58\x5b\x89\x93\x58\x99\xa4\xc5\x71\x91\x13\x21" "\x6a\xbe\xb7\x5d\x64\xc7\xa6\x2c\xb2\x63\x81\x90\xd8\x47\x94\x0d\x12\x82" "\x5d\xb7\x5e\x56\x42\xb0\xe9\x06\xb3\x1a\x74\xef\xdc\x19\x4f\x6d\x8f\x3d" "\x6e\x12\x8f\x13\x7e\xbf\xe8\xfa\x9c\x7b\xcf\x3d\xe7\x3c\xe7\x99\x3b\xdf" "\xb1\x1c\xe0\x7f\xd6\x95\x73\x19\x7b\x94\x22\x57\xce\xbd\xb5\x52\xee\xaf" "\x3d\x9c\x6d\xad\x3d\x9c\xbd\xdd\xad\x27\x39\x9c\xa4\x91\x8c\x75\x8a\x14" "\xff\x6e\xb7\xdb\x1f\x25\x97\xd3\xd9\xf2\x6a\x79\xb0\x1e\xae\x18\x34\xcf" "\x83\xc5\xb9\xb7\x3f\xfe\x74\xed\x93\xce\xde\x58\xbd\x55\xe7\x37\x76\xea" "\x37\x9c\xd5\x7a\xcb\x99\x24\x87\xea\xf2\x49\x8d\x77\x75\xb7\xf1\x26\x77" "\x1b\xae\xe8\xad\xb0\x4c\xd8\xd9\x6e\xe2\x60\xd4\xc6\x93\xb4\x2b\xff\x7c" "\xd0\x39\xf2\xc3\xbf\xbc\xd0\x6b\xe9\xd3\xdc\xae\xf7\xae\x57\x3e\xf0\x0c" "\x28\x3a\xcf\x9b\x5b\x4c\x25\x47\x32\xb1\xb1\xbf\xda\x29\x1a\xfb\x15\xd7" "\xd3\xb2\x3a\xea\x00\x00\x00\x00\x60\x1f\xbc\xb8\x9e\xf5\xac\xe4\xe8\xa8" "\xe3\x00\x00\x00\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\x67\x49\xfd\xf7\xff\x8b\x7a" "\x6b\x74\xeb\x67\x52\x1c\x49\x32\x99\x64\xa2\x3e\x96\xba\x7e\xb0\x9c\xde" "\xdb\xe9\x8f\x9e\x56\x1c\x00\x00\x00\x00\x00\x00\x00\xb0\x8f\x4e\xaf\x67" "\x3d\x2b\x39\xda\xdd\x6f\x17\xd5\x77\xfe\xaf\x57\x3b\x27\xaa\x9f\xff\x97" "\xf7\x72\x37\x0b\x59\xca\xf9\xac\x64\x3e\xcb\x59\xce\x52\x66\x92\x4c\xf5" "\x0d\x34\xb1\x32\xbf\xbc\xbc\x34\xd3\xeb\xd9\xfd\x9f\x01\x5b\x7b\x5e\xdc" "\xb6\xe7\xc5\x7a\xaf\x18\x10\xe8\xe1\xba\x6c\x3e\xa9\x95\x03\x00\x00\x00" "\x00\x00\x00\xc0\x73\xe5\x67\xb9\xb2\xf1\xfd\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\x1c\x04\x45\x72\xa8\x53\x54\xdb\x89\x6e\x7d\x2a\x8d" "\xb1\x24\x93\x49\x26\xca\xf3\x56\x93\xbf\x77\xeb\xcf\xb2\x47\xa3\x0e\x00" "\x00\x00\x00\x1e\x43\x7b\xc8\xf3\x5e\x5c\xcf\x7a\x56\x72\xb4\xd7\xaf\xa8" "\xde\xf3\xbf\x5c\xbd\xef\x9f\xcc\x7b\xb9\x93\xe5\x2c\x66\x39\xad\x2c\xe4" "\x5a\xf5\x59\x40\xe7\x5d\x7f\x63\xed\xe1\x6c\x6b\xed\xe1\xec\xed\x72\xdb" "\x3a\xee\x37\xff\xb5\xa7\x70\xab\x11\xd3\xf9\xec\x61\xfb\x99\x4f\x55\x67" "\x34\x73\x3d\x8b\xd5\x91\xf3\xb9\x9a\x77\x52\x14\xd7\xd2\xa8\x7a\x96\x4e" "\x75\xe3\xd9\x3e\xae\x9f\x96\x31\x15\x6f\x76\x8c\x0f\x19\xd9\xb5\xba\x2c" "\x57\xfe\x41\x5d\x6e\xf1\xfe\x9e\x16\x3b\xc8\x1e\x3f\x4c\x99\xaa\x32\x32" "\xde\xcb\xc8\x74\x1d\x5b\x99\x8d\x63\x3b\x67\x62\x8f\xb7\xce\xe6\x99\x66" "\xd2\xe8\x05\x7b\x62\xd3\x4c\x9b\x16\xf1\x99\x9c\xbf\x39\xe4\x7c\x47\xea" "\xb2\x5c\xcf\xaf\x06\xe5\x7c\x24\x36\x67\xe2\x62\xdf\xd5\xf7\xf2\xce\x39" "\x4f\xbe\xf4\xc7\xdf\xfd\xe0\x66\xeb\xce\xad\x9b\xd7\xef\x9e\x3b\x38\x4b" "\x1a\xce\xa1\xba\xec\x3c\xae\x34\xb7\x66\x62\xb6\x2f\x13\xaf\x3c\xcf\x99" "\xd8\x62\xba\xca\xc4\xc9\xde\xfe\x95\x7c\x27\xdf\xcf\xb9\x9c\xc9\xf7\xb2" "\x94\xc5\xfc\x28\xf3\x59\xce\x42\xce\xe4\xdb\x55\x6d\xbe\xbe\x9e\x8b\xbe" "\xbb\xfc\x80\x4c\x5d\xde\xa8\xfe\xf5\x37\xbb\x47\x32\x51\x5f\xa1\x9d\x1b" "\xeb\xb3\x31\x65\x97\x98\x5e\xaf\xfa\x1e\xcd\x62\xbe\x9b\x77\x72\x2d\x0b" "\x79\xa3\xfa\x77\x31\x33\xf9\x5a\x2e\xe5\x52\xe6\xfa\x6e\xe1\x93\x43\x3c" "\xd2\x36\x06\xdc\xeb\xdb\xff\xbf\x6d\xf0\x67\xbf\x5c\x57\x9a\x49\x7e\x5d" "\x97\x95\x1b\x63\xbb\x2f\xfd\xf1\xed\x30\x49\x99\xd7\x63\x7d\x79\xed\x7f" "\xcc\x9d\xaa\xda\xfa\x8f\x6c\x64\xe9\xf8\x1e\x9e\x8f\xba\x59\xfa\xfd\x2e" "\x51\x7e\xa1\xae\x94\x73\xfc\xbc\x2e\x0f\x86\xcd\x99\x98\xe9\xcb\xc4\x4b" "\x3b\x67\xe2\xb7\xd5\xc3\xca\xdd\xd6\x9d\x5b\x4b\x37\xe7\xdf\x1d\x6e\xba" "\xe3\x1f\xd4\x95\xf2\x7e\xf4\xcb\x03\xf5\x2c\x51\x5e\x2f\xc7\x7b\x97\xd4" "\xb1\xde\x4d\x54\x5e\x1d\x65\xdb\x4b\x75\xdb\x78\xb5\x6d\xe4\x6b\xa2\xfe" "\xc6\xa5\xd3\xaf\xb1\xa5\xed\x64\xaf\xad\x73\x4f\x5d\x1d\x78\x4f\x9d\xa8" "\x5f\xc3\x6d\x1d\xe9\x62\xd5\xf6\xca\xb6\x6d\xb3\x55\xdb\xa9\xbe\xb6\xcd" "\xaf\xb7\x5a\xbd\xd7\x43\xcf\xc3\x97\x3f\x00\xcf\xad\x23\x5f\x39\x32\xd1" "\xfc\x47\xf3\x6f\xcd\x0f\x9b\xbf\x68\xde\x6c\xbe\x35\xf9\xad\xc3\x5f\x3f" "\xfc\xda\x44\xc6\xff\x3c\xfe\x8d\xb1\xe9\x43\x5f\x6c\xbc\x56\xfc\x21\x1f" "\xe6\x27\x1b\xef\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\xcf\xef\xee\xbd\xfb\xb7\xe6" "\x5b\xad\x85\xa5\x4d\x95\x76\xbb\xfd\xfe\x80\xa6\x91\x55\x9a\x8f\x3f\x4e" "\xf7\xcf\x99\xed\x63\xf0\xaf\xbe\x90\x8c\x2a\x63\x13\x49\x0e\xc0\x0d\x77" "\xef\xfe\xad\xff\xb4\xdb\xed\xfa\x48\x71\x10\xe2\xd9\xb9\xd2\x2e\x1d\x4e" "\xfb\x73\x76\xff\x53\x92\xe1\x4e\x1e\x4b\xb2\x5d\xd3\xe9\xd1\x27\x61\xc4" "\x0f\x4c\xc0\x53\x77\x61\xf9\xf6\xbb\x17\xee\xde\xbb\xff\xd5\xc5\xdb\xf3" "\x37\x16\x6e\x2c\xdc\x99\xbb\x74\x69\x6e\x7a\xee\xd2\x1b\xb3\x17\xae\x2f" "\xb6\x16\xa6\x3b\x3f\x47\x1d\x25\xf0\x34\x6c\x3c\xe9\x8f\x3a\x12\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x60\x58\xfb\xf1\xeb\x04\x83\x67\x9f\xdc\xcf" "\xa5\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\xcf\xa8\x2b\xe7\x32\xf6\x28\x45\x66\xa6\xcf\x4f\x97" "\xfb\x6b\x0f\x67\x5b\xe5\xd6\xad\x6f\x9c\x39\x96\xa4\x91\xa4\xf8\x71\x52" "\x7c\x94\x5c\x4e\x67\xcb\x54\xdf\x70\xc5\xa0\x79\x1e\x2c\xce\xbd\xfd\xf1" "\xa7\x6b\x9f\x6c\x8c\x35\xd6\x3d\xbf\xb1\x53\xbf\xe1\xac\xd6\x5b\xce\x24" "\x39\x54\x97\x4f\x6a\xbc\xab\x8f\x3d\x5e\xd1\x5b\x61\x99\xb0\xb3\xdd\xc4" "\xc1\xa8\xfd\x37\x00\x00\xff\xff\xdd\x7b\x05\x84", 1668); syz_mount_image(/*fs=*/0x200000000000, /*dir=*/0x200000000480, /*flags=MS_STRICTATIME|MS_SILENT|MS_NOATIME*/ 0x1008400, /*opts=*/0x200000000080, /*chdir=*/0x85, /*size=*/0x684, /*img=*/0x200000001080); memcpy((void*)0x200000000000, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000000ul, /*flags=O_CREAT|O_RDWR*/ 0x42, /*mode=*/0); if (res != -1) r[0] = res; memset((void*)0x2000000005c0, 34, 1); syscall(__NR_pwrite64, /*fd=*/r[0], /*buf=*/0x2000000005c0ul, /*count=*/1ul, /*pos=*/0x4fed0ul); return 0; }