// https://syzkaller.appspot.com/bug?id=50cda79c01f0a0edce5cfbdda8c6a3855c20dd05 // 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*)0x20000c00, "udf\000", 4)); NONFAILING(memcpy((void*)0x20000040, "./file0\000", 8)); NONFAILING(memcpy((void*)0x20000140, "fileset", 7)); NONFAILING(*(uint8_t*)0x20000147 = 0x3d); NONFAILING(sprintf((char*)0x20000148, "%020llu", (long long)0x10001)); NONFAILING(*(uint8_t*)0x2000015c = 0x2c); NONFAILING(memcpy((void*)0x2000015d, "volume", 6)); NONFAILING(*(uint8_t*)0x20000163 = 0x3d); NONFAILING(sprintf((char*)0x20000164, "%020llu", (long long)0x5e92)); NONFAILING(*(uint8_t*)0x20000178 = 0x2c); NONFAILING(memcpy((void*)0x20000179, "noadinicb", 9)); NONFAILING(*(uint8_t*)0x20000182 = 0x2c); NONFAILING(memcpy((void*)0x20000183, "nostrict", 8)); NONFAILING(*(uint8_t*)0x2000018b = 0x2c); NONFAILING(*(uint8_t*)0x2000018c = 0); NONFAILING(memcpy( (void*)0x20000cc0, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x92\x22\x25\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\xd4\x92\x20" "\xa9\x46\x36\xd2\x82\xe9\xa5\x87\x1e\x02\x14\x45\x0f\x39\x11\x68\x8d\x02" "\x29\x1a\x18\x4d\x11\xf4\xc8\xb6\x2e\x90\x5c\x7c\x28\x72\xea\x89\x68\x61" "\x23\x28\x7a\x60\x8b\x00\x39\x05\x0c\x66\xf6\x2d\xb9\xa4\x28\x4b\x16\x45" "\x89\xb4\x3f\x1f\x9b\xfa\xce\xce\xbc\x37\xf3\xde\xcc\x7a\x46\x16\xf4\xe6" "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xf1\xfb\xaf" "\x5e\x3a\x7d\x26\x3d\xee\x56\x00\x00\x8f\xd2\x95\xf1\xaf\x9e\x3e\xeb\xf9" "\x0f\x00\x9f\x28\x57\xfd\xff\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1c\x74\x29\x8a\x78\x32\x52\xcc\x5f\x59\x4f\x93\xd5\xe7\xb6\x81\xcb" "\xcd\xd6\xad\xdb\x13\x23\xa3\xbb\x57\x3b\x9a\xaa\x9a\x3d\x55\xf9\xf2\x67" "\xe0\xcc\xd9\x73\xe7\xbf\xf4\xe2\xf0\x85\x4e\x7e\x78\xfd\x87\xed\x99\x78" "\x7d\xfc\xea\xa5\xda\x2b\x73\x37\xe7\x17\x66\x16\x17\x67\xa6\x6b\x13\xad" "\xe6\xd4\xdc\xf4\xcc\x7d\xef\x61\xaf\xf5\x77\x1a\xaa\x4e\x40\xed\xe6\x1b" "\xb7\xa6\xaf\x5f\x5f\xac\x9d\x7d\xe1\xdc\xb6\xcd\xb7\x07\x3f\xe8\x7f\xe2" "\xc4\xe0\xc5\xe1\xe7\x4e\x3d\xdb\x29\x3b\x31\x32\x3a\x3a\xde\x55\xa6\xb7" "\xef\x81\x8f\x7e\x87\xbb\x8d\xf0\x38\x12\x45\x9c\x8a\x14\xcf\x7f\xef\x27" "\xa9\x11\x11\x45\xec\xfd\x5c\xdc\xe3\xbb\xb3\xdf\x8e\x56\x9d\x18\xaa\x3a" "\x31\x31\x32\x5a\x75\x64\xb6\xd9\x68\x2d\x95\x1b\xc7\x3a\x27\xa2\x88\xa8" "\x75\x55\xaa\x77\xce\xd1\x23\xb8\x16\x7b\x52\x8f\x58\x2e\x9b\x5f\x36\x78" "\xa8\xec\xde\xf8\x7c\x63\xa1\x71\x6d\x76\xa6\x36\xd6\x58\x58\x6a\x2e\x35" "\xe7\x5a\x63\xa9\xdd\xda\xb2\x3f\xb5\x28\xe2\x42\x8a\x58\x89\x88\xb5\xfe" "\x3b\x77\xd7\x17\x45\xf4\x46\x8a\xef\x1c\x5f\x4f\xd7\x22\xa2\xa7\x73\x1e" "\xbe\x58\x0d\x0c\xbe\x7b\x3b\x8a\x7d\xec\xe3\x7d\x28\xdb\x59\xeb\x8b\x58" "\x29\x0e\xc1\x35\x3b\xc0\xfa\xa3\x88\xd7\x22\xc5\x4f\xdf\x3d\x19\x53\xe5" "\x39\xcb\x3f\xf1\x85\x88\xd7\xca\xfc\x41\xc4\xdb\x65\xbe\x1c\x91\xca\x2f" "\xc6\xf9\x88\xf7\x77\xf9\x1e\x71\x38\xf5\x46\x11\x7f\x51\x5e\xff\x8b\xeb" "\x69\xba\xba\x1f\x74\xee\x2b\x97\xbf\x56\xfb\x4a\xeb\xfa\x5c\x57\xd9\xce" "\x7d\xe5\xd0\x3f\x1f\x1e\xa5\x03\x7e\x6f\x1a\x88\x22\x1a\xd5\x1d\x7f\x3d" "\x3d\xf8\x6f\x76\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78" "\xd8\x8e\x46\x11\xcf\x44\x8a\x57\xff\xe3\x8f\xab\x71\xc5\x51\x8d\x4b\x3f" "\x7e\x71\xf8\x0f\x06\x7f\xb9\x7b\xcc\xf8\xd3\xf7\xd8\x4f\x59\xf6\x85\x88" "\x58\x2e\xee\x6f\x4c\xee\x91\x3c\x84\x78\x2c\x8d\xa5\xf4\x98\xc7\x12\x7f" "\x92\x0d\x44\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\x99\x56\xa2\x7b\x4e\xf1\x66\xeb\x46\xed\x6a\xe3\xda\x6c\x7b\x56\xd8" "\xce\xdc\xbf\x9d\x39\xd3\x37\x36\x36\x36\x6a\xa9\x9d\xf5\x9c\x93\x39\x97" "\x73\xae\xe4\x5c\xcd\xb9\x96\x33\x8a\x5c\x3f\x67\x3d\xe7\x64\xce\xe5\x9c" "\x2b\x39\x57\x73\xae\xe5\x8c\x9e\x5c\x3f\x67\x3d\xe7\x64\xce\xe5\x9c\x2b" "\x39\x57\x73\xae\xe5\x8c\xde\x5c\x3f\x67\x3d\xe7\x64\xce\xe5\x9c\x2b\x39" "\x57\x73\xae\xe5\x8c\x03\x32\x77\x2f\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xc7\x49\x11\x45\xfc\x3c\x52\x7c\xfb\x1b\xeb\x29\x52\x44\xd4\x23" "\x26\xa3\x9d\xab\xfd\x8f\xbb\x75\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\xa9\x3f\x15\xf1\xfd\x48\x51\xfb" "\xc3\xfa\xe6\xba\xde\x88\x48\xd5\xbf\x6d\x27\xcb\x5f\xce\x47\xfd\x48\x99" "\x9f\x8e\xfa\x70\x99\x2f\x47\xfd\x52\xce\x46\x95\xbd\xf5\x6f\x3d\x86\xf6" "\xb3\x37\x7d\xa9\x88\x1f\x45\x8a\xfe\x81\x77\x36\x2f\x78\xbe\xfe\x7d\xed" "\x4f\x9b\x5f\x83\x78\xfb\x9b\x5b\x9f\x7e\xb5\xb7\x9d\x3d\x9d\x8d\x83\x1f" "\xf4\x3f\x71\xe2\xf8\xc5\xe1\xd1\x5f\x7f\xfa\x6e\xcb\x69\xb7\x06\x0c\x5d" "\x6e\xb6\x6e\xdd\xae\x4d\x8c\x8c\x8e\x8e\x77\xad\xee\xcd\x47\xff\x74\xd7" "\xba\xc1\x7c\xdc\xe2\xe1\x74\x9d\x88\x58\x7c\xf3\xad\x37\x1a\xb3\xb3\x33" "\x0b\x16\x2c\x58\xb0\xb0\xb9\xf0\xb8\xef\x4c\x3c\x0a\xe5\xf3\xff\xfd\x48" "\xf1\x3b\xef\xfd\x67\xe7\x81\xdf\x79\xfe\xff\x52\xfb\xd3\xe6\x13\x3e\x7e" "\xf6\xa7\x5b\xcf\xff\x97\x76\xee\x68\x9f\x9e\xff\x4f\x76\xad\x7b\x29\xff" "\x6e\xa4\xaf\x37\x62\x60\xe9\xe6\x7c\xdf\x89\x88\x81\xc5\x37\xdf\x3a\xd5" "\xbc\xd9\xb8\x31\x73\x63\xa6\x75\xfe\xf4\xe9\x2f\x0f\x0f\x7f\xf9\xdc\xe9" "\xbe\x23\x11\x03\xd7\x9b\xb3\x33\x5d\x4b\x7b\x3e\x55\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x8f\x56\x2a\xe2\xf7\x22\x45\xe3\x47\xeb" "\xa9\x16\x11\xb7\xab\xf1\x5a\x83\x17\x87\x9f\x3b\xf5\x6c\x4f\xf4\x54\xe3" "\xad\xb6\x8d\xdb\x7a\x7d\xfc\xea\xa5\xda\x2b\x73\x37\xe7\x17\x66\x16\x17" "\x67\xa6\x6b\x13\xad\xe6\xd4\xdc\xf4\xcc\xfd\x1e\x6e\xa0\x1a\xee\x35\x31" "\x32\xba\x2f\x9d\xb9\xa7\xa3\xfb\xdc\xfe\xa3\x03\xaf\xcc\xcd\xbf\xb9\xd0" "\xbc\xf1\x47\x4b\xbb\x6e\x3f\x36\x70\xe9\xda\xe2\xd2\x42\x63\x6a\xf7\xcd" "\x71\x34\x8a\x88\x7a\xf7\x9a\xa1\xaa\xc1\x13\x23\xa3\x55\xa3\x67\x9b\x8d" "\x56\x55\x75\x6c\xd7\xc1\x74\x1f\x5d\x5f\x2a\xe2\xbf\x22\xc5\xd4\xf9\x5a" "\xfa\x7c\x5e\x97\xc7\xff\xed\x1c\xe1\xbf\x6d\xfc\xff\xf2\xce\x1d\xed\xd3" "\xf8\xbf\x4f\x75\xad\x2b\x8f\x99\x52\x11\x3f\x8b\x14\xbf\xfd\x97\x4f\xc7" "\xe7\xab\x76\x1e\x8b\x3b\xce\x59\x2e\xf7\xb7\x91\x62\xe8\xc2\xe7\x72\xb9" "\x38\x52\x96\xeb\xb4\xa1\xfd\x5e\x81\xf6\xc8\xc0\xb2\xec\xff\x45\x8a\x7f" "\xfc\xf9\xf6\xb2\x9d\xf1\x90\x4f\x6e\x95\x3d\x73\xdf\x27\xf6\x90\x28\xaf" "\xff\xf1\x48\xf1\xfd\x3f\xff\x6e\xfc\x46\x5e\xb7\xfd\xfd\x0f\xbb\x5f\xff" "\x63\x3b\x77\xb4\x4f\xd7\xff\xa9\xae\x75\xc7\xb6\xbd\xaf\x60\xcf\x5d\x27" "\x5f\xff\x53\x91\xe2\xe5\x27\xdf\x89\xdf\xcc\xeb\x3e\xec\xfd\x1f\x9d\x77" "\x6f\x9c\xcc\x85\x37\xdf\xcf\xb1\x4f\xd7\xff\x33\x5d\xeb\x06\xf3\x71\x7f" "\xeb\xe1\x74\x1d\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x50\xeb\x4b\x45\xfc" "\x5d\xa4\x78\x76\xb4\x37\xbd\x98\xd7\xdd\xcf\xdf\xff\x9b\xde\xb9\xa3\x7d" "\xfa\xfb\x5f\x9f\xed\x5a\x37\xfd\x88\xe6\x2b\xda\xf3\x49\x05\x00\x00\x00" "\x80\x03\xa2\x2f\x15\xf1\xe3\x48\x71\x63\xe9\x9d\xcd\x31\xd4\xdb\xc7\x7f" "\x77\x8d\xff\xfc\xdd\xad\xf1\x9f\x23\x69\xc7\xd6\xea\xcf\xf9\x7e\xa5\x7a" "\x6f\xc0\xc3\xfc\xf3\xbf\x6e\x83\xf9\xb8\x93\x7b\xef\x36\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x28\x29\x15\xf1\x62\x9e" "\x4f\x7d\xf2\x1e\xf3\xa9\xaf\x46\x8a\x57\xff\xe7\xf9\x5c\x2e\x9d\x28\xcb" "\x75\xe6\x81\x1f\xac\x7e\x1d\xb8\x32\xd7\x3a\x75\x69\x76\x76\x6e\xaa\xb1" "\xd4\xb8\x36\x3b\x53\x1b\x9f\x6f\x4c\xcd\x94\x75\x9f\x8a\x14\xeb\x7f\xf3" "\xb9\x5c\xb7\xa8\xe6\x57\xef\xcc\x37\xdf\x9e\xe3\x7d\x6b\x2e\xf6\x85\x48" "\x31\xfa\xf7\x9d\xb2\xed\xb9\xd8\x3b\x73\x93\x3f\xb5\x55\xf6\x4c\x59\xf6" "\x53\x91\xe2\xbf\xff\x61\x7b\xd9\xce\x3c\xd6\x9f\xd9\x2a\x7b\xb6\x2c\xfb" "\xd7\x91\xe2\xeb\xff\xbc\x7b\xd9\x13\x5b\x65\xcf\x95\x65\xbf\x1b\x29\x7e" "\xf8\xf5\x5a\xa7\xec\xb1\xb2\x6c\xe7\xfd\xa8\x9f\xdd\x2a\xfb\xc2\xd4\xdc" "\xec\x1d\xaf\x42\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x80\x8f\xaa\x2f\x15\xf1\x67\x91\xe2\x7f\x6f\xae\x6c\x8e\xe5\xcf\xf3" "\xff\xf7\x75\x7d\xac\xbc\xfd\xcd\xae\xf9\xfe\x77\xb8\x5d\xcd\xf3\x3f\x58" "\xcd\xff\x7f\xb7\xe5\x07\x99\xff\x7f\xf0\xe1\x74\x13\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x95\x14\x45\xbc\x15" "\x29\xe6\xaf\xac\xa7\xd5\xfe\xf2\x73\xdb\xc0\xe5\x66\xeb\xd6\xed\x89\x91" "\xd1\xdd\xab\x1d\x4d\x55\xcd\x9e\xaa\x7c\xf9\x33\x70\xe6\xec\xb9\xf3\x5f" "\x7a\x71\xf8\x42\x27\x3f\xbc\xfe\xc3\xf6\x4c\xbc\x3e\x7e\xf5\x52\xed\x95" "\xb9\x9b\xf3\x0b\x33\x8b\x8b\x33\xd3\xb5\x89\x56\x73\x6a\x6e\x7a\xe6\xbe" "\xf7\xb0\xd7\xfa\x3b\x0d\x55\x27\xa0\x76\xf3\x8d\x5b\xd3\xd7\xaf\x2f\xd6" "\xce\xbe\x70\x6e\xdb\xe6\xdb\x83\x1f\xf4\x3f\x71\x62\xf0\xe2\xf0\x73\xa7" "\x9e\xed\x94\x9d\x18\x19\x1d\x1d\xef\x2a\xd3\xdb\xf7\xc0\x47\xbf\x43\xba" "\xcb\xfa\x23\x51\xc4\x5f\x45\x8a\xe7\xbf\xf7\x93\xf4\x2f\xfd\x11\x45\xec" "\xfd\x5c\xdc\xe3\xbb\xb3\xdf\x8e\x56\x9d\x18\xaa\x3a\x31\x31\x32\x5a\x75" "\x64\xb6\xd9\x68\x2d\x95\x1b\xc7\x3a\x27\xa2\x88\xa8\x75\x55\xaa\x77\xce" "\xd1\x23\xb8\x16\x7b\x52\x8f\x58\x2e\x9b\x5f\x36\x78\xa8\xec\xde\xf8\x7c" "\x63\xa1\x71\x6d\x76\xa6\x36\xd6\x58\x58\x6a\x2e\x35\xe7\x5a\x63\xa9\xdd" "\xda\xb2\x3f\xb5\x28\xe2\x42\x8a\x58\x89\x88\xb5\xfe\x3b\x77\xd7\x17\x45" "\xbc\x11\x29\xbe\x73\x7c\x3d\xfd\x6b\x7f\x44\x4f\xe7\x3c\x7c\xf1\xca\xf8" "\x57\x4f\x9f\xbd\x7b\x3b\x8a\x7d\xec\xe3\x7d\x28\xdb\x59\xeb\x8b\x58\x29" "\x0e\xc1\x35\x3b\xc0\xfa\xa3\x88\x7f\x8a\x14\x3f\x7d\xf7\x64\xfc\x5b\x7f" "\x44\x6f\xb4\x7f\xe2\x0b\x11\xaf\x95\xf9\x83\x88\xb7\xcb\x7c\x39\x22\x95" "\x5f\x8c\xf3\x11\xef\xef\xf2\x3d\xe2\x70\xea\x8d\x22\xfe\xbf\xbc\xfe\x17" "\xd7\xd3\xbb\xfd\xe5\xfd\xa0\x73\x5f\xb9\xfc\xb5\xda\x57\x5a\xd7\xe7\xba" "\xca\x76\xee\x2b\x87\xfe\xf9\xf0\x28\x1d\xf0\x7b\xd3\x40\x14\xf1\xc3\xea" "\x8e\xbf\x9e\xfe\xdd\x7f\xd7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x07\x48\x11\xbf\x16\x29\x5e\x7a\xef\x64\xaa\xc6\x07\x6f\x8e\x29" "\x6e\xb6\x6e\xd4\xae\x36\xae\xcd\xb6\x87\xf5\x75\xc6\xfe\x75\xc6\x4c\x6f" "\x6c\x6c\x6c\xd4\x52\x3b\xeb\x39\x27\x73\x2e\xe7\x5c\xc9\xb9\x9a\x73\x2d" "\x67\x14\xb9\x7e\xce\x7a\xce\xc9\x9c\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19" "\x3d\xb9\x7e\xce\x7a\xce\xc9\x9c\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19\xbd" "\xb9\x7e\xce\x7a\xce\xc9\x9c\xcb\x39\x57\x72\xae\xe6\x5c\xcb\x19\x07\x64" "\xec\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xf1" "\x52\x54\xff\xa4\xf8\xf6\x37\xd6\xd3\x46\x7f\x7b\x7e\xe9\xc9\x68\xe7\xaa" "\xf9\x40\x3f\xf6\x7e\x11\x00\x00\xff\xff\x14\x0a\xfe\x9f", 3056)); NONFAILING(syz_mount_image(0x20000c00, 0x20000040, 0, 0x20000140, 1, 0xbf0, 0x20000cc0)); NONFAILING(memcpy((void*)0x20000080, "cgroup.controllers\000", 19)); res = syscall(__NR_openat, 0xffffff9c, 0x20000080ul, 0x275aul, 0ul); if (res != -1) r[0] = res; NONFAILING(memcpy( (void*)0x200006c0, "\x0e\x1d\xc4\x6f\x48\x16\xa6\x1a\x8e\x6a\xe8\xf5\xb9\xab\x06\x2e\xe7\x01" "\xf4\xbe\xca\x3a\x61\x5d\x1a\xa3\x69\x48\xb8\x17\x28\x16\xae\xaa\xf1\x30" "\x8a\xf8\xb9\x1f\xc0\xbd\xff\x9e\xe4\x18\x7a\x48\x7d\x4e\x6a\x5d\x40\xd9" "\x8b\x3d\xae\xd6\x81\x91\xd2\x1e\x03\x81\x85\xde\x3f\xb1\x74\x52\xf5\x28" "\x76\xca\xc7\xae\x75\x66\x00\xda\x26\x39\x47\xcc\x23\x0b\x5f\xbf\xb4\x70" "\x58\xd8\x36\x93\x1a\x7a\x13\x1b\x1f\x89\x5d\x95\x41\x3f\x1c\x39\x87\xee" "\x94\x4c\xa5\x22\x8a\xe5\x0f\xbc\xf1\x78\x48\xef\xe3\x80\xaf\x5d\x68\x7c" "\xa8\x2c\x21\xa2\x49\xae\xda\x28\x8e\xcb\x8c\xfc\x55\xce\x38\x65\xd0\x3a" "\xdb\x0b\x0a\x88\xf9\x15\xb2\xbd\x18\x17\x56\x29\x9f\x27\x0d\x86\xa8\x60" "\x62\x57\x7c\xc0\x15\xd9\x06\xa9\x5f\x75\xbe\x47\x25\x0a\x3a\xc5\x12\x85" "\xd1\xa0\x81\x6a\xe6\x82\xe5\x9a\x7c\x64\x1b\x20\x2e\x2f\xde\x8b\xaf\xb6" "\x52\x29\xac\x91\xc8\xfb\xfd\x09\x62\x97\xa6\x09\x17\x64\x58\x33\xa5\x4f" "\xbc\x91\x92\x0c\x6b\xcb\xcd\xd0\xaf\xba\x2b\x1d\x91\x8f\xd1\xcd\x5b\xc1" "\xf9\x21\xe2\xa8\x4a\xb7\x69\x62\x2e\xe7\x9f\x0a\x64\xfe\x12\x3d\xdc\x57" "\xfd\x89\x52\x84\x59", 257)); syscall(__NR_write, r[0], 0x200006c0ul, 0xfea7ul); syscall(__NR_mmap, 0x20000000ul, 0x3000ul, 1ul, 0x10012ul, r[0], 0ul); NONFAILING(memcpy((void*)0x20000000, "f2fs\000", 5)); NONFAILING(memcpy((void*)0x20000100, "./file0\000", 8)); NONFAILING(syz_mount_image(0x20000000, 0x20000100, 0x1100000000000000, 0, 0, 0, 0x20000000)); return 0; }