// https://syzkaller.appspot.com/bug?id=127fa0ac195cfd85a8c02f1f2485d6d48772bf7b // 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; *(uint64_t*)0x20000100 = -1; *(uint64_t*)0x20000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x20000100ul); memcpy((void*)0x20000000, "udf\000", 4); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x20000240, "uid=forget", 10); *(uint8_t*)0x2000024a = 0x2c; memcpy((void*)0x2000024b, "iocharset", 9); *(uint8_t*)0x20000254 = 0x3d; memcpy((void*)0x20000255, "macceltic", 9); *(uint8_t*)0x2000025e = 0x2c; memcpy((void*)0x2000025f, "gid=forget", 10); *(uint8_t*)0x20000269 = 0x2c; memcpy((void*)0x2000026a, "longad", 6); *(uint8_t*)0x20000270 = 0x2c; memcpy((void*)0x20000271, "mode", 4); *(uint8_t*)0x20000275 = 0x3d; sprintf((char*)0x20000276, "%023llo", (long long)8); *(uint8_t*)0x2000028d = 0x2c; memcpy((void*)0x2000028e, "nostrict", 8); *(uint8_t*)0x20000296 = 0x2c; memcpy((void*)0x20000297, "volume", 6); *(uint8_t*)0x2000029d = 0x3d; sprintf((char*)0x2000029e, "%020llu", (long long)7); *(uint8_t*)0x200002b2 = 0x2c; memcpy((void*)0x200002b3, "uid=forget", 10); *(uint8_t*)0x200002bd = 0x2c; *(uint8_t*)0x200002be = 0; memcpy( (void*)0x200002c0, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x2e\x45\xd2\x6e\x2b" "\x26\x4e\x54\xbb\x8d\x8b\x4d\x5b\xa4\x32\x63\xb9\xb2\xa4\x98\x8a\x55\xb8" "\xab\x9a\x66\x1b\x40\x96\x89\x50\xcc\x2d\x00\x57\xe4\x4a\x5d\x98\x5a\x12" "\x24\xd5\xc8\x6e\xda\x30\xbd\xf4\xd0\x43\x80\xa2\xe8\x21\x27\x02\xad\x51" "\x20\x45\x03\xa3\x29\x8a\x1e\xd9\xd6\x05\x92\x8b\x0f\x85\x4f\x3d\x11\x2d" "\x6c\x04\x45\x0f\x6c\x11\x20\xa7\x80\xc5\xcc\xbe\x15\x57\xff\x2c\xc9\x24" "\x25\xca\xfe\x7c\x6c\xea\x3b\x3b\xfb\xde\xcc\x7b\x33\xe3\x19\x59\xd0\x9b" "\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\xc4\xef\xbc" "\x72\xf6\xf8\xf3\xe9\x61\xb7\x02\x00\x78\x90\xce\x4f\x7f\xf5\xf8\x09\xcf" "\x7f\x00\xf8\x44\xb9\xe0\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xa0\x4b\x51\xc4\x13\x91\x62\xe9\xfc\x56\x9a\xad\x3e\x77\x0d\x9f" "\x6b\x77\xae\x5e\x9b\x99\x98\xbc\x7d\xb5\x91\x54\xd5\x1c\xa8\xca\x97\x3f" "\xc3\xcf\x9f\x38\x79\xea\x4b\x2f\x8c\x9f\xee\xe5\x87\xd7\xdf\x6b\x4f\xc5" "\x6b\xd3\x17\xce\xd6\x5f\x5e\xbc\xb2\xb4\xdc\x5a\x59\x69\xcd\xd7\x67\x3a" "\xed\xb9\xc5\xf9\xd6\x3d\x6f\x61\xb7\xf5\x6f\x36\x56\x1d\x80\xfa\x95\xd7" "\xaf\xce\x5f\xba\xb4\x52\x3f\xf1\xdc\xc9\x1b\xbe\xbe\x36\xfa\xc1\xd0\xe3" "\x47\x46\xcf\x8c\x3f\x73\xec\xe9\x5e\xd9\x99\x89\xc9\xc9\xe9\xbe\x32\xb5" "\xc1\x8f\xbc\xf7\x5b\xdc\x69\x84\xc7\xa1\x28\xe2\x58\xa4\x78\xf6\xfb\x3f" "\x4e\xcd\x88\x28\x62\xf7\xc7\xe2\x2e\xd7\xce\x7e\x1b\xa9\x3a\x31\x56\x75" "\x62\x66\x62\xb2\xea\xc8\x42\xbb\xd9\x59\x2d\xbf\x9c\xea\x1d\x88\x22\xa2" "\xde\x57\xa9\xd1\x3b\x46\x0f\xe0\x5c\xec\x4a\x23\x62\xad\x6c\x7e\xd9\xe0" "\xb1\xb2\x7b\xd3\x4b\xcd\xe5\xe6\xc5\x85\x56\x7d\xaa\xb9\xbc\xda\x5e\x6d" "\x2f\x76\xa6\x52\xb7\xb5\x65\x7f\xea\x51\xc4\xe9\x14\xb1\x1e\x11\x9b\x43" "\xb7\x6e\x6e\x30\x8a\xa8\x45\x8a\xef\x1e\xde\x4a\x17\x23\x62\xa0\x77\x1c" "\xbe\x58\x0d\x0c\xbe\x73\x3b\x8a\x7d\xec\xe3\x3d\x28\xdb\x59\x1f\x8c\x58" "\x2f\x1e\x81\x73\x76\x80\x0d\x45\x11\xaf\x46\x8a\x9f\xbc\x53\xc4\x5c\x79" "\xcc\xf2\x4f\x7c\x21\xe2\xd5\x32\xff\x31\xe2\xad\x32\x5f\x8a\x48\xe5\x85" "\x71\x2a\xe2\xfd\xea\x3a\x1a\x79\xc8\x2d\x67\x2f\xd4\xa2\x88\x3f\x2b\xcf" "\xff\x99\xad\x34\x5f\xdd\x0f\x7a\xf7\x95\x73\x5f\xab\x7f\xa5\x73\x69\xb1" "\xaf\x6c\xef\xbe\xf2\xc8\x3f\x1f\x1e\xa4\x03\x7e\x6f\x1a\x8e\x22\x9a\xd5" "\x1d\x7f\x2b\x7d\xf4\xdf\xec\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xb0\xd7\x46\xa2\x88\xa7\x22\xc5\x2b\xff\xfe\x07\xd5\xb8\xe2\xa8" "\xc6\xa5\x1f\x3e\x33\xfe\xbb\xa3\x3f\xdf\x3f\x66\xfc\xc9\xbb\x6c\xa7\x2c" "\xfb\x5c\x44\xac\x15\xf7\x36\x26\xf7\x50\x1e\x42\x3c\x95\xa6\x52\x7a\xc8" "\x63\x89\x3f\xc9\x86\xa3\x88\x3f\xca\xe3\xff\xbe\xfd\xb0\x1b\x03\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x89\x56\xc4\x7b\x91" "\xe2\xc5\x77\x8f\xa6\xf5\xe8\x9f\x53\xbc\xdd\xb9\x5c\xbf\xd0\xbc\xb8\xd0" "\x9d\x15\xb6\x37\xf7\x6f\x6f\xce\xf4\xed\xed\xed\xed\x7a\xea\x66\x23\xe7" "\x6c\xce\xb5\x9c\xeb\x39\x37\x72\x6e\xe6\x8c\x22\xd7\xcf\xd9\xc8\x39\x9b" "\x73\x2d\xe7\x7a\xce\x8d\x9c\x9b\x39\x63\x20\xd7\xcf\xd9\xc8\x39\x9b\x73" "\x2d\xe7\x7a\xce\x8d\x9c\x9b\x39\xa3\x96\xeb\xe7\x6c\xe4\x9c\xcd\xb9\x96" "\x73\x3d\xe7\x46\xce\xcd\x9c\x71\x40\xe6\xee\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\xf8\x38\x29\xa2\x88\x9f\x45\x8a\xef\x7c\x63\x2b\x45\x8a" "\x88\x46\xc4\x6c\x74\x73\x63\xa8\x57\x06\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x98\x86\x52\x11\x3f\x88" "\x14\xf5\xdf\x6b\x5c\x5f\x57\x8b\x88\x54\xfd\xdb\x75\xb4\xfc\xe5\x54\x34" "\x0e\x95\xf9\xe9\x68\x8c\x97\xf9\x52\x34\xce\xe6\x6c\x56\x59\x6b\x7c\xfb" "\x21\xb4\x9f\xdd\x19\x4c\x45\xfc\x28\x52\x0c\x0d\xbf\x7d\xfd\x84\xe7\xf3" "\x3f\xd8\xfd\x74\xfd\x32\x88\xb7\xbe\xb9\xf3\xe9\x97\x6a\xdd\x1c\xe8\x7d" "\x39\xfa\xc1\xd0\xe3\x47\x0e\x9f\x19\x9f\xfc\x95\x27\xef\xb4\x9c\x6e\xd7" "\x80\xb1\x73\xed\xce\xd5\x6b\xf5\x99\x89\xc9\xc9\xe9\xbe\xd5\xb5\xbc\xf7" "\x4f\xf7\xad\x1b\xcd\xfb\x2d\xf6\xa6\xeb\x44\xc4\xca\x1b\x6f\xbe\xde\x5c" "\x58\x68\x2d\x5b\xf8\x64\x2c\xd4\xba\x0b\xb5\xd8\xd3\x2d\x8f\x44\xec\xed" "\x06\xf7\x6e\xa1\xd6\x5d\xc8\xf7\xab\x78\xe8\xed\xb9\xc3\x42\xe3\x60\x34" "\x63\x67\x21\xaa\x7b\xff\x6d\xef\xd9\x7c\x6c\x94\xcf\xff\xf7\x23\xc5\x6f" "\xbe\xfb\x1f\xbd\x07\x7e\xef\xf9\xff\x73\xdd\x4f\xd7\x9f\xf0\xf1\xd3\x3f" "\xde\x79\xfe\xbf\x78\xf3\x86\xf6\xe9\xf9\xff\x44\xdf\xba\x17\xf3\xef\x46" "\x06\x6b\x11\xc3\xab\x57\x96\x06\x8f\x44\x0c\xaf\xbc\xf1\xe6\xb1\xf6\x95" "\xe6\xe5\xd6\xe5\x56\xe7\xd4\xf1\xe3\x5f\x1e\x1f\xff\xf2\xc9\xe3\x83\x87" "\x22\x86\x2f\xb5\x17\x5a\x7d\x4b\xbb\x3e\x54\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x0f\x56\x2a\xe2\xb7\x23\x45\xf3\x47\x5b\xa9\x1e" "\x11\xd7\xaa\xf1\x5a\xa3\x67\xc6\x9f\x39\xf6\xf4\x40\x0c\x54\xe3\xad\x6e" "\x18\xb7\xf5\xda\xf4\x85\xb3\xf5\x97\x17\xaf\x2c\x2d\xb7\x56\x56\x5a\xf3" "\xf5\x99\x4e\x7b\x6e\x71\xbe\x75\xaf\xbb\x1b\xae\x86\x7b\xcd\x4c\x4c\xee" "\x4b\x67\xee\x6a\x64\x9f\xdb\x3f\x32\xfc\xf2\xe2\xd2\x1b\xcb\xed\xcb\xbf" "\xbf\x7a\xdb\xef\x1f\x1b\x3e\x7b\x71\x65\x75\xb9\x39\x77\xfb\xaf\x63\x24" "\x8a\x88\x46\xff\x9a\xb1\xaa\xc1\x33\x13\x93\x55\xa3\x17\xda\xcd\x4e\x55" "\x75\x6a\x8f\x06\x66\x0e\xa6\x22\xfe\x33\x52\xcc\x9d\xaa\xa7\xcf\xe7\x75" "\x79\xfc\x5f\x19\xef\x0d\xf6\x95\xed\x1f\xff\xbf\xd6\xb7\xbe\x5a\xde\xa7" "\xf1\x7f\x9f\xba\x69\x3f\x29\x15\xf1\xd3\x48\xf1\x1b\x7f\xfe\x64\x7c\xbe" "\x6a\xe7\x63\x71\xcb\x31\xcb\xe5\xfe\x3a\x52\x8c\x9d\xfe\x5c\x2e\x17\x87" "\xca\x72\xbd\x36\x74\xdf\x2b\xd0\x1d\x19\x58\x96\xfd\xdf\x48\xf1\xf7\x3f" "\xbb\xb1\x6c\xaf\xef\x4f\xec\x94\x7d\xfe\xfe\x8e\xee\xc1\x57\x9e\xff\xc3" "\x91\xe2\x07\x7f\xfa\xbd\xf8\xd5\xbc\xee\xc6\xf7\x3f\xec\x8c\xff\xec\x3f" "\xff\x8f\xdd\xbc\xa1\x7d\x3a\xff\x9f\xe9\x5b\xf7\xd8\x0d\xef\x2b\xd8\x75" "\xd7\xc9\xe7\xff\x58\xa4\x78\xe9\x89\xb7\xe3\xd7\xf2\xba\x0f\x7b\xff\x47" "\x11\xdb\xdb\xdb\xdf\x8a\x38\x9a\x0b\x5f\x7f\x3f\xc7\x3e\x9d\xff\xcf\xf6" "\xad\x1b\x8d\xee\x7e\x7f\x7d\xef\xba\x0f\x00\x00\x00\x00\x00\x00\x00\x00" "\xf0\xc8\x1a\x4c\x45\xfc\x4d\xa4\x78\x7a\xb2\x96\x5e\xc8\xeb\xee\xe5\xef" "\xff\xcd\xdf\xbc\xa1\x7d\xfa\xfb\x5f\xbf\xd8\xb7\x6e\xfe\x01\xcd\x57\xb4" "\xeb\x83\x0a\x00\x00\x00\x00\x07\xc4\x60\x2a\xe2\xbd\x48\x71\x79\xf5\xed" "\xeb\x63\xa8\xfb\xc6\x7f\xdf\x38\xfe\xf3\xb7\x76\xe6\x5e\x9f\x48\x37\x7d" "\x5b\xfd\x39\xdf\x2f\x54\xef\x0d\xd8\xcb\x3f\xff\xeb\x37\x9a\xf7\x3b\xbb" "\xfb\x6e\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0" "\x81\x92\x52\x11\x2f\xe4\xf9\xd4\x67\xef\x32\x9f\xfa\x46\xa4\x78\xe5\xbf" "\x9f\xcd\xe5\xd2\x91\xb2\x5c\x6f\x1e\xf8\xd1\xea\xd7\xe1\xf3\x8b\x9d\x63" "\x67\x17\x16\x16\xe7\x9a\xab\xcd\x8b\x0b\xad\xfa\xf4\x52\x73\xae\x55\xd6" "\xfd\x4c\xa4\xd8\xfa\xab\xcf\xe5\xba\x45\x35\xbf\x7a\x6f\xbe\xf9\xee\x1c" "\xef\xc3\xdb\xbd\xb9\xd8\x97\x23\xc5\xe4\xdf\xf6\xca\x76\xe7\x62\xef\xcd" "\x4d\xde\x9d\x0f\xbc\x3b\x17\x7b\x59\xf6\x53\x91\xe2\xbf\xfe\xee\xc6\xb2" "\xbd\x79\xac\x3f\xbb\x53\xf6\x44\x59\xf6\x2f\x23\xc5\xd7\xff\xe9\xf6\x65" "\x8f\xec\x94\x3d\x59\x96\xfd\x5e\xa4\xf8\xe1\xd7\xeb\xbd\xb2\x8f\x95\x65" "\x7b\xef\x47\xed\xbe\x93\x74\xb8\x16\x0b\xad\xe7\xe6\x16\x17\x6e\x79\x15" "\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xdc\xaf" "\xc1\x54\xc4\x9f\x44\x8a\xff\xb9\xb2\x1e\x6b\x79\xd8\x7f\x9e\xff\xbf\x37" "\x03\x7f\xad\x57\xf6\xad\x6f\xf6\xcd\xf7\x7f\x93\x6b\xd5\x3c\xff\xa3\xd5" "\xfc\xff\x77\x5a\xfe\x28\xf3\xff\x8f\xee\x59\x4f\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\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\xd1\x91\xa2\x88\x37\x23" "\xc5\xd2\xf9\xad\xb4\x31\x54\x7e\xee\x1a\x3e\xd7\xee\x5c\xbd\x36\x33\x31" "\x79\xfb\x6a\x23\xa9\xaa\x39\x50\x95\x2f\x7f\x86\x9f\x3f\x71\xf2\xd4\x97" "\x5e\x18\x3f\xdd\xcb\x0f\xaf\xbf\xd7\x9e\x8a\xd7\xa6\x2f\x9c\xad\xbf\xbc" "\x78\x65\x69\xb9\xb5\xb2\xd2\x9a\xaf\xcf\x74\xda\x73\x8b\xf3\xad\x7b\xde" "\xc2\x6e\xeb\xef\x1c\xba\xae\xb1\xea\x00\xd4\xaf\xbc\x7e\x75\xfe\xd2\xa5" "\x95\xfa\x89\xe7\x4e\xde\xf0\xf5\xb5\xd1\x0f\x86\x1e\x3f\x32\x7a\x66\xfc" "\x99\x63\x4f\xf7\xca\xce\x4c\x4c\x4e\x4e\xf7\x95\xa9\x0d\xde\xc7\xde\xef" "\xab\x71\x3b\x0e\x45\x11\x7f\x11\x29\x9e\xfd\xfe\x8f\xd3\x3f\x0f\x45\x14" "\xb1\xfb\x63\x71\x97\x6b\x67\xbf\x8d\x54\x9d\x18\xab\x3a\x31\x33\x31\x59" "\x75\x64\xa1\xdd\xec\xac\x96\x5f\x4e\xf5\x0e\x44\x11\x51\xef\xab\xd4\xe8" "\x1d\xa3\x07\x70\x2e\x76\xa5\x11\xb1\x56\x36\xbf\x6c\xf0\x58\xd9\xbd\xe9" "\xa5\xe6\x72\xf3\xe2\x42\xab\x3e\xd5\x5c\x5e\x6d\xaf\xb6\x17\x3b\x53\xa9" "\xdb\xda\xb2\x3f\xf5\x28\xe2\x74\x8a\x58\x8f\x88\xcd\xa1\x5b\x37\x37\x18" "\x45\xbc\x1e\x29\xbe\x7b\x78\x2b\xfd\xcb\x50\xc4\x40\xef\x38\x7c\xf1\xfc" "\xf4\x57\x8f\x9f\xb8\x73\x3b\x8a\x7d\xec\xe3\x3d\x28\xdb\x59\x1f\x8c\x58" "\x2f\x1e\x81\x73\x76\x80\x0d\x45\x11\xff\x10\x29\x7e\xf2\xce\xd1\xf8\xd7" "\xa1\x88\x5a\x74\x7f\xe2\x0b\x11\xaf\xf6\x17\x7c\x29\x22\x95\x17\xc6\xa9" "\x88\xf7\x6f\x73\x1d\xf1\x68\xaa\x45\x11\xff\x57\x9e\xff\x33\x5b\xe9\x9d" "\xa1\xf2\x7e\xd0\xbb\xaf\x9c\xfb\x5a\xfd\x2b\x9d\x4b\x8b\x7d\x65\x7b\xf7" "\x95\x83\xf4\x7c\xd8\xbe\xff\x6b\x71\x64\x0f\x76\x7b\xef\x0e\xf8\xbd\x69" "\x38\x8a\xf8\x61\x75\xc7\xdf\x4a\xff\xe6\xbf\x6b\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x80\x03\xa4\x88\x5f\x8e\x14\x2f\xbe\x7b\x34\x55" "\xe3\x83\xaf\x8f\x29\x6e\x77\x2e\xd7\x2f\x34\x2f\x2e\x74\x87\xf5\xf5\xc6" "\xfe\xd5\x23\xfe\xb0\xcc\xed\xed\xed\xed\x7a\xea\x66\x23\xe7\x6c\xce\xb5" "\x9c\xeb\x39\x37\x72\x6e\xe6\x8c\x22\xd7\xcf\xd9\xc8\x39\x9b\x73\x2d\xe7" "\x7a\xce\x8d\x9c\x9b\x39\x63\x20\xd7\xcf\xd9\xc8\x39\x9b\x73\x2d\xe7\x7a" "\xce\x8d\x9c\x9b\x39\xa3\x56\xc5\xf6\xf6\xf6\xb7\xba\xf5\x6b\xb9\x7e\xce" "\xb5\x9c\xeb\xb5\x88\xa2\xac\x9f\x3f\x6f\xe6\x8c\x03\x32\x76\x0f\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x78\x29\xaa\x7f\x52" "\x7c\xe7\x1b\x5b\xa9\x9a\x4b\xb5\x11\x31\x1b\xdd\xdc\x30\x1f\xe8\xc7\xde" "\xff\x07\x00\x00\xff\xff\xde\xc7\xfe\xc4", 3124); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000080, /*flags=MS_SILENT|MS_NOSUID|MS_DIRSYNC*/ 0x8082, /*opts=*/0x20000240, /*chdir=*/0xfc, /*size=*/0xc34, /*img=*/0x200002c0); memcpy((void*)0x200000c0, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x200000c0ul, /*flags=O_NONBLOCK|O_NOCTTY|O_NOATIME|O_LARGEFILE|O_CREAT|0x82002*/ 0xca942ul, /*mode=*/0ul); if (res != -1) r[0] = res; memset((void*)0x20000000, 43, 1); syscall(__NR_pwrite64, /*fd=*/r[0], /*buf=*/0x20000000ul, /*count=*/1ul, /*pos=*/0x4010000bffdul); return 0; }