// 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, 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 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; memcpy((void*)0x20000c00, "udf\000", 4); memcpy((void*)0x20000200, "./file1\000", 8); *(uint32_t*)0x200005c0 = 0; memcpy( (void*)0x20000c40, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x92\x22\x65\xb7\x15" "\x13\x3b\x8a\xdd\xc6\xc5\xa6\x2d\x52\x99\xb1\x5c\xfd\x8b\xa9\x58\x85\xbb" "\xaa\x69\xb6\x01\x64\x99\x08\xc5\xdc\x02\x70\x45\xae\xd4\x85\xa9\x25\x41" "\x52\x8d\x6c\xa4\x05\xd3\x4b\x0f\x3d\x04\x28\x8a\x1e\x72\x22\xd0\x1a\x05" "\x52\x34\x30\x9a\x22\xe8\x91\x6d\x5d\x20\xb9\xf8\x50\xe4\xd4\x13\xd1\xc2" "\x46\x50\xf4\xc0\x16\x01\x72\x0a\x18\xcc\xec\x5b\x72\x29\x51\x96\x6c\x8a" "\x12\x69\x7f\x3e\x36\xf5\xdd\x9d\x7d\x6f\xe6\xbd\x37\xeb\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\xbf" "\x72\xf1\xd4\xe9\xf4\xa8\x5b\x01\x00\x3c\x4c\x97\x27\xbf\x7a\xea\x8c\xfb" "\x3f\x00\x7c\xa2\x5c\xf1\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x70\xd0\xa5\x28\xe2\x89\x48\xb1\x70\x79\x23\x4d\x57\xef\x3b\x86\x2e" "\xb5\xda\x37\x6f\x4d\x8d\x8d\xef\x5e\xed\x68\xaa\x6a\xf6\x55\xe5\xcb\x9f" "\xa1\xd3\x67\xce\x9e\xfb\xd2\x0b\xa3\xe7\xbb\xf9\xc1\xf5\x1f\xb4\xa7\xe3" "\xb5\xc9\x2b\x17\x6b\x2f\xcf\xdf\x58\x58\x6c\x2e\x2d\x35\x67\x6b\x53\xed" "\xd6\xcc\xfc\x6c\xf3\xbe\xf7\xb0\xd7\xfa\xb7\x1b\xa9\x06\xa0\x76\xe3\xf5" "\x9b\xb3\xd7\xae\x2d\xd5\xce\x3c\x7f\x76\xc7\xc7\xb7\x86\xdf\x1f\x7c\xfc" "\xf8\xf0\x85\xd1\x67\x4f\x3e\xd3\x2d\x3b\x35\x36\x3e\x3e\xd9\x53\xa6\x7f" "\xe0\x23\x1f\xfd\x0e\x77\x9b\xe1\x71\x24\x8a\x38\x19\x29\x9e\xfb\xde\x4f" "\x52\x23\x22\x8a\xd8\xfb\x58\xdc\xe3\xbb\xb3\xdf\x8e\x56\x9d\x18\xa9\x3a" "\x31\x35\x36\x5e\x75\x64\xae\xd5\x68\x2f\x97\x1f\x4e\x74\x07\xa2\x88\xa8" "\xf5\x54\xaa\x77\xc7\xe8\x21\x9c\x8b\x3d\xa9\x47\xac\x94\xcd\x2f\x1b\x3c" "\x52\x76\x6f\x72\xa1\xb1\xd8\xb8\x3a\xd7\xac\x4d\x34\x16\x97\x5b\xcb\xad" "\xf9\xf6\x44\xea\xb4\xb6\xec\x4f\x2d\x8a\x38\x9f\x22\x56\x23\x62\x7d\xf0" "\xce\xdd\x0d\x44\x11\xfd\x91\xe2\x3b\xc7\x36\xd2\xd5\x88\xe8\xeb\x8e\xc3" "\x17\xab\x89\xc1\x77\x6f\x47\xb1\x8f\x7d\xbc\x0f\x65\x3b\x6b\x03\x11\xab" "\xc5\x21\x38\x67\x07\xd8\x60\x14\xf1\x6a\xa4\xf8\xe9\x3b\x45\xcc\x94\x63" "\x96\x7f\xe2\x0b\x11\xaf\x96\xf9\x83\x88\xb7\xca\x7c\x29\x22\x95\x5f\x8c" "\x73\x11\xef\xed\xf2\x3d\xe2\x70\xea\x8f\x22\xfe\xa2\x3c\xff\x17\x36\xd2" "\x6c\x75\x3d\xe8\x5e\x57\x2e\x7d\xad\xf6\x95\xf6\xb5\xf9\x9e\xb2\xdd\xeb" "\xca\xa1\xbf\x3f\x3c\x4c\x07\xfc\xda\x34\x14\x45\x34\xaa\x2b\xfe\x46\xfa" "\xe8\xbf\xd9\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x41" "\x3b\x1a\x45\x3c\x1d\x29\x5e\xf9\x8f\x3f\xae\xe6\x15\x47\x35\x2f\xfd\xd8" "\x85\xd1\x3f\x18\xfe\xe5\xde\x39\xe3\x4f\xdd\x63\x3f\x65\xd9\xe7\x23\x62" "\xa5\xb8\xbf\x39\xb9\x47\xf2\x14\xe2\x89\x34\x91\xd2\x23\x9e\x4b\xfc\x49" "\x36\x14\x45\xfc\x49\x9e\xff\xf7\xad\x47\xdd\x18\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x80\x4f\xb4\x22\x7e\x1c\x29\x5e\x7c\xf7" "\x44\x5a\x8d\xde\x35\xc5\x5b\xed\xeb\xb5\x2b\x8d\xab\x73\x9d\x55\x61\xbb" "\x6b\xff\x76\xd7\x4c\xdf\xdc\xdc\xdc\xac\xa5\x4e\xd6\x73\x4e\xe7\x5c\xc9" "\xb9\x9a\x73\x2d\xe7\x7a\xce\x28\x72\xfd\x9c\xf5\x9c\xd3\x39\x57\x72\xae" "\xe6\x5c\xcb\xb9\x9e\x33\xfa\x72\xfd\x9c\xf5\x9c\xd3\x39\x57\x72\xae\xe6" "\x5c\xcb\xb9\x9e\x33\xfa\x73\xfd\x9c\xf5\x9c\xd3\x39\x57\x72\xae\xe6\x5c" "\xcb\xb9\x9e\x33\x0e\xc8\xda\xbd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1f\x27\x45\x14\xf1\xf3\x48\xf1\xed\x6f\x6c\xa4\x48\x11\x51\x8f\x98" "\x8e\x4e\xae\x0d\x3e\xea\xd6\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\xc1\x54\xc4\xf7\x23\x45\xed\x0f" "\xeb\x5b\xdb\xfa\x23\x22\x55\xff\x76\x9c\x28\x7f\x39\x17\xf5\x23\x65\x7e" "\x3a\xea\xa3\x65\xbe\x14\xf5\x8b\x39\x1b\x55\xf6\xd7\xbf\xf5\x08\xda\xcf" "\xde\x0c\xa4\x22\x7e\x14\x29\x06\x87\xde\xde\x3a\xe1\xf9\xfc\x0f\x74\xde" "\x6d\x7d\x0d\xe2\xad\x6f\x6e\xbf\xfb\xd5\xfe\x4e\xf6\x75\x3f\x1c\x7e\x7f" "\xf0\xf1\xe3\xc7\x2e\x8c\x8e\xff\xfa\x53\x77\x7b\x9d\x76\x6b\xc0\xc8\xa5" "\x56\xfb\xe6\xad\xda\xd4\xd8\xf8\xf8\x64\xcf\xe6\xfe\x7c\xf4\x4f\xf7\x6c" "\x1b\xce\xc7\x2d\x1e\x4c\xd7\x89\x88\xa5\x37\xde\x7c\xbd\x31\x37\xd7\x5c" "\xf4\xc2\x0b\x2f\xbc\xd8\x7a\xf1\xa8\xaf\x4c\x3c\x0c\xe5\xfd\xff\xbd\x48" "\xf1\x3b\xef\xfe\x67\xf7\x86\xdf\xbd\xff\xff\x52\xe7\xdd\xd6\x1d\x3e\x7e" "\xf6\xa7\xdb\xf7\xff\x17\x6f\xdf\xd1\x3e\xdd\xff\x9f\xe8\xd9\xf6\x62\xfe" "\xdd\xc8\x40\x7f\xc4\xd0\xf2\x8d\x85\x81\xe3\x11\x43\x4b\x6f\xbc\x79\xb2" "\x75\xa3\x71\xbd\x79\xbd\xd9\x3e\x77\xea\xd4\x97\x47\x47\xbf\x7c\xf6\xd4" "\xc0\x91\x88\xa1\x6b\xad\xb9\x66\xcf\xab\x3d\x0f\x15\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xc0\xc3\x95\x8a\xf8\xbd\x48\xd1\xf8\xd1\x46" "\xaa\x45\xc4\xad\x6a\xbe\xd6\xf0\x85\xd1\x67\x4f\x3e\xd3\x17\x7d\xd5\x7c" "\xab\x1d\xf3\xb6\x5e\x9b\xbc\x72\xb1\xf6\xf2\xfc\x8d\x85\xc5\xe6\xd2\x52" "\x73\xb6\x36\xd5\x6e\xcd\xcc\xcf\x36\xef\xf7\x70\x43\xd5\x74\xaf\xa9\xb1" "\xf1\x7d\xe9\xcc\x3d\x1d\xdd\xe7\xf6\x1f\x1d\x7a\x79\x7e\xe1\x8d\xc5\xd6" "\xf5\x3f\x5a\xde\xf5\xf3\xc7\x86\x2e\x5e\x5d\x5a\x5e\x6c\xcc\xec\xfe\x71" "\x1c\x8d\x22\xa2\xde\xbb\x65\xa4\x6a\xf0\xd4\xd8\x78\xd5\xe8\xb9\x56\xa3" "\x5d\x55\x9d\xd8\x75\x32\xdd\x87\x37\x90\x8a\xf8\xaf\x48\x31\x73\xae\x96" "\x3e\x9f\xb7\xe5\xf9\x7f\xb7\xcf\xf0\xdf\x31\xff\x7f\xe5\xf6\x1d\xed\xd3" "\xfc\xbf\x4f\xf5\x6c\x2b\x8f\x99\x52\x11\x3f\x8b\x14\xbf\xfd\x97\x4f\xc5" "\xe7\xab\x76\x3e\x16\x77\x8c\x59\x2e\xf7\xb7\x91\x62\xe4\xfc\xe7\x72\xb9" "\x38\x52\x96\xeb\xb6\xa1\xf3\x5c\x81\xce\xcc\xc0\xb2\xec\xff\x45\x8a\x7f" "\xfc\xf9\xce\xb2\xdd\xf9\x90\x4f\x6c\x97\x3d\x7d\xdf\x03\x7b\x48\x94\xe7" "\xff\x58\xa4\xf8\xfe\x9f\x7f\x37\x7e\x23\x6f\xdb\xf9\xfc\x87\xdd\xcf\xff" "\x63\xb7\xef\x68\x9f\xce\xff\x93\x3d\xdb\x1e\xdb\xf1\xbc\x82\x3d\x77\x9d" "\x7c\xfe\x4f\x46\x8a\x97\x9e\x78\x3b\x7e\x33\x6f\xfb\xa0\xe7\x7f\x74\x9f" "\xbd\x71\x22\x17\xde\x7a\x3e\xc7\x3e\x9d\xff\xcf\xf4\x6c\x1b\xce\xc7\xfd" "\xad\x07\xd3\x75\x00\x00\x00\x00\x00\x00\x00\x00\x80\x43\x6d\x20\x15\xf1" "\x77\x91\xe2\x99\xf1\xfe\xf4\x42\xde\x76\x3f\x7f\xff\x6f\xf6\xf6\x1d\xed" "\xd3\xdf\xff\xfa\x6c\xcf\xb6\xd9\x87\xb4\x5e\xd1\x9e\x07\x15\x00\x00\x00" "\x00\x0e\x88\x81\x54\xc4\x8f\x23\xc5\xf5\xe5\xb7\xb7\xe6\x50\xef\x9c\xff" "\xdd\x33\xff\xf3\x77\xb7\xe7\x7f\x8e\xa5\xdb\x3e\xad\xfe\x9c\xef\x57\xaa" "\xe7\x06\x3c\xc8\x3f\xff\xeb\x35\x9c\x8f\x3b\xbd\xf7\x6e\x03\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x81\x92\x52\x11\x2f\xe4" "\xf5\xd4\xa7\xef\xb1\x9e\xfa\x5a\xa4\x78\xe5\x7f\x9e\xcb\xe5\xd2\xf1\xb2" "\x5c\x77\x1d\xf8\xe1\xea\xd7\xa1\xcb\xf3\xed\x93\x17\xe7\xe6\xe6\x67\x1a" "\xcb\x8d\xab\x73\xcd\xda\xe4\x42\x63\xa6\x59\xd6\x7d\x32\x52\x6c\xfc\xcd" "\xe7\x72\xdd\xa2\x5a\x5f\xbd\xbb\xde\x7c\x67\x8d\xf7\xed\xb5\xd8\x17\x23" "\xc5\xf8\xdf\x77\xcb\x76\xd6\x62\xef\xae\x4d\xfe\xe4\x76\xd9\xd3\x65\xd9" "\x4f\x45\x8a\xff\xfe\x87\x9d\x65\xbb\xeb\x58\x7f\x66\xbb\xec\x99\xb2\xec" "\x5f\x47\x8a\xaf\xff\xf3\xee\x65\x8f\x6f\x97\x3d\x5b\x96\xfd\x6e\xa4\xf8" "\xe1\xd7\x6b\xdd\xb2\x8f\x95\x65\xbb\xcf\x47\xfd\xec\x76\xd9\xe7\x67\xe6" "\xe7\xee\x78\x14\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x7c\x58\x03\xa9\x88\x3f\x8b\x14\xff\x7b\x63\x75\x6b\x2e\x7f\x5e" "\xff\x7f\xa0\xe7\x6d\xe5\xad\x6f\xf6\xac\xf7\x7f\x9b\x5b\xd5\x3a\xff\xc3" "\xd5\xfa\xff\x77\x7b\xfd\x51\xd6\xff\x1f\x7e\x30\xdd\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\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\x43\x25\x45\x11\x6f" "\x46\x8a\x85\xcb\x1b\x69\x6d\xb0\x7c\xdf\x31\x74\xa9\xd5\xbe\x79\x6b\x6a" "\x6c\x7c\xf7\x6a\x47\x53\x55\xb3\xaf\x2a\x5f\xfe\x0c\x9d\x3e\x73\xf6\xdc" "\x97\x5e\x18\x3d\xdf\xcd\x0f\xae\xff\xa0\x3d\x1d\xaf\x4d\x5e\xb9\x58\x7b" "\x79\xfe\xc6\xc2\x62\x73\x69\xa9\x39\x5b\x9b\x6a\xb7\x66\xe6\x67\x9b\xf7" "\xbd\x87\xbd\xd6\xdf\x1e\xba\x8e\x91\x6a\x00\x6a\x37\x5e\xbf\x39\x7b\xed" "\xda\x52\xed\xcc\xf3\x67\x77\x7c\x7c\x6b\xf8\xfd\xc1\xc7\x8f\x0f\x5f\x18" "\x7d\xf6\xe4\x33\xdd\xb2\x53\x63\xe3\xe3\x93\x3d\x65\xfa\x07\x3e\xc4\xd1" "\x3f\x54\xe3\xb6\x1d\x89\x22\xfe\x2a\x52\x3c\xf7\xbd\x9f\xa4\x7f\x19\x8c" "\x28\x62\xef\x63\x71\x8f\xef\xce\x7e\x3b\x5a\x75\x62\xa4\xea\xc4\xd4\xd8" "\x78\xd5\x91\xb9\x56\xa3\xbd\x5c\x7e\x38\xd1\x1d\x88\x22\xa2\xd6\x53\xa9" "\xde\x1d\xa3\x87\x70\x2e\xf6\xa4\x1e\xb1\x52\x36\xbf\x6c\xf0\x48\xd9\xbd" "\xc9\x85\xc6\x62\xe3\xea\x5c\xb3\x36\xd1\x58\x5c\x6e\x2d\xb7\xe6\xdb\x13" "\xa9\xd3\xda\xb2\x3f\xb5\x28\xe2\x7c\x8a\x58\x8d\x88\xf5\xc1\x3b\x77\x37" "\x10\x45\xbc\x1e\x29\xbe\x73\x6c\x23\xfd\xeb\x60\x44\x5f\x77\x1c\xbe\x78" "\x79\xf2\xab\xa7\xce\xdc\xbd\x1d\xc5\x3e\xf6\xf1\x3e\x94\xed\xac\x0d\x44" "\xac\x16\x87\xe0\x9c\x1d\x60\x83\x51\xc4\x3f\x45\x8a\x9f\xbe\x73\x22\xfe" "\x6d\x30\xa2\x3f\x3a\x3f\xf1\x85\x88\x57\xcb\xfc\x41\xc4\x5b\x65\xbe\x14" "\x91\xca\x2f\xc6\xb9\x88\xf7\x76\xf9\x1e\x71\x38\xf5\x47\x11\xff\x5f\x9e" "\xff\x0b\x1b\xe9\x9d\xc1\xf2\x7a\xd0\xbd\xae\x5c\xfa\x5a\xed\x2b\xed\x6b" "\xf3\x3d\x65\xbb\xd7\x95\x43\x7f\x7f\x78\x98\x0e\xf8\xb5\x69\x28\x8a\xf8" "\x61\x75\xc5\xdf\x48\xff\xee\xbf\x6b\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x80\x03\xa4\x88\x5f\x8b\x14\x2f\xbe\x7b\x22\x55\xf3\x83\xb7" "\xe6\x14\xb7\xda\xd7\x6b\x57\x1a\x57\xe7\x3a\xd3\xfa\xba\x73\xff\xba\x73" "\xa6\x37\x37\x37\x37\x6b\xa9\x93\xf5\x9c\xd3\x39\x57\x72\xae\xe6\x5c\xcb" "\xb9\x9e\x33\x8a\x5c\x3f\x67\x3d\xe7\x74\xce\x95\x9c\xab\x39\xd7\x72\xae" "\xe7\x8c\xbe\x5c\x3f\x67\x3d\xe7\x74\xce\x95\x9c\xab\x39\xd7\x72\xae\xe7" "\x8c\xfe\x5c\x3f\x67\x3d\xe7\x74\xce\x95\x9c\xab\x39\xd7\x72\xae\xe7\x8c" "\x03\x32\x77\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xf8\x78\x29\xaa\x7f\x52\x7c\xfb\x1b\x1b\x69\x73\xb0\xb3\xbe\xf4\x74\x74" "\x72\xcd\x7a\xa0\x1f\x7b\xbf\x08\x00\x00\xff\xff\xd6\x4e\xfe\x7a", 3058); syz_mount_image(/*fs=*/0x20000c00, /*dir=*/0x20000200, /*flags=*/0x2000010, /*opts=*/0x200005c0, /*chdir=*/1, /*size=*/0xbf2, /*img=*/0x20000c40); *(uint64_t*)0x20000100 = -1; *(uint64_t*)0x20000108 = -1; syscall(__NR_setrlimit, /*res=*/1ul, /*rlim=*/0x20000100ul); memcpy((void*)0x200002c0, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x200002c0ul, /*flags=*/0x1c1042ul, /*mode=*/0ul); if (res != -1) r[0] = res; memset((void*)0x20000180, 19, 1); syscall(__NR_pwrite64, /*fd=*/r[0], /*buf=*/0x20000180ul, /*count=*/1ul, /*pos=*/0x4010040bffdul); return 0; }