// 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=*/0x3ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x400000000000ul, /*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=*/0x400001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x400000000000, "udf\000", 4); memcpy((void*)0x4000000000c0, "./file0\000", 8); memcpy((void*)0x400000002300, "uid", 3); *(uint8_t*)0x400000002303 = 0x3d; sprintf((char*)0x400000002304, "%020llu", (long long)0); *(uint8_t*)0x400000002318 = 0x2c; memcpy((void*)0x400000002319, "uid=forget", 10); *(uint8_t*)0x400000002323 = 0x2c; memcpy((void*)0x400000002324, "utf8", 4); *(uint8_t*)0x400000002328 = 0x2c; memcpy((void*)0x400000002329, "longad", 6); *(uint8_t*)0x40000000232f = 0x2c; memcpy((void*)0x400000002330, "volume", 6); *(uint8_t*)0x400000002336 = 0x3d; sprintf((char*)0x400000002337, "%020llu", (long long)0xe); *(uint8_t*)0x40000000234b = 0x2c; memcpy((void*)0x40000000234c, "undelete", 8); *(uint8_t*)0x400000002354 = 0x2c; memcpy((void*)0x400000002355, "gid", 3); *(uint8_t*)0x400000002358 = 0x3d; sprintf((char*)0x400000002359, "%020llu", (long long)0); *(uint8_t*)0x40000000236d = 0x2c; memcpy((void*)0x40000000236e, "iocharset", 9); *(uint8_t*)0x400000002377 = 0x3d; memcpy((void*)0x400000002378, "maccenteuro", 11); *(uint8_t*)0x400000002383 = 0x2c; memcpy((void*)0x400000002384, "gid=ignore", 10); *(uint8_t*)0x40000000238e = 0x2c; memcpy((void*)0x40000000238f, "noadinicb", 9); *(uint8_t*)0x400000002398 = 0x2c; memcpy((void*)0x400000002399, "novrs", 5); *(uint8_t*)0x40000000239e = 0x2c; memcpy((void*)0x40000000239f, "novrs", 5); *(uint8_t*)0x4000000023a4 = 0x2c; memcpy((void*)0x4000000023a5, "lastblock", 9); *(uint8_t*)0x4000000023ae = 0x3d; sprintf((char*)0x4000000023af, "%020llu", (long long)0x101); *(uint8_t*)0x4000000023c3 = 0x2c; memcpy((void*)0x4000000023c4, "uid=ignore", 10); *(uint8_t*)0x4000000023ce = 0x2c; memcpy((void*)0x4000000023cf, "nostrict", 8); *(uint8_t*)0x4000000023d7 = 0x2c; *(uint8_t*)0x4000000023d8 = 0; memcpy( (void*)0x400000002640, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x2e\xc5\xa5\xdc\x56" "\x4c\xec\x28\x4e\x1a\x17\x9b\xb6\x48\x65\xc5\x72\xf5\x2f\xa6\x6c\x15\xee" "\xaa\xa6\xd9\x06\x90\x65\x21\x14\x73\x0b\xc0\x95\x48\xa9\x0b\x53\x24\x41" "\x52\x8d\x6c\xa4\x05\xd3\x4b\x0f\x3d\x04\x28\x8a\x1e\x72\x22\xd0\x1a\x05" "\x52\x34\x35\x9a\x22\xe8\x91\x69\x5d\x20\xb9\xf8\x50\xe4\xd4\x13\xd1\xc2" "\x46\x50\xf4\xc0\x16\x01\x72\x32\x58\xcc\xec\x5b\x71\x49\x91\x96\x2c\x8a" "\x12\x25\x7f\x3e\x36\xf5\xdd\x7d\xfb\xde\xec\x7b\x33\xab\x19\x8a\xe0\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\xbd" "\x7a\xee\xf8\x89\x74\x7b\x79\xb1\xb5\xa0\xf6\x80\x3a\x04\x00\xec\xb9\x0b" "\x63\x5f\x3b\x7e\x72\x9b\xeb\x3f\x00\xf0\xf8\xba\xb4\xc3\xbf\xff\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x7d\x23\x45\x11\x4f\x46\x8a\xb9" "\x0b\x6b\x69\xa2\x7a\xde\x51\x3f\xdf\xee\xbf\x71\x73\x7c\x64\x74\xfb\x66" "\x83\xa9\x6a\xd9\x57\xd5\x2f\xbf\xea\x27\x4e\x9e\x3a\xfd\x95\x17\x86\xcf" "\x74\xf3\x7c\x7b\xe6\x23\xda\xdf\x6f\x9f\x8f\xd7\xc7\x2e\x9d\x6b\xbc\x32" "\x7b\x7d\x6e\x7e\x6a\x61\x61\x6a\xb2\x31\x3e\xd3\xbe\x32\x3b\x39\x75\xd7" "\x5b\xd8\x6d\xfb\xad\x8e\x56\x3b\xa0\x71\xfd\x8d\x1b\x93\x57\xaf\x2e\x34" "\x4e\x3e\x7f\x6a\xd3\xcb\x37\x87\x3e\x18\x78\xe2\xf0\xd0\xd9\xe1\x67\x8f" "\x3d\xd3\xad\x3b\x3e\x32\x3a\x3a\xb6\x51\xa5\xde\x5b\x7f\xb7\x77\x5f\xd8" "\x69\x86\xc7\x81\x28\xe2\x58\xa4\x78\xee\xfb\x3f\x4b\xad\xee\x6d\x1f\x76" "\xb9\x2f\xea\x0f\xf6\xd8\x6f\x35\x58\x0d\xe2\x68\x35\x88\xf1\x91\xd1\x6a" "\x20\xd3\xed\xd6\xcc\x62\xf9\xe2\xc5\xee\x8e\x28\x22\x1a\x3d\x8d\x9a\xdd" "\x7d\xb4\xfd\xb1\x88\x5a\xff\x03\x1d\xc3\xce\x9a\x11\x4b\x65\xf7\xcb\x0e" "\x1f\x2d\x87\x37\x36\xd7\x9a\x6f\x5d\x9e\x9e\x6a\x5c\x6c\xcd\x2f\xb6\x17" "\xdb\xb3\x33\x17\x53\xa7\xb7\xe5\x78\x1a\x51\xc4\x99\x14\xb1\x1c\x11\xab" "\x03\xb7\x6f\xae\x3f\x8a\xa8\x45\x8a\xef\x1e\x5a\x4b\x97\x23\xa2\xaf\xbb" "\x1f\xbe\x5c\x4d\x0c\xde\xb9\x1f\xb7\xdd\x1f\xe4\xc1\x2a\xfb\xd9\xe8\x8f" "\x58\x2e\x1e\x81\x63\xb6\x8f\x0d\x44\x11\xaf\x45\x8a\x9f\xbf\x7b\x24\xae" "\xe4\xf3\x4c\x75\xae\xf9\x52\xc4\x6b\x65\xfe\x30\xe2\xed\x32\x5f\x8e\x48" "\xe5\x07\xe3\x74\xc4\xfb\xdb\x7c\x8e\x78\x34\xd5\xa2\x88\x3f\x2f\x8f\xff" "\xd9\xb5\x34\x59\x9d\x0f\xba\xe7\x95\xf3\x5f\x6f\x7c\x75\xe6\xea\x6c\x4f" "\xdd\xee\x79\xe5\x63\x5e\x1f\x6e\x3b\x53\x3c\xa4\xeb\xc3\xe0\x96\x7c\x30" "\xf6\xf9\xb9\xa9\x1e\x45\xb4\xaa\x33\xfe\x5a\xba\xf7\x6f\x76\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb8\xdf\x06\xa3\x88\xcf\x45\x8a" "\x57\xff\xfd\x8f\xaa\x79\xc5\x51\xcd\x4b\x3f\x74\x76\xf8\xf7\x87\x7e\xb9" "\x77\xce\xf8\xd3\x77\xd8\x4e\x59\xf7\xf9\x88\x58\x2a\xee\x6e\x4e\xee\x81" "\x3c\x31\xf0\x62\xba\x98\xd2\x43\x9e\x4b\xfc\x49\x56\x8f\x22\xfe\x38\xcf" "\xff\xfb\xf6\xc3\xee\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xc0\x27\x5a\x11\x3f\x8d\x14\x2f\xbd\x77\x24\x2d\x47\xef\x9a\xe2" "\xed\x99\x6b\x8d\xc1\x88\xe8\xac\x0a\xdb\x5d\xfb\xb7\xbb\x66\xfa\xfa\xfa" "\xfa\x7a\x23\x75\xb2\x99\x73\x22\xe7\x52\xce\xe5\x9c\x2b\x39\x57\x73\x46" "\x91\xdb\xe7\x6c\xe6\x9c\xc8\xb9\x94\x73\x39\xe7\x4a\xce\xd5\x9c\xd1\x97" "\xdb\xe7\x6c\xe6\x9c\xc8\xb9\x94\x73\x39\xe7\x4a\xce\xd5\x9c\x51\xcb\xed" "\x73\x36\x73\x4e\xe4\x5c\xca\xb9\x9c\x73\x25\xe7\x6a\xce\xd8\x27\x6b\xf7" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x4e\x8a\x28\xe2\xc3\x48" "\xf1\x9d\x6f\xae\xa5\x48\x11\xd1\x8c\x98\x88\x4e\xae\x0c\x3c\xec\xde\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\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xa5\x81\x54\xc4\x0f\x22\x45\xe3\x0f\x9a\xb7\xca\x6a\x11\x91\xaa\xff" "\x3b\x8e\x94\x7f\x9c\x8e\xe6\x81\x32\x3f\x1d\xcd\xe1\x32\x5f\x8e\xe6\xb9" "\x9c\xad\x2a\x6b\xcd\x6f\x3f\x84\xfe\xb3\x3b\xfd\xa9\x88\x9f\x44\x8a\x81" "\xfa\x3b\xb7\x0e\x78\x3e\xfe\xfd\x9d\x67\xb7\x3e\x06\xf1\xf6\xb7\x36\x9e" "\x7d\xbe\xd6\xc9\xbe\xee\x8b\x43\x1f\x0c\x3c\x71\xf8\xd0\xd9\xe1\xd1\x5f" "\x7b\x7a\xa7\xc7\x69\xbb\x0e\x1c\x3d\xdf\x9e\xb9\x71\xb3\x31\x3e\x32\x3a" "\x3a\xd6\x53\x5c\xcb\xef\xfe\xe9\x9e\xb2\xa1\xfc\xbe\xc5\xfd\x19\x3a\x11" "\xb1\xf0\xe6\x5b\x6f\xb4\xa6\xa7\xa7\xe6\xef\xfd\x41\xf9\x11\xd8\x45\xf3" "\x47\xe8\x41\xaa\x7d\x8c\x91\x16\xfb\xa3\xcf\x9f\xe8\x07\xdd\xb3\xd3\xbd" "\x6e\x27\x6a\xfb\x61\x14\x0f\xe7\xc1\x9d\xce\x1c\x87\xfa\xf6\xfe\xec\xc4" "\x5e\x2b\xaf\xff\xef\x47\x8a\xdf\x7e\xef\x3f\xba\x17\xfc\xce\xf5\xbf\x1e" "\xbf\xd4\x79\xb6\x71\x98\x7f\xf1\x27\x1b\xd7\xff\x97\xb6\x6e\xe8\x2e\xaf" "\xff\xb5\xad\xed\xf2\xf5\xbf\xbc\xa6\x6f\x77\xfd\x7f\xb2\xa7\xec\xa5\xfc" "\xdd\x48\x7f\x2d\xa2\xbe\x78\x7d\xae\xff\x70\x44\x7d\xe1\xcd\xb7\x8e\xb5" "\xaf\xb7\xae\x4d\x5d\x9b\x9a\x39\x7d\xfc\xf8\x8b\xc3\xc3\x2f\x9e\x3a\xde" "\x7f\x20\xa2\x7e\xb5\x3d\x3d\xd5\xf3\xe8\xbe\xec\x2e\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x80\x07\x27\x15\xf1\xbb\x91\xa2\xf5\x93\xb5" "\xd4\x88\x88\x9b\xd5\x7c\xad\xa1\xb3\xc3\xcf\x1e\x7b\xa6\x2f\xfa\xaa\xf9" "\x56\x9b\xe6\x6d\xbf\x3e\x76\xe9\x5c\xe3\x95\xd9\xeb\x73\xf3\x53\x0b\x0b" "\x53\x93\x8d\xf1\x99\xf6\x95\xd9\xc9\xa9\xbb\x7d\xbb\x7a\x35\xdd\x6b\x7c" "\x64\x74\x4f\x06\x73\x47\x83\x7b\xdc\xff\xc1\xfa\x2b\xb3\x73\x6f\xce\xb7" "\xaf\xfd\xe1\xe2\xb6\xaf\x1f\xac\x9f\xbb\xbc\xb0\x38\xdf\xba\xb2\xfd\xcb" "\x31\x18\x45\x44\xb3\xb7\xe4\x68\xd5\xe1\xf1\x91\xd1\xaa\xd3\xd3\xed\xd6" "\x4c\xd5\xf4\xe2\xb6\x93\xe9\x3f\xbe\xfe\x54\xc4\x7f\x46\x8a\x2b\xa7\x1b" "\xe9\x8b\xb9\x2c\xcf\xff\xdf\x3a\xc3\x7f\xd3\xfc\xff\xa5\xad\x1b\xda\xa3" "\xf9\xff\x9f\xea\x29\x2b\xdf\x33\xa5\x22\x7e\x11\x29\x7e\xeb\x2f\x9e\x8e" "\x2f\x56\xfd\x3c\x18\xb7\xed\xb3\x5c\xef\x6f\x22\xc5\xd1\x33\x5f\xc8\xf5" "\xe2\x40\x59\xaf\xdb\x87\xce\x7d\x05\x3a\x33\x03\xcb\xba\xff\x1b\x29\xfe" "\xf1\xc3\xcd\x75\xbb\xf3\x21\x9f\xdc\xa8\x7b\xe2\xae\x77\xec\x23\xa2\x3c" "\xfe\x87\x22\xc5\x0f\xfe\xec\x7b\xf1\xeb\xb9\x6c\xf3\xfd\x1f\xb6\x3f\xfe" "\x07\xb7\x6e\xe8\x5e\x8f\xff\xfa\x47\x1f\xff\xa7\x7a\xca\x0e\x6e\xba\x5f" "\xc1\xae\x87\x4e\x3e\xfe\xc7\x22\xc5\xcb\x4f\xbe\x13\xbf\x91\xcb\x3e\xea" "\xfe\x1f\xdd\x7b\x6f\x1c\xc9\x95\x6f\xdd\x9f\x63\x8f\xfe\xfe\x7f\xa6\xa7" "\x6c\x28\xbf\xef\x6f\xde\x9f\xa1\x03\x00\x00\x00\x00\x00\x00\x00\x00\x3c" "\xd2\xfa\x53\x11\x7f\x1b\x29\x7e\x34\x5a\x4b\x2f\xe4\xb2\xbb\xf9\xfd\xbf" "\xc9\xad\x1b\xda\xa3\xdf\xff\xfa\x6c\x4f\xd9\xe4\xfd\x59\xaf\xe8\x8e\x0f" "\x76\xbd\x53\x01\x00\x00\x00\x60\x9f\xe8\x4f\x45\xfc\x34\x52\x5c\x5b\x7c" "\xe7\xd6\x1c\xea\xcd\xf3\xbf\x7b\xe6\x7f\xfe\xce\xc6\xfc\xcf\x91\xb4\xe5" "\xd5\xea\xe7\x7c\xbf\x52\xdd\x37\xe0\x7e\xfe\xfc\xaf\xd7\x50\x7e\xdf\x89" "\xdd\x0f\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xf6\x95\x94\x8a\x78\x21\xaf\xa7\x3e\x51\xcd\xe7\x9f\xdc\x71\x3d\xf5\x95" "\x48\xf1\xea\x7f\x3f\x97\xeb\xa5\xc3\x65\xbd\xee\x3a\xf0\x43\xd5\x9f\xf5" "\x0b\xb3\x33\xc7\xce\x4d\x4f\xcf\x5e\x69\x2d\xb6\x2e\x4f\x4f\x35\xc6\xe6" "\x5a\x57\xa6\xca\xb6\x4f\x45\x8a\xb5\xbf\xfe\x42\x6e\x5b\x54\xeb\xab\x77" "\xd7\x9b\xef\xac\xf1\xbe\xb1\x16\xfb\x7c\xa4\x18\xfd\xbb\x6e\xdd\xce\x5a" "\xec\xdd\xb5\xc9\x9f\xda\xa8\x7b\xa2\xac\xfb\xa9\x48\xf1\x5f\x7f\xbf\xb9" "\x6e\x77\x1d\xeb\xcf\x6c\xd4\x3d\x59\xd6\xfd\xab\x48\xf1\x8d\x7f\xde\xbe" "\xee\xe1\x8d\xba\xa7\xca\xba\xdf\x8b\x14\x3f\xfe\x46\xa3\x5b\xf7\x60\x59" "\xb7\x7b\x7f\xd4\xcf\x6e\xd4\x7d\xfe\xca\x6c\xb1\x07\x47\x05\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x4f\x9a\xfe\x54\xc4\x9f" "\x46\x8a\xff\xb9\xbe\x7c\x6b\x2e\x7f\x5e\xff\xbf\xbf\xe7\x69\xe5\xed\x6f" "\xf5\xac\xf7\xbf\xc5\xcd\x6a\x9d\xff\xa1\x6a\xfd\xff\x9d\x1e\xdf\xcb\xfa" "\xff\xd5\x7d\x05\x96\x76\x7a\x57\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\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\x3c\xa5\x28\xe2\xad\x48\x31\x77\x61\x2d" "\xad\x0c\x94\xcf\x3b\xea\xe7\xdb\x33\x37\x6e\x8e\x8f\x8c\x6e\xdf\x6c\x30" "\x55\x2d\xfb\xaa\xfa\xe5\x57\xfd\xc4\xc9\x53\xa7\xbf\xf2\xc2\xf0\x99\x6e" "\x7e\x74\xfb\xfb\xed\x73\xf1\xfa\xd8\xa5\x73\x8d\x57\x66\xaf\xcf\xcd\x4f" "\x2d\x2c\x4c\x4d\x36\xc6\x67\xda\x57\x66\x27\xa7\xee\x7a\x0b\xbb\x6d\xbf" "\xd5\xd1\x6a\x07\x34\xae\xbf\x71\x63\xf2\xea\xd5\x85\xc6\xc9\xe7\x4f\x6d" "\x7a\xf9\xe6\xd0\x07\x03\x4f\x1c\x1e\x3a\x3b\xfc\xec\xb1\x67\xba\x75\xc7" "\x47\x46\x47\xc7\x7a\xea\xd4\xfa\xef\xf9\xdd\x6f\x93\x76\x28\x3f\x10\x45" "\xfc\x65\xa4\x78\xee\xfb\x3f\x4b\x3f\x1a\x88\x28\x62\xf7\xfb\xe2\x0e\x9f" "\x9d\xbd\x36\x58\x0d\xe2\x68\x35\x88\xf1\x91\xd1\x6a\x20\xd3\xed\xd6\xcc" "\x62\xf9\xe2\xc5\xee\x8e\x28\x22\x1a\x3d\x8d\x9a\xdd\x7d\xf4\x00\x8e\xc5" "\xae\x34\x23\x96\xca\xee\x97\x1d\x3e\x5a\x0e\x6f\x6c\xae\x35\xdf\xba\x3c" "\x3d\xd5\xb8\xd8\x9a\x5f\x6c\x2f\xb6\x67\x67\x2e\xa6\x4e\x6f\xcb\xf1\x34" "\xa2\x88\x33\x29\x62\x39\x22\x56\x07\x6e\xdf\x5c\x7f\x14\xf1\x46\xa4\xf8" "\xee\xa1\xb5\xf4\x2f\x03\x11\x7d\xdd\xfd\xf0\xe5\x0b\x63\x5f\x3b\x7e\x72" "\xe7\x7e\x14\x7b\x38\xc6\xcd\xd6\xfb\xb6\x29\x2c\xcb\x1a\xfd\x11\xcb\xc5" "\xc7\x3d\x66\xeb\xeb\xeb\xeb\x7b\xd7\xd9\x47\xcd\x40\x14\xf1\x4f\x91\xe2" "\xe7\xef\x1e\x89\x7f\x1d\x88\xa8\x45\xe7\x2b\xbe\x14\xf1\x5a\xbc\xf8\x0f" "\xf1\xc3\x88\xb7\xa3\x73\xbc\x53\xf9\xc1\x38\x1d\xf1\xfe\x36\x9f\x23\x1e" "\x4d\xb5\x28\xe2\xff\xca\xe3\x7f\x76\x2d\xbd\x3b\x50\x9e\x0f\xba\xe7\x95" "\xf3\x5f\x6f\x7c\x75\xe6\xea\x6c\x4f\xdd\xee\x79\xe5\x91\xbf\x3e\x3c\x48" "\xfb\xfc\x7a\x52\x8f\x22\x7e\x5c\x9d\xf1\xd7\xd2\xbf\xf9\x7b\x0d\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x8f\x14\xf1\xab\x91\xe2\xa5" "\xf7\x8e\xa4\x6a\x7e\xf0\xad\x39\xc5\xed\x99\x6b\x8d\x4b\xad\xcb\xd3\x9d" "\x69\x7d\xdd\xb9\x7f\xdd\x39\xd3\xeb\xeb\xeb\xeb\x8d\xd4\xc9\x66\xce\x89" "\x9c\x4b\x39\x97\x73\xae\xe4\x5c\xcd\x19\x45\x6e\x9f\xb3\x59\x66\x7d\x7d" "\x7d\x22\x3f\x5f\xca\xb9\x9c\x73\x25\xe7\x6a\xce\xe8\xcb\xed\x73\x36\x73" "\x4e\xe4\x5c\xca\xb9\x9c\x73\x25\xe7\x6a\xce\xa8\xe5\xf6\x39\x9b\x39\x27" "\x72\x2e\xe5\x5c\xce\xb9\x92\x73\x35\x67\xec\x93\xb9\x7b\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xe3\xa5\xa8\xfe\x4b\xf1\x9d" "\x6f\xae\xa5\xf5\x81\xce\xfa\xd2\x13\xd1\xc9\x15\xeb\x81\x3e\xf6\xfe\x3f" "\x00\x00\xff\xff\x6e\xf6\xfa\x28", 3158); syz_mount_image(/*fs=*/0x400000000000, /*dir=*/0x4000000000c0, /*flags=MS_LAZYTIME|MS_SYNCHRONOUS*/ 0x2000010, /*opts=*/0x400000002300, /*chdir=*/1, /*size=*/0xc56, /*img=*/0x400000002640); *(uint64_t*)0x400000000100 = -1; *(uint64_t*)0x400000000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x400000000100ul); memcpy((void*)0x4000000000c0, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x4000000000c0ul, /*flags=O_NONBLOCK|O_NOCTTY|O_NOATIME|O_LARGEFILE|O_CREAT|0x82002*/ 0xca942ul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x8002007ffbul); return 0; }