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