// https://syzkaller.appspot.com/bug?id=302f93bcca76457f16624d492dde391074f10466 // 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_mkdirat #define __NR_mkdirat 34 #endif #ifndef __NR_mmap #define __NR_mmap 222 #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*)0x20000c40, "udf\000", 4); memcpy((void*)0x20000c80, "./file0\000", 8); memcpy((void*)0x20000080, "utf8,uid=ignore,dmode=00000000000000000000011,noadinicb,shortad," "rootdir=00000000\000\000\000\000007,adinicb,session=" "00000000000000000002,undelete,shortad,volume=18446744073709,adinicb," "iocharset=default,\000\000\000\000\000\000\000@" "\000\000\000\000\000\000\000\000\000\000\000\000", 210); memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\x5f\x6c\x5b\xe7\x79\x07\xe0\xf7\xe3\x91\x62\xc9\x59\x57" "\x26\x4d\xd3\x3f\xee\x05\x81\x14\x48\xe6\x34\x81\x64\x39\xb1\x06\xa7\x80" "\x5c\xab\x42\x03\x18\x8e\x11\x59\xbd\x08\x30\x40\xb4\x25\x7b\x44\x24\x4a" "\x96\xe4\xc1\x29\x86\xc2\x03\x5a\x0c\x45\xb7\xc1\x43\x2f\x7a\x39\x03\x69" "\x81\xdd\xcd\x57\x1b\x50\xac\x80\x77\x95\x0d\x5d\x01\x61\x57\xc3\x2e\x06" "\x6f\x4b\x8d\xec\x8e\x2d\xd0\x6d\xd8\x45\x54\x1c\xf2\xa3\x44\x29\xb6\xa5" "\xc6\xb6\x24\x3b\xcf\x63\x48\x3f\xf2\xf0\x3d\xe4\x77\x18\xbd\xe4\x39\xcc" "\x39\x3c\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x7c" "\xed\xeb\x27\x86\x86\xd3\x5e\x8f\x02\x00\xd8\x4d\xa7\x27\xdf\x1c\x1a\xf1" "\xfe\x0f\x00\x9f\x28\x67\x6d\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xbd\x14\x45\x7c" "\x27\x52\xbc\xfb\xfd\x56\x9a\x6e\x5f\xef\x18\x38\xd5\x68\x5e\xbe\x32\x35" "\x3e\x71\xe7\xd9\x06\x53\xa4\xa8\x44\xd1\xae\x2f\x7f\x06\x86\x8f\x8c\x1c" "\x7d\xe5\xd5\x63\xa3\xdd\xbc\xf7\xfc\x0f\xda\x17\xe2\x8d\xc9\xb3\x27\x6a" "\x27\x17\xe6\x17\x97\x66\x97\x97\x67\x67\x6a\x53\xcd\xc6\xf9\x85\x99\xd9" "\x1d\xdf\xc3\xfd\xce\xbf\xd5\xe1\xf6\x13\x50\x9b\x7f\xfb\xf2\xcc\x85\x0b" "\xcb\xb5\x23\x2f\x8f\x6c\xba\xf9\x4a\xf5\xf6\x81\x27\x9f\xad\x1e\x1f\x3d" "\x34\xf2\x56\xb7\x76\x6a\x7c\x62\x62\xb2\xa7\xa6\xaf\xff\x63\x3f\xfa\x47" "\xa4\x07\x77\x57\x3c\x46\x9e\x88\x22\xbe\x11\x29\xde\x7b\xe9\x83\x54\x8f" "\x88\x4a\xdc\x7f\x2f\x6c\xf3\xda\xf1\xb0\x0d\x46\x5f\xd9\x7f\xed\x85\x98" "\x1a\x9f\x68\x2f\xc8\x5c\xa3\xde\x5c\x29\x6f\x4c\x95\x5c\xd5\x17\x51\xed" "\x99\x69\xac\xdb\x23\xbb\xd0\x8b\xf7\x65\x2c\xe2\x6a\xf9\xdf\xa9\x1c\xf0" "\xe1\x72\xf1\x26\x17\xeb\x4b\xf5\x73\x73\xb3\xb5\x33\xf5\xa5\x95\xc6\x4a" "\x63\xa1\x99\x2a\x9d\xd1\x96\xcb\x53\x8d\x4a\x8c\xa6\x88\xc5\x88\x68\x15" "\x7b\x3d\x78\xf6\x9b\xfe\x28\xe2\x68\xa4\xb8\xfd\xab\x56\x3a\x17\x11\x45" "\xb7\x0f\x5e\x3c\x3d\xf9\xe6\xd0\xc8\xf6\x77\xd0\xb7\x0b\x83\xbc\xcb\xc3" "\x56\x8b\x88\xd5\x78\x04\x7a\x16\xf6\xa9\x03\x51\xc4\x5f\x46\x8a\x1f\x4c" "\x0f\xc5\xf9\xdc\x57\xed\xb6\x79\x3f\xe2\xf9\x32\x5f\x8b\xb8\x54\xe6\xcd" "\x14\xd7\xf2\xf5\x54\xbe\x40\x8c\x46\xfc\xd2\xfb\x09\x3c\xd2\xfa\xa2\x88" "\x9f\x47\x8a\x85\xd4\x4a\x33\xdd\xde\x6f\xaf\x57\x9e\xfa\x66\xed\xf5\xe6" "\x85\x85\x9e\xda\xee\x7a\xe5\x23\xbf\x7d\xb0\x9b\xac\x9b\xb0\x8f\x0d\x44" "\x11\xe7\xda\x6b\xfc\xad\xf4\xf1\x3f\xec\x02\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x1e\xb6\xb5\x8e\x0f\x7f\x12\x29\x6e\xcc\xbf\x90\x16\xa3\xf7" "\x98\xd2\x46\xf3\x62\xed\x6c\xfd\xdc\x5c\x67\xaf\xe0\xee\xbe\xff\xb5\x9e" "\x79\xab\xa9\x93\xb5\x9c\x43\x39\xc7\x72\x9e\xc9\x39\x9d\x73\x31\xe7\xd5" "\x9c\xd7\x72\x5e\xcf\x79\x23\xe7\xcd\x9c\xab\x39\x6f\xe5\x6c\xe5\x8c\x4a" "\x7e\xfc\x9c\xb5\x9c\x43\x39\xc7\x72\x9e\xc9\x39\x9d\x73\x31\xe7\xd5\x9c" "\xd7\x72\x5e\xcf\x79\x23\xe7\xcd\x9c\xab\x39\x6f\xe5\x6c\xe5\x0c\xc7\x3d" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x80\x0d" "\x46\x11\x13\x91\xe2\xfa\xbb\x7f\xd4\x3e\xaf\x74\xb4\xcf\x4b\xff\xe9\xe3" "\xa3\xa7\xc7\x9f\xe9\x3d\x67\xfc\xe7\xb6\xb9\x9f\xb2\xf6\xe5\x88\xf8\x49" "\xec\xec\x9c\xbc\xfd\xf9\x5c\xe3\xa9\x52\xfe\x7b\xf0\xcb\x05\x6c\x6f\x20" "\x8a\xf8\x76\x3e\xff\xdf\x9f\xdc\xad\xe8\xc0\xee\x8e\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd8\x5b\x95\x28\xe2" "\x3b\x91\xe2\x87\xbf\x6e\xa5\x48\x11\x31\x16\x31\x1d\x9d\xbc\x55\xec\xf5" "\xe8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xd2\x40\x2a\xe2\x64\xa4\xf8\xef\xaf\x0f\xb4\xaf\xaf\x46\xc4" "\x17\x23\xe2\xc3\xb5\xf2\x5f\xc4\xff\xad\x6d\xb5\xd7\x23\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xc7\x50\x2a\xe2\x52\xa4" "\xf8\xd1\x7b\xad\x54\x8d\x88\x2b\xd5\xdb\x07\x9e\x7c\xb6\x7a\x7c\xf4\xd0" "\xc8\x5b\x45\x14\x91\xca\x92\xde\xfa\x37\x26\xcf\x9e\xa8\x9d\x5c\x98\x5f" "\x5c\x9a\x5d\x5e\x9e\x9d\xa9\x4d\x35\x1b\xe7\x17\x66\x66\x77\xfa\x70\x03" "\xa7\x1a\xcd\xcb\x57\xa6\xc6\x27\x1e\xca\xc2\x6c\x6b\xf0\x21\x8f\x7f\x70" "\xe0\xe4\xc2\xe2\x3b\x4b\x8d\x8b\x7f\xb8\x72\xc7\xdb\x0f\x0e\x9c\x38\xb7" "\xbc\xb2\x54\x3f\x7f\xe7\x9b\x63\x30\xfa\x22\x86\x7a\xa7\x1c\x6e\x0f\x78" "\x6a\x7c\xa2\x3d\xe8\xb9\x46\xbd\xd9\x9e\x35\x55\xee\x32\xc0\xbe\x88\xda" "\x4e\x17\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80" "\x7d\xe3\x60\x2a\x62\x3c\x52\x3c\xf7\xd3\xa3\xa9\x7b\xdc\x78\x5f\xe7\x98" "\xff\x4f\x75\xae\x15\xeb\xb5\x3f\xfe\xe3\x8d\xef\x02\x98\xdb\x92\x5d\xbd" "\xdf\x1f\xb0\x93\xcb\x69\xa7\x03\x3d\xdc\x3e\xf0\xbe\x36\x35\x3e\x31\x31" "\xd9\x33\xb9\xaf\xff\xa3\xa5\xe5\x98\x52\x2a\xe2\xb3\x91\xe2\xd0\xdf\x7f" "\xbe\x7d\x3c\x7c\x8a\x83\x77\x3c\x36\xbe\xac\xfb\xb3\x48\x31\xfa\xff\x47" "\x73\x5d\xf5\x50\x59\x37\xb6\xa9\x6a\xe0\xf0\xd4\xf8\x44\xed\xf4\x42\xf3" "\xa5\x13\x73\x73\x0b\xe7\xeb\x2b\xf5\x73\x73\xb3\xb5\xc9\xc5\xfa\xf9\x1d" "\x7f\x71\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xdc\xc3\xc1\x54\xc4\x9f\x47\x8a\xa3\xaf\xaf\xa6\xee\x79\xe7\xf3\xf1\xff" "\x7d\x9d\x6b\x3d\xc7\xff\xbf\x16\xd1\x3d\xed\xfc\x40\xda\x9c\xeb\xda\xc7" "\xf6\xff\x6e\xfb\xd8\xfe\xce\xe5\x4f\x1f\x1f\x7d\xfd\xc8\x73\x77\x9b\xfe" "\x30\x8e\xff\x2f\xc7\x94\x52\x11\x1f\x46\x8a\xa7\xfe\xea\xf3\xed\xf3\xe9" "\x77\x8f\xff\x1f\xda\x52\x5b\xd6\xfd\x28\x52\xfc\xfc\xbb\x5f\xca\x75\x95" "\x27\xca\xba\xe1\xee\xe2\x74\xee\xf1\x42\x63\x6e\x76\xa8\xac\x7d\x31\x52" "\x7c\xef\x4c\xb7\x36\xda\xb5\xaf\xe6\xda\xcf\x6c\xd4\x0e\x97\xb5\xff\x10" "\x29\x9e\xfe\x83\xcd\xb5\xc7\x72\xed\x33\x1b\xb5\x47\xca\xda\xdb\x91\x62" "\xe2\xf4\x9d\x6b\x3f\xbb\x51\x3b\x52\xd6\x0e\x46\x8a\xaf\xfc\x69\xad\x5b" "\x7b\xb0\xac\xfd\x5a\xae\x7d\x76\xa3\xf6\xe5\xf3\x0b\x73\x33\x3b\x7d\x7a" "\xf9\x64\x2a\xfb\xff\xdf\x23\xc5\x97\x87\xbf\x91\xba\x7f\xf3\x77\xed\xff" "\x9e\xef\xff\xb8\xba\x25\xd7\x7d\xa4\xe7\xef\x7d\xf9\x41\xf5\x7f\xb5\x67" "\xda\xd5\xdc\xd7\x6b\xb9\xff\x87\xb7\xe9\xff\x4b\x91\xe2\x2f\xae\x7d\x29" "\xd7\x75\x7a\xef\x48\xbe\xfd\xa9\xf6\xef\x8d\xfe\xff\x5e\xa4\xf8\xbd\x4f" "\x6d\xae\x7d\x25\xd7\x3e\xbd\x51\x3b\xbc\xd3\xc5\x82\xbd\x54\xf6\xff\x3f" "\x45\x8a\xd5\x5b\xff\xba\xfe\x37\x9f\xfb\x3f\x77\xd6\x46\x87\xf6\xf6\xff" "\x17\xfb\x36\x67\x77\xbd\x60\xaf\xfa\xff\xa9\x9e\x69\xd5\x3c\xae\x91\xdf" "\xf2\xb9\x80\x4f\x9a\xe5\x77\xbe\xf5\x76\x7d\x6e\x6e\x76\xc9\x05\x17\x5c" "\x78\xec\x2f\xa4\xfc\x0e\xbe\x7d\xf1\x5e\xbf\x32\x01\x0f\x5b\xb9\xfe\xff" "\x3f\x91\xe2\xab\x97\x8a\xd4\xdd\x8e\xcd\xeb\xff\xbf\xd3\xb9\xb6\xb1\xfd" "\xff\xbf\xdf\xde\x58\xff\x3f\xbe\x25\xd7\xed\xd1\xfa\xff\xd3\x3d\xd3\x8e" "\xe7\xad\x96\xfe\xbe\x88\x81\x95\xf9\xc5\xfe\xcf\x45\x0c\x2c\xbf\xf3\xad" "\x97\x1a\xf3\xf5\x8b\xb3\x17\x67\x9b\x23\x23\xa3\xc7\x7e\xff\xe8\xf0\x91" "\x63\xc3\xfd\x4f\x74\x37\xee\x37\x2e\xed\xf8\xb9\x83\x47\x5d\xd9\xff\x6f" "\x47\x8a\x1f\xff\xcd\xbf\xac\x7f\x8e\xbd\x79\xfb\xff\xce\x9f\xff\x1d\xdc" "\x92\xeb\xf6\xa8\xff\x3f\xd3\xbb\x4c\x9b\xb6\x6b\x7a\x16\x00\xd8\xa4\xec" "\xff\xbf\x8e\x14\xff\x76\xfd\x83\xf5\xff\xdf\x74\xaf\xcf\xff\xba\x9f\xf3" "\xbd\xf0\xdc\xe6\x1c\xec\x16\x3d\xb8\xfe\xff\xe7\x4d\xb7\x6d\xd3\xff\xcf" "\xf4\x4c\xab\xe5\x5f\xa3\x3d\xd3\x5e\x28\x22\x4e\xfc\x16\xcf\x0b\x00\x00" "\x00\x00\x00\x00\x00\x00\x3c\x0a\x0e\xa6\x22\x7e\x1a\x29\xfe\xb6\xf5\x8f" "\xeb\xe7\xbc\xdf\xbc\xff\x4f\x7c\xb9\x5b\xdb\xbb\xff\xdf\xdd\xec\x87\xf3" "\xff\x03\x00\xf7\x56\xbe\xff\x4f\x46\x8a\x9f\x1d\xfc\x4a\xea\x7e\x87\xcc" "\x4e\xf6\xff\x9f\xd9\x92\xeb\xf6\x68\xff\xff\x67\x7b\xa6\xcd\xec\xd2\x71" "\xcd\x3b\x7e\x92\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x63\x4a\x51\xc4\x81\x48\xf1\xee\xf7\x5b\xe9\x56\x51\x5e\xef\x18\x38" "\xd5\x68\x5e\xbe\x32\x35\x3e\x71\xe7\xd9\x06\x53\xa4\xa8\x44\xd1\xae\x2f" "\x7f\x06\x86\x8f\x8c\x1c\x7d\xe5\xd5\x63\xa3\xdd\xbc\xf7\xfc\x0f\xda\x17" "\xe2\x8d\xc9\xb3\x27\x6a\x27\x17\xe6\x17\x97\x66\x97\x97\x67\x67\x6a\x53" "\xcd\xc6\xf9\x85\x99\xd9\x1d\xdf\xc3\xfd\xce\xbf\xd5\xe1\xf6\x13\x50\x9b" "\x7f\xfb\xf2\xcc\x85\x0b\xcb\xb5\x23\x2f\x8f\x6c\xba\xf9\x4a\xf5\xf6\x81" "\x27\x9f\xad\x1e\x1f\x3d\x34\xf2\x56\xb7\x76\x6a\x7c\x62\x62\xb2\xa7\xa6" "\xaf\xff\x63\x3f\xfa\x47\xa4\x07\x77\x57\x3c\x46\x9e\x88\x22\x7e\x16\x29" "\xde\x7b\xe9\x83\xf4\x1f\x45\x44\x25\xee\xbf\x17\xb6\x79\xed\x78\xd8\x06" "\xa3\xaf\xec\xbf\xf6\x42\x4c\x8d\x4f\xb4\x17\x64\xae\x51\x6f\xae\x94\x37" "\xa6\x4a\xae\xea\x8b\xa8\xf6\xcc\x34\xd6\xed\x91\x5d\xe8\xc5\xfb\x32\x16" "\x71\x35\x22\x2a\xe5\x80\x0f\x97\x8b\x37\xb9\x58\x5f\xaa\x9f\x9b\x9b\xad" "\x9d\xa9\x2f\xad\x34\x56\x1a\x0b\xcd\x54\xe9\x8c\xb6\x5c\x9e\x6a\x54\x62" "\x34\x45\x2c\x46\x44\xab\xd8\xeb\xc1\xb3\xdf\xf4\x47\x11\x7f\x17\x29\x6e" "\xff\xaa\x95\xfe\xb3\x88\x28\xba\x7d\xf0\xe2\xe9\xc9\x37\x87\x46\xb6\xbf" "\x83\xbe\x5d\x18\xe4\x5d\x1e\xb6\x5a\x44\xac\xc6\x23\xd0\xb3\xb0\x4f\x1d" "\x88\x22\x9e\x89\x14\x3f\x98\x1e\x8a\xff\x2a\x3a\x7d\xd5\x6e\x9b\xf7\x23" "\x9e\x2f\xf3\xb5\x88\x4b\x65\xde\x4c\x71\x2d\x5f\x4f\xe5\x0b\xc4\x68\xc4" "\x2f\xbd\x9f\xc0\x23\xad\x2f\x8a\x38\x13\x29\x16\x52\x2b\xbd\x5f\xb4\x7b" "\x7f\xa0\xb3\x5e\x79\xea\x9b\xb5\xd7\x9b\x17\x16\x7a\x6a\xbb\xeb\x95\x8f" "\xfc\xf6\xc1\x6e\xb2\x6e\xc2\x3e\x36\x10\x45\xfc\xa2\xbd\xc6\xdf\x4a\xbf" "\xf0\x7e\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfb\x5c\x11\x5f\x8d" "\x14\x37\xe6\x5f\x48\xed\xe3\x43\xd7\x8f\x29\x6d\x34\x2f\xd6\xce\xd6\xcf" "\xcd\x75\x76\xeb\xef\xee\xfb\x5f\xcb\x73\xad\x3d\xbf\xb6\x56\x4d\x11\x6b" "\x6b\x6b\x6b\xb5\x9c\x43\x39\xc7\x72\x9e\xc9\x39\x9d\x73\x31\xe7\xd5\x9c" "\xd7\x72\x5e\xcf\x79\x23\xe7\xcd\x9c\xab\x39\x6f\xe5\x6c\xe5\x8c\x4a\x27" "\xab\x39\x6b\x39\x87\x72\x8e\xe5\x3c\x93\x73\x3a\xe7\x62\xce\xab\x39\xaf" "\xe5\xbc\x9e\xf3\x46\xce\x9b\x39\x57\x73\xde\xca\xd9\xca\x19\xf6\x93\x06" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x21\xa9\x44\x11" "\xdf\x8d\x14\x3f\xfc\x75\x2b\xad\x15\x9d\xf3\xcb\x4e\x47\x27\x6f\x39\xce" "\x15\x1e\x6b\xbf\x09\x00\x00\xff\xff\xa1\xf3\x4b\x94", 3127); syz_mount_image(/*fs=*/0x20000c40, /*dir=*/0x20000c80, /*flags=*/0, /*opts=*/0x20000080, /*chdir=*/9, /*size=*/0xc37, /*img=*/0x20000cc0); memcpy((void*)0x200000c0, "./bus\000", 6); syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000c0ul, /*mode=*/0ul); return 0; }