// https://syzkaller.appspot.com/bug?id=29047010c8fc6106059964efd51ff4f88f3b46ba // 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); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000000, "udf\000", 4); memcpy((void*)0x20000f80, "./file0\000", 8); memcpy( (void*)0x20000fc0, "\x78\x9c\xec\xdd\x41\x6c\x1c\xd7\x7d\x07\xe0\xff\x1b\x2d\xc5\x95\x8c\x56" "\x4c\x9c\x28\x4e\x1a\x17\x9b\xb6\x48\x65\xc6\x72\x65\x49\x31\x15\xab\x70" "\x57\x35\xcd\x36\x80\x2c\x13\xa1\x98\x5b\x00\xae\x48\x4a\x5d\x98\x22\x09" "\x92\x6a\x64\x23\x6d\x99\x5e\x7a\xe8\x21\x40\x51\xf4\x90\x13\x81\xd6\x28" "\x90\xa2\x81\xd1\x14\x41\x8f\x4c\xeb\x02\xc9\xc5\x87\x22\xa7\x9e\x88\x16" "\x36\x82\xa2\x07\xb6\x08\x90\x53\xc0\x60\x66\xdf\x52\x4b\x9a\xb4\x19\x51" "\x94\x28\xe9\xfb\x6c\xea\xb7\x3b\xfb\xde\xcc\x7b\xf3\xd6\x33\xb2\xa0\x37" "\x2f\x00\x00\x00\x00\x00\x00\x00\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\x88\xdf\x7f" "\xe5\xd2\x99\xe7\xd3\x83\x6e\x05\x00\x70\x3f\x5d\x19\xfb\xca\x99\xb3\xee" "\xff\x00\xf0\x58\xb9\xea\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xb0\x4b\x51\xc4\x93\x91\x62\xfe\xca\x7a\x9a\xa8\xde\x77\xd4\x2f" "\xb7\xfb\x6e\xdd\x1e\x1f\x1e\xd9\xb9\xda\xb1\x54\xd5\x3c\x52\x95\x2f\x7f" "\xea\xcf\x9f\x3d\x77\xfe\x8b\x2f\x0c\x5d\xe8\xe6\xe5\xf6\xec\x87\xd4\xbf" "\xd7\x3e\x13\xaf\x8d\x5d\xbd\xd4\x78\x79\xee\xe6\xfc\xc2\xf4\xe2\xe2\xf4" "\x54\x63\x7c\xb6\x3d\x39\x37\x35\xbd\xe7\x3d\xec\xb7\xfe\x76\x83\xd5\x09" "\x68\xdc\x7c\xfd\xd6\xd4\xf5\xeb\x8b\x8d\xb3\xcf\x9d\xdb\xf2\xf1\xed\x81" "\xf7\xfb\x9f\x38\x39\x70\x71\xe8\x99\xd3\x4f\x77\xcb\x8e\x0f\x8f\x8c\x8c" "\xdd\x29\x52\xef\x2d\x5f\xbb\xeb\x86\x74\xec\x36\xc3\xe3\x68\x14\x71\x3a" "\x52\x3c\xfb\xdd\x9f\xa4\x56\x44\x14\xb1\xff\x73\x51\xbf\xbf\x63\xbf\xdd" "\xb1\xaa\x13\x83\x55\x27\xc6\x87\x47\xaa\x8e\xcc\xb4\x5b\xb3\x4b\xe5\x87" "\xa3\xdd\x13\x51\x44\x34\x7a\x2a\x35\xbb\xe7\x68\xe7\xb1\x88\x5a\xdf\x7d" "\xed\xc3\xee\x9a\x11\xcb\x65\xf3\xcb\x06\x0f\x96\xdd\x1b\x9b\x6f\x2d\xb4" "\xae\xcd\x4c\x37\x46\x5b\x0b\x4b\xed\xa5\xf6\xdc\xec\x68\xea\xb4\xb6\xec" "\x4f\x23\x8a\xb8\x90\x22\x56\x22\x62\xad\xff\x83\xbb\xeb\x8b\x22\x6a\x91" "\xe2\xdb\x27\xd6\xd3\xb5\x88\x38\xd2\x3d\x0f\x5f\xa8\x26\x06\xef\xde\x8e" "\xe2\x00\xfb\xb8\x07\x65\x3b\x1b\x7d\x11\x2b\xc5\x43\x30\x66\x87\x58\x7f" "\x14\xf1\x6a\xa4\xf8\xe9\x3b\xa7\x62\x32\x5f\x67\xaa\x6b\xcd\xe7\x23\x5e" "\x2d\xf3\xfb\x11\x6f\x95\xf9\x52\x44\x2a\xbf\x18\xe7\x23\xde\xdb\xe1\x7b" "\xc4\xc3\xa9\x16\x45\xfc\x65\x39\xfe\x17\xd7\xd3\x54\x75\x3d\xe8\x5e\x57" "\x2e\x7f\xb5\xf1\xe5\xd9\xeb\x73\x3d\x65\xbb\xd7\x95\x5f\xf2\xfe\xf0\x81" "\x2b\xc5\x03\xba\x3f\x1c\xdb\x96\xf7\xc7\x21\xbf\x36\xd5\xa3\x88\x56\x75" "\xc5\x5f\x4f\x77\xff\x9b\x1d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xee\xb5\x63\x51\xc4\xa7\x23\xc5\x2b\xff\xf1\xc7\xd5\xbc\xe2\xa8" "\xe6\xa5\x9f\xb8\x38\xf4\x07\x03\xbf\xd2\x3b\x67\xfc\xa9\x8f\xd8\x4f\x59" "\xf6\xb9\x88\x58\x2e\xf6\x36\x27\xf7\x68\x9e\x18\x38\x9a\x46\x53\x7a\xc0" "\x73\x89\x1f\x67\xf5\x28\xe2\x4f\xf2\xfc\xbf\x6f\x3e\xe8\xc6\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\xd6\x8a\xf8\x71\xa4" "\x78\xf1\xdd\x53\x69\x25\x7a\xd7\x14\x6f\xcf\xde\x68\x5c\x6d\x5d\x9b\xe9" "\xac\x0a\xdb\x5d\xfb\xb7\xbb\x66\xfa\xc6\xc6\xc6\x46\x23\x75\xb2\x99\x73" "\x22\xe7\x72\xce\x95\x9c\xab\x39\xd7\x3a\x59\xcd\xfb\xaf\xea\x17\xb9\x7e" "\xce\x89\x9c\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19\x47\x72\xfd\x9c\xcd\x9c" "\x13\x39\x97\x73\xae\xe4\x5c\xcd\xb9\x96\x33\x6a\xb9\x7e\xce\x66\xce\x89" "\x9c\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19\x87\x64\xed\x5e\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\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\x47\x49\x11\x45\xfc\x3c\x52\x7c\xeb\xeb\xeb" "\x29\x52\x44\x34\x23\x26\xa2\x93\xab\xfd\x0f\xba\x75\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\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\xa9\x3f\x15" "\xf1\xbd\x48\xd1\xf8\xc3\xe6\xe6\xb6\x5a\x44\xa4\xea\xdf\x8e\x53\xe5\x2f" "\xe7\xa3\x79\xb4\xcc\x8f\x47\x73\xa8\xcc\x97\xa2\x79\x29\x67\xab\xca\x5a" "\xf3\x9b\x0f\xa0\xfd\xec\x4f\x5f\x2a\xe2\x47\x91\xa2\xbf\xfe\xf6\xe6\x80" "\xe7\xf1\xef\xeb\xbc\xdb\xfc\x1a\xc4\x5b\xdf\xb8\xf3\xee\x33\xb5\x4e\x1e" "\xe9\x7e\x38\xf0\x7e\xff\x13\x27\x4f\x5c\x1c\x1a\xf9\xf5\xa7\x76\x7b\x9d" "\x76\x6a\xc0\xe0\xe5\xf6\xec\xad\xdb\x8d\xf1\xe1\x91\x91\xb1\x9e\xcd\xb5" "\x7c\xf4\x8f\xf7\x6c\x1b\xc8\xc7\x2d\xee\x4d\xd7\x89\x88\xc5\x37\xde\x7c" "\xbd\x35\x33\x33\xbd\x70\xf7\x2f\xca\xaf\xc0\x2e\x1f\x6d\x6c\x6c\xfc\x59" "\x79\x94\xfd\x1e\xe2\x90\xbc\x48\xb5\x5d\x7b\xfa\x58\xbe\x28\x87\xf6\x10" "\x34\xe3\x00\x3b\x58\x3b\x14\xcd\x78\x60\x83\xcb\xa3\xae\xbc\xff\xbf\x17" "\x29\x7e\xe7\xdd\xff\xec\xde\xf0\xab\xfb\x7f\x6d\xb3\xc4\xe6\x1d\x3e\x7e" "\xf6\xa7\x77\xee\xff\x2f\x6e\xdf\xd1\x1e\xef\xff\xb5\xed\xf5\xf2\xfd\xbf" "\xbc\xa7\xef\x74\xff\x7f\xb2\x67\xdb\x8b\xf9\x77\x23\x7d\xb5\x88\xfa\xd2" "\xcd\xf9\xbe\x93\x11\xf5\xc5\x37\xde\x3c\xdd\xbe\xd9\xba\x31\x7d\x63\x7a" "\xf6\xfc\x99\x33\x5f\x1a\x1a\xfa\xd2\xb9\x33\x7d\x47\x23\xea\xd7\xdb\x33" "\xd3\x3d\xaf\xf6\x7f\xae\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xee\xab\x54\xc4\xef\x45\x8a\xd6\x8f\xd6\x53\x23\x22\x6e\x57\xf3\xb5" "\x06\x2e\x0e\x3d\x73\xfa\xe9\x23\x71\xa4\x9a\x6f\xb5\x65\xde\xf6\x6b\x63" "\x57\x2f\x35\x5e\x9e\xbb\x39\xbf\x30\xbd\xb8\x38\x3d\xd5\x18\x9f\x6d\x4f" "\xce\x4d\x4d\xef\xf5\x70\xf5\x6a\xba\xd7\xf8\xf0\xc8\x81\x74\xe6\x23\x1d" "\x3b\xe0\xf6\x1f\xab\xbf\x3c\x37\xff\xc6\x42\xfb\xc6\x1f\x2d\xed\xf8\xf9" "\xf1\xfa\xa5\x6b\x8b\x4b\x0b\xad\xc9\x9d\x3f\x8e\x63\x51\x44\x34\x7b\xb7" "\x0c\x56\x0d\x1e\x1f\x1e\xa9\x1a\x3d\xd3\x6e\xcd\x56\x55\x47\x77\x9c\x4c" "\xff\xcb\xeb\x4b\x45\xfc\x57\xa4\x98\x3c\xdf\x48\x9f\xcb\xdb\xf2\xfc\xff" "\xed\x33\xfc\xb7\xcc\xff\x5f\xde\xbe\xa3\x03\x9a\xff\xff\xb1\x9e\x6d\xe5" "\x31\x53\x2a\xe2\x67\x91\xe2\xb7\xff\xea\xa9\xf8\x5c\xd5\xce\xe3\xf1\x81" "\x73\x96\xcb\xfd\x5d\xa4\x18\xbc\xf0\xd9\x5c\x2e\x8e\x96\xe5\xba\x6d\xe8" "\x3c\x57\xa0\x33\x33\xb0\x2c\xfb\x7f\x91\xe2\x9f\x7e\xbe\xb5\x6c\x77\x3e" "\xe4\x93\x77\xca\x3e\xbf\xe7\x13\xfb\x90\x28\xc7\xff\x44\xa4\xf8\xde\x5f" "\x7c\x27\x7e\x23\x6f\xdb\xfa\xfc\x87\x9d\xc7\xff\xf8\xf6\x1d\x1d\xd0\xf8" "\x7f\xa2\x67\xdb\xf1\x2d\xcf\x2b\xd8\x77\xd7\xc9\xe3\x7f\x3a\x52\xbc\xf4" "\xe4\xdb\xf1\x9b\x79\xdb\x87\x3d\xff\xa3\xfb\xec\x8d\x53\xb9\xf0\xe6\xf3" "\x39\x0e\x68\xfc\x3f\xd9\xb3\x6d\x20\x1f\xf7\xb7\xee\x4d\xd7\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x1e\x6a\x7d\xa9\x88\xbf\x8f\x14\x3f\x18\xa9\xa5" "\x17\xf2\xb6\xbd\xfc\xfd\xbf\xa9\xed\x3b\x3a\xa0\xbf\xff\xf5\xa9\x9e\x6d" "\x53\xf7\x66\xbd\xa2\x8f\x7c\xb1\xef\x93\x0a\x00\x00\x00\x00\x87\x44\x5f" "\x2a\xe2\xc7\x91\xe2\xc6\xd2\xdb\x9b\x73\xa8\xb7\xce\xff\xee\x99\xff\xf9" "\xbb\x77\xe6\x7f\x0e\xa7\x6d\x9f\x56\x7f\xce\xf7\xab\xd5\x73\x03\xee\xe5" "\x9f\xff\xf5\x1a\xc8\xc7\x9d\xd8\x7f\xb7\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xe0\x50\x49\xa9\x88\x17\xf2\x7a\xea\x13\xd5" "\x7c\xfe\xa9\x5d\xd7\x53\x5f\x8d\x14\xaf\xfc\xcf\xb3\xb9\x5c\x3a\x59\x96" "\xeb\xae\x03\x3f\x50\xfd\x5a\xbf\x32\x37\x7b\xfa\xd2\xcc\xcc\xdc\x64\x6b" "\xa9\x75\x6d\x66\xba\x31\x36\xdf\x9a\x9c\x2e\xeb\x7e\x22\x52\xac\xff\xed" "\x67\x73\xdd\xa2\x5a\x5f\xbd\xbb\xde\x7c\x67\x8d\xf7\x7a\x2d\x22\xaa\xb5" "\xd8\x17\x22\xc5\xc8\x3f\x74\xcb\x76\xd6\x62\xef\xae\x4d\xde\x59\x0f\xbc" "\xb3\x16\x7b\x59\xf6\x63\x91\xe2\xbf\xff\x71\x6b\xd9\xee\x3a\xd6\x9f\xbc" "\x53\xf6\x6c\x59\xf6\x6f\x22\xc5\xd7\xfe\x65\xe7\xb2\x27\xef\x94\x3d\x57" "\x96\xfd\x4e\xa4\xf8\xe1\xd7\x1a\xdd\xb2\xc7\xcb\xb2\xdd\xe7\xa3\x7e\xea" "\x4e\xd9\xe7\x26\xe7\x8a\x03\x18\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x1e\x37\x7d\xa9\x88\x3f\x8f\x14\xff\x7b\x73\x65" "\x73\x2e\x7f\x5e\xff\xbf\xaf\xe7\x6d\xe5\xad\x6f\xf4\xac\xf7\xbf\xcd\xed" "\x6a\x9d\xff\x81\x6a\xfd\xff\xdd\x5e\xdf\xcd\xfa\xff\xd5\x73\x05\x96\x77" "\x3b\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x9a\x52\x14\xf1\x66\xa4\x98\xbf\xb2\x9e\x56\xfb\xcb\xf7\x1d\xf5" "\xcb\xed\xd9\x5b\xb7\xc7\x87\x47\x76\xae\x76\x2c\x55\x35\x8f\x54\xe5\xcb" "\x9f\xfa\xf3\x67\xcf\x9d\xff\xe2\x0b\x43\x17\xba\xf9\xe1\xf5\xef\xb5\x4f" "\xc7\x6b\x63\x57\x2f\x35\x5e\x9e\xbb\x39\xbf\x30\xbd\xb8\x38\x3d\xd5\x18" "\x9f\x6d\x4f\xce\x4d\x4d\xef\x79\x0f\xbb\xd7\xaf\xdf\x55\x8b\x06\xab\x13" "\xd0\xb8\xf9\xfa\xad\xa9\xeb\xd7\x17\x1b\x67\x9f\x3b\xb7\xe5\xe3\xdb\x03" "\xef\xf7\x3f\x71\x72\xe0\xe2\xd0\x33\xa7\x9f\xee\x96\x1d\x1f\x1e\x19\x19" "\xeb\x29\x53\xeb\xbb\xab\x23\xef\x28\xed\xb2\xfd\x68\x14\xf1\xd7\x91\xe2" "\xd9\xef\xfe\x24\xfd\xa0\x3f\xa2\x88\x0f\x3d\x17\x7b\xf2\x11\xdf\x9d\x83" "\x76\xac\xea\xc4\x60\xd5\x89\xf1\xe1\x91\xaa\x23\x33\xed\xd6\xec\x52\xf9" "\xe1\x68\xf7\x44\x14\x11\x8d\x9e\x4a\xcd\xee\x39\xba\x0f\x63\xb1\x2f\xcd" "\x88\xe5\xb2\xf9\x65\x83\x07\xcb\xee\x8d\xcd\xb7\x16\x5a\xd7\x66\xa6\x1b" "\xa3\xad\x85\xa5\xf6\x52\x7b\x6e\x76\x34\x75\x5a\x5b\xf6\xa7\x11\x45\x5c" "\x48\x11\x2b\x11\xb1\xd6\xff\xc1\xdd\xf5\x45\x11\xaf\x47\x8a\x6f\x9f\x58" "\x4f\xff\xda\x1f\x71\xa4\x7b\x1e\xbe\x70\x65\xec\x2b\x67\xce\xee\xde\x8e" "\xe2\x00\xfb\xb8\x07\x65\x3b\x1b\x7d\x11\x2b\xc5\x43\x30\x66\x87\x58\x7f" "\x14\xf1\xcf\x91\xe2\xa7\xef\x9c\x8a\x7f\xeb\x8f\xa8\x45\xe7\x27\x3e\x1f" "\xf1\x6a\x99\xdf\x8f\x78\x2b\x3a\xe3\x9d\xca\x2f\xc6\xf9\x88\xf7\x76\xf8" "\x1e\xf1\x70\xaa\x45\x11\xff\x5f\x8e\xff\xc5\xf5\xf4\x4e\x7f\x79\x3d\xe8" "\x5e\x57\x2e\x7f\xb5\xf1\xe5\xd9\xeb\x73\x3d\x65\xbb\xd7\x95\x87\xfe\xfe" "\x70\x3f\x1d\xf2\x6b\x53\x3d\x8a\xf8\x61\x75\xc5\x5f\x4f\xff\xee\xbf\x6b" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x43\xa4\x88\x5f\x8b" "\x14\x2f\xbe\x7b\x2a\x55\xf3\x83\x37\xe7\x14\xb7\x67\x6f\x34\xae\xb6\xae" "\xcd\x74\xa6\xf5\x75\xe7\xfe\x75\xe7\x4c\x6f\x6c\x6c\x6c\x34\x52\x27\x9b" "\x39\x27\x72\x2e\xe7\x5c\xc9\xb9\x9a\x73\x2d\x67\x14\xb9\x7e\xce\x66\x99" "\xf5\x8d\x8d\x89\xfc\x7e\x39\xe7\x4a\xce\xd5\x9c\x6b\x39\xe3\x48\xae\x9f" "\xb3\x99\x73\x22\xe7\x72\xce\x95\x9c\xab\x39\xd7\x72\x46\x2d\xd7\xcf\xd9" "\xcc\x39\x91\x73\x39\xe7\x4a\xce\xd5\x9c\x6b\x39\xe3\x90\xcc\xdd\x03\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x2d\x45\xf5\x4f" "\x8a\x6f\x7d\x7d\x3d\x6d\xf4\x77\xd6\x97\x9e\x88\x4e\xae\x5a\x0f\xf4\x91" "\xf7\x8b\x00\x00\x00\xff\xff\xca\x2b\xf4\x57", 3143); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000f80, /*flags=MS_REC*/ 0x4000, /*opts=*/0x20002480, /*chdir=*/2, /*size=*/0xc47, /*img=*/0x20000fc0); *(uint64_t*)0x20000100 = -1; *(uint64_t*)0x20000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x20000100ul); 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=S_IWOTH|S_IROTH|S_IXUSR*/ 0x46ul); if (res != -1) r[0] = res; syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x8002007ffbul); return 0; }