// https://syzkaller.appspot.com/bug?id=f565c7045a5cc93357674a7b43a461113a4da945 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; memcpy((void*)0x20000f00, "udf\000", 4); memcpy((void*)0x20000000, "./file1\000", 8); memcpy((void*)0x20000980, "lastblock=00000000000000000003,uid=", 35); sprintf((char*)0x200009a3, "%020llu", (long long)0); memcpy((void*)0x200009b7, ",dmode=00000000000000000000003,gid=", 35); sprintf((char*)0x200009da, "%020llu", (long long)0); memcpy((void*)0x200009ee, "\x00\x00\x01\x00\x00\xd7\x3b\xb6\xf2\x9f\x34\xad\x19\x51\xbf\x70\x8f" "\xbf\xa7\xe0\x7b\x4a\x2e\xf0\xf1\x7a\x88\xff\xf1\xfd\x2e\x93\x5d\x49" "\x73\x43\x5b\x53\x19\x53\x28\x6d\x99\x0d\x1d\x18\x5f\xf8\x80\x3f\x45" "\xea\x7a\xad\x17\x83\x3f\xf3\xd5\xf7\xee\xf2\xa2\xbd\x4f\x4a\xdd\x59" "\x99\x95\xf8\x9f\xb0\x22\x35\xfe\xc8\x88\x9a\x7c\xf8\x08\xa8\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 99); sprintf((char*)0x20000a51, "%020llu", (long long)0); memcpy((void*)0x20000a65, ",adinicb,session=00000000000000000000,anchor=00000000000000032767," "umask=00000000000000000007002,\000", 97); memcpy( (void*)0x20001b00, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x2d\xc5\x95\xdc\x56" "\x4c\xec\x28\x4e\x1a\x17\x9b\xb6\x48\x65\xc6\x72\xf5\x2f\xa6\x62\x15\xce" "\xaa\xa6\xd9\x06\x90\x65\x22\x14\x73\x0b\xc0\x15\x49\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\x30\x9a\x22\xe8\x91\x69\x5d\x20\xb9\xf8\x50\xe4\xd4\x13\xd1\xc2" "\x46\x50\xf4\xc0\x16\x01\x72\x0a\x58\xcc\xec\x5b\x71\x45\x91\x36\x2d\x8a" "\x12\x65\x7d\x3e\x36\xf5\xdd\x9d\x79\x6f\xf6\xbd\x79\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\xb0\x5b\x01\x00\x3c\x48\x97\xc7\xbe\x76\xea\x8c\xfb" "\x3f\x00\x3c\x56\xae\xf8\xff\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x38\xe8\x52\x14\xf1\x64\xa4\x98\xbf\xbc\x9e\x26\xaa\xf7\x1d\xf5\x4b" "\xed\xbe\x9b\xb7\xc6\x87\x47\xb6\xaf\x76\x24\x55\x35\x0f\x55\xe5\xcb\x9f" "\xfa\xe9\x33\x67\xcf\x7d\xe9\x85\xa1\xf3\xdd\xbc\xd4\x9e\xfd\x80\xfa\xf7" "\xdb\x67\xe3\xb5\xb1\x2b\x17\x1b\x2f\xcf\xdd\x98\x5f\x98\x5e\x5c\x9c\x9e" "\x6a\x8c\xcf\xb6\x27\xe7\xa6\xa6\x77\x7d\x84\xbd\xd6\xdf\x6a\xb0\x3a\x01" "\x8d\x1b\xaf\xdf\x9c\xba\x76\x6d\xb1\x71\xe6\xf9\xb3\x77\xec\xbe\x35\xf0" "\x7e\xff\x13\xc7\x07\x2e\x0c\x3d\x7b\xf2\x99\x6e\xd9\xf1\xe1\x91\x91\xb1" "\xcd\x22\xf5\xde\xf2\xb5\x7b\x6e\x48\xc7\x4e\x33\x3c\x0e\x47\x11\x27\x23" "\xc5\x73\xdf\xff\x59\x6a\x45\x44\x11\x7b\x3f\x17\xf5\x07\x3b\xf6\x5b\x1d" "\xa9\x3a\x31\x58\x75\x62\x7c\x78\xa4\xea\xc8\x4c\xbb\x35\xbb\x54\xee\x1c" "\xed\x9e\x88\x22\xa2\xd1\x53\xa9\xd9\x3d\x47\xdb\x8f\x45\xd4\xfa\x1e\x68" "\x1f\x76\xd6\x8c\x58\x2e\x9b\x5f\x36\x78\xb0\xec\xde\xd8\x7c\x6b\xa1\x75" "\x75\x66\xba\x31\xda\x5a\x58\x6a\x2f\xb5\xe7\x66\x47\x53\xa7\xb5\x65\x7f" "\x1a\x51\xc4\xf9\x14\xb1\x12\x11\x6b\xfd\x77\x1f\xae\x2f\x8a\xa8\x45\x8a" "\xef\x1e\x5b\x4f\x57\x23\xe2\x50\xf7\x3c\x7c\xb1\x9a\x18\xbc\x73\x3b\x8a" "\x7d\xec\xe3\x2e\x94\xed\x6c\xf4\x45\xac\x14\x8f\xc0\x98\x1d\x60\xfd\x51" "\xc4\xab\x91\xe2\xe7\xef\x9c\x88\xc9\x7c\x9d\xa9\xae\x35\x5f\x88\x78\xb5" "\xcc\x1f\x46\xbc\x55\xe6\x4b\x11\xa9\xfc\x62\x9c\x8b\x78\x6f\x9b\xef\x11" "\x8f\xa6\x5a\x14\xf1\x17\xe5\xf8\x5f\x58\x4f\x53\xd5\xf5\xa0\x7b\x5d\xb9" "\xf4\xf5\xc6\x57\x67\xaf\xcd\xf5\x94\xed\x5e\x57\x3e\xe2\xfd\xe1\xae\x2b" "\xc5\x43\xba\x3f\x1c\xd9\x92\x0f\xc6\x01\xbf\x36\xd5\xa3\x88\x56\x75\xc5" "\x5f\x4f\xf7\xfe\x9b\x1d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xee\xb7\x23\x51\xc4\x67\x22\xc5\x2b\xff\xfe\xc7\xd5\xbc\xe2\xa8\xe6" "\xa5\x1f\xbb\x30\xf4\x07\x03\xbf\xda\x3b\x67\xfc\xe9\x0f\x39\x4e\x59\xf6" "\xf9\x88\x58\x2e\x76\x37\x27\xf7\x70\x9e\x18\x38\x9a\x46\x53\x7a\xc8\x73" "\x89\x1f\x67\xf5\x28\xe2\x4f\xf2\xfc\xbf\x6f\x3f\xec\xc6\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\xd6\x8a\xf8\x69\xa4\x78" "\xf1\xdd\x13\x69\x25\x7a\xd7\x14\x6f\xcf\x5e\x6f\x5c\x69\x5d\x9d\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\x72\x46\x91\xeb\xe7\x6c\xe6\x9c\xc8\xb9" "\x9c\x73\x25\xe7\x6a\xce\xb5\x9c\x71\x28\xd7\xcf\xd9\xcc\x39\x91\x73\x39" "\xe7\x4a\xce\xd5\x9c\x6b\x39\xa3\x96\xeb\xe7\x6c\xe6\x9c\xc8\xb9\x9c\x73" "\x25\xe7\x6a\xce\xb5\x9c\x71\x40\xd6\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\x5f\x46\x8a\xef\x7c\x73\x3d\x45\x8a\x88" "\x66\xc4\x44\x74\x72\xb5\xff\x61\xb7\x0e\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x28\xf5\xa7\x22\x7e\x10\x29" "\x1a\x7f\xd8\xbc\xbd\xad\x16\x11\xa9\xfa\xb7\xe3\x44\xf9\xcb\xb9\x68\x1e" "\x2e\xf3\x93\xd1\x1c\x2a\xf3\xa5\x68\x5e\xcc\xd9\xaa\xb2\xd6\xfc\xf6\x43" "\x68\x3f\x7b\xd3\x97\x8a\xf8\x49\xa4\xe8\xaf\xbf\x7d\x7b\xc0\xf3\xf8\xf7" "\x75\xde\xdd\xfe\x1a\xc4\x5b\xdf\xda\x7c\xf7\xd9\x5a\x27\x0f\x75\x77\x0e" "\xbc\xdf\xff\xc4\xf1\x63\x17\x86\x46\x7e\xe3\xe9\x9d\x5e\xa7\xed\x1a\x30" "\x78\xa9\x3d\x7b\xf3\x56\x63\x7c\x78\x64\x64\xac\x67\x73\x2d\x7f\xfa\x27" "\x7b\xb6\x0d\xe4\xcf\x2d\xee\x4f\xd7\x89\x88\xc5\x37\xde\x7c\xbd\x35\x33" "\x33\xbd\x70\xef\x2f\xca\xaf\xc0\x1e\xaa\x3f\x42\x2f\x52\xed\x71\xe9\xa9" "\x17\xd5\x8b\xa8\x1d\x88\x66\x3c\x9c\xbe\xf3\x18\x28\xef\xff\xef\x45\x8a" "\xdf\x7d\xf7\x3f\xba\x37\xfc\xce\xfd\xbf\x1e\xbf\xd2\x79\x77\xfb\x0e\x1f" "\xbf\xf8\xd3\xcd\xfb\xff\x8b\x5b\x0f\xb4\xcb\xfb\x7f\x6d\x6b\xbd\x7c\xff" "\x2f\xef\xe9\xdb\xdd\xff\x9f\xec\xd9\xf6\x62\xfe\xdd\x48\x5f\x2d\xa2\xbe" "\x74\x63\xbe\xef\x78\x44\x7d\xf1\x8d\x37\x4f\xb6\x6f\xb4\xae\x4f\x5f\x9f" "\x9e\x3d\x77\xea\xd4\x97\x87\x86\xbe\x7c\xf6\x54\xdf\xe1\x88\xfa\xb5\xf6" "\xcc\x74\xcf\xab\xfb\x72\xba\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x1e\x9c\x54\xc4\x57\x22\x45\xeb\x27\xeb\xa9\x11\x11\xb7\xaa\xf9" "\x5a\x03\x17\x86\x9e\x3d\xf9\xcc\xa1\x38\x54\xcd\xb7\xba\x63\xde\xf6\x6b" "\x63\x57\x2e\x36\x5e\x9e\xbb\x31\xbf\x30\xbd\xb8\x38\x3d\xd5\x18\x9f\x6d" "\x4f\xce\x4d\x4d\xef\xf6\xe3\xea\xd5\x74\xaf\xf1\xe1\x91\x7d\xe9\xcc\x87" "\x3a\xb2\xcf\xed\x3f\x52\x7f\x79\x6e\xfe\x8d\x85\xf6\xf5\x3f\x5a\xda\x76" "\xff\xd1\xfa\xc5\xab\x8b\x4b\x0b\xad\xc9\xed\x77\xc7\x91\x28\x22\x9a\xbd" "\x5b\x06\xab\x06\x8f\x0f\x8f\x54\x8d\x9e\x69\xb7\x66\xab\xaa\xa3\xdb\x4e" "\xa6\xff\xe8\xfa\x52\x11\xff\x19\x29\x26\xcf\x35\xd2\xe7\xf3\xb6\x3c\xff" "\x7f\xeb\x0c\xff\x3b\xe6\xff\x2f\x6f\x3d\xd0\x3e\xcd\xff\xff\x44\xcf\xb6" "\xf2\x33\x53\x2a\xe2\x17\x91\xe2\x77\xfe\xf2\xe9\xf8\x7c\xd5\xce\xa3\x71" "\xd7\x39\xcb\xe5\xfe\x36\x52\x0c\x9e\xff\x5c\x2e\x17\x87\xcb\x72\xdd\x36" "\x74\x9e\x2b\xd0\x99\x19\x58\x96\xfd\xdf\x48\xf1\x8f\xbf\xbc\xb3\x6c\x77" "\x3e\xe4\x93\x9b\x65\x4f\xef\xfa\xc4\x3e\x22\xca\xf1\x3f\x16\x29\x7e\xf0" "\xe7\xdf\x8b\xdf\xcc\xdb\xee\x7c\xfe\xc3\xf6\xe3\x7f\x74\xeb\x81\xf6\x69" "\xfc\x9f\xea\xd9\x76\xf4\x8e\xe7\x15\xec\xb9\xeb\xe4\xf1\x3f\x19\x29\x5e" "\x7a\xf2\xed\xf8\xad\xbc\xed\x83\x9e\xff\xd1\x7d\xf6\xc6\x89\x5c\xf8\xf6" "\xf3\x39\xf6\x69\xfc\x3f\xd5\xb3\x6d\x20\x7f\xee\x6f\xdf\x9f\xae\x03\x00" "\x00\x00\x00\x00\x00\x00\x00\x3c\xd2\xfa\x52\x11\x7f\x17\x29\x7e\x34\x52" "\x4b\x2f\xe4\x6d\xbb\xf9\xfb\x7f\x53\x5b\x0f\xb4\x4f\x7f\xff\xeb\xd3\x3d" "\xdb\xa6\xee\xcf\x7a\x45\x1f\xfa\x62\xcf\x27\x15\x00\x00\x00\x00\x0e\x88" "\xbe\x54\xc4\x4f\x23\xc5\xf5\xa5\xb7\x6f\xcf\xa1\xbe\x73\xfe\x77\xcf\xfc" "\xcf\xdf\xdb\x9c\xff\x39\x9c\xb6\xec\xad\xfe\x9c\xef\xd7\xaa\xe7\x06\xdc" "\xcf\x3f\xff\xeb\x35\x90\x3f\x77\x62\xef\xdd\x06\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x80\x03\x25\xa5\x22\x5e\xc8\xeb\xa9\x4f" "\x54\xf3\xf9\xa7\x76\x5c\x4f\x7d\x35\x52\xbc\xf2\xdf\xcf\xe5\x72\xe9\x78" "\x59\xae\xbb\x0e\xfc\x40\xf5\x6b\xfd\xf2\xdc\xec\xc9\x8b\x33\x33\x73\x93" "\xad\xa5\xd6\xd5\x99\xe9\xc6\xd8\x7c\x6b\x72\xba\xac\xfb\x54\xa4\x58\xff" "\x9b\xcf\xe5\xba\x45\xb5\xbe\x7a\x77\xbd\xf9\xce\x1a\xef\x9b\x6b\xb1\x2f" "\x44\x8a\x91\xbf\xef\x96\xed\xac\xc5\xde\x5d\x9b\xfc\xa9\xcd\xb2\xa7\xcb" "\xb2\x9f\x88\x14\xff\xf5\x0f\x77\x96\xed\xae\x63\xfd\xa9\xcd\xb2\x67\xca" "\xb2\x7f\x1d\x29\xbe\xf1\xcf\xdb\x97\x3d\xbe\x59\xf6\x6c\x59\xf6\x7b\x91" "\xe2\xc7\xdf\x68\x74\xcb\x1e\x2d\xcb\x76\x9f\x8f\xfa\xe9\xcd\xb2\xcf\x4f" "\xce\x15\xfb\x30\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x3c\x6e\xfa\x52\x11\x7f\x16\x29\xfe\xe7\xc6\xca\xed\xb9\xfc\x79" "\xfd\xff\xbe\x9e\xb7\x95\xb7\xbe\xd5\xb3\xde\xff\x16\xb7\xaa\x75\xfe\x07" "\xaa\xf5\xff\x77\x7a\x7d\x2f\xeb\xff\x57\xcf\x15\x58\xde\xe9\x53\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\xe3\x29" "\x45\x11\x6f\x46\x8a\xf9\xcb\xeb\x69\xb5\xbf\x7c\xdf\x51\xbf\xd4\x9e\xbd" "\x79\x6b\x7c\x78\x64\xfb\x6a\x47\x52\x55\xf3\x50\x55\xbe\xfc\xa9\x9f\x3e" "\x73\xf6\xdc\x97\x5e\x18\x3a\xdf\xcd\x0f\xae\x7f\xbf\x7d\x26\x5e\x1b\xbb" "\x72\xb1\xf1\xf2\xdc\x8d\xf9\x85\xe9\xc5\xc5\xe9\xa9\xc6\xf8\x6c\x7b\x72" "\x6e\x6a\x7a\xd7\x47\xd8\x6b\xfd\xad\x06\xab\x13\xd0\xb8\xf1\xfa\xcd\xa9" "\x6b\xd7\x16\x1b\x67\x9e\x3f\x5b\x6d\x3e\x9c\x77\xdf\x1a\x78\xbf\xff\x89" "\xe3\x03\x17\x86\x9e\x3d\xf9\x4c\xb7\xec\xf8\xf0\xc8\xc8\x58\xcf\x21\x6a" "\x7d\xf7\xfc\xe9\x77\x49\x3b\x6c\x3f\x1c\x45\xfc\x55\xa4\x78\xee\xfb\x3f" "\x4b\x3f\xea\x8f\x28\x62\xef\xe7\xe2\x43\xbe\x3b\xfb\xed\x48\xd5\x89\xc1" "\xaa\x13\xe3\xc3\x23\x55\x47\x66\xda\xad\xd9\xa5\x72\xe7\x68\xf7\x44\x14" "\x11\x8d\x9e\x4a\xcd\xee\x39\x7a\x00\x63\xb1\x27\xcd\x88\xe5\xb2\xf9\x65" "\x83\x07\xcb\xee\x8d\xcd\xb7\x16\x5a\x57\x67\xa6\x1b\xa3\xad\x85\xa5\xf6" "\x52\x7b\x6e\x76\x34\x75\x5a\x5b\xf6\xa7\x11\x45\x9c\x4f\x11\x2b\x11\xb1" "\xd6\x7f\xf7\xe1\xfa\xa2\x88\xd7\x23\xc5\x77\x8f\xad\xa7\x7f\xe9\x8f\x38" "\xd4\x3d\x0f\x5f\xbc\x3c\xf6\xb5\x53\x67\x76\x6e\x47\xb1\x8f\x7d\xdc\x85" "\xb2\x9d\x8d\xbe\x88\x95\xe2\x11\x18\xb3\x03\xac\x3f\x8a\xf8\xa7\x48\xf1" "\xf3\x77\x4e\xc4\xbf\xf6\x47\xd4\xa2\xf3\x13\x5f\x88\x78\xb5\xcc\x1f\x46" "\xbc\x15\x9d\xf1\x4e\xe5\x17\xe3\x5c\xc4\x7b\xdb\x7c\x8f\x78\x34\xd5\xa2" "\x88\xff\x2b\xc7\xff\xc2\x7a\x7a\xa7\xbf\xbc\x1e\x74\xaf\x2b\x97\xbe\xde" "\xf8\xea\xec\xb5\xb9\x9e\xb2\xdd\xeb\xca\x23\x7f\x7f\x78\x90\x76\xbe\x36" "\x7d\xe5\x81\xb6\x63\x07\xf5\x28\xe2\xc7\xd5\x15\x7f\x3d\xfd\x9b\xff\xae" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x90\x22\x7e\x3d" "\x52\xbc\xf8\xee\x89\x54\xcd\x0f\xce\x73\x8a\x9f\xca\x7b\xaf\xce\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\x50\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\xc3\xbc\x62\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x60\x1f\x14\xd5\x3f\x29\xbe\xf3\xcd\xf5" "\xb4\xd1\xdf\x59\x5f\x7a\x22\x3a\xb9\x6a\x3d\xd0\x8f\xbd\xff\x0f\x00\x00" "\xff\xff\x07\xe7\xf6\x1e", 3120); syz_mount_image(/*fs=*/0x20000f00, /*dir=*/0x20000000, /*flags=MS_LAZYTIME|MS_SILENT|MS_NOSUID*/ 0x2008002, /*opts=*/0x20000980, /*chdir=*/1, /*size=*/0xc30, /*img=*/0x20001b00); *(uint64_t*)0x20000100 = -1; *(uint64_t*)0x20000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x20000100ul); memcpy((void*)0x20000340, "./bus\000", 6); res = syscall(__NR_open, /*file=*/0x20000340ul, /*flags=O_SYNC|O_NOATIME|O_CREAT|O_CLOEXEC|O_RDWR*/ 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; }