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