// https://syzkaller.appspot.com/bug?id=c6df36580be23cc63665fb67389d6c301e8bdb02 // 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; } static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) { if (a0 == 0xc || a0 == 0xb) { char buf[128]; sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2); return open(buf, O_RDWR, 0); } else { char buf[1024]; char* hash; strncpy(buf, (char*)a0, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; while ((hash = strchr(buf, '#'))) { *hash = '0' + (char)(a1 % 10); a1 /= 10; } return open(buf, a2, 0); } } //% 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; 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) { unsigned len; s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; 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->out != (unsigned char*)0) { if (s->outcnt + len > s->outlen) return 1; while (len--) s->out[s->outcnt++] = s->in[s->incnt++]; } else { s->outcnt += len; s->incnt += len; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int len; int code; int first; int count; int index; int bitbuf; int left; short* next; bitbuf = s->bitbuf; left = s->bitcnt; code = first = index = 0; len = 1; next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; 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 symbol; int len; int left; short offs[MAXBITS + 1]; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } 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) { int symbol; int len; unsigned dist; 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}; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->out != (unsigned char*)0) { if (s->outcnt == s->outlen) return 1; s->out[s->outcnt] = symbol; } s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->out != (unsigned char*)0) { if (s->outcnt + len > s->outlen) return 1; while (len--) { s->out[s->outcnt] = dist > s->outcnt ? 0 : s->out[s->outcnt - dist]; s->outcnt++; } } else s->outcnt += len; } } 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) { int symbol; short lengths[FIXLCODES]; lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; 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) { int nlen, ndist, ncode; int index; int err; short lengths[MAXCODES]; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman lencode, distcode; static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; nlen = puff_bits(s, 5) + 257; ndist = puff_bits(s, 5) + 1; ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; 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; 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; int last, type; int err; s.out = dest; s.outlen = *destlen; s.outcnt = 0; s.in = source; s.inlen = *sourcelen; s.incnt = 0; s.bitbuf = 0; s.bitcnt = 0; if (setjmp(s.env) != 0) err = 2; else { do { last = puff_bits(&s, 1); 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); } if (err <= 0) { *destlen = s.outcnt; *sourcelen = s.incnt; } 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, unsigned long destlen) { if (sourcelen < ZLIB_HEADER_WIDTH) return -12; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; void* ret = mmap(0, destlen, PROT_WRITE | PROT_READ, MAP_SHARED, dest_fd, 0); if (ret == MAP_FAILED) return -13; unsigned char* dest = (unsigned char*)ret; unsigned long destlen_copy = destlen; int err = puff(dest, &destlen_copy, source, &sourcelen); if (err) return err; err = munmap(dest, destlen); if (err) return -14; return 0; } static int setup_loop_device(long unsigned size, long unsigned compressed_size, unsigned char* data, const char* loopname, int* memfd_p, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (ftruncate(memfd, size)) { err = errno; goto error_close_memfd; } err = puff_zlib_to_file(data, compressed_size, memfd, size); if (err) { 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; } } *memfd_p = 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 unsigned long size, volatile unsigned long compressed_size, volatile long flags, volatile long optsarg, volatile long change_dir, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!compressed_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(size, compressed_size, data, loopname, &memfd, &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); close(memfd); } 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; memcpy((void*)0x200004c0, "ext4\000", 5); memcpy((void*)0x20000500, "./file0\000", 8); *(uint8_t*)0x20000540 = 0; memcpy( (void*)0x20000580, "\x78\x9c\xec\xdd\xcb\x6f\x1b\xd5\x1a\x00\xf0\x6f\xec\xa4\x4d\xd2\xdc\xdb" "\xd7\x95\x7a\xdb\xc5\x6d\xa5\xde\x52\x1e\xaa\xdd\x24\x4d\x5f\xea\x06\xb1" "\x60\x55\xf1\xe8\x8a\x4d\xa3\x90\xba\xa1\xd4\x89\xa3\xd8\x09\x4d\xc4\x22" "\x5d\xb2\x63\x81\x04\x12\x2a\x08\xb1\x64\xcd\xbe\x7f\x01\x12\x82\x05\xb0" "\x40\xac\x58\x20\x21\x90\xca\x82\x05\x92\x91\xc7\x76\x9a\x97\x23\x03\x69" "\x2c\x65\x7e\x3f\xc9\xf5\x99\x33\x53\x7f\xe7\xc4\xfa\x8e\x8e\xcf\x8c\x3d" "\x01\x64\xd6\xa9\xc6\x3f\x49\xc4\x70\x44\x7c\x11\x11\x07\x9b\x9b\xeb\x0f" "\x38\xd5\x7c\xba\x99\x2c\x4e\x4d\x24\x8b\x53\x49\xd4\xeb\x37\x7e\x49\xd2" "\xe3\x1a\x75\xed\x43\xdb\xff\xef\x40\x44\xac\x44\xc4\x40\x44\xbc\xfa\x62" "\xc4\xeb\xc9\xe6\xb8\xd5\xa5\xe5\xbb\x93\xe5\x72\x69\xbe\xb5\x5d\xac\xcd" "\xcc\x15\xab\x4b\xcb\xe7\xee\xcc\x4c\x4e\x97\xa6\x4b\xb3\x23\x97\xaf\x8c" "\x5f\x18\xbb\x38\x7a\x69\x7c\xc7\xfa\x5a\x3c\xf3\xdd\x2b\x0f\xbe\x7f\xe9" "\xe3\x07\x2f\x7c\x76\xed\xea\xa1\xbe\xd7\x1a\xcd\x1a\x6e\xed\x5b\xdb\x8f" "\x9d\xd4\xec\x7a\x7f\x1c\x5e\x53\xd7\x17\x11\xd7\x9e\x44\xb0\x1e\xc8\xb7" "\xfa\x33\xd8\xeb\x86\xf0\xb7\x34\xde\xbf\xa3\x11\x71\x3a\xcd\xff\x83\x91" "\x4f\xdf\x4d\x20\x0b\xea\xf5\x7a\xfd\x8f\xfa\xfe\x4e\xbb\x57\xea\xc0\x9e" "\x95\x4b\xe7\xc0\x49\xae\x10\x11\xcd\x72\x2e\x57\x28\x34\xe7\xf0\xff\x89" "\xa1\x5c\xb9\x52\xad\x3d\x77\xbb\xb2\x30\x7b\xab\x39\x57\x3e\x14\xfd\xb9" "\xdb\x77\xca\xa5\xf3\xad\xcf\x0a\x87\xa2\x3f\x69\x6c\x8f\xa4\xe5\xc7\xdb" "\xa3\x1b\xb6\xc7\x22\xd2\x39\xf0\x7b\xf9\xc1\x74\xbb\x30\x55\x29\xdf\xda" "\xdd\xa1\x0e\xd8\xe0\xc0\x86\xfc\xff\x2d\xdf\xcc\x7f\x20\x23\x7c\xe4\x87" "\xec\x92\xff\x90\x5d\xf2\x1f\xb2\x4b\xfe\x43\x76\xc9\x7f\xc8\x2e\xf9\x0f" "\xd9\x25\xff\x21\xbb\xe4\x3f\x64\x97\xfc\x87\xec\x92\xff\x90\x5d\xf2\x1f" "\x32\xe9\xe5\xeb\xd7\x1b\x8f\xfa\x44\xeb\xfb\xef\x6f\xcc\x2f\xd4\x16\xef" "\xdc\x2d\x4c\x15\xa6\x2b\x95\xe9\x72\x69\xbe\x5a\x98\xaa\xcc\x74\xff\x7a" "\xe5\x4a\x65\x6e\x64\x24\x16\xee\x15\x6b\xa5\x6a\xad\x58\x5d\x5a\x9e\x98" "\xa9\x2c\xcc\xd6\x26\xd2\xef\xf5\x4f\x94\xfa\x9f\x60\x5f\x80\xbf\xe6\xf0" "\xc9\x87\xdf\x26\x11\xb1\x72\x75\x30\x7d\x34\xec\x6b\xed\x93\xab\xb0\xb7" "\xd5\xeb\x49\xf4\xfa\x3b\xc8\x40\x6f\xe4\x7b\x3d\x00\x01\x3d\x63\xe9\x0f" "\xb2\xcb\x67\x7c\x60\x8b\x9f\xe8\x5d\x67\xa0\xd3\x8e\xb9\x9d\x6f\x0b\xb0" "\x3b\x72\xbd\x6e\x00\xd0\x33\x67\x8f\x3b\xff\x07\x59\x65\xfd\x1f\xb2\xcb" "\xfa\x3f\x64\x97\x39\x3e\x60\xfd\x1f\xb2\xc7\xfa\x3f\x64\xd7\x70\x87\xfb" "\x7f\xfd\x6b\xcd\xbd\xbb\xce\x47\xc4\xbf\x23\xe2\x9b\x7c\xff\xfe\xf6\xbd" "\xbe\x80\xbd\x20\xf7\x53\xd2\x9a\xff\x9f\x3d\xf8\xff\xe1\x8d\x7b\xf7\x25" "\xbf\xa7\xa7\x08\xf6\x45\xc4\x5b\x1f\xde\x78\xff\xde\x64\xad\x36\x3f\xd2" "\xa8\xff\x75\xb5\xbe\xf6\x41\xab\x7e\xb4\x17\xed\x07\xba\xd5\xce\xd3\x76" "\x1e\x03\x00\xd9\x75\x33\x59\x9c\x6a\x3f\x76\x33\xee\xcf\xcf\x37\x2f\x42" "\xd8\x1c\xbf\xaf\xb5\x36\x39\x90\x9e\xa3\x1c\x7a\x94\xac\xbb\x56\x21\xd9" "\xa1\x6b\x17\x56\xee\x47\xc4\x7f\xb7\x8a\x9f\xb4\xee\x77\xde\x3c\xf3\x31" "\xf4\x28\xbf\x29\xfe\x91\xd6\x73\xd2\x7c\x89\xb4\xbd\x7d\xe9\x7d\xd3\x77" "\x27\xfe\xf1\x35\xf1\xff\xb7\x26\xfe\x89\x7f\xfc\x57\x81\x6c\x78\xd8\x18" "\x7f\xce\x6f\x95\x7f\xb9\x34\xa7\x63\x35\xff\xd6\x8f\x3f\xc3\x3b\x74\xed" "\x44\xe7\xf1\x2f\xb7\x3a\xfe\xe5\x3b\x8c\x7f\x27\xbb\x8c\x71\xec\xc7\xe3" "\x95\x8e\xf1\xef\x47\x9c\xd8\x32\x7e\x3b\xde\x40\x1a\x6b\x63\xfc\x46\xdb" "\xce\x76\x19\x7f\xe5\xa9\x7b\x9b\xd6\x95\xda\xea\x9f\x34\x5f\x67\xab\xf8" "\x6d\x8d\x52\xb1\x36\x33\x57\xac\x2e\x2d\x9f\x4b\x7f\x47\x6e\xba\x34\x3b" "\x72\xf9\xca\xf8\x85\xb1\x8b\xa3\x97\xc6\x8b\xe9\x1a\x75\xb1\xbd\x52\xbd" "\xd9\xbb\x73\x3f\x9c\xd9\xae\xff\x43\x1d\xe2\x6f\xd7\xff\x46\xdd\x33\x5d" "\xf6\xff\xa3\xaf\xde\x9c\x3c\xb5\x4d\xfc\xa7\x4f\x6f\xfd\xfe\x1f\xd9\x26" "\xfe\x60\x44\x3c\xdb\x65\xfc\x63\x9f\x7f\xfd\x4e\xa7\x7d\x8d\xf8\xb7\x3a" "\xf4\x3f\xb7\x4d\xfc\x46\xdd\x58\x97\xf1\xbf\x7c\xfb\xe8\xa7\x5d\x1e\x0a" "\x00\xec\x82\xea\xd2\xf2\xdd\xc9\x72\xb9\x34\xaf\xa0\xa0\xa0\xb0\x5a\xe8" "\xf5\xc8\x04\x3c\x69\x8f\x93\xbe\xd7\x2d\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xba\xb5\x1b\x97\x13\xf7\xba\x8f\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7b\xc1\x9f" "\x01\x00\x00\xff\xff\x57\x3f\x94\x0f", 1179); syz_mount_image(0x200004c0, 0x20000500, 0x40000, 0x49b, 0, 0x20000540, 1, 0x20000580); memcpy((void*)0x20002300, "/dev/loop#\000", 11); res = -1; res = syz_open_dev(0x20002300, 0, 0x10d902); if (res != -1) r[0] = res; syscall(__NR_fallocate, r[0], 0x11ul, 0ul, 0x100007e00ul); } 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; }