// https://syzkaller.appspot.com/bug?id=b61b7a4b10ec6ff95e96ef8f408bd5fd387ad7b6 // 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 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #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; } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000180, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 251); memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xac\x37\x4e\x36\x94\xd4" "\x4d\x93\x36\xa0\x4a\xb5\x5a\x09\x10\x16\x89\x5f\xe4\x82\xb9\x10\x10\x42" "\x3e\x54\xa8\x2a\x07\xce\x56\xe2\x34\x56\x36\x69\xb1\xb7\xc8\xad\x10\x35" "\x94\x97\x6b\x0f\xfd\x03\xca\xc1\x37\x4e\x48\xdc\x23\x95\x0b\x17\xb8\xf5" "\xea\x63\x25\x24\x2e\xbd\x60\x4e\x8b\x76\x76\x76\xbd\xf1\x1b\xeb\x36\xf1" "\xae\xd5\xcf\x27\x9a\x7d\x9e\x67\x9f\x99\x67\x7e\xcf\x6f\x76\x76\x76\xd6" "\x8a\x36\xc0\x97\xd6\xf2\x4c\xea\x0f\x53\x64\x79\xe6\xd5\xcd\x4e\x7b\x67" "\x7b\xa1\xb9\xb3\xbd\x70\xbf\x57\x4f\x72\x3e\xc9\x56\x52\x4f\x52\x4b\x52" "\xfc\xa7\xdd\x6e\x7f\x9c\xdc\x4c\x8a\xfe\x30\xc5\xbe\xf2\x80\x0f\xd7\x96" "\x5e\xff\xe4\xb3\x9d\x4f\xbb\xad\x7a\xb5\x94\xeb\xd7\x8e\xdb\x6e\x38\x5b" "\xd5\x92\xe9\x24\x13\x55\xf9\xb8\xc6\xbb\xf5\x85\xc7\x2b\xfa\x33\xbc\x99" "\xe4\xe5\xaa\x84\x91\x3b\x97\xa4\xfd\x88\x5f\xfc\xfd\xa9\x7e\xcf\x80\xc6" "\x61\x5b\x5f\x38\x95\x18\x81\x27\xab\xe8\x5e\x37\x0f\x98\x4a\x2e\x56\x27" "\x7a\xe7\x73\x40\xf7\xaa\xd8\xbd\x66\x9f\x69\x5b\xa3\x0e\x00\x00\x00\x00" "\x4e\xc1\xd3\xbb\xd9\xcd\x66\x71\x69\xd4\x71\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xc0\x59\xb1\xb5\xf7\xfb\xff\x45\xb5\xd4\x7a\xf5\xe9\x14\xbd\xdf" "\xff\x9f\xac\x9e\x4b\x55\x1f\x2f\x2f\x9e\x6c\xf5\x87\x4f\x2a\x0e\x00\x00" "\x00\x00\x00\x00\x00\x78\x9c\xce\x1f\xdf\xfd\xe2\x6e\x76\xb3\x99\x4b\xbd" "\x76\xbb\x28\xff\xe6\xff\x52\xd9\xb8\x52\x3e\x7e\x25\x6f\x67\x23\xab\x59" "\xcf\xf5\x6c\x66\x25\xad\xb4\xb2\x9e\xb9\x24\x53\x03\x03\x4d\x6e\xae\xb4" "\x5a\xeb\x73\x43\x6c\x39\x7f\xe8\x96\xf3\x43\xce\xa3\x71\x82\xb9\x03\x00" "\x00\x00\x00\x00\x00\xc0\x97\xc7\x6f\xb3\xbc\xf7\xf7\x7f\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x18\x07\x45\x32\xd1\x2d\xca\xe5\x4a\xaf\x3e" "\x95\x5a\x3d\xc9\x85\x24\x93\x9d\xf5\xb6\x92\x7f\xf6\xea\x67\x53\x6d\xd4" "\x01\x00\x00\x00\xc0\xa9\x79\x7a\x37\xbb\xd9\xcc\xa5\x5e\xbb\x5d\x94\xf7" "\xfc\xcf\x95\xf7\xfd\x17\xf2\x76\x1e\xa4\x95\xb5\xb4\xd2\xcc\x6a\x6e\x97" "\xdf\x05\x74\xef\xfa\x6b\x3b\xdb\x0b\xcd\x9d\xed\x85\xfb\x9d\xe5\xe0\xb8" "\x3f\xfc\xf7\x89\xc2\x98\xac\x6e\xc8\x27\xca\xd6\x61\x7b\xbe\x56\xae\xd1" "\xc8\x9d\xac\x95\xcf\x5c\xcf\xad\xbc\x99\x66\x6e\xa7\xd6\xbf\x95\xbf\x56" "\xc5\xd3\x1b\x75\x5f\x5c\xbf\xe9\xc4\x54\xfc\xa0\x32\x64\x64\xb7\xab\xb2" "\x33\xf3\x0f\xaa\xf2\x80\xf7\x4e\x34\xd9\xa3\x9c\xf0\xcb\x94\xa9\x32\x23" "\xe7\xfa\x19\x99\xad\x62\xeb\x64\xe3\x99\xde\x91\x39\xfc\x08\x9d\xf0\xe8" "\xec\xdf\xd3\x5c\x6a\xfd\x60\xaf\xec\xdb\xd3\xbe\x49\x7c\xae\x9c\x5f\xac" "\xca\xce\x7c\xfe\x70\x54\xce\x47\x62\x7f\x26\xe6\x07\x5e\x7d\xcf\x1d\x9f" "\xf3\xe4\x9b\x7f\xfd\xf3\xcf\xef\x36\x1f\xdc\xbb\x7b\x67\x63\x66\x7c\xa6" "\x34\x9c\x89\xaa\x6c\x97\x8f\x8d\x83\x99\x58\x18\xc8\xc4\xf3\x67\x3c\x13" "\xad\xf5\xf7\x67\x87\x5f\x7b\xb6\xcc\xc4\xd5\x7e\x7b\x39\x3f\xc9\xcf\x32" "\x93\xe9\xbc\x96\xf5\xac\xe5\x97\x59\x49\x2b\xab\x99\xce\x8f\xcb\xda\x4a" "\xf5\x7a\x2e\x06\x4e\xf9\x23\x32\x75\xf3\x91\xd6\x6b\xff\x2f\x92\xc9\xea" "\x15\xda\x3d\x58\x27\x8b\xe9\xa5\x72\xdb\x4b\x59\xcb\x4f\xf3\x66\x6e\x67" "\x35\xaf\x94\xff\xe6\x33\x97\xef\x66\x31\x8b\x59\x1a\x38\xc2\x57\x8f\x3f" "\xc2\xe5\x59\x5f\x3b\xe2\xac\x6f\x7f\xf5\xf0\xe8\xbf\x55\x95\x8d\x24\x7f" "\xac\xca\xf1\xd0\xc9\xeb\x33\x03\x79\x1d\x7c\xcf\x9d\x2a\xfb\x06\x9f\xd9" "\xcb\xd2\xe5\x21\xb2\x74\xc2\xf7\xc6\xfa\xd7\xab\xca\x56\x92\xf7\xc7\xea" "\x6b\xec\xfd\x99\x98\x1b\xc8\xc4\xb3\xc7\x67\xe2\x4f\xe5\xdb\xca\x46\xf3" "\xc1\xbd\xf5\xbb\x2b\x6f\x0d\xb7\xbb\xcb\x1f\x54\x95\xce\x79\xf4\xfb\xb1" "\xba\x4a\x74\x5e\x2f\x97\x3b\x07\xab\x6c\x3d\xfa\xea\xe8\xf4\x3d\x7b\x68" "\xdf\x5c\xd9\x77\xa5\xdf\x57\x3b\xd0\x77\xb5\xdf\xd7\x3d\x53\xb7\x8e\x3c" "\x53\x27\xab\xcf\x70\x07\x47\x9a\x2f\xfb\x9e\x3f\xb4\x6f\xa1\xec\xbb\x36" "\xd0\xf7\xe8\xe7\xad\x94\x9f\xb7\x00\x18\x7b\x17\xbf\x7d\x71\xb2\xf1\xaf" "\xc6\x3f\x1a\x1f\x35\x7e\xd7\xb8\xdb\x78\xf5\xc2\x8f\xce\x7f\xef\xfc\x0b" "\x93\x39\xf7\xb7\x73\xdf\xaf\xcf\x4e\x7c\xa3\xf6\x42\xf1\x97\x7c\x94\x5f" "\xef\xdd\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9f\xdf\xc6\x3b\xef\xde\x5b\x69\x36" "\x57\xd7\xf7\x55\xda\xed\xf6\x7b\x47\x74\x0d\x5b\x59\xba\x70\xfc\x2e\x46" "\x51\xe9\xfd\x9c\xd9\x29\xee\xf4\x6b\x4f\x25\x63\x31\xf7\x91\x56\xfe\xdb" "\x6e\xb7\xab\x67\x8a\x71\x88\xe7\xf8\x4a\xbb\x32\x2e\xf1\x8c\xa2\x32\xca" "\x77\x25\xe0\x34\xdc\x68\xdd\x7f\xeb\xc6\xc6\x3b\xef\x7e\x67\xed\xfe\xca" "\x1b\xab\x6f\xac\x3e\x58\x5a\x5c\x5c\x9a\x5d\x5a\x7c\x65\xe1\xc6\x9d\xb5" "\xe6\xea\x6c\xf7\x71\xd4\x51\x02\x4f\xc2\xde\x45\x7f\xd4\x91\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xc3\x3a\x8d\xff\x4e\x30\xea\x39\x02\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x67\xdb\xf2\x4c\xea\x0f\x53\x64\x6e\xf6\xfa\x6c\xa7\xbd\xb3\xbd\xd0" "\xec\x2c\xbd\xfa\xde\x9a\xf5\x24\xb5\x24\xc5\xaf\x92\xe2\xe3\xe4\x66\xba" "\x4b\xa6\x06\x86\x2b\x8e\xda\xcf\x87\x6b\x4b\xaf\x7f\xf2\xd9\xce\xa7\x7b" "\x63\xd5\x7b\xeb\xd7\x8e\xdb\x6e\x38\x5b\xd5\x92\xe9\x24\x13\x55\xf9\xb8" "\xc6\xbb\xf5\x85\xc7\x2b\xfa\x33\xec\x24\xec\xe5\x5e\xe2\x60\xd4\xfe\x17" "\x00\x00\xff\xff\xed\xac\x0c\x7c", 1610); syz_mount_image( /*fs=*/0x20000600, /*dir=*/0x20000180, /*flags=MS_LAZYTIME|MS_POSIXACL|MS_SYNCHRONOUS|MS_NOATIME*/ 0x2010410, /*opts=*/0x20000440, /*chdir=*/1, /*size=*/0x64a, /*img=*/0x20000cc0); memcpy((void*)0x20000240, "blkio.bfq.io_wait_time\000", 23); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000240ul, /*flags=*/0x275aul, /*mode=*/0ul); memcpy((void*)0x20000080, "memory.swap.events\000", 19); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000080ul, /*flags=*/0x275aul, /*mode=*/0ul); memcpy((void*)0x20000000, "cpuacct.usage_percpu_sys\000", 25); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x275aul, /*mode=*/0ul); memcpy((void*)0x20000100, "blkio.throttle.io_serviced_recursive\000", 37); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000100ul, /*flags=*/0x275aul, /*mode=*/0ul); memcpy((void*)0x20000000, "cpuacct.usage_percpu_sys\000", 25); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x275aul, /*mode=*/0ul); return 0; }