// https://syzkaller.appspot.com/bug?id=8da73f8350f6714909902481d52352994a2b124f // 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 319 #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, 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*)0x20000a40, "nilfs2\000", 7); memcpy((void*)0x20000a80, "./file0\000", 8); *(uint8_t*)0x20000ac0 = 0; memcpy( (void*)0x20000b00, "\x78\x9c\xec\xdd\x5d\x88\x5c\xd5\x1d\x00\xf0\x73\x67\x77\x36\x9f\x36\x13" "\x9b\xd4\xad\x46\x4d\x6b\x5b\xed\x87\xbb\x6e\x4c\x5a\x6d\xaa\x89\x18\x28" "\xa5\x10\xf2\xac\x7d\x91\x18\xd3\x90\x98\x96\x46\xa4\x8a\x0f\xa9\x4f\x7d" "\x11\x05\x31\xcf\xb1\xf4\xa5\x2f\x4a\x5b\x8a\xfa\x52\x82\x0f\x45\x0a\x4a" "\x29\x14\xa1\x4f\x56\xfa\x9a\x82\xd0\x87\x52\xd0\x95\xec\x9e\x33\x3b\xfb" "\xcf\x0c\x77\x66\xb3\xbb\xb3\xb3\xf3\xfb\xc1\xd9\x33\xe7\x9e\x33\x73\xce" "\x9d\xbd\x73\xe7\xce\xbd\xf7\x9c\x93\x80\xb1\xd5\x58\xf8\x7b\xf0\xe0\x74" "\x95\xd2\x6b\xef\xbc\x7a\xec\xf6\xd7\xdf\x7b\xf9\xda\x92\x23\xed\x12\xad" "\x85\xbf\x93\x1d\xa9\x66\x4a\xa9\xca\xe9\xc9\xf0\x7a\x1f\x4d\x2c\xc6\x9f" "\x7e\xf2\xc2\xc9\x6e\x71\x95\x0e\x2c\xfc\x2d\xe9\x74\xfc\x6a\xfb\xb9\x3b" "\x52\x4a\x17\xd3\xfe\x74\x25\xb5\xd2\x4b\x8f\x5f\x9a\xfc\xf0\xad\xe3\x1f" "\xbc\x91\xce\x3e\x7b\xe2\xd8\xfb\x6f\xaf\xcd\xda\x2f\xa9\xd6\xba\x02\x00" "\x00\xd8\x00\x4e\x5c\x39\x7c\x70\xef\xbf\xfe\x76\xdb\xee\xff\xbf\x79\xc7" "\xd1\xb4\xa5\xbd\xbc\x1c\x9f\xb7\x72\x7a\x67\x3e\xee\x3f\x9a\x0f\x94\xcb" "\xf1\x72\x23\x2d\x4f\x57\x1d\xa1\xd3\x54\x28\x37\x99\x43\x23\x94\x9b\xe8" "\x52\xae\xb3\x9e\x66\x28\x37\xd9\xa3\xfe\xa9\xf0\xba\xcd\x1e\xe5\xb6\xd4" "\xd4\x3f\xd1\xb1\xac\xdb\x7a\xc3\x28\x2b\xdb\x71\x2b\x55\x8d\x99\x65\xe9" "\x46\x63\x66\x66\xf1\x37\x79\x5a\xf8\x5d\x3f\x55\xcd\x9c\x3f\x73\xee\xa9" "\x0b\x43\x6a\x28\xb0\xea\xfe\x7b\x67\x4a\x69\xbf\x20\x08\xe3\x18\xe6\x77" "\x0d\x7b\x0f\x04\xb0\x28\x5e\x2f\xbc\xce\xc5\xd5\xbd\x52\xd7\x7e\xb5\xc9" "\xfe\xea\xbf\xfa\x48\xa3\xfb\xf3\x61\x15\xac\xf7\xf6\xaf\xfe\xd1\xaa\xff" "\xb7\xbf\xb2\xc7\x61\xf5\x6c\xd6\xad\xa9\xac\x57\xf9\x1c\xed\xcc\xe9\x78" "\x1d\x21\xde\xbf\x34\xe8\xe7\xbf\xbc\x5e\xbc\x1e\xd1\xec\xb3\x9d\xbd\xae" "\x23\x8c\xca\xf5\x85\x5e\xed\x9c\x58\xe7\x76\xac\x54\xaf\xf6\xc7\xed\x62" "\xb3\x7a\x28\xc7\xe5\x7d\x78\x38\xe4\x77\x7e\x7e\xe2\xff\x74\x54\xfe\xc7" "\x40\x77\xff\x73\xfe\x5f\x10\xc6\x36\xcc\x0f\x7b\x07\x04\x6c\x58\xf1\xbe" "\xb9\xf9\xac\xe4\xc7\xfb\xfa\x62\xfe\x96\x9a\xfc\xad\x35\xf9\xdb\x6a\xf2" "\xb7\xd7\xe4\xef\xa8\xc9\x87\x71\xf6\xc7\x67\x5e\x4e\xaf\x54\x4b\xbf\xf3" "\xe3\x6f\xfa\x41\xcf\x87\x95\xf3\x6c\x37\xe5\xf8\x0b\x03\xb6\x27\x9e\x8f" "\x1c\xb4\xfe\x78\xdf\xef\xa0\x6e\xb4\xfe\x78\x3f\x31\x6c\x68\x3b\xfe\x72" "\xe9\x81\x27\x1f\xfb\xfb\xe2\xfd\xff\x55\x7b\xfb\xff\x2c\x6f\xef\xfb\x73" "\xba\x95\x3f\x5b\x57\x72\x81\x72\xbe\x30\x9e\x57\x6f\xdf\xfb\xdf\x5a\x5e" "\x4d\xa3\x47\xb9\x9b\x43\x73\x6e\xea\x52\x7e\xe1\xf1\x9e\xe5\xe5\xaa\x3d" "\x4b\xaf\x93\x3a\xf6\x33\xd7\xb5\x63\x7a\xf9\xf3\x76\xf5\x2a\xb7\x6f\x79" "\xb9\x56\x28\xb7\x2d\x87\xad\xa1\xbd\xf1\xf8\x64\x7b\x78\x5e\x39\xfe\x28" "\xfb\xd5\xf2\x7e\x4d\x86\xf5\x6d\x86\xf5\x98\x0a\xed\x28\xfb\x95\xdd\x39" "\x8e\xed\x80\x95\x28\xdb\x63\xaf\xfb\xff\xcb\xf6\x39\x9d\x9a\xd5\x53\x67" "\xce\x9d\xba\x2f\xa7\xcb\x76\xfa\xde\x44\x73\xcb\xb5\xe5\x73\xeb\xdc\x6e" "\xe0\xc6\xf5\xdb\xff\x67\x3a\x2d\xef\xff\xb3\xb3\xbd\xbc\xd9\xe8\xdc\x2f" "\xec\x5a\x5a\x5e\x75\xee\x17\x5a\x61\xf9\x81\x1e\xcb\xef\xcf\xe9\xf2\x3d" "\xf7\xd3\x89\x6d\x0b\xcb\x67\x4e\xfe\xec\xdc\x93\xab\xbd\xf2\x30\xe6\x2e" "\x3c\xf7\xfc\xd9\x27\xce\x9d\x3b\xf5\x0b\x0f\x3c\xf0\xc0\x83\xf6\x83\x61" "\xef\x99\x80\xb5\x36\xfb\xcc\xd3\x3f\x9f\xbd\xf0\xdc\xf3\xf7\x9e\x79\xfa" "\x89\xd3\xa7\x4e\x9f\x3a\x3f\x77\x68\xee\x81\x07\x0f\xcd\xcd\x7d\xf7\xc1" "\xd9\x85\xe3\xfa\xd9\xce\xa3\x7b\x60\x33\x59\xfa\xd2\x1f\x76\x4b\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x80\x7e\x9d\xfe\x78\xf6\xf2\x3f\xde\xfd\xde" "\x3f\x17\xfb\xff\x2f\xf5\xff\x2b\xfd\xff\xcb\x9d\xbf\xa5\xff\xff\xaf\x43" "\xff\xff\xd8\x4f\xbe\xf4\x83\x2f\xfd\x00\x77\x77\xc9\x5f\x28\x13\x06\x58" "\x9d\x0a\xe5\x9a\x39\x7c\x31\xb4\x77\x4f\xa8\x67\x6f\x78\xde\x97\x72\xdc" "\x9e\xc7\x2f\xf7\xff\x2f\xd5\xc5\x71\x5d\x4b\x7b\x6e\x09\xcb\xe3\xf8\xbd" "\xa5\x5c\x18\x4e\xe0\xba\xf1\x52\xa6\xc2\x18\x24\x71\xbe\xc0\xaf\xe6\xf8" "\xc5\x1c\xff\x26\xc1\x10\x55\xdb\xba\x2f\xce\x71\xdd\xf8\xd6\x65\x5b\x2f" "\xe3\x53\x18\x97\x62\x34\x95\xff\x5b\xd9\x1a\xca\x38\x26\xa5\xff\x77\xaf" "\x71\x9d\xca\xfe\x7f\xf7\x3a\xb4\x91\xd5\xb7\x1e\xdd\x09\x87\xbd\x8e\x40" "\x77\xff\x31\xfe\xb7\x20\x8c\x6d\x98\x9f\x37\x8b\x07\xb0\x31\x0c\x7b\xfe" "\xcf\x72\xde\xb3\xc4\xe7\xff\xfc\xa3\xad\xd7\x42\x29\x76\xf5\x91\xe5\xfb" "\xcb\x38\x7e\x29\xdc\x88\x8d\x3e\xff\xa4\xfa\x37\xd7\xfc\x9f\xed\xf9\xef" "\xfa\xde\xff\x85\x19\xf3\x5a\x2b\xab\xf7\xf0\x8b\x3f\xfe\x77\x47\xb5\xe9" "\xd6\x7e\xeb\x8f\xeb\x5f\xc6\x81\xde\x33\x58\xfd\x3f\xc8\xf5\x97\xb5\xb9" "\x3b\xf5\x57\xff\xfc\xeb\xa1\xfe\x78\x41\xa8\x4f\x0f\x85\xfa\xb7\xf7\x59" "\xff\x75\xeb\xbf\x6f\x65\xf5\x3f\x9c\xeb\x2f\x6f\xdb\x3d\x77\xf5\x5b\xff" "\x62\x8b\xab\xc6\xf2\x76\xc4\xf3\xc6\xe5\xfa\x5f\x3c\x6f\x5c\x1c\x09\xeb" "\x5f\xc6\xf6\x1c\x78\xfd\x57\x38\x51\xe3\xd1\x5c\x3f\x8c\xb3\x51\x99\x67" "\x76\x50\xa3\x32\xff\x6f\x2f\xf1\x3e\x8c\x43\x39\x5d\x76\x84\xe5\x3e\x87" "\x38\xdf\xc9\xa0\xed\x2f\xf7\x57\x94\xef\x81\xbd\xe1\xf5\xab\x9a\xef\x37" "\xf3\xff\x8e\xb6\xef\xe7\xb8\xee\xf3\x50\xe6\xff\x2d\xdb\x63\xab\x4b\xba" "\xd1\x91\x6e\x76\x79\x6f\x37\xeb\xbe\x06\x46\xd5\x47\xae\xff\x09\xc2\xd8" "\x86\xf9\xf9\xf9\xb5\x3d\xa1\x55\x63\xa8\x95\x33\xf4\xf7\x7f\xd8\xbf\x13" "\x86\x5d\xff\xb0\xdf\xff\x3a\x71\xfe\xdf\x78\x0c\x1f\xe7\xff\x8d\xf9\x71" "\xfe\xdf\x98\x1f\xe7\xff\x8d\xf9\x71\x7e\xbd\x98\x1f\xe7\xff\x8d\xef\x67" "\x9c\xff\x37\xe6\xdf\x12\x5e\x37\xce\x0f\x3c\x5d\x93\xff\xe5\x9a\xfc\x5b" "\x6b\xf2\x6f\xab\xc9\xdf\x57\x93\x7f\x7b\x4d\xfe\x57\x6a\xf2\xef\xa8\xc9" "\xbf\xb3\x26\xff\xe6\x9a\xfc\xbb\x6a\xf2\xbf\x56\x93\xff\xf5\x9a\xfc\x6f" "\xd4\xe4\xdf\x53\x93\xff\xcd\x9a\xfc\xcd\xae\xf4\x47\x19\xd7\xf5\x87\x71" "\x16\xfb\xe7\xf9\xfc\xc3\xf8\x28\xd7\x7f\x7a\x7d\xfe\xf7\xd4\xe4\x03\xa3" "\xeb\xd2\x9b\x73\x8f\x3e\xf6\x87\x9f\xb4\x16\xfb\xff\x4f\xb5\xcf\x87\x94" "\xeb\x78\x47\x73\xba\x99\x7f\x3b\xff\x32\xa7\xe3\x75\xef\xd4\x91\xbe\x96" "\xf7\x6e\x4e\x7f\x1c\xf2\x37\xfa\xf9\x0e\x18\x27\x71\xfc\x8c\xf8\xfd\x7e" "\x77\x4d\x3e\x30\xba\xca\x7d\x5e\x3e\xdf\x30\x86\xaa\xee\x23\xf6\xf4\x3b" "\x6e\x55\xaf\xe3\x7c\x46\xcb\xb7\x72\xfc\xed\x1c\x7f\x27\xc7\xf7\xe6\x78" "\x26\xc7\xb3\x39\x9e\xcb\xf1\x81\x75\x6a\x1f\x6b\xe3\xd1\xdf\xff\xe9\xf0" "\x2b\xd5\xd2\xef\xfd\x5d\x21\xbf\xdf\xfb\xc9\x63\x7f\xa0\x38\x4e\xd4\xfd" "\x7d\xb6\x27\x9e\x1f\x18\xf4\x7e\xf6\x38\x8e\xdf\xa0\x6e\xb4\xfe\x15\x76" "\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\x9a\xc6\xc2\xdf\x83\x07\xa7\xab\x94\x5e" "\x7b\xe7\xd5\x63\x97\xff\xfa\xc3\xdf\x5d\x5b\x72\xa4\x5d\xa2\xb5\xf0\x77" "\xb2\x23\xd5\x6c\x3f\x2f\xa5\xfb\x72\x3c\x91\xe3\xcb\xf9\xc1\xa7\x9f\xbc" "\x70\xb2\x33\xfe\x2c\xc7\x55\x3a\x90\xaa\x54\xb5\x97\xa7\xe3\x57\xdb\x35" "\xed\x48\x29\x5d\x4c\xfb\xd3\x95\xd4\x4a\x2f\x3d\x7e\x69\xf2\xc3\xb7\x8e" "\x7f\xf0\x46\x3a\xfb\xec\x89\x63\xef\xbf\xbd\x76\xef\xc0\xa2\x6a\xad\x2b" "\x00\x00\x00\x80\x21\xfa\x3c\x00\x00\xff\xff\x6e\x52\x06\x38", 2571); syz_mount_image(0x20000a40, 0x20000a80, 0, 0x20000ac0, 1, 0xa0b, 0x20000b00); memcpy((void*)0x20000000, "./bus\000", 6); syscall(__NR_creat, 0x20000000ul, 0ul); } 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); do_sandbox_none(); return 0; }