// https://syzkaller.appspot.com/bug?id=7a6f366ed7148c614775d4cf844c8ad21185e84a // 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 #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; static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% 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 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; } static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void setup_binderfs() { if (mkdir("/dev/binderfs", 0777)) { } if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } if (symlink("/dev/binderfs", "./binderfs")) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setsid(); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); setup_binderfs(); loop(); exit(1); } void loop(void) { memcpy((void*)0x20000000, "nilfs2\000", 7); memcpy((void*)0x20000a80, "./file0\000", 8); *(uint16_t*)0x20000140 = 0; *(uint16_t*)0x20000142 = -1; *(uint8_t*)0x20000144 = -1; *(uint8_t*)0x20000145 = -1; *(uint16_t*)0x20000146 = -1; sprintf((char*)0x20000148, "%020llu", (long long)0); sprintf((char*)0x2000015c, "%023llo", (long long)0); sprintf((char*)0x20000173, "0x%016llx", (long long)-1); memcpy( (void*)0x20001540, "\x78\x9c\xec\xdd\x4b\x8c\x1c\x47\xdd\x00\xf0\x9a\xd9\x87\xbd\xb1\xf3\x79" "\x9c\xcf\x26\x8b\x63\x62\x9b\x40\x12\x1e\xd9\x8d\xd7\x8b\x79\x58\x60\x47" "\xb1\x90\xb0\xe2\x88\x5b\xa4\x88\x8b\xe5\x38\xc1\xc2\x31\x28\x8e\x04\x89" "\x22\x61\xfb\xc4\x8d\x44\x91\xb9\xf2\x10\xa7\x5c\x22\x40\x48\xe4\x82\xac" "\x9c\xb8\x44\x22\x96\x22\xa4\x9c\x02\x07\x0e\x58\x46\x8a\xc4\x01\x02\xf6" "\xa2\x9d\xad\x9a\x9d\xf9\x7b\x86\x9e\x5d\xef\xee\xec\xec\xfe\x7e\x52\x6d" "\x4d\x77\xf5\x4c\x55\xcf\x76\xf7\x74\x57\x77\x55\x25\x60\xd3\xaa\x37\xff" "\xce\xce\x4e\xd6\x52\xba\xf2\xd6\xeb\xc7\xff\xf6\xe0\x5f\x27\xe6\xe7\x1c" "\x6d\x2d\xd1\x68\xfe\x1d\x6d\x9b\x1a\x4b\x29\xd5\xf2\xf4\x68\xf8\xbc\x0f" "\x46\x16\xe2\x9b\x1f\xbe\x72\xba\x5b\x5c\x4b\x33\xcd\xbf\x65\x3a\x3d\x79" "\xa3\xf5\xde\x6d\x29\xa5\x8b\x69\x7f\xba\x9a\x1a\x69\xcf\x95\x6b\xaf\xbd" "\x33\xf3\xc4\xc9\x4b\x27\x2e\x1f\x78\xf7\x8d\x23\xd7\x57\x67\xed\x01\x00" "\x60\x73\xf9\xe6\xd5\x23\xb3\xbb\xff\xfc\xc7\xfb\x76\x7e\xf4\xe6\xfd\xc7" "\xd2\x96\xd6\xfc\x72\x7e\xde\xc8\xd3\xdb\xf3\x79\xff\xb1\x7c\xe2\x5f\xce" "\xff\xeb\xa9\x73\xba\xd6\x16\xda\x8d\x87\xe5\x46\x73\xa8\x87\xe5\x46\xba" "\x2c\xd7\x9e\xcf\x58\x58\x6e\xb4\x47\xfe\xe3\xe1\x73\xc7\x7a\x2c\xb7\xa5" "\x22\xff\x91\xb6\x79\xdd\xd6\x1b\x86\x59\xd9\x8e\x1b\xa9\x56\x9f\xea\x98" "\xae\xd7\xa7\xa6\x16\xae\xc9\x53\xf3\xba\x7e\xbc\x36\x75\xfe\xec\xb9\x67" "\x2f\x0c\xa8\xa0\xc0\x8a\xfb\xc7\xbe\x94\xd2\xfe\x21\x0a\x47\xd7\x41\x19" "\x96\x19\xe6\xd6\x41\x19\x86\x32\x1c\x5b\xeb\x3c\xb7\x2e\xee\x20\x83\x5e" "\xf7\x55\x0e\x73\x3b\x06\x79\xf4\x01\x58\x14\xef\x17\xde\xe6\x62\xad\xed" "\x6a\xfe\xce\xb5\xea\x29\x46\xfb\xcb\xff\xc6\x63\xf5\xee\xef\x87\x15\xd0" "\xdf\xf6\x2f\xff\xcd\x9a\xff\x2f\x2f\x39\xe2\xb0\x72\x36\xea\xd6\x54\xd6" "\xab\xec\x47\xdb\xf3\x74\xbc\x8f\x10\x9f\x5f\xea\xbd\xff\xc5\x3b\x1d\x9d" "\x73\xe3\xfd\x88\x7e\xcf\x50\x7a\xdd\x47\x18\x96\xfb\x0b\xbd\xca\x39\xb2" "\xc6\xe5\x58\xae\x5e\xe5\x8f\xdb\xc5\x46\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\x63\x5b\xe6\xe7\x1f\x5c\xe3\x72" "\x03\x77\xae\xdf\xf6\x3f\x93\xa9\xb3\xfd\xcf\xf6\xd6\xfc\xb1\x7a\xfb\x71" "\x61\xc7\xe2\xfc\x5a\xfb\x71\xa1\x11\xe6\xcf\xf4\x98\x7f\x28\x4f\x97\xdf" "\xb9\x6f\x8f\x4c\x34\xe7\x4f\x9d\xfe\xee\xb9\x67\x56\x7a\xe5\x61\x93\xbb" "\xf0\xd2\xcb\xdf\x39\x75\xee\xdc\x99\x17\x36\xde\x8b\xf9\x53\xee\xd5\xce" "\x6b\x5f\x4a\xe9\x85\xaf\x0f\x7a\x4d\xbd\xf0\x62\xc5\x5f\x0c\xfa\xc8\x04" "\xac\xb6\xe9\x17\x9f\xff\xde\xf4\x85\x97\x5e\x7e\xe4\xec\xf3\xa7\x9e\x3b" "\xf3\xdc\x99\xf3\x87\x0e\x1f\x3e\x34\x33\x73\xf8\xcb\x87\x66\xa7\x9b\xe7" "\xf5\xd3\xed\x67\xf7\xc0\x46\xb2\xf8\xa3\x3f\xe8\x92\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xfd\xfa\xfe\x89\xe3\xd7\xde\x7b\xfb\x8b\xef\x2f\xb4" "\xff\x5f\x6c\xff\x57\xda\xff\x97\x27\x7f\x4b\xfb\xff\x1f\x85\xf6\xff\xb1" "\x9d\x7c\x69\x07\x5f\xda\x01\xee\xec\x92\xde\x5c\x26\x74\xb0\x3a\x1e\x96" "\x1b\xcb\xe1\xff\x43\x79\x77\x85\x7c\x76\x87\xf7\x7d\x2c\xc7\xad\x71\xfc" "\x72\xfb\xff\x92\x5d\xec\xd7\xb5\x94\xe7\xde\x30\x3f\xf6\xdf\x5b\x96\x0b" "\xdd\x09\xdc\xd6\x5f\xca\x78\xe8\x83\x24\x8e\x17\xf8\xc9\x1c\x5f\xce\xf1" "\x2f\x12\x0c\x50\x6d\xa2\xfb\xec\x1c\x57\xf5\x6f\x5d\xb6\xf5\xd2\x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xf1\x7f" "\x87\xdb\x57\x72\x5c\xb5\x3f\x94\xf1\x7f\xcb\xf6\xd8\xc8\x3f\xf9\x6d\xd3" "\xcd\xef\xb2\x4c\x8f\x75\xf9\x6e\x37\xea\xb1\x06\x86\xd5\x07\x1b\xf9\xfe" "\x9f\x20\xac\xd3\xd0\x1a\x27\x6e\xc0\xe5\x98\x9b\x9b\x5b\xdd\x0a\xad\x0a" "\x03\xcd\x9c\x81\x7f\xff\x83\xbe\x4e\x18\x74\xfe\x83\xfe\xfe\xab\xc4\xf1" "\x7f\xe3\x39\x7c\x1c\xff\x37\xa6\xc7\xf1\x7f\x63\x7a\x1c\xff\x37\xa6\xc7" "\xf1\xf5\x62\x7a\x1c\xff\x37\x7e\x9f\x71\xfc\xdf\x98\x7e\x6f\xf8\xdc\x38" "\x3e\xf0\x64\x45\xfa\xc7\x2b\xd2\xf7\x74\x4f\x6f\x5d\xb6\xdf\x57\xf1\xfe" "\xbd\x15\xe9\x9f\xa8\x48\x3f\x50\x91\x7e\x7f\x45\xfa\xbe\x8a\xf4\x7b\x2a" "\xd2\x1f\xa8\x48\xff\x54\x99\xff\xc3\xee\xe9\x9f\xae\x78\xff\x83\x15\xe9" "\x0f\x57\xa4\x7f\xa6\x22\x7d\xa3\x2b\xed\x51\x36\xeb\xfa\xc3\x66\x16\xdb" "\xe7\xd9\xff\x61\xf3\x28\xf7\x7f\x7a\xed\xff\xbb\x2a\xd2\x81\xe1\xf5\x93" "\x37\x0f\x3e\xfe\xf4\xaf\xbf\xd5\x58\x68\xff\x3f\xde\xaa\x0f\x29\xf7\xf1" "\x8e\xe5\xe9\xb1\x7c\xed\xfc\x83\x3c\x1d\xef\x7b\xa7\xb6\xe9\xf9\xb4\xb7" "\xf3\xf4\x5f\x42\xfa\x7a\xaf\xef\x80\xcd\x24\xf6\x9f\x11\x7f\xdf\x1f\xaa" "\x48\x07\x86\x57\x79\xce\xcb\xfe\x0d\x9b\x50\xad\x7b\x8f\x3d\xfd\xf6\x5b" "\xd5\xeb\x3c\x9f\xe1\xf2\xd9\x1c\x7f\x2e\xc7\x9f\xcf\xf1\x23\x39\x9e\xca" "\xf1\x74\x8e\x0f\xe6\x78\x66\x8d\xca\xc7\xea\x78\xfc\x57\xbf\x3d\xf2\x6a" "\x6d\xf1\x7a\x7f\x47\x48\xef\xf7\x79\xf2\xd8\x1e\xa8\xa3\x9f\xa8\x94\xd2" "\xa1\x3e\xcb\x13\xeb\x07\x96\xfa\x3c\x7b\xec\xc7\x6f\xa9\xee\x34\xff\x65" "\x36\x07\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\x98\x7a\xf3\xef\xec\xec\x64\x2d\xa5" "\x2b\x6f\xbd\x7e\xfc\xa9\x93\x67\xa7\xe7\xe7\x1c\x6d\x2d\xd1\x68\xfe\x1d" "\x6d\x9b\x1a\x6b\xbd\x2f\xa5\x47\x73\x3c\x92\xe3\x9f\xe5\x17\x37\x3f\x7c" "\xe5\x74\x7b\x7c\x2b\xc7\xb5\x34\x93\x6a\xa9\xd6\x9a\x9f\x9e\xbc\xd1\xca" "\x69\x5b\x4a\xe9\x62\xda\x9f\xae\xa6\x46\xda\x73\xe5\xda\x6b\xef\xcc\x3c" "\x71\xf2\xd2\x89\xcb\x07\xde\x7d\xe3\xc8\xf5\xd5\xfb\x06\x00\x00\x00\x60" "\xe3\xfb\x6f\x00\x00\x00\xff\xff\xe2\x10\x0d\x93", 2694); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000a80, /*flags=*/0x10000, /*opts=*/0x20000140, /*chdir=*/1, /*size=*/0xa86, /*img=*/0x20001540); memcpy((void*)0x20000000, "blkio.bfq.io_wait_time\000", 23); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000000ul, /*flags=*/0x275aul, /*mode=*/0ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); do_sandbox_none(); return 0; }