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