// 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, 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, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; memcpy((void*)0x20000000, "hfsplus\000", 8); memcpy((void*)0x20000640, "./bus\000", 6); memcpy( (void*)0x20000680, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xac\xdf\xe2\x20\x25\x6e" "\x9b\xa4\x01\x55\xaa\xd5\x48\x05\x61\x91\xf8\x05\x17\xcc\xa5\x01\x21\xe4" "\x43\x85\xaa\x72\xe0\x6c\x25\x4e\x62\x65\xe3\x16\xdb\x45\x6e\x85\x68\x78" "\xbf\x72\xe8\x1f\x50\x0e\xbe\x71\x42\xe2\x1e\xa9\x1c\x11\xdc\x7a\xf5\xb1" "\x12\x12\x97\x9e\xcc\x69\xd1\xcc\xce\xda\x9b\xd8\x71\xd6\xce\xcb\xae\xe5" "\xcf\x27\x7a\xf6\x79\x9e\x7d\x66\x9e\xf9\xcd\x6f\x76\x66\x76\x37\xb6\x1c" "\xe0\xd4\x5a\x9c\xca\xf0\x83\x14\x59\x9c\x7a\x67\xb3\xec\x6f\x6f\xcd\x35" "\xb7\xb7\xe6\xee\x75\xda\x49\xc6\x92\x34\x92\xe1\x76\x95\x62\x35\x29\x3e" "\x4f\xae\xa7\x5d\xf2\xf5\xf2\xc9\x7a\xba\xe2\x71\xdb\xf9\x74\x65\xe1\xbd" "\x2f\xbe\xda\xfe\xb2\xdd\x1b\xae\x4b\xb5\x7c\xe3\xb0\xf5\x9e\xa8\x0a\xe1" "\x7e\x5d\x32\x99\x64\xa8\xae\x9f\xc2\x43\xf3\xdd\x38\xfa\x7c\x9f\x3c\xdc" "\x2d\x76\xf7\xb0\x8c\xf6\x4a\x27\x6a\xe8\xb7\xd6\x3e\xbf\xb8\xd4\x3a\x5f" "\x8e\x8c\xf4\xb2\xfa\xf1\xcf\x5b\x60\x60\x14\xed\xfb\xe6\x3e\x13\xc9\xd9" "\x24\x67\xea\xf7\x01\xed\xbb\x62\xfb\x9e\x7d\x82\x15\x2e\x5c\x00\x00\x00" "\x9c\x0a\xe7\x77\xb2\x93\xcd\x9c\xeb\x77\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\x70\x92\xd4\x7f\xff\xbf\xa8\xcb\x4c\xa7\x3d\x99\xa2\xf3\xf7\xff" "\x47\xeb\xe7\x52\xb7\x4f\xb4\x07\xfd\x0e\x00\x00\x00\x00\x00\x00\x00\x00" "\x9e\x81\xd7\x77\xb2\x93\xcd\x9c\xeb\xf4\x5b\x45\x1a\x49\xde\xa8\x3a\x17" "\xaa\xc7\xaf\xe5\xc3\xac\x67\x39\x6b\xb9\x9a\xcd\x2c\x65\x23\x1b\x59\xab" "\x7e\x32\x60\xa2\x6b\xa2\xd1\xcd\xa5\x8d\x8d\xb5\x99\x1e\xd6\x9c\x3d\x70" "\xcd\xd9\x17\xb3\xbf\x00\x00\x00\x00\x00\x00\x00\x70\xd2\xdd\x3f\xf8\xe9" "\xdf\x66\x71\xef\xff\xff\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\x60" "\x10\x14\xc9\x50\xbb\xaa\xca\x85\x4e\x7b\x22\x8d\xe1\x24\x67\x92\x8c\x96" "\xcb\xdd\x4f\xfe\xdd\x69\x9f\x64\x0f\xfa\x1d\x00\x00\x00\x00\x1c\xd1\xdb" "\xc7\x58\xe7\xfc\x4e\x76\xb2\x99\x73\x9d\x7e\xab\xa8\x3e\xf3\x5f\xaa\x3e" "\xf7\x9f\xc9\x87\x59\xcd\x46\x56\xb2\x91\x66\x96\x73\xb3\xfa\x2e\xa0\xfd" "\xa9\xbf\xb1\xbd\x35\xd7\xdc\xde\x9a\xbb\x57\x96\xfd\xf3\xfe\xf0\xbf\x47" "\x0a\xa3\x9a\x31\xed\xef\x1e\x0e\xde\xf2\xe5\x6a\x89\xf1\xdc\xca\x4a\xf5" "\xcc\xd5\xdc\xc8\xfb\x69\xe6\x66\x1a\xd5\x9a\xa5\xcb\x9d\x78\x0e\x8e\xeb" "\x37\x65\x4c\xc5\xdb\xb5\x1e\x23\xbb\x59\xd7\xe5\x9e\xff\xb9\xae\x07\xc3" "\x44\x95\x91\x91\xdd\x8c\x4c\xd7\xb1\x95\xd9\x78\xe9\xf0\x4c\xb4\x8f\xce" "\xd8\x71\xb7\x34\x93\xc6\xee\x37\x3f\x17\x9e\x43\xce\xcf\xd6\x75\xb9\x3f" "\x7f\x1c\xe8\x9c\xcf\x76\xbd\xfa\x2e\x1d\x9e\x89\xe4\x9b\x7f\xff\xeb\xcf" "\xef\x34\x57\xef\xde\xb9\xb5\x3e\x35\x38\xbb\x74\x4c\x8f\x66\x62\xae\x2b" "\x13\xaf\x9e\xaa\x4c\x4c\x57\x99\xb8\xb8\xdb\x5f\xcc\x4f\xf2\xb3\x4c\x65" "\x32\xef\x66\x2d\x2b\xf9\x65\x96\xb2\x91\xe5\x4c\xe6\xc7\x55\x6b\xa9\x7e" "\x3d\x97\x8f\x13\x87\x67\xea\xfa\x43\xbd\x77\x9f\x14\xc9\x68\x7d\x5c\xda" "\x57\xd1\xa3\xc5\xf4\x46\xb5\xee\xb9\xac\xe4\xa7\x79\x3f\x37\xb3\x9c\xb7" "\xaa\x7f\xb3\x99\xc9\xf7\x32\x9f\xf9\x2c\x74\x1d\xe1\x8b\x3d\x9c\xf5\x8d" "\xa3\x9d\xf5\x57\xbe\x55\x37\xc6\x93\xfc\xa9\xae\x07\x43\x99\xd7\x97\xba" "\xf2\xda\x7d\xcd\x9d\xa8\xc6\xba\x9f\xd9\xcb\xd2\xcb\x47\xbe\x36\x5e\x7f" "\x52\x28\xc3\xdf\xa8\x1b\xe5\x36\x7e\x57\xd7\x83\xe1\xd1\x4c\xcc\x74\x65" "\xe2\x95\xc3\x33\xf1\x97\x56\xf9\xb8\xde\x5c\xbd\xbb\x76\x67\xe9\x83\x1e" "\xb7\xf7\x66\x5d\x97\xe7\xd1\x1f\x06\xea\x2e\x51\xbe\x5e\x5e\x2e\x0f\x56" "\xd5\x7b\xf8\xd5\x51\x8e\xbd\x72\xe0\xd8\x4c\x35\x76\x61\x77\xac\xb1\x6f" "\xec\xe2\xee\xd8\x93\xce\xd4\xd1\xfa\x3d\xdc\xfe\x99\x66\xab\xb1\x57\x0f" "\x1c\x9b\xab\xc6\x2e\x77\x8d\x1d\xf4\x7e\x0b\x80\x01\x35\xb2\xdb\x3a\xfb" "\xed\xb3\xa3\xe3\xff\x19\xff\xd7\xf8\x67\xe3\xbf\x1f\xbf\x33\xfe\xce\x99" "\x1f\x8d\x7d\x7f\xec\xb5\xd1\x8c\xfc\x63\xe4\x07\xc3\xd3\x43\x6f\x36\x5e" "\x2b\xfe\x96\xcf\xf2\xeb\xbd\xcf\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\xf1\xad\x7f" "\xf4\xf1\xdd\xa5\x66\x73\x79\xed\x91\x46\xab\xd5\xfa\xe4\x31\x43\x8f\x36" "\x86\xea\xa9\x7a\x5a\xf8\x14\x36\x5a\x63\x4f\x39\xcf\xea\xed\xd7\xbf\xfb" "\xac\x03\x2b\x0f\xd8\x8b\x4c\xc2\xff\x5a\xad\xd6\x81\x43\x57\x06\xe5\x30" "\x75\x37\x5a\xb5\x41\x89\xa7\x1f\x8d\xfe\x5e\x97\x80\xe7\xef\xda\xc6\xbd" "\x0f\xae\xad\x7f\xf4\xf1\x77\x56\xee\x2d\xdd\x5e\xbe\xbd\xbc\xba\x30\x3f" "\xbf\x30\xbd\x30\xff\xd6\xdc\xb5\x5b\x2b\xcd\xe5\xe9\xf6\x63\xbf\xa3\x04" "\x9e\x87\xbd\x9b\x7e\xbf\x23\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7a" "\x75\xf8\xaf\x01\x8c\xe5\x59\xfc\x3a\x41\xbf\xf7\x11\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\xd9" "\x16\xa7\x32\xfc\x20\x45\x66\xa6\xaf\x4e\x97\xfd\xed\xad\xb9\x66\x59\x3a" "\xed\xbd\x25\x87\x93\x34\x92\x14\xbf\x4a\x8a\xcf\x93\xeb\x69\x97\x4c\x74" "\x4d\x57\x3c\x6e\x3b\x9f\xae\x2c\xbc\xf7\xc5\x57\xdb\x5f\xee\xcd\xf5\xcf" "\xce\xf2\x8d\xc3\xd6\xeb\xcd\xfd\xba\x64\x32\xc9\x50\x5d\x3f\xab\xf9\x6e" "\x3c\xf5\x7c\xc5\xee\x1e\x96\x09\xbb\xd2\x49\x1c\xf4\xdb\xff\x03\x00\x00" "\xff\xff\xf1\x77\x14\xf5", 1572); syz_mount_image(0x20000000, 0x20000640, 0x50, 0x20000140, 1, 0x624, 0x20000680); memcpy((void*)0x20000080, "cgroup.controllers\000", 19); res = syscall(__NR_openat, 0xffffff9c, 0x20000080ul, 0x275aul, 0ul); if (res != -1) r[0] = res; syscall(__NR_write, r[0], 0x20000040ul, 0xfffffdeful); return 0; }