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