// https://syzkaller.appspot.com/bug?id=ba4286c15d3479ff087fb1af311a1aa27fc32afc // 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, 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 void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } 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, 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) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); 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) reset_loop_device(loopname); errno = err; return res; } static void sandbox_common_mount_tmpfs(void) { write_file("/proc/sys/fs/mount-max", "100000"); if (mkdir("./syz-tmp", 0777)) exit(1); if (mount("", "./syz-tmp", "tmpfs", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot", 0777)) exit(1); if (mkdir("./syz-tmp/newroot/dev", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/dev", "./syz-tmp/newroot/dev", NULL, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/proc", 0700)) exit(1); if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/selinux", 0700)) exit(1); const char* selinux_path = "./syz-tmp/newroot/selinux"; if (mount("/selinux", selinux_path, NULL, bind_mount_flags, NULL)) { if (errno != ENOENT) exit(1); if (mount("/sys/fs/selinux", selinux_path, NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); } if (mkdir("./syz-tmp/newroot/sys", 0700)) exit(1); if (mount("/sys", "./syz-tmp/newroot/sys", 0, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/pivot", 0777)) exit(1); if (syscall(SYS_pivot_root, "./syz-tmp", "./syz-tmp/pivot")) { if (chdir("./syz-tmp")) exit(1); } else { if (chdir("/")) exit(1); if (umount2("./pivot", MNT_DETACH)) exit(1); } if (chroot("./newroot")) exit(1); if (chdir("/")) exit(1); } 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"); sandbox_common_mount_tmpfs(); setup_binderfs(); loop(); exit(1); } uint64_t r[1] = {0xffffffffffffffff}; void loop(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000140, "udf\000", 4); memcpy((void*)0x20000040, "./file0\000", 8); memcpy((void*)0x20000280, "\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d\x6b\x6f\x69\x38\x2d\x72\x75" "\x2c\x76\x6f\x6c\x75\x6d\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x00\x00\x00\x00\x63\x68\x6f\x72\x3d\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x34\x2c\x6e" "\x6f\x61\x64\x69\x6e\x69\x63\x62\x2c\x67\x69\x64\x3d\x69\x67\x6e\x6f" "\x72\x65\x2c\x75\x69\x64\x3d\x69\x67\xee\x6f\x72\x00\x00\x67\x69\x64" "\x3d\xc7\x86\x55\x30\x22\x1d\x5c\xf1\xff\xa3\x3f\x31\x45\x77\xd4\x14" "\xdd\x0f\x02\x98\x9f\x34\x4a\xa1\xda\xf1\x51\x7b\x81\x64\x80\x77\x0a" "\x92\xf1\xea\xea\xb3\xd7\x89\x57\xfc\x83\xdf\x54\x5f\xaf\x18\x98\x20" "\x84\x5d\x1a\x3a\xe4\x87\x28\xee\x6e\xd8\x68\x4b\x4f\x3a\xcf\xf2\x8b" "\x7d\x51\x84\x88\x13\xc9\x1e\x8e\x62\x78\xa3\xcf\xa7\x2e\xec\x12\x0e" "\xbb\xc7\xba\xaa\xf7\x8c\x06\x23\x00\x00\x00\x00\x00\x00\x00", 202); sprintf((char*)0x2000034a, "%020llu", (long long)-1); sprintf((char*)0x2000035e, "%020llu", (long long)-1); memcpy( (void*)0x20001180, "\x78\x9c\xec\xdd\x41\x6c\x1c\xd7\x7d\x07\xe0\xff\x1b\x2d\x45\x4a\x6e\x2b" "\x26\x4e\x54\xbb\x8d\x8b\x4d\x5b\xa4\x32\x63\xb9\xb2\xa4\x98\x8a\x55\xb8" "\xab\x9a\x66\x1b\x40\x96\x89\x50\xcc\x2d\x00\x57\xe4\x4a\x5d\x98\x22\x09" "\x92\x6a\x64\x23\x6d\x99\x5e\x7a\xe8\x21\x40\x51\xf4\x90\x13\x81\xd6\x28" "\x90\xa2\x81\xd1\x14\x41\x8f\x6c\xeb\x02\xc9\xc5\x87\x22\xa7\x9e\x88\x16" "\x36\x82\xa2\x07\xb6\x08\x90\x93\xc1\x60\x66\xdf\x8a\x4b\x8a\xb2\x64\x53" "\xa4\x48\xfb\xfb\x6c\xea\x37\x3b\xfb\xde\xec\x7b\x6f\xd6\x33\xb2\xa0\x37" "\x2f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x88\xdf\x7b" "\xf9\xd2\x99\xe7\xd2\xa3\x6e\x05\x00\xb0\x9f\xae\x8c\x7f\xf5\xcc\x59\xf7" "\x7f\x00\xf8\x44\xb9\xea\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xa0\x4b\x51\xc4\xe3\x91\x62\xfe\xca\x7a\x9a\xac\x5e\x77\x0c\x5c" "\x6e\xcf\xde\xba\x3d\x31\x32\xba\x73\xb5\x63\xa9\xaa\x79\xa4\x2a\x5f\xfe" "\x0c\x3c\x77\xf6\xdc\xf9\x2f\x3d\x3f\x7c\xa1\x9b\x1f\x5c\xff\x61\x7b\x32" "\x5e\x1d\xbf\x7a\xa9\xfe\xd2\xdc\xcd\xf9\x85\xd6\xe2\x62\x6b\xba\x3e\x31" "\xdb\x9e\x9a\x9b\x6e\x3d\xf0\x11\x76\x5b\x7f\xbb\xa1\x6a\x00\xea\x37\x5f" "\xbb\x35\x7d\xfd\xfa\x62\xfd\xec\xb3\xe7\xb6\xbc\x7d\x7b\xf0\xbd\xfe\xc7" "\x4e\x0e\x5e\x1c\x7e\xfa\xf4\x53\xdd\xb2\x13\x23\xa3\xa3\xe3\x3d\x65\x6a" "\x7d\x1f\xf9\xd3\xef\x72\xaf\x19\x1e\x47\xa3\x88\xd3\x91\xe2\x99\xef\xfd" "\x24\x35\x23\xa2\x88\xdd\x8f\xc5\x7d\xbe\x3b\x7b\xed\x58\xd5\x89\xa1\xaa" "\x13\x13\x23\xa3\x55\x47\x66\xda\xcd\xd9\xa5\xf2\xcd\xb1\xee\x40\x14\x11" "\xf5\x9e\x4a\x8d\xee\x18\xed\xc3\xb9\xd8\x95\x46\xc4\x72\xd9\xfc\xb2\xc1" "\x43\x65\xf7\xc6\xe7\x9b\x0b\xcd\x6b\x33\xad\xfa\x58\x73\x61\xa9\xbd\xd4" "\x9e\x9b\x1d\x4b\x9d\xd6\x96\xfd\xa9\x47\x11\x17\x52\xc4\x4a\x44\xac\xf5" "\xdf\x7d\xb8\xbe\x28\xa2\x16\x29\xbe\x73\x62\x3d\x5d\x8b\x88\x23\xdd\x71" "\xf8\x62\x35\x31\xf8\xde\xed\x28\xf6\xb0\x8f\x0f\xa0\x6c\x67\xbd\x2f\x62" "\xa5\x38\x04\xe7\xec\x00\xeb\x8f\x22\x5e\x89\x14\x3f\x7d\xbb\x88\xa9\x72" "\xcc\xf2\x4f\x7c\x21\xe2\x95\x32\x7f\x10\xf1\x66\x99\x2f\x46\xa4\xf2\x8b" "\x71\x3e\xe2\xdd\x1d\xbe\x47\x1c\x4e\xb5\x28\xe2\x2f\xca\xf3\x7f\x71\x3d" "\x4d\x57\xd7\x83\xee\x75\xe5\xf2\xd7\xea\x5f\x99\xbd\x3e\xd7\x53\xb6\x7b" "\x5d\x39\xf4\xf7\x87\xfd\x74\xc0\xaf\x4d\x03\x51\x44\xb3\xba\xe2\xaf\xa7" "\x8f\xfe\x9b\x1d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e" "\xb6\x63\x51\xc4\x93\x91\xe2\xe5\xff\xf8\xa3\x6a\x5e\x71\x54\xf3\xd2\x4f" "\x5c\x1c\xfe\xfd\xc1\x5f\xec\x9d\x33\xfe\xc4\x7d\x8e\x53\x96\x7d\x36\x22" "\x96\x8b\x07\x9b\x93\x7b\x34\x4f\x21\x1e\x4b\x63\x29\x3d\xe2\xb9\xc4\x9f" "\x64\x03\x51\xc4\x1f\xe7\xf9\x7f\xdf\x7a\xd4\x8d\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x44\x2b\xe2\xc7\x91\xe2\x85\x77" "\x4e\xa5\x95\xe8\x5d\x53\xbc\x3d\x7b\xa3\x7e\xb5\x79\x6d\xa6\xb3\x2a\x6c" "\x77\xed\xdf\xee\x9a\xe9\x1b\x1b\x1b\x1b\xf5\xd4\xc9\x46\xce\xc9\x9c\xcb" "\x39\x57\x72\xae\xe6\x5c\xcb\x19\x45\xae\x9f\xb3\x91\x73\x32\xe7\x72\xce" "\x95\x9c\xab\x39\xd7\x72\xc6\x91\x5c\x3f\x67\x23\xe7\x64\xce\xe5\x9c\x2b" "\x39\x57\x73\xae\xe5\x8c\x5a\xae\x9f\xb3\x91\x73\x32\xe7\x72\xce\x95\x9c" "\xab\x39\xd7\x72\xc6\x01\x59\xbb\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xe3\xa4\x88\x22\xde\x8f\x14\xdf\xfe\xc6\x7a\x8a\x14\x11\x8d\x88" "\xc9\xe8\xe4\x6a\x7f\xb7\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x28\xf5\xa7\x22\xbe\x1f\x29\xea\x7f" "\xd0\xb8\xb3\xaf\x16\x11\xa9\xfa\xb7\xe3\x54\xf9\xcb\xf9\x68\x1c\x2d\xf3" "\xd3\xd1\x18\x2e\xf3\xc5\x68\x5c\xca\xd9\xac\xb2\xd6\xf8\xd6\x23\x68\x3f" "\xbb\xd3\x97\x8a\xf8\x51\xa4\xe8\x1f\x78\xeb\xce\x09\xcf\xe7\xbf\xaf\xf3" "\xea\xce\xd7\x20\xde\xfc\xe6\xe6\xab\x5f\xa9\x75\xf2\x48\xf7\xcd\xc1\xf7" "\xfa\x1f\x3b\x79\xe2\xe2\xf0\xe8\xaf\x3d\x71\xaf\xed\xb4\x53\x03\x86\x2e" "\xb7\x67\x6f\xdd\xae\x4f\x8c\x8c\x8e\x8e\xf7\xec\xae\xe5\x4f\xff\x74\xcf" "\xbe\xc1\xfc\xb9\xc5\xc3\xe9\x3a\x11\xb1\xf8\xfa\x1b\xaf\x35\x67\x66\x5a" "\x0b\x36\x3e\x19\x1b\xb5\xce\x46\x2d\x0e\x48\x7b\xf6\x6b\x23\x5f\xaf\xe2" "\xa0\xb4\x67\xfb\x46\xe3\x60\x34\x63\x73\xe3\x11\x5f\x98\xd8\x17\xe5\xfd" "\xff\xdd\x48\xf1\xdb\xef\xfc\x67\xf7\x86\xdf\xbd\xff\xff\x42\xe7\xd5\x9d" "\x3b\x7c\xfc\xec\x4f\x36\xef\xff\x2f\x6c\x3f\xd0\x1e\xdd\xff\x1f\xef\xd9" "\xf7\x42\xfe\xdd\x48\x5f\x2d\x62\x60\xe9\xe6\x7c\xdf\xc9\x88\x81\xc5\xd7" "\xdf\x38\xdd\xbe\xd9\xbc\xd1\xba\xd1\x9a\x3d\x7f\xe6\xcc\x97\x87\x87\xbf" "\x7c\xee\x4c\xdf\xd1\x88\x81\xeb\xed\x99\x56\xcf\xd6\xae\x87\x0a\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x7f\xa5\x22\x7e\x37\x52\x34" "\x7f\xb4\x9e\xea\x11\x71\xbb\x9a\xaf\x35\x78\x71\xf8\xe9\xd3\x4f\x1d\x89" "\x23\xd5\x7c\xab\x2d\xf3\xb6\x5e\x1d\xbf\x7a\xa9\xfe\xd2\xdc\xcd\xf9\x85" "\xd6\xe2\x62\x6b\xba\x3e\x31\xdb\x9e\x9a\x9b\x6e\x3d\xe8\xc7\x0d\x54\xd3" "\xbd\x26\x46\x46\xf7\xa4\x33\xf7\x75\x6c\x8f\xdb\x7f\x6c\xe0\xa5\xb9\xf9" "\xd7\x17\xda\x37\xfe\x70\x69\xc7\xf7\x8f\x0f\x5c\xba\xb6\xb8\xb4\xd0\x9c" "\xda\xf9\xed\x38\x16\x45\x44\xa3\x77\xcf\x50\xd5\xe0\x89\x91\xd1\xaa\xd1" "\x33\xed\xe6\x6c\x55\x75\x6c\xc7\xc9\x74\x1f\x5e\x5f\x2a\xe2\xbf\x22\xc5" "\xd4\xf9\x7a\xfa\x7c\xde\x97\xe7\xff\x6d\x9f\xe1\xbf\x65\xfe\xff\xf2\xf6" "\x03\xed\xd1\xfc\xbf\x4f\xf5\xec\x2b\x3f\x33\xa5\x22\x7e\x16\x29\x7e\xeb" "\x2f\x9f\x88\xcf\x57\xed\x3c\x1e\x77\x8d\x59\x2e\xf7\xb7\x91\x62\xe8\xc2" "\xe7\x72\xb9\x38\x5a\x96\xeb\xb6\xa1\xf3\x5c\x81\xce\xcc\xc0\xb2\xec\xff" "\x45\x8a\x7f\x7c\x7f\x6b\xd9\xee\x7c\xc8\xc7\x37\xcb\x3e\xf7\xc0\x03\x7b" "\x48\x94\xe7\xff\x44\xa4\xf8\xfe\x9f\x7f\x37\x7e\x3d\xef\xdb\xfa\xfc\x87" "\x9d\xcf\xff\xf1\xed\x07\xda\xa3\xf3\xff\x99\x9e\x7d\xc7\xb7\x3c\xaf\x60" "\xd7\x5d\x27\x9f\xff\xd3\x91\xe2\xc5\xc7\xdf\x8a\xdf\xc8\xfb\x3e\xe8\xf9" "\x1f\x45\x6c\x6c\x6c\xfc\x69\xc4\xa9\x5c\xf8\xce\xf3\x39\xf6\xe8\xfc\x7f" "\xb6\x67\xdf\x60\x74\x3e\xf7\x37\x1f\x5e\xf7\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x0e\xad\xbe\x54\xc4\xdf\x45\x8a\xa7\x46\x6b\xe9\xf9\xbc\xef\x41" "\xfe\xfe\xdf\xf4\xf6\x03\xed\xd1\xdf\xff\xfa\xe5\x9e\x7d\xd3\xfb\xb4\x5e" "\xd1\xae\x07\x15\x00\x00\x00\x00\x0e\x88\xbe\x54\xc4\x8f\x23\xc5\x8d\xa5" "\xb7\xee\xcc\xa1\xde\x3a\xff\xbb\x67\xfe\xe7\xef\x6c\xae\xbd\x3e\x92\xb6" "\xbd\x5b\xfd\x39\xdf\x2f\x55\xcf\x0d\x78\x98\x7f\xfe\xd7\x6b\x30\x7f\xee" "\xe4\xee\xbb\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x07\x4a\x4a\x45\x3c\x9f\xd7\x53\x9f\xbc\xcf\x7a\xea\xab\x91\xe2\xe5" "\xff\x79\x26\x97\x4b\x27\xcb\x72\xdd\x75\xe0\x07\xab\x5f\x07\xae\xcc\xcd" "\x9e\xbe\x34\x33\x33\x37\xd5\x5c\x6a\x5e\x9b\x69\xd5\xc7\xe7\x9b\x53\xad" "\xb2\xee\x67\x22\xc5\xfa\xdf\x7c\x2e\xd7\x2d\xaa\xf5\xd5\xbb\xeb\xcd\x77" "\xd6\x78\x1f\xd8\xe8\xae\xc5\xbe\x10\x29\x46\xff\xbe\x5b\xb6\xb3\x16\x7b" "\x77\x6d\xf2\xce\x7a\xe0\x9d\xb5\xd8\xcb\xb2\x9f\x8a\x14\xff\xfd\x0f\x5b" "\xcb\x76\xd7\xb1\xfe\xec\x66\xd9\xb3\x65\xd9\xbf\x8e\x14\x5f\xff\xe7\x9d" "\xcb\x9e\xdc\x2c\x7b\xae\x2c\xfb\xdd\x48\xf1\xc3\xaf\xd7\xbb\x65\x8f\x97" "\x65\xbb\xcf\x47\xed\x3c\x93\x74\xa0\x16\x33\xad\x67\xa7\xe6\x66\xee\x7a" "\x14\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7c" "\x58\x7d\xa9\x88\x3f\x8b\x14\xff\x7b\x73\x25\x96\xf3\xb4\xff\xbc\xfe\x7f" "\x77\x05\xfe\x5a\xb7\xec\x9b\xdf\xec\x59\xef\x7f\x9b\xdb\xd5\x3a\xff\x83" "\xd5\xfa\xff\xf7\xda\xfe\x28\xeb\xff\x0f\x3e\xb4\x9e\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" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xe1\x91\xa2\x88\x37" "\x22\xc5\xfc\x95\xf5\xb4\xda\x5f\xbe\xee\x18\xb8\xdc\x9e\xbd\x75\x7b\x62" "\x64\x74\xe7\x6a\xc7\x52\x55\xf3\x48\x55\xbe\xfc\x19\x78\xee\xec\xb9\xf3" "\x5f\x7a\x7e\xf8\x42\x37\x3f\xb8\xfe\xc3\xf6\x64\xbc\x3a\x7e\xf5\x52\xfd" "\xa5\xb9\x9b\xf3\x0b\xad\xc5\xc5\xd6\x74\x7d\x62\xb6\x3d\x35\x37\xdd\x7a" "\xe0\x23\xec\xb6\xfe\xe6\xd0\x75\x0c\x55\x03\x50\xbf\xf9\xda\xad\xe9\xeb" "\xd7\x17\xeb\x67\x9f\x3d\xb7\xe5\xed\xdb\x83\xef\xf5\x3f\x76\x72\xf0\xe2" "\xf0\xd3\xa7\x9f\xea\x96\x9d\x18\x19\x1d\x1d\xef\x29\x53\xeb\xfb\x10\x9f" "\xfe\xa1\x1a\xb7\xe9\x68\x14\xf1\x57\x91\xe2\x99\xef\xfd\x24\xfd\x4b\x7f" "\x44\x11\xbb\x1f\x8b\xfb\x7c\x77\xf6\xda\xb1\xaa\x13\x43\x55\x27\x26\x46" "\x46\xab\x8e\xcc\xb4\x9b\xb3\x4b\xe5\x9b\x63\xdd\x81\x28\x22\xea\x3d\x95" "\x1a\xdd\x31\xda\x87\x73\xb1\x2b\x8d\x88\xe5\xb2\xf9\x65\x83\x87\xca\xee" "\x8d\xcf\x37\x17\x9a\xd7\x66\x5a\xf5\xb1\xe6\xc2\x52\x7b\xa9\x3d\x37\x3b" "\x96\x3a\xad\x2d\xfb\x53\x8f\x22\x2e\xa4\x88\x95\x88\x58\xeb\xbf\xfb\x70" "\x7d\x51\xc4\x6b\x91\xe2\x3b\x27\xd6\xd3\xbf\xf6\x47\x1c\xe9\x8e\xc3\x17" "\xaf\x8c\x7f\xf5\xcc\xd9\x7b\xb7\xa3\xd8\xc3\x3e\x3e\x80\xb2\x9d\xf5\xbe" "\x88\x95\xe2\x10\x9c\xb3\x03\xac\x3f\x8a\xf8\xa7\x48\xf1\xd3\xb7\x4f\xc5" "\xbf\xf5\x47\xd4\xa2\xf3\x13\x5f\x88\x78\xa5\xcc\x1f\x44\xbc\x59\xe6\x8b" "\x11\xa9\xfc\x62\x9c\x8f\x78\x77\x87\xef\x11\x87\x53\x2d\x8a\xf8\xff\xf2" "\xfc\x5f\x5c\x4f\x6f\xf7\x97\xd7\x83\xee\x75\xe5\xf2\xd7\xea\x5f\x99\xbd" "\x3e\xd7\x53\xb6\x7b\x5d\x39\xf4\xf7\x87\xfd\x74\xc0\xaf\x4d\x03\x51\xc4" "\x0f\xab\x2b\xfe\x7a\xfa\x77\xff\x5d\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x1c\x20\x45\xfc\x6a\xa4\x78\xe1\x9d\x53\xa9\x9a\x1f\x7c" "\x67\x4e\x71\x7b\xf6\x46\xfd\x6a\xf3\xda\x4c\x67\x5a\x5f\x77\xee\x5f\x77" "\xce\xf4\xc6\xc6\xc6\x46\x3d\x75\xb2\x91\x73\x32\xe7\x72\xce\x95\x9c\xab" "\x39\xd7\x72\x46\x91\xeb\xe7\x6c\xe4\x9c\xcc\xb9\x9c\x73\x25\xe7\x6a\xce" "\xb5\x9c\x71\x24\xd7\xcf\xd9\xc8\x39\x99\x73\x39\xe7\x4a\xce\xd5\x9c\x6b" "\x39\xa3\x96\xeb\xe7\x6c\xe4\x9c\xcc\xb9\x9c\x73\x25\xe7\x6a\xce\xb5\x9c" "\x71\x40\xe6\xee\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1f\x2f\x45\xf5\x4f\x8a\x6f\x7f\x63\x3d\x6d\xf4\x77\xd6\x97\x9e\x8c" "\x4e\xae\x5a\x0f\xf4\x63\xef\xe7\x01\x00\x00\xff\xff\x5b\xce\xfd\x0b", 3095); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000040, /*flags=MS_POSIXACL|MS_REC|MS_NODEV|MS_NOATIME|0x40*/ 0x14444, /*opts=*/0x20000280, /*chdir=*/0xfe, /*size=*/0xc17, /*img=*/0x20001180); memcpy((void*)0x20000000, ".\000", 2); res = syscall(__NR_open, /*file=*/0x20000000ul, /*flags=*/0ul, /*mode=*/0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000040, "\023\023w\305\3745\324\024T\325\324\035)\255\032`)" "Y\201F\346\276\026nA\255\r\275@T\003<\2373\273\332\202$" "\242\363\327r\347cnH\263<\277p\203r\350\361\271\223>" "\305\022wC\276\"\006 \236\360-\371\313\362\366\350\200\3238/\000", 78); memcpy((void*)0x200000c0, "./file0\000", 8); syscall(__NR_symlinkat, /*old=*/0x20000040ul, /*newfd=*/r[0], /*new=*/0x200000c0ul); memcpy((void*)0x20000000, "./file0\000", 8); syscall(__NR_creat, /*file=*/0x20000000ul, /*mode=*/0ul); memcpy((void*)0x20000040, "./file1\000", 8); memcpy((void*)0x20000200, "./file0\000", 8); syscall(__NR_rename, /*old=*/0x20000040ul, /*new=*/0x20000200ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; do_sandbox_none(); return 0; }