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