// https://syzkaller.appspot.com/bug?id=0e77b741e3a1b835114f0f7f0f3e53e12c9a73bc // 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 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[2] = {0xffffffffffffffff, 0x0}; 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*)0x20000240, "hfsplus\000", 8); memcpy((void*)0x20000200, "./file2\000", 8); memcpy( (void*)0x20000700, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x19\x00\xf0\x67\xd6\x9b\xb5\x37\x40\xea" "\xb6\x49\x1b\x50\xa5\x58\x8d\x54\x10\x16\x89\xed\x95\x0b\x3e\x35\x20\x84" "\x7c\xa8\x50\x55\x0e\x9c\x38\x58\xc9\xa6\x59\x65\x93\x16\x7b\x8b\x9c\x0a" "\x81\x29\x5f\x57\x0e\xfd\x03\xca\xc1\x37\x4e\x48\x5c\x38\x45\x2a\x17\x2e" "\x70\xeb\xd5\xc7\x48\x48\x5c\x7a\xc1\x48\x48\x83\x66\x76\x66\xbd\xb1\xd7" "\x9b\x75\x9a\xf5\x6e\xd2\xdf\x2f\x1a\xbf\xef\xcc\x3b\xef\x3b\xcf\x3c\xf3" "\xb5\x1f\x8a\x36\x80\x2f\xac\xf5\xc5\xa8\xde\x8f\x24\xd6\x17\xdf\xdc\xce" "\xe6\xf7\x76\x1b\xed\xbd\xdd\xc6\x9d\xb2\x1e\x11\xb3\x11\x51\x89\xa8\x76" "\x8b\x48\xfe\x93\xa6\xe9\x27\x11\xd7\xa2\x3b\xc5\x57\xb3\x85\xc5\x70\xc9" "\x71\xdb\xf9\xa8\xb5\xf6\xf6\xa7\x9f\xed\x3d\xe8\xce\x55\x8b\x29\x5f\xbf" "\x32\xac\xdf\x68\x76\x8a\x29\x16\x22\x62\xa6\x28\x7b\x2a\x9f\x6f\xbc\xeb" "\x45\xf9\xc6\x63\x87\x97\xf4\xf6\x30\x4b\xd8\xe5\x32\x71\x30\x69\x67\xb2" "\x2b\x31\x2d\x2d\xa4\x69\xfa\xd3\xbf\x7f\xb9\xd7\xd2\xa7\x3e\xa8\xf7\xdc" "\xa9\xc4\x08\x8c\x57\xd2\x7d\x6e\x1e\x31\x1f\x71\xb6\xb8\xd0\xb3\xd7\x01" "\xdd\xa7\xe2\xe3\x3c\x52\xa7\xcb\x5f\x27\x1d\x00\x00\x00\x00\x9c\x86\xe7" "\xf6\x63\x3f\xb6\xe3\xdc\xa4\xe3\x00\x00\x00\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" "\xa7\x49\xf1\xfb\xff\x49\x31\x55\xca\xfa\x42\x24\xe5\xef\xff\xd7\x8a\x65" "\x51\xd4\xa7\xcb\xa5\x93\xad\x7e\x7f\x5c\x71\x00\x00\x00\x00\x00\x00\x00" "\xc0\x29\xba\xb4\x1f\xfb\xb1\x1d\xe7\xca\xf9\x34\xc9\xbf\xf3\x7f\x35\x9f" "\x39\x9f\xff\xfd\x52\xbc\x1f\x5b\xd1\x8c\xcd\xb8\x12\xdb\xb1\x11\x9d\xe8" "\xc4\x66\x2c\x47\xc4\x7c\xdf\x40\xb5\xed\x8d\x4e\x67\x73\xb9\xd7\x73\x6e" "\x40\xcf\x99\xbc\xe7\xca\xc0\x9e\x2b\x8f\x08\x74\xb6\x28\xeb\x4f\x6a\xcf" "\x01\x00\x00\x00\x00\x00\x00\xe0\x99\xf2\x61\xac\x1f\x7c\xff\x0f\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd3\x20\x89\x98\xe9\x16\xf9\x74\xbe" "\xac\xcf\x47\xa5\x1a\x11\x73\x11\x51\xcb\xd6\xdb\x89\xf8\x67\x59\x7f\x2a" "\xcc\x0d\x5e\x7c\xff\xb4\xe3\x00\x00\x00\x80\x09\x78\x6e\x3f\xf6\x63\x3b" "\xce\x95\xf3\x69\x92\xbf\xe7\x7f\x29\x7f\xdf\x3f\x17\xef\xc7\xdd\xe8\x44" "\x2b\x3a\xd1\x8e\x66\xdc\xc8\x3f\x0b\xe8\xbe\xeb\xaf\xec\xed\x36\xda\x7b" "\xbb\x8d\x3b\xd9\x74\x74\xdc\xef\xfe\xfb\x44\x61\xe4\x23\x46\xf7\xb3\x87" "\xc1\x5b\xbe\x98\xaf\x51\x8f\x9b\xd1\xca\x97\x5c\x89\xeb\xf1\x6e\xb4\xe3" "\x46\x54\xf2\x9e\x99\x8b\x65\x3c\x83\xe3\xfa\x55\x16\x53\xf2\x46\x61\xc4" "\xc8\x6e\x14\x65\xb6\xe7\x7f\x28\xca\x31\x39\xe1\x87\x29\xf3\x79\x46\xce" "\xf4\x32\xb2\x54\xc4\x96\x65\xe3\xf9\xe1\x99\x38\xe1\xd1\x39\xbc\xa5\xe5" "\xa8\xf4\x82\x3d\x7f\x68\x4b\x87\x76\x62\x48\xce\x67\x8e\xdd\xde\xd9\xa2" "\xcc\xf6\xe7\x77\xe3\xcd\xf9\x09\x1d\xce\xc4\x4a\xdf\xd9\xf7\xd2\xf0\x9c" "\x47\x7c\xfd\x2f\x7f\xfa\xf1\xad\xf6\xdd\xdb\xb7\x6e\x6e\x2d\x4e\xcf\x2e" "\x8d\xa6\x3c\x58\x69\xb9\xe0\x70\x26\x1a\xf1\xe1\x4f\x1e\xcc\x76\xdb\x5e" "\x7e\x96\x33\x71\xc4\x52\x9e\x89\x0b\xbd\xf9\xf5\xf8\x41\xfc\x28\x16\x63" "\x21\xde\x8a\xcd\x68\xc5\xcf\x62\x23\x3a\xd1\x8c\x85\xf8\x7e\x5e\xdb\x28" "\xce\xe7\xa4\xef\x92\x3f\x26\x53\xd7\x1e\x9a\x7b\xeb\x51\x91\xd4\x8a\xe3" "\xd2\x3d\x58\xa3\xc4\x54\x8d\x28\x62\x7a\x35\xef\x7b\x2e\x5a\xf1\xc3\x78" "\x37\x6e\x44\x33\x5e\xcf\xff\xad\xc4\x72\x7c\x3b\x56\x63\x35\xd6\xfa\xce" "\xf5\x0b\x23\xdc\x69\x2b\xc7\xdc\x69\xd3\xaf\x0c\x0c\xfe\xf2\x37\x8a\x4a" "\x3d\x22\x7e\x5f\x94\x7d\xfe\xf7\xa8\xbd\x1f\x9f\x2c\xaf\xcf\xf7\xe5\xb5" "\xff\x9e\x3b\x9f\xb7\xf5\x2f\x39\xc8\xd2\x0b\x4f\xfe\x79\x54\xfd\x5a\x51" "\xc9\xb6\xf1\xeb\xa2\x9c\x0e\x87\x33\xb1\xdc\x97\x89\x17\x87\x67\xe2\x8f" "\xf9\x6d\x65\xab\x7d\xf7\xf6\xe6\xad\x8d\xf7\x46\xdc\xde\x6b\x45\x99\x5d" "\x47\xbf\x1d\xfd\x29\x71\xfc\x63\xe7\x89\xc9\xce\x97\x17\xb2\x83\x95\xcf" "\x3d\x7c\x76\x64\x6d\x2f\x0e\x6c\x5b\xce\xdb\xce\xf7\xda\x2a\x47\xda\x2e" "\xf4\xda\xba\x57\xea\xce\xb1\x57\x6a\xad\x78\x0d\x77\x74\xa4\x95\xbc\xed" "\xe5\x81\x6d\x8d\xbc\xed\x62\x5f\xdb\xa0\xd7\x5b\x00\x4c\xbd\xb3\xdf\x3c" "\x5b\xab\xff\xab\xfe\x8f\xfa\xc7\xf5\xdf\xd4\x6f\xd5\xdf\x9c\xfb\xde\xec" "\x77\x66\x5f\xa9\xc5\x99\xbf\x9d\x89\xea\xd2\xcc\x6b\x95\x57\x92\x3f\xc7" "\xc7\xf1\x8b\x83\xf7\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xe3\xdb\xba\x97\xdc\xde" "\x68\xb7\x9b\x9b\x5b\xf7\x3e\xe8\xaf\xa4\x69\xfa\xcb\x87\x97\x3c\xb2\xb2" "\x13\x11\x23\xaf\x3c\xa1\x4a\xf9\x23\x40\x93\x0d\xa3\x16\xd3\x91\x8d\x53" "\xac\xfc\x37\x4d\xd3\x62\x49\x32\x0d\xf1\x0c\xaf\xa4\x85\xa1\x2b\x57\xc6" "\xb0\xf5\xda\x63\xf4\xba\x14\x63\x49\xc2\x84\x6f\x4c\xc0\xd8\x5d\xed\xdc" "\x79\xef\xea\xd6\xbd\x0f\xbe\xd5\xba\xb3\xf1\x4e\xf3\x9d\xe6\xdd\xb5\xd5" "\xd5\xb5\xa5\xb5\xd5\xd7\x1b\x57\x6f\xb6\xda\xcd\xa5\xee\xdf\x49\x47\x09" "\x8c\xc3\xc1\x43\x7f\xd2\x91\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa3" "\x3a\x8d\xff\x53\x31\xe9\x7d\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9e\x6e\xeb\x8b\x51\xbd\x1f" "\x49\x2c\x2f\x5d\x59\xca\xe6\xf7\x76\x1b\xed\x6c\x2a\xeb\x07\x6b\x56\x23" "\xa2\x12\x11\xc9\xcf\x23\x92\x4f\x22\xae\x45\x77\x8a\xf9\xbe\xe1\x92\xe3" "\xb6\xf3\x51\x6b\xed\xed\x4f\x3f\xdb\x7b\x70\x30\x56\xb5\x5c\xbf\x32\xac" "\xdf\x68\x76\x8a\x29\x16\x22\x62\xa6\x28\x9f\xd4\x78\xd7\x3f\xf7\x78\x49" "\x6f\x0f\xb3\x84\x5d\x2e\x13\x07\x93\xf6\xff\x00\x00\x00\xff\xff\x13\xe6" "\x0f\x53", 1640); syz_mount_image(/*fs=*/0x20000240, /*dir=*/0x20000200, /*flags=*/0x10108d4, /*opts=*/0x200000c0, /*chdir=*/0xfd, /*size=*/0x668, /*img=*/0x20000700); memcpy((void*)0x200006c0, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x200006c0ul, /*mode=*/0ul); if (res != -1) r[0] = res; res = syscall(__NR_io_setup, /*n=*/7, /*ctx=*/0x20000040ul); if (res != -1) r[1] = *(uint64_t*)0x20000040; *(uint64_t*)0x20000540 = 0x200000c0; *(uint64_t*)0x200000c0 = 0; *(uint32_t*)0x200000c8 = 0; *(uint32_t*)0x200000cc = 0x10; *(uint16_t*)0x200000d0 = 1; *(uint16_t*)0x200000d2 = 0; *(uint32_t*)0x200000d4 = r[0]; *(uint64_t*)0x200000d8 = 0x20000000; *(uint64_t*)0x200000e0 = 0x80000; *(uint64_t*)0x200000e8 = 0; *(uint64_t*)0x200000f0 = 0; *(uint32_t*)0x200000f8 = 0; *(uint32_t*)0x200000fc = -1; syscall(__NR_io_submit, /*ctx=*/r[1], /*nr=*/8ul, /*iocbpp=*/0x20000540ul); return 0; }