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