// https://syzkaller.appspot.com/bug?id=f0d34594467ade2b45400cec1695433d001df373 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <errno.h> #include <fcntl.h> #include <setjmp.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/syscall.h> #include <sys/types.h> #include <unistd.h> #include <linux/loop.h> #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=*/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; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x200000000180, "hfsplus\000", 8); memcpy((void*)0x200000000500, "./file2\000", 8); memcpy( (void*)0x20000000abc0, "\x78\x9c\xec\xdd\xcf\x6f\x1c\x67\x19\x07\xf0\xef\xac\xd7\x3f\x36\x95\x5c" "\xb7\x4d\xd3\x80\x2a\xd5\x34\x52\x41\x44\x24\x71\xac\x14\xc2\x25\x01\x21" "\x14\xa4\x0a\x55\x41\x82\xb3\xd5\x38\x8d\x15\x27\x0d\x8e\x8b\xd2\x1e\x88" "\x0b\x48\x48\x9c\x38\xf0\x07\xb4\x87\x70\x81\x13\x08\x21\x21\x21\x45\x2a" "\x67\xb8\x55\x70\xb2\x38\x55\x42\xea\xa5\xa7\xb4\x42\x0c\xda\xd9\xd9\xf5" "\xda\xdd\xb5\x37\x71\x62\x3b\xf0\xf9\x58\xb3\xf3\xbc\xf3\xce\xbe\xf3\xcc" "\xb3\xf3\x63\x77\x25\x6b\x03\xfc\xdf\xba\x70\x3c\xcd\xbb\x69\xe5\xc2\xf1" "\x57\x6e\xb5\xdb\xeb\x77\xe6\x97\xd7\xef\xcc\x5f\xeb\xc4\x8d\xe5\x24\x93" "\x49\x1a\x49\xb3\x33\x4b\x71\x3d\x29\xde\x4f\xce\xa7\x33\xe5\x73\xed\x85" "\xf5\x70\xc5\xb0\xed\xfc\x6a\xe9\xec\xc5\x0f\x3e\x5e\xff\xb0\xd3\x6a\x66" "\x63\xbc\xf6\x43\x6b\x78\x82\xcd\x51\xf6\x62\xad\x9e\x32\x9b\x64\xac\x9e" "\xef\xc2\xa6\xf1\x5e\x7b\xb0\xf1\x26\x37\xc2\xa2\x57\x99\x76\xc1\x8e\x75" "\x0b\x07\xfb\x6d\x3c\x49\xb9\xc9\x0f\x8f\x6c\xf4\x0c\x52\x8e\xf5\x35\x86" "\x9e\xef\xc0\xe3\xa3\xe8\xdc\x37\xfb\x74\xce\xff\x99\xe4\x50\x92\xa9\xee" "\x0d\x6d\xad\xd3\xd9\xd8\xfb\x0c\x77\x34\xc2\xb5\xe8\x17\xbd\x68\xed\xd1" "\xe6\x02\x00\x00\x00\x07\xc2\x93\xf7\x6e\x27\xb7\x32\xbd\xdf\x79\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xc0\xe3\xa4\xfe\xfd\xff\xa2\x9e\x1a\xdd\x78" "\x36\x45\xf7\xf7\xff\x27\xfa\x7e\x63\x7f\x62\x9f\xd3\x1d\x6e\xfb\xcc\xa6" "\xba\xc1\xdd\xc6\x5e\x24\x03\x00\x00\x00\x00\x00\x00\x00\x8f\xd6\x0b\xf7" "\xf2\x9b\x8b\x65\x39\xdd\x6d\x97\x45\x1a\xdf\x1f\xab\x1b\x87\xab\xc7\x27" "\xf2\x66\x6e\x66\x31\x2b\x39\x91\x5b\x59\xc8\x6a\x56\xb3\x92\xb9\x24\x33" "\x7d\x03\x4d\xdc\x5a\x58\x5d\x5d\x99\xcb\x8b\x9d\x67\x7e\x5a\x96\xe5\x90" "\x67\x9e\x1e\xf8\xcc\xd3\x23\x26\xdc\xda\xfd\x3e\x03\x00\x00\x00\x00\x00" "\x00\xc0\xff\x90\x73\xf5\xfc\x27\xb9\x90\xe9\x7d\xce\x05\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x36\x29\x92\xb1\xce\xac\x9a\x0e\x77\xe3\x99" "\x34\x9a\x49\xa6\x92\x4c\xb4\xd7\x5b\x4b\xfe\xd6\x8d\x1f\x67\x77\xf7\x3b" "\x01\x00\x00\x00\x78\x58\xfe\xf1\xef\xb2\x32\xa0\xeb\xc9\x7b\xb9\x97\x5b" "\x99\xee\xb6\xcb\xa2\xfa\xcc\x7f\xa4\xfa\xdc\x3f\x95\x37\x73\x3d\xab\x59" "\xca\x6a\x96\xb3\x98\x4b\xd5\x77\x01\x9d\x4f\xfd\x8d\xf5\x3b\xf3\xcb\xeb" "\x77\xe6\xaf\xb5\xa7\xcf\x8e\xfb\x5e\x6b\x23\xfe\xfd\xf4\x8e\x19\x56\x23" "\xa6\xf3\xdd\xc3\xe0\x2d\x1f\xad\xd6\x68\xe5\x72\x96\xaa\x25\x27\xf2\x5a" "\xde\xc8\x72\x2e\xa5\x51\x3d\xb3\xed\x68\x37\x9f\xc1\x79\xbd\xf3\x51\x7b" "\xec\x73\x1d\x65\x99\xc9\x51\x6a\x77\xa9\x9e\xb7\xf7\xfc\x97\xf5\xfc\x60" "\x98\xa9\x2a\x32\xde\xab\xc8\xa9\x76\x6e\x45\xa7\x8e\x4f\x6d\x5f\x89\x6f" "\x7c\xb4\xab\x2d\xcd\xa5\xd1\xfb\xe6\xe7\xf0\x7d\xd4\xfc\xdc\xb6\x5b\x29" "\xfe\xd3\x3d\x42\x0f\x75\x97\x24\x4f\x7c\x67\xe7\x9a\x8f\xdf\xd7\xce\xec" "\xca\xd6\x4a\x9c\xee\x3b\xfa\x8e\x6c\x5f\x89\xe4\x8b\x7f\xf8\xed\x0f\xae" "\x2c\x5f\xbf\x7a\xa5\x58\x3b\x7e\x70\x0e\xa3\x41\x5e\x18\xbc\x78\xf2\x9f" "\x1b\xd7\x90\x99\xfa\x8c\x4d\xf5\x65\xe0\x62\xe6\xfb\x2a\xf1\xdc\xc8\x95" "\xb8\x7c\xf3\x80\x57\x62\xa8\xe6\xa6\x56\x23\xcf\xf6\xe2\x0b\xf9\x76\xbe" "\x97\xe3\x99\xcd\xab\x59\xc9\x52\x7e\x94\x85\xac\x66\x31\xb3\xf9\x56\x15" "\x2d\xd4\xc7\x73\xfb\x71\x66\xfb\x4a\x9d\xdf\xd4\x7a\x75\xa7\x9c\x26\xea" "\xd7\x65\x6c\x4b\x4e\x5f\x78\xb2\x33\xdf\x2e\xa7\x17\xab\xe7\x4e\x67\x29" "\xdf\xcd\x1b\xb9\x94\xc5\xbc\x5c\xfd\x9d\xce\x5c\xbe\x9a\x33\x39\x93\xb3" "\x7d\xaf\xf0\xb3\x23\x9c\xf5\x8d\x01\x67\xfd\x1f\x87\x27\x7f\xec\x4b\x75" "\xd0\xbe\x73\xfc\xbc\x9e\x1f\x0c\xed\xba\x3e\xd5\x57\xd7\xfe\x6b\xee\x4c" "\xd5\xd7\xbf\xa4\x91\xb2\xbe\xb3\x3c\xfd\xd0\xae\x8d\x3d\xcd\xcf\xd7\x41" "\xfb\x95\xf8\x69\xdf\x39\xb8\xff\x7a\x95\x98\x4a\xef\x2e\xd1\xcd\xee\x99" "\x6e\x05\xc6\x07\x56\xe2\xbd\xea\xb2\x72\x73\xf9\xfa\xd5\x95\x2b\x0b\x37" "\xb6\x8c\x5b\xac\x0d\xde\xde\x4b\xd9\xbc\xfb\x07\xe7\x42\xd2\x3e\x5e\x9e" "\xee\x5d\x23\x36\x1f\x1d\xed\xbe\x67\x06\xf6\xcd\x55\x7d\x87\x7b\x7d\x8d" "\xad\x7d\xbf\x6e\xf5\xfa\x76\x3a\x53\x27\xea\xf7\x70\x9f\x1d\xe9\x74\xd5" "\xf7\xdc\xc0\xbe\xf9\xaa\xef\x68\x5f\x5f\xfb\xfd\xd6\x54\x92\xc5\x7c\x5a" "\x96\x65\xe7\xfd\x56\xd7\x33\x7b\x5c\x55\x00\x46\x76\xe8\xcb\x87\x26\x5a" "\xff\x6a\xfd\xb5\xf5\x6e\xeb\x67\xad\x2b\xad\x57\xa6\xbe\x39\xf9\xb5\xc9" "\xe7\x27\x32\xfe\x97\xf1\xaf\x37\x4f\x8d\xbd\xd4\x78\xbe\xf8\x5d\xde\xcd" "\x8f\xb3\xf3\x27\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x47\x37\xdf\x7a\xfb\xea\xc2" "\xf2\xf2\xe2\xca\x96\xa0\x2c\xcb\xdb\x43\xba\x1e\x49\x90\x66\xb2\x69\xc9" "\x9f\xff\xd4\xb7\x4e\xf5\x5b\x63\x49\x46\x1f\xb0\xbd\xf6\xf9\x46\x52\x2d" "\x69\xa6\x0e\xee\x2f\xb1\xdb\x0f\xb6\x3b\xef\x3c\x68\x11\xfe\x5e\xbf\x26" "\x7b\x52\xf0\x87\x12\x4c\x0d\x3d\x7e\xb6\x06\x9f\x94\x65\x79\x30\x72\x1e" "\x25\x28\x6b\x7b\xbe\xf5\x46\xf6\x7d\xdf\xbb\xc1\xbe\x5e\x96\x80\x3d\x70" "\x72\xf5\xda\x8d\x93\x37\xdf\x7a\xfb\x2b\x4b\xd7\x16\x5e\x5f\x7c\x7d\xf1" "\xfa\xd9\x33\x67\xce\x9e\x3a\x7b\xe6\xe5\xf9\x93\x97\x97\x96\xa7\xf6\x3b" "\x3d\xe0\x11\xaa\xee\xf5\xd5\xfb\x9c\xfd\xce\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x18\xd5\x68\xff\x9c\x53\xf4\x96\x34\x93\xdc\xf7\xff\xf6\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xec\xc2\x85\xe3\x69\xde\x4d\x91\xb9\x53\x27\x4e\xb5\xdb\xeb" "\x77\xe6\x97\xdb\x53\x37\xde\x58\xf3\x93\x24\x8d\x24\xc5\x6c\x52\xbc\x9f" "\x9c\x4f\x67\xca\x4c\xdf\x70\xc5\xb0\xed\xac\x25\x17\x3f\xf8\x78\xfd\xc3" "\x4e\xab\x59\x4f\xd5\xfa\x8d\xdd\xef\xc5\x5a\x3d\x65\x36\xc9\x58\x3d\x1f" "\x60\x6a\xd0\xc2\xf2\xf6\xb0\xf1\x8a\x6a\x9c\x1b\xc3\xc7\x1b\x51\xd1\xab" "\x4c\xbb\x60\xc7\xba\x85\x83\xfd\xf6\xdf\x00\x00\x00\xff\xff\xc8\x0b\x1c" "\xca", 1729); syz_mount_image( /*fs=*/0x200000000180, /*dir=*/0x200000000500, /*flags=MS_I_VERSION|MS_REC|MS_NOSUID|MS_NOEXEC|MS_DIRSYNC*/ 0x80408a, /*opts=*/0x200000000540, /*chdir=*/0x11, /*size=*/0x6c1, /*img=*/0x20000000abc0); memcpy((void*)0x200000000080, "./file1\000", 8); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000080ul, /*flags=O_TRUNC|O_NOCTTY*/ 0x300, /*mode=*/0); memcpy( (void*)0x200000000100, "\023\023w\305\3745\324\024T\325\324\035)\255\032`)" "Y\201F\346\276\026nA\255\r\275@T\003<\2373\273\332\202$" "\242\363\327r\347cnH\263<\277p\203r\350\361\271\223>" "\305\022wC\276\"\006 \236\360-\371\313\362\366\350\200\3238//file0\000", 84); memcpy((void*)0x2000000002c0, ".\002\000", 3); syscall(__NR_symlink, /*old=*/0x200000000100ul, /*new=*/0x2000000002c0ul); memcpy((void*)0x200000000600, ".\002\000", 3); memcpy((void*)0x200000000000, "./file1\000", 8); syscall(__NR_rename, /*old=*/0x200000000600ul, /*new=*/0x200000000000ul); memcpy((void*)0x200000000380, "./file1\000", 8); syscall(__NR_unlinkat, /*fd=*/0xffffff9c, /*path=*/0x200000000380ul, /*flags=*/0ul); return 0; }