// https://syzkaller.appspot.com/bug?id=4172338598333c55da3532684a0dc74a73412571 // 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_openat #define __NR_openat 56 #endif #ifndef __NR_unlinkat #define __NR_unlinkat 35 #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*)0x20000080, "./file2\000", 8); memcpy((void*)0x200000c0, "umask", 5); *(uint8_t*)0x200000c5 = 0x3d; sprintf((char*)0x200000c6, "%023llo", (long long)0); *(uint8_t*)0x200000dd = 0x2c; memcpy((void*)0x200000de, "uid", 3); *(uint8_t*)0x200000e1 = 0x3d; sprintf((char*)0x200000e2, "0x%016llx", (long long)0); *(uint8_t*)0x200000f4 = 0x2c; memcpy((void*)0x200000f5, "creator", 7); *(uint8_t*)0x200000fc = 0x3d; memcpy((void*)0x200000fd, "\xcf\x77\x1b\x30", 4); *(uint8_t*)0x20000101 = 0x2c; memcpy((void*)0x20000102, "nls", 3); *(uint8_t*)0x20000105 = 0x3d; memcpy((void*)0x20000106, "maccyrillic", 11); *(uint8_t*)0x20000111 = 0x2c; *(uint8_t*)0x20000112 = 0; memcpy( (void*)0x20000880, "\x78\x9c\xec\xdd\xcb\x6f\x1c\x77\x1d\x00\xf0\xef\xec\xae\xbd\xbb\x41\x4a" "\x9c\x36\x49\x0b\xaa\x84\xd5\x4a\x05\x61\x91\xf8\x21\x17\xcc\x25\xa6\x42" "\xc8\x87\x0a\x55\x70\xe0\x6c\x25\x4e\x63\x65\xe3\x56\xb6\x0b\x6e\x85\x88" "\xcb\xf3\xda\x43\xff\x80\x72\xf0\x8d\x13\x12\x07\x6e\x41\xe5\x0c\x37\x38" "\x5a\x9c\x2a\x21\x7a\xe1\xe4\xdb\xa2\x79\xad\x37\xde\x87\xd7\x76\xe3\x8d" "\x95\xcf\x27\x9a\xfd\xfd\x66\x7e\xef\xef\xce\xce\x3e\xac\x68\x02\x78\x6e" "\xad\xcc\x44\xed\x71\x24\xb1\x32\xf3\xd6\x4e\xba\xbf\xbf\xb7\xd0\xda\xdf" "\x5b\xa8\x17\xc5\xad\x88\x48\xf3\x95\x88\x5a\x9e\x44\xb2\x11\x91\x7c\x16" "\xb1\x1c\xf9\x16\x5f\x4d\x0f\x16\xf5\x93\x41\xe3\x7c\xb2\xbe\xf4\xe3\x7f" "\xfe\x6f\xff\xf3\x7c\xaf\x56\x6c\x59\xfd\x4a\x6f\xbb\x47\xed\x93\xad\x62" "\xb7\xd8\x62\x3a\x22\xaa\x45\xda\x6b\xa2\xf7\x50\xa3\xcf\xb1\x23\xfd\xdd" "\x19\xd8\x5f\xae\xde\x95\xef\xbf\xfe\xa4\x53\x92\x06\xec\xb5\x32\x70\x30" "\x6e\xed\x1e\xbb\x27\x69\x3e\xf0\xf5\x0e\x5c\x1c\x49\xfe\xbe\xd9\x63\x2a" "\xe2\x52\xfa\x36\x59\xbe\xcf\x15\x57\x87\xca\xf9\xce\xee\xcb\x77\xa2\xab" "\x1c\x00\x00\x00\x8c\xd9\xca\x7f\xaf\xcf\x9f\xa4\x7e\xb3\x48\xaf\x1c\xc4" "\x41\xec\x5c\xf8\xaf\xf1\x00\x00\x00\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\xae\x8a" "\xfb\xff\x27\xc5\x56\x29\xf3\xd3\x91\x94\xf7\xff\x9f\x2c\x8e\x45\x91\xbf" "\xd0\x1e\x8f\x7b\x02\x00\x00\x00\x00\x00\x00\x00\x30\x82\x7a\x99\xb9\xdd" "\xbf\xfc\xeb\x07\x71\x10\x3b\xf1\xe6\x5f\x8a\xfd\x76\x92\xfd\xcd\xff\xd5" "\x6c\xe7\x5a\xf6\xf8\x95\x78\x3f\xb6\x62\x2d\x36\xe3\x66\xec\xc4\x6a\x6c" "\xc7\x76\x6c\xc6\x5c\x44\x4c\x75\x75\x34\xb9\xb3\xba\xbd\xbd\x39\x37\x42" "\xcb\xf9\xbe\x2d\xe7\xbf\xe4\x85\x03\x00\x00\x00\x00\x00\x00\xc0\xf3\xe5" "\x57\xb1\x12\x97\xc7\x3d\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xe8\x96\x44\x54\xf3\x24\xdb\xae\x95\xf9\xa9\xa8\xd4\x22\xa2\x11\x11\x93" "\x69\xbd\xdd\x88\x7f\x94\xf9\x0b\x22\xe9\x77\xf0\xf1\xf9\xcf\x03\x00\x00" "\x00\xce\xa4\x71\x8a\x36\x57\x0e\xe2\x20\x76\xe2\x72\xb9\xdf\x4e\xb2\xef" "\xfc\x37\xb2\xef\xcb\x8d\x78\x3f\x36\x62\x3b\xd6\x63\x3b\x5a\xb1\x16\x77" "\x8b\xef\xd0\xe9\xb7\xfe\xca\xfe\xde\x42\x6b\x7f\x6f\xe1\x61\xba\x9d\x79" "\xea\x59\x8f\x91\xff\xf6\xd0\x7f\xe4\x97\xb3\x1a\xcd\xb8\x17\xeb\xd9\x91" "\x9b\x71\x27\x9b\xcc\xdd\xa8\x64\x2d\x53\xff\x8e\x88\x87\xe5\x9c\x7a\xe7" "\xf5\xd1\x17\x69\xdf\xb7\x73\x3f\x1f\x71\x66\x77\x8b\x34\x1d\xec\xe3\xf2" "\x57\x84\xfa\x99\x17\xdc\x47\x32\xe8\x37\x8a\x01\xa6\x22\x6a\x95\x98\xe8" "\x44\x64\x36\x6b\x9d\x9f\x04\x57\xbb\xa3\xd0\x1b\x89\xef\x7f\x31\xa8\xd3" "\xe5\x3c\xa9\x1d\x1d\x29\xba\x47\x9a\x8b\x4a\xe7\x97\x9f\x6b\xf9\x08\x69" "\xf6\xd8\x98\xdf\x3e\x3c\x7e\x7b\xd8\xca\x2e\x15\x69\xba\x9e\xdf\x0d\x8a" "\xca\xa3\x61\x3d\x9c\x42\xe3\x70\xd0\xdd\x81\x95\x3a\x91\xa8\x44\x16\x89" "\xf9\xae\xb3\xef\xc6\xf0\x98\x47\x7c\xe3\xcf\x7f\xfc\xf8\x7e\x6b\xe3\xc1" "\xfd\x7b\x5b\x33\x27\x79\xa2\x9f\x49\x47\xcf\x89\x85\xae\x48\xbc\x34\x42" "\x24\x7e\xfa\xcc\x46\xa2\x76\xc2\xfa\xb3\x59\x24\xae\x77\xf6\x57\xe2\x87" "\xf1\x93\x98\x89\xe9\x78\x3b\x36\x63\x3d\x7e\x16\xab\xb1\x1d\x6b\x91\x14" "\x2b\x5d\x2d\xce\xe7\xf4\x71\x6a\x78\xa4\x96\x9f\xd8\x7b\xfb\xb8\x99\x4c" "\x16\xcf\x4b\x7e\x15\xed\x99\x53\xd2\x3b\xa7\xe9\xf8\x41\x96\x5b\x8d\x57" "\xb3\xb6\x97\x63\x3d\x92\x78\x37\xee\xc6\x5a\xbc\x91\xfd\x9b\x8f\xb9\xf8" "\x4e\x2c\xc6\x62\x2c\x75\x3d\xc3\xd7\x07\xce\x3b\x5b\xdb\x47\x9d\xeb\xcb" "\xee\x13\xaf\xfa\x61\x5e\xfb\x66\x91\x69\x46\xc4\xef\x8b\x74\xdc\x1a\x59" "\x4c\xd3\xed\x6a\x57\x5c\xbb\xaf\xb9\x53\x59\x59\xf7\x91\xc3\x28\xbd\x30" "\xfc\xd9\xed\xbd\x36\x1e\xbf\xe4\xda\xd7\x8a\x4c\x3a\xc6\xaf\x8b\xf4\xd9" "\x70\x34\x12\x73\x5d\x91\x78\x71\x78\x24\xfe\xd0\x4e\x1f\xb7\x5a\x1b\x0f" "\x36\xef\xaf\xbe\xd7\xf7\xdd\x75\xa2\x48\xdb\xed\x76\x3b\xcf\xbd\x5e\x1c" "\x49\xcf\xb8\xdf\x1e\xff\xf1\xe7\xaf\x67\x59\xdb\x08\xba\xae\x63\xe9\xf9" "\xf2\x42\x34\x8a\x2b\xc9\xd5\x98\xc8\xa7\x56\x2d\xcb\x5e\xec\x5c\x65\x9e" "\x8c\xd7\x64\xf1\x17\x97\xbc\xac\xd2\x53\x76\x3d\x7f\xba\x93\xf2\x95\xfa" "\xa3\x81\xaf\xd4\xb4\xf6\x8d\xce\x85\xac\xbb\xa7\xf9\xac\xec\xa5\xbe\xa3" "\x2c\x64\x65\x2f\x77\x95\x75\x7f\xde\x8a\x78\x37\x5a\x9d\xcf\x43\x00\x3c" "\xc3\x2e\x7d\xeb\xd2\x64\xf3\x3f\xcd\xbf\x37\x3f\x6d\xfe\xa6\x79\xbf\xf9" "\x56\xe3\xcd\xfa\x77\xeb\xaf\x4c\xc6\xc4\xdf\x26\xbe\x57\x9b\xad\xbe\x5e" "\x79\x25\xf9\x53\x7c\x1a\xbf\x3c\xfc\xfe\x0f\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9c\xde" "\xd6\x07\x1f\x3e\x58\x6d\xb5\xd6\x36\xfb\x67\x2a\x83\x8b\xb2\x4c\x52\xdc" "\xfe\xe6\x48\x51\x79\x27\x9f\x21\x3d\x1f\xc9\x94\x37\xc1\x1b\xa9\xf2\x53" "\xce\x54\x47\xaa\xdc\x7e\x14\x31\xf6\xa9\x3e\xc5\x4c\x72\xda\xe6\x13\xc7" "\x9f\x5a\xe5\x4d\x04\x07\xf4\x53\xef\x5f\x34\xdb\x7b\x46\x2d\x8f\x36\xb1" "\xea\x53\x09\xd4\xbf\x4e\xda\x2a\x1a\x03\x97\xdc\x2f\xd3\xbe\x92\x47\xe9" "\x44\x43\x4c\xe5\x6d\x46\xa8\x5c\xcf\x83\x59\x1d\xf0\x3a\x2d\x9e\xa2\xd3" "\xdc\x5c\x14\xb8\x10\x6e\x6d\x3f\x7c\xef\xd6\xd6\x07\x1f\x7e\x7b\xfd\xe1" "\xea\x3b\x6b\xef\xac\x6d\x4c\x2c\x2e\x2e\xcd\x2e\x2d\xbe\xb1\x70\xeb\xde" "\x7a\x6b\x6d\x36\x7f\x1c\xf7\x2c\x81\xa7\xe1\xf0\x4d\x7f\xdc\x33\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x46\x75\x1e\xff\x9f\x64\xdc\x6b\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x2e\xb6\x95\x99\xa8\x3d\x8e\x24\xe6\x66\x6f\xce\xa6\xfb\xfb\x7b" "\x0b\xad\x74\x2b\xf3\x87\x35\x6b\x11\x51\xa9\x44\x24\xbf\x88\x48\x3e\x8b" "\x58\x8e\x7c\x8b\xa9\xae\xee\x92\x41\xe3\x7c\xb2\xbe\x54\x8d\x88\xcf\x0f" "\xfb\xaa\x95\xf5\x2b\x43\xda\xb5\xeb\xe5\x28\x43\xed\x16\x5b\x4c\x47\x44" "\xb5\x48\xcf\xe0\x89\xfe\xee\x9c\xb9\xbf\xa4\xb3\xc2\xa4\x48\x8f\x5f\x12" "\x9c\x83\xff\x07\x00\x00\xff\xff\xef\x8f\xec\x87", 1740); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000080, /*flags=MS_POSIXACL|MS_REC|MS_SYNCHRONOUS|MS_NOEXEC*/ 0x14018, /*opts=*/0x200000c0, /*chdir=*/0x80, /*size=*/0x6cc, /*img=*/0x20000880); memcpy((void*)0x200001c0, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200001c0ul, /*flags=*/0ul, /*mode=*/0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000280, "./file1\000", 8); syscall(__NR_unlinkat, /*fd=*/r[0], /*path=*/0x20000280ul, /*flags=*/0ul); return 0; }