// https://syzkaller.appspot.com/bug?id=1dbd4274debfac1ad27c5a1472907d69b91d2896 // 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; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) //% 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) { errno = EMSGSIZE; return -1; } 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) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) 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); install_segv_handler(); intptr_t res = 0; NONFAILING(memcpy((void*)0x20000180, "udf\000", 4)); NONFAILING(memcpy((void*)0x20000040, "./file0\000", 8)); NONFAILING(memcpy((void*)0x200000c0, "fileset", 7)); NONFAILING(*(uint8_t*)0x200000c7 = 0x3d); NONFAILING(sprintf((char*)0x200000c8, "%020llu", (long long)0x10001)); NONFAILING(*(uint8_t*)0x200000dc = 0x2c); NONFAILING(memcpy((void*)0x200000dd, "iocharset", 9)); NONFAILING(*(uint8_t*)0x200000e6 = 0x3d); NONFAILING(memcpy((void*)0x200000e7, "cp857", 5)); NONFAILING(*(uint8_t*)0x200000ec = 0x2c); NONFAILING(memcpy((void*)0x200000ed, "rootdir", 7)); NONFAILING(*(uint8_t*)0x200000f4 = 0x3d); NONFAILING(sprintf((char*)0x200000f5, "%020llu", (long long)0x3f66ed45)); NONFAILING(*(uint8_t*)0x20000109 = 0x2c); NONFAILING(memcpy((void*)0x2000010a, "nostrict", 8)); NONFAILING(*(uint8_t*)0x20000112 = 0x2c); NONFAILING(memcpy((void*)0x20000113, "noadinicb", 9)); NONFAILING(*(uint8_t*)0x2000011c = 0x2c); NONFAILING(memcpy((void*)0x2000011d, "uid=forget", 10)); NONFAILING(*(uint8_t*)0x20000127 = 0x2c); NONFAILING(memcpy((void*)0x20000128, "iocharset", 9)); NONFAILING(*(uint8_t*)0x20000131 = 0x3d); NONFAILING(memcpy((void*)0x20000132, "cp1255", 6)); NONFAILING(*(uint8_t*)0x20000138 = 0x2c); NONFAILING(memcpy((void*)0x20000139, "longad", 6)); NONFAILING(*(uint8_t*)0x2000013f = 0x2c); NONFAILING(*(uint8_t*)0x20000140 = 0); NONFAILING(memcpy( (void*)0x20000200, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x92\x22\x29\xb7\x15" "\x13\x3b\x8a\xdd\xc6\xc5\xa6\x2d\x52\x99\xb1\x5c\xfd\x8b\xa9\x58\x85\xbb" "\xaa\x69\xb6\x01\x64\x99\x08\xc5\xdc\x02\x70\x45\x52\xea\xc2\x14\x49\x90" "\x54\x23\x1b\x69\xc1\xf4\xd2\x43\x0f\x01\x8a\xa2\x87\x9c\x08\xb4\x46\x81" "\x14\x0d\x8c\xa6\x08\x7a\x64\x5b\x17\x48\x2e\x3e\x14\x39\xf5\x44\xb4\xb0" "\x11\x14\x3d\xb0\x45\x80\x9c\x02\x06\x33\xfb\x56\x5c\x52\x94\x45\x8b\xa4" "\x44\xda\x9f\x8f\x4d\x7d\x67\x67\xdf\x9b\x79\x6f\x66\x3c\x23\x0b\x7a\xf3" "\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\x88\xf8\xfd\x57" "\x2f\x9f\x39\x9b\x1e\x77\x2b\x00\x80\x47\xe9\xea\xd8\x57\xcf\x9c\xf3\xfc" "\x07\x80\x4f\x94\x6b\xfe\xff\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x0e\xbb\x14\x45\x3c\x19\x29\xe6\xaf\xae\xa7\x89\xea\x73\x4b\xdf\x95" "\xe6\xec\xed\x3b\xe3\xc3\x23\x3b\x57\xeb\x4f\x55\xcd\xae\xaa\x7c\xf9\xd3" "\x77\xf6\xdc\xf9\x0b\x5f\x7a\x71\xe8\x62\x3b\x3f\xbc\xfe\x7e\x7b\x26\x5e" "\x1f\xbb\x76\xb9\xf6\xca\xdc\xad\xf9\x85\xe9\xc5\xc5\xe9\xa9\xda\xf8\x6c" "\x73\x72\x6e\x6a\x7a\xd7\x5b\xd8\x6b\xfd\xed\x06\xab\x03\x50\xbb\xf5\xc6" "\xed\xa9\x1b\x37\x16\x6b\xe7\x5e\x38\xbf\xe5\xeb\x3b\x03\x1f\xf4\x3e\x71" "\x72\xe0\xd2\xd0\x73\xa7\x9f\x6d\x97\x1d\x1f\x1e\x19\x19\xeb\x28\xd3\xdd" "\xf3\xd0\x7b\xbf\xc7\xfd\x46\x78\x1c\x8b\x22\x4e\x47\x8a\xe7\xbf\xf7\x93" "\xd4\x88\x88\x22\xf6\x7e\x2c\x1e\x70\xed\x1c\xb4\xfe\xaa\x13\x83\x55\x27" "\xc6\x87\x47\xaa\x8e\xcc\x34\x1b\xb3\x4b\xe5\x97\xa3\xed\x03\x51\x44\xd4" "\x3a\x2a\xd5\xdb\xc7\xe8\x11\x9c\x8b\x3d\xa9\x47\x2c\x97\xcd\x2f\x1b\x3c" "\x58\x76\x6f\x6c\xbe\xb1\xd0\xb8\x3e\x33\x5d\x1b\x6d\x2c\x2c\x35\x97\x9a" "\x73\xb3\xa3\xa9\xd5\xda\xb2\x3f\xb5\x28\xe2\x62\x8a\x58\x89\x88\xb5\xde" "\x7b\x37\xd7\x13\x45\x74\x47\x8a\xef\x9c\x58\x4f\xd7\x23\xa2\xab\x7d\x1c" "\xbe\x58\x0d\x0c\xbe\x7f\x3b\x8a\x03\xec\xe3\x2e\x94\xed\xac\xf5\x44\xac" "\x14\x47\xe0\x9c\x1d\x62\xbd\x51\xc4\x6b\x91\xe2\xa7\xef\x9e\x8a\xc9\xf2" "\x98\xe5\x9f\xf8\x42\xc4\x6b\x65\xfe\x20\xe2\xed\x32\x5f\x8e\x48\xe5\x85" "\x71\x21\xe2\xfd\x1d\xae\x23\x8e\xa6\xee\x28\xe2\x2f\xca\xf3\x7f\x69\x3d" "\x4d\x55\xf7\x83\xf6\x7d\xe5\xca\xd7\x6a\x5f\x99\xbd\x31\xd7\x51\xb6\x7d" "\x5f\x39\xa2\xcf\x87\xfe\x6d\xf9\x68\x1c\xf2\x7b\x53\x5f\x14\xd1\xa8\xee" "\xf8\xeb\xe9\xe1\x7f\xb3\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xc0\x7e\xeb\x8f\x22\x9e\x89\x14\xaf\xfe\xc7\x1f\x57\xe3\x8a\xa3\x1a" "\x97\x7e\xe2\xd2\xd0\x1f\x0c\xfc\x72\xe7\x98\xf1\xa7\x1f\xb0\x9d\xb2\xec" "\x0b\x11\xb1\x5c\xec\x6e\x4c\xee\xb1\x3c\x84\x78\x34\x8d\xa6\xf4\x98\xc7" "\x12\x7f\x92\xf5\x45\x11\x7f\x92\xc7\xff\x7d\xeb\x71\x37\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x13\xad\x88\x1f\x47\x8a" "\x97\xde\x3b\x95\x56\xa2\x73\x4e\xf1\xe6\xec\xcd\xda\xb5\xc6\xf5\x99\xd6" "\xac\xb0\xed\xb9\x7f\xdb\x73\xa6\x6f\x6c\x6c\x6c\xd4\x52\x2b\xeb\x39\x27" "\x72\x2e\xe7\x5c\xc9\xb9\x9a\x73\x2d\x67\x14\xb9\x7e\xce\x7a\xce\x89\x9c" "\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19\x5d\xb9\x7e\xce\x7a\xce\x89\x9c\xcb" "\x39\x57\x72\xae\xe6\x5c\xcb\x19\xdd\xb9\x7e\xce\x7a\xce\x89\x9c\xcb\x39" "\x57\x72\xae\xe6\x5c\xcb\x19\x87\x64\xee\x5e\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x8f\x93\x22\x8a\xf8\x79\xa4\xf8\xf6\x37\xd6\x53\xa4\x88" "\xa8\x47\x4c\x44\x2b\x57\x7b\x1f\x77\xeb\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\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\x52\x6f\x2a\xe2\xfb\x91" "\xa2\xf6\x87\xf5\xbb\xeb\xba\x23\x22\x55\xff\xb6\x9c\x2a\x7f\xb9\x10\xf5" "\x63\x65\x7e\x3a\xea\x43\x65\xbe\x1c\xf5\xcb\x39\x1b\x55\x76\xd7\xbf\xf5" "\x18\xda\xcf\xde\xf4\xa4\x22\x7e\x14\x29\x7a\xfb\xde\xb9\x7b\xc2\xf3\xf9" "\xef\x69\x7d\xba\x7b\x19\xc4\xdb\xdf\xdc\xfc\xf4\xab\xdd\xad\xec\x6a\x7f" "\x39\xf0\x41\xef\x13\x27\x4f\x5c\x1a\x1a\xf9\xf5\xa7\xef\xb7\x9c\x76\x6a" "\xc0\xe0\x95\xe6\xec\xed\x3b\xb5\xf1\xe1\x91\x91\xb1\x8e\xd5\xdd\x79\xef" "\x9f\xee\x58\x37\x90\xf7\x5b\xec\x4f\xd7\x89\x88\xc5\x37\xdf\x7a\xa3\x31" "\x33\x33\xbd\xf0\xf0\x0b\xe5\x25\xb0\x87\xea\x16\x3e\x01\x0b\xe9\x70\x34" "\xc3\xc2\xee\x17\x1e\xf7\x9d\x89\x47\xa1\x7c\xfe\xbf\x1f\x29\x7e\xe7\xbd" "\xff\x6c\x3f\xf0\xdb\xcf\xff\x5f\x6a\x7d\xba\xfb\x84\x8f\x9f\xfd\xe9\xe6" "\xf3\xff\xa5\xed\x1b\xda\xf2\xcc\xdf\xe8\x8a\xd8\x9f\xe7\xff\x93\x1d\xeb" "\x5e\xca\xbf\x1b\xe9\xe9\x8e\xe8\x5b\xba\x35\xdf\x73\x32\xa2\x6f\xf1\xcd" "\xb7\x4e\x37\x6f\x35\x6e\x4e\xdf\x9c\x9e\xbd\x70\xe6\xcc\x97\x87\x86\xbe" "\x7c\xfe\x4c\xcf\xb1\x88\xbe\x1b\xcd\x99\xe9\x8e\xa5\x3d\x1f\x2a\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x47\x2b\x15\xf1\x7b\x91\xa2" "\xf1\xa3\xf5\x54\x8b\x88\x3b\xd5\x78\xad\x81\x4b\x43\xcf\x9d\x7e\xb6\x2b" "\xba\xaa\xf1\x56\x5b\xc6\x6d\xbd\x3e\x76\xed\x72\xed\x95\xb9\x5b\xf3\x0b" "\xd3\x8b\x8b\xd3\x53\xb5\xf1\xd9\xe6\xe4\xdc\xd4\xf4\x6e\x77\xd7\x57\x0d" "\xf7\x1a\x1f\x1e\x39\x90\xce\x3c\x50\xff\x01\xb7\xbf\xbf\xef\x95\xb9\xf9" "\x37\x17\x9a\x37\xff\x68\x69\xc7\xef\x8f\xf7\x5d\xbe\xbe\xb8\xb4\xd0\x98" "\xdc\xf9\xeb\xe8\x8f\x22\xa2\xde\xb9\x66\xb0\x6a\xf0\xf8\xf0\x48\xd5\xe8" "\x99\x66\x63\xb6\xaa\x3a\xba\xe3\x60\xba\x8f\xae\x27\x15\xf1\x5f\x91\x62" "\xf2\x42\x2d\x7d\x3e\xaf\xcb\xe3\xff\xb6\x8f\xf0\xdf\x32\xfe\x7f\x79\xfb" "\x86\x0e\x68\xfc\xff\xa7\x3a\xd6\x95\xfb\x4c\xa9\x88\x9f\x45\x8a\xdf\xfe" "\xcb\xa7\xe3\xf3\x55\x3b\x8f\xc7\x3d\xc7\x2c\x97\xfb\xdb\x48\x31\x78\xf1" "\x73\xb9\x5c\x1c\x2b\xcb\xb5\xdb\xd0\x7a\xaf\x40\x6b\x64\x60\x59\xf6\xff" "\x22\xc5\x3f\xfe\x7c\x6b\xd9\xf6\x78\xc8\x27\x37\xcb\x9e\xdd\xf5\x81\x3d" "\x22\xca\xf3\x7f\x22\x52\x7c\xff\xcf\xbf\x1b\xbf\x91\xd7\x6d\x7d\xff\xc3" "\xce\xe7\xff\xf8\xf6\x0d\x1d\xd0\xf9\x7f\xaa\x63\xdd\xf1\x2d\xef\x2b\xd8" "\x73\xd7\xc9\xe7\xff\x74\xa4\x78\xf9\xc9\x77\xe2\x37\xf3\xba\x0f\x7b\xff" "\x47\xfb\xdd\x1b\xa7\x72\xe1\xbb\xef\xe7\x38\xa0\xf3\xff\x99\x8e\x75\x03" "\x79\xbf\xbf\xb5\x3f\x5d\x07\x00\x00\x00\x00\x00\x00\x00\x00\x38\xd2\x7a" "\x52\x11\x7f\x17\x29\x9e\x1d\xe9\x4e\x2f\xe6\x75\xbb\xf9\xfb\x7f\x53\xdb" "\x37\x74\x40\x7f\xff\xeb\xb3\x1d\xeb\xa6\xf6\x67\xbe\xa2\x07\x2e\xec\xf9" "\xa0\x02\x00\x00\x00\xc0\x21\xd1\x93\x8a\xf8\x71\xa4\xb8\xb9\xf4\xce\xdd" "\x31\xd4\x5b\xc7\x7f\x77\x8c\xff\xfc\xdd\xcd\xf1\x9f\xc3\x69\xdb\xb7\xd5" "\x9f\xf3\xfd\x4a\xf5\xde\x80\xfd\xfc\xf3\xbf\x4e\x03\x79\xbf\x13\x7b\xef" "\x36\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x2a" "\x29\x15\xf1\x62\x9e\x4f\x7d\xe2\x01\xf3\xa9\xaf\x46\x8a\x57\xff\xe7\xf9" "\x5c\x2e\x9d\x2c\xcb\xb5\xe7\x81\x1f\xa8\x7e\xed\xbb\x3a\x37\x7b\xfa\xf2" "\xcc\xcc\xdc\x64\x63\xa9\x71\x7d\x66\xba\x36\x36\xdf\x98\x9c\x2e\xeb\x3e" "\x15\x29\xd6\xff\xe6\x73\xb9\x6e\x51\xcd\xaf\xde\x9e\x6f\xbe\x35\xc7\xfb" "\xe6\x5c\xec\x0b\x91\x62\xe4\xef\xdb\x65\x5b\x73\xb1\xb7\xe7\x26\x7f\x6a" "\xb3\xec\xd9\xb2\xec\xa7\x22\xc5\x7f\xff\xc3\xd6\xb2\xed\x79\xac\x3f\xb3" "\x59\xf6\x5c\x59\xf6\xaf\x23\xc5\xd7\xff\x79\xe7\xb2\x27\x37\xcb\x9e\x2f" "\xcb\x7e\x37\x52\xfc\xf0\xeb\xb5\x76\xd9\xe3\x65\xd9\xf6\xfb\x51\x3f\xbb" "\x59\xf6\x85\xc9\xb9\x99\x7b\x5e\x85\x0a\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x1f\x55\x4f\x2a\xe2\xcf\x22\xc5\xff\xde\x5a" "\xb9\x3b\x96\x3f\xcf\xff\xdf\xd3\xf1\xb1\xf2\xf6\x37\x3b\xe6\xfb\xdf\xe6" "\x4e\x35\xcf\xff\x40\x35\xff\xff\xfd\x96\x1f\x66\xfe\xff\x81\xfd\xe9\x26" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c" "\x29\x29\x8a\x78\x2b\x52\xcc\x5f\x5d\x4f\xab\xbd\xe5\xe7\x96\xbe\x2b\xcd" "\xd9\xdb\x77\xc6\x87\x47\x76\xae\xd6\x9f\xaa\x9a\x5d\x55\xf9\xf2\xa7\xef" "\xec\xb9\xf3\x17\xbe\xf4\xe2\xd0\xc5\x76\x7e\x78\xfd\xfd\xf6\x4c\xbc\x3e" "\x76\xed\x72\xed\x95\xb9\x5b\xf3\x0b\xd3\x8b\x8b\xd3\x53\xb5\xf1\xd9\xe6" "\xe4\xdc\xd4\xf4\xae\xb7\xb0\xd7\xfa\xdb\x0d\x56\x07\xa0\x76\xeb\x8d\xdb" "\x53\x37\x6e\x2c\xd6\xce\xbd\x70\x7e\xcb\xd7\x77\x06\x3e\xe8\x7d\xe2\xe4" "\xc0\xa5\xa1\xe7\x4e\x3f\xdb\x2e\x3b\x3e\x3c\x32\x32\xd6\x51\xa6\xbb\xe7" "\xa1\xf7\x7e\x8f\x74\x9f\xf5\xc7\xa2\x88\xbf\x8a\x14\xcf\x7f\xef\x27\xe9" "\x5f\x7a\x23\x8a\xd8\xfb\xb1\x78\xc0\xb5\x73\xd0\xfa\xab\x4e\x0c\x56\x9d" "\x18\x1f\x1e\xa9\x3a\x32\xd3\x6c\xcc\x2e\x95\x5f\x8e\xb6\x0f\x44\x11\x51" "\xeb\xa8\x54\x6f\x1f\xa3\x47\x70\x2e\xf6\xa4\x1e\xb1\x5c\x36\xbf\x6c\xf0" "\x60\xd9\xbd\xb1\xf9\xc6\x42\xe3\xfa\xcc\x74\x6d\xb4\xb1\xb0\xd4\x5c\x6a" "\xce\xcd\x8e\xa6\x56\x6b\xcb\xfe\xd4\xa2\x88\x8b\x29\x62\x25\x22\xd6\x7a" "\xef\xdd\x5c\x4f\x14\xf1\x46\xa4\xf8\xce\x89\xf5\xf4\xaf\xbd\x11\x5d\xed" "\xe3\xf0\xc5\xab\x63\x5f\x3d\x73\xee\xfe\xed\x28\x0e\xb0\x8f\xbb\x50\xb6" "\xb3\xd6\x13\xb1\x52\x1c\x81\x73\x76\x88\xf5\x46\x11\xff\x14\x29\x7e\xfa" "\xee\xa9\xf8\xb7\xde\x88\xee\x68\xfd\xc4\x17\x22\x5e\x2b\xf3\x07\x11\x6f" "\x97\xf9\x72\x44\x2a\x2f\x8c\x0b\x11\xef\xef\x70\x1d\x71\x34\x75\x47\x11" "\xff\x5f\x9e\xff\x4b\xeb\xe9\xdd\xde\xf2\x7e\xd0\xbe\xaf\x5c\xf9\x5a\xed" "\x2b\xb3\x37\xe6\x3a\xca\xb6\xef\x2b\x47\xfe\xf9\xf0\x28\x1d\xf2\x7b\x53" "\x5f\x14\xf1\xc3\xea\x8e\xbf\x9e\xfe\xdd\x7f\xd7\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x87\x48\x11\xbf\x16\x29\x5e\x7a\xef\x54\xaa" "\xc6\x07\xdf\x1d\x53\xdc\x9c\xbd\x59\xbb\xd6\xb8\x3e\xd3\x1a\xd6\xd7\x1e" "\xfb\xd7\x1e\x33\xbd\xb1\xb1\xb1\x51\x4b\xad\xac\xe7\x9c\xc8\xb9\x9c\x73" "\x25\xe7\x6a\xce\xb5\x9c\x51\xe4\xfa\x39\xeb\x39\x27\x72\x2e\xe7\x5c\xc9" "\xb9\x9a\x73\x2d\x67\x74\xe5\xfa\x39\xeb\x39\x27\x72\x2e\xe7\x5c\xc9\xb9" "\x9a\x73\x2d\x67\x74\xe7\xfa\x39\xeb\x39\x27\x72\x2e\xe7\x5c\xc9\xb9\x9a" "\x73\x2d\x67\x1c\x92\xb1\x7b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\xc7\x4b\x51\xfd\x93\xe2\xdb\xdf\x58\x4f\x1b\xbd\xad\xf9" "\xa5\x27\xa2\x95\xab\xe6\x03\xfd\xd8\xfb\x45\x00\x00\x00\xff\xff\x97\x25" "\xfc\x97", 3080)); NONFAILING(syz_mount_image(0x20000180, 0x20000040, 8, 0x200000c0, 1, 0xc08, 0x20000200)); NONFAILING(memcpy((void*)0x20000080, "cgroup.controllers\000", 19)); res = syscall(__NR_openat, 0xffffff9c, 0x20000080ul, 0x275aul, 0ul); if (res != -1) r[0] = res; NONFAILING(memset((void*)0x200001c0, 14, 1)); syscall(__NR_write, r[0], 0x200001c0ul, 0xfea7ul); syscall(__NR_mmap, 0x20000000ul, 0x3000ul, 1ul, 0x10012ul, r[0], 0ul); NONFAILING(memcpy((void*)0x20000040, ".pending_reads\000", 15)); syscall(__NR_openat, 0xffffff9c, 0x20000040ul, 0x1852c2ul, 0ul); NONFAILING(memcpy((void*)0x20000000, "./file0\000", 8)); syscall(__NR_creat, 0x20000000ul, 0ul); return 0; }