// https://syzkaller.appspot.com/bug?id=e9a01cfb81e140261f6dced1c3aaf62ad786eeb5 // 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 #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } 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 kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void setup_sysctl() { int cad_pid = fork(); if (cad_pid < 0) exit(1); if (cad_pid == 0) { for (;;) sleep(100); } char tmppid[32]; snprintf(tmppid, sizeof(tmppid), "%d", cad_pid); struct { const char* name; const char* data; } files[] = { {"/sys/kernel/debug/x86/nmi_longest_ns", "10000000000"}, {"/proc/sys/kernel/hung_task_check_interval_secs", "20"}, {"/proc/sys/net/core/bpf_jit_kallsyms", "1"}, {"/proc/sys/net/core/bpf_jit_harden", "0"}, {"/proc/sys/kernel/kptr_restrict", "0"}, {"/proc/sys/kernel/softlockup_all_cpu_backtrace", "1"}, {"/proc/sys/fs/mount-max", "100"}, {"/proc/sys/vm/oom_dump_tasks", "0"}, {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/kernel/keys/gc_delay", "1"}, {"/proc/sys/vm/oom_kill_allocating_task", "1"}, {"/proc/sys/kernel/ctrl-alt-del", "0"}, {"/proc/sys/kernel/cad_pid", tmppid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) { } } kill(cad_pid, SIGKILL); while (waitpid(cad_pid, NULL, 0) != cad_pid) ; } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 5; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); if (call == 3) break; event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: NONFAILING(memcpy((void*)0x20000040, "ext4\000", 5)); NONFAILING(memcpy((void*)0x20000200, "./file1\000", 8)); NONFAILING(*(uint8_t*)0x20000140 = 0); NONFAILING(memcpy( (void*)0x200008c0, "\x78\x9c\xec\xdd\xdf\x6b\x5b\x55\x1c\x00\xf0\xef\x4d\xdb\xad\xfb\xa1" "\xed\x60\x0c\xf5\x41\x0a\x7b\x70\x32\x97\xae\xad\x3f\x26\xf8\x30\x1f" "\x45\x87\x03\x7d\xd7\x90\x64\x65\x34\x5d\x46\x93\x8e\xb5\x0e\xdc\x1e" "\xdc\x8b\x2f\x32\x04\x11\x07\xa2\xef\xbe\xfb\x38\xfc\x07\xfc\x2b\x06" "\x3a\x18\x32\x8a\x3e\xec\x25\x72\xd3\x9b\x2e\x5b\x93\x36\xed\xd2\xb5" "\x5b\x3e\x1f\xb8\xed\x39\xf7\xde\xf4\x9c\x6f\xee\xfd\x9e\x9e\x9b\x9b" "\x90\x00\x06\xd6\x44\xfa\x23\x17\xf1\x6a\x44\x7c\x97\x44\x8c\xb5\x6d" "\x1b\x8e\x6c\xe3\xc4\xea\x7e\x2b\x0f\xae\x15\xd3\x25\x89\x46\xe3\xb3" "\x7f\x92\x48\xb2\x75\xad\xfd\x93\xec\xf7\xa1\xac\xf2\x4a\x44\xfc\xf1" "\x4d\xc4\xc9\xdc\xfa\x76\x6b\x4b\xcb\x73\x85\x4a\xa5\xbc\x90\xd5\x27" "\xeb\xf3\x97\x27\x6b\x4b\xcb\xa7\x2e\xce\x17\x66\xcb\xb3\xe5\x4b\xd3" "\x33\x33\x67\xde\x99\x99\x7e\xff\xbd\x77\xfb\x16\xeb\x9b\xe7\xff\xfb" "\xf1\xd3\x3b\x1f\x9d\xf9\xf6\xf8\xca\x0f\xbf\xdd\x3b\x72\x2b\x89\xb3" "\x71\x38\xdb\xd6\x1e\xc7\x53\xb8\xde\x5e\x99\x88\x89\xec\x39\x19\x89" "\xb3\x4f\xec\x38\xd5\x87\xc6\xf6\x92\x64\xb7\x3b\xc0\xb6\x0c\x65\x79" "\x3e\x12\xe9\x18\x30\x16\x43\x59\xd6\x77\xd4\x18\x7b\x96\x5d\x03\x76" "\xd8\xd7\x69\x5a\x03\x03\x2a\x91\xff\x30\xa0\x5a\xf3\x80\xd6\xb5\x7d" "\x9f\xae\x83\x9f\x1b\xf7\x3f\x5c\xbd\x00\x5a\x1f\xff\xf0\xea\x6b\x23" "\x31\xda\xbc\x36\x3a\xb8\x92\x3c\x76\x65\x94\x5e\xef\x8e\xf7\xa1\xfd" "\xb4\x8d\xdf\xff\xbe\x7d\x2b\x5d\xa2\x7f\xaf\x43\x00\x6c\xea\xfa\x8d" "\x88\x38\x3d\x3c\xbc\x7e\xfc\x4b\xb2\xf1\x6f\xfb\x4e\xf7\xb0\xcf\x93" "\x6d\x18\xff\xe0\xd9\xb9\x93\xce\x7f\xde\xea\x34\xff\xc9\xad\xcd\x7f" "\xa2\xc3\xfc\xe7\x50\x87\xdc\xdd\x8e\xcd\xf3\x3f\x77\xaf\x0f\xcd\x74" "\x95\xce\xff\x3e\xe8\x38\xff\x5d\xbb\x69\x35\x3e\x94\xd5\x5e\x6a\xce" "\xf9\x46\x92\x0b\x17\x2b\xe5\x74\x6c\x7b\x39\x22\x4e\xc4\xc8\xfe\xb4" "\xbe\xc1\xfd\x9c\x2f\x73\x2b\x77\x1b\xdd\x36\xb6\xcf\xff\xd2\x25\x6d" "\xbf\x35\x17\xcc\xfa\x71\x6f\x78\xff\xe3\x8f\x29\x15\xea\x85\xa7\x0a" "\xba\xcd\xfd\x1b\x11\xaf\x75\x9c\xff\x26\x6b\xc7\x3f\xe9\x70\xfc\xd3" "\xe7\xe3\x7c\x8f\x6d\x1c\x2b\xdf\x7e\xbd\xdb\xb6\xcd\xe3\xdf\x59\x8d" "\x5f\x22\xde\xe8\x78\xfc\x1f\xdd\xd1\x4a\x36\xbe\x3f\x39\xd9\x3c\x1f" "\x26\x5b\x67\xc5\x7a\xff\xde\x3c\xf6\x67\xb7\xf6\x77\x3b\xfe\xf4\xf8" "\x1f\xdc\x38\xfe\xf1\xa4\xfd\x7e\x6d\x6d\xeb\x6d\xfc\x3c\xfa\xb0\xdc" "\x6d\xdb\x76\xcf\xff\x7d\xc9\xe7\xcd\xf2\xbe\x6c\xdd\xd5\x42\xbd\xbe" "\x30\x15\xb1\x2f\xf9\x64\xfd\xfa\xe9\x47\x8f\x6d\xd5\x5b\xfb\xa7\xf1" "\x9f\x38\xbe\xf1\xf8\xd7\xe9\xfc\x3f\x90\x26\x76\x8f\xf1\xdf\x3c\x7a" "\xb3\x7d\xd7\xd1\xad\xc5\xbf\xb3\xd2\xf8\x4b\x5b\x3a\xfe\x5b\x2f\xdc" "\xfd\xf8\xab\x9f\xba\xb5\xdf\xdb\xf1\x7f\xbb\x59\x3a\x91\xad\xe9\x65" "\xfc\xeb\xb5\x83\x4f\xf3\xdc\x01\x00\x00\x00\x00\x00\xc0\x5e\x93\x8b" "\x88\xc3\x91\xe4\xf2\x6b\xe5\x5c\x2e\x9f\x5f\x7d\x7f\xc7\xd1\x38\x98" "\xab\x54\x6b\xf5\x93\x17\xaa\x8b\x97\x4a\xd1\xfc\xac\xec\x78\x8c\xe4" "\x5a\x77\xba\xc7\xda\xde\x0f\x31\x95\xbd\x1f\xb6\x55\x9f\x7e\xa2\x3e" "\x13\x11\x47\x22\xe2\xfb\xa1\x03\xcd\x7a\xbe\x58\xad\x94\x76\x3b\x78" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd8\x23" "\x0e\x45\x8c\x76\xfa\xfc\x7f\xea\xaf\xa1\xdd\xee\x1d\xb0\xe3\x36\xf8" "\xca\x6f\xe0\x05\xd7\x3d\xff\xb3\x2d\xfd\xf8\xa6\x27\x60\x4f\xf2\xff" "\x1f\x06\x97\xfc\x87\xc1\x25\xff\x61\x70\xc9\x7f\x18\x5c\xf2\x1f\x06" "\x97\xfc\x87\xc1\x25\xff\x61\x70\x6d\x25\xff\x7f\x3d\xb7\x83\x1d\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x80\x17\xc3\xf9\x73\xe7\xd2\xa5\xb1\xf2\xe0\x5a\x31\xad" "\x97\xae\x2c\x2d\xce\x55\xaf\x9c\x2a\x95\x6b\x73\xf9\xf9\xc5\x62\xbe" "\x58\x5d\xb8\x9c\x9f\xad\x56\x67\x2b\xe5\x7c\xb1\x3a\xbf\xd9\xdf\xab" "\x54\xab\x97\xa7\xa6\x63\xf1\xea\x64\xbd\x5c\xab\x4f\xd6\x96\x96\xbf" "\x98\xaf\x2e\x5e\x7a\xd8\x58\x55\x1e\x79\x26\x51\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xf3\xa5\xb6\xb4\x3c\x57" "\xa8\x54\xca\x0b\x0a\x0a\xdb\x2a\x0c\xef\x8d\x6e\x28\xf4\xb9\xb0\xdb" "\x23\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x3c\xf2\x7f\x00\x00\x00\xff\xff\xbe\x62\x3f\xb0", 1376)); NONFAILING(syz_mount_image(/*fs=*/0x20000040, /*dir=*/0x20000200, /*flags=MS_RELATIME*/ 0x200000, /*opts=*/0x20000140, /*chdir=*/0xfc, /*size=*/0x560, /*img=*/0x200008c0)); break; case 1: NONFAILING(memcpy((void*)0x20000080, "./file1\000", 8)); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000080ul, /*flags=O_SYNC|O_DIRECT|O_CREAT|O_RDWR*/ 0x105042, /*mode=*/0); if (res != -1) r[0] = res; break; case 2: syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x2000ul, /*prot=PROT_WRITE*/ 2ul, /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[0], /*offset=*/0ul); break; case 3: NONFAILING(*(uint32_t*)0x20006c00 = 8); NONFAILING(memcpy( (void*)0x20006c04, "\x9a\x6e\xb0\x13\x56\x12\xa7\x64\x14\x6e\x4c\x36\xe5\x86\x74\x63\x88" "\xf7\xe1\xb7\x16\x27\x99\x9a\x38\x14\x1a\xac\x95\x2f\xe3\xd7\xee\x26" "\x41\x62\x39\x8c\x1d\xdc\xbc\x93\x9d\x49\xe9\x58\xa0\x00\x49\x23\x71" "\x2b\x90\xa1\x71\xa5\x69\xdf\x61\x20\x18\x1c\xfb\x83\x6b\x20\x88\x05" "\x35\xec\xcc\x7a\xd4\xe8\x40\xb3\x68\xad\x8b\xf1\xd3\x3b\x5f\x93\x24" "\x90\x7b\x4a\xd0\xc6\x8f\x5a\x2f\x1b\xe0\xd1\x6e\xc1\x9c\xc1\x8c\x03" "\x36\x33\x2f\xb7\x32\x61\xd8\x15\xcc\x05\x01\x45\x2e\xdc\x95\xf4\xaa" "\xa1\xbc\x08\x22\x8c\x7f\xf5\x76\x98\x28\x64\x9b\x86\x92\x3e\xb2\x61" "\x4f\x7c\x6c\x54\x23\x17\x6c\xd3\xfe\x4d\x2c\x28\x81\xa2\xbd\x81\x4b" "\xee\x61\x0f\x8b\x81\x47\x50\xaa\x30\x30\x99\xad\xdf\x27\x91\x58\x2a" "\x30\xac\x77\x16\x54\x71\x05\x4c\x9f\x00\x0d\xbf\x8d\x69\xed\xdf\xdf" "\x97\x41\x32\xd2\x46\x8b\x5d\x31\x39\xc8\x75\xfb\xba\x8b\x11\x82\x3e" "\x1b\x38\xfc\x6c\xb0\x27\xb6\x5a\xfd\x80\xce\xd7\xc5\x36\x0a\xe0\xcd" "\x4c\x6c\x0b\x5b\x71\xc1\xc1\x23\x14\x3c\x6d\xfc\x66\x1d\x46\xc2\x06" "\x8d\xbf\xee\x05\xd1\x0d\x9d\x3e\x43\x9e\x5a\xde\x1b\x90\x70\x6f\x9c" "\xf6\x6c\x31\x86\xd9\x47\x9a\x71\xbe\xd6\x4b\xc0\xae\x9a\x58\xcd\x38" "\xc0\x89\xc8\xe3\xce\xa1\xaa\x9c\xbb\xf5\xc4\x1f\x59\x0d\x4f\xee\xd0" "\xfb\xb8\x72\x2d\xcd\x1b\x44\x25\xa6\x45\xa5\x93\x5a\xd6\xcf\x39\xda" "\x5a\x66\xb9\x2d\x25\xbe\x1c\xf2\x85\x33\xdd\x12\x5a\x37\x61\xc6\x55" "\x88\xd6\x8b\x9e\xcf\xef\x28\x08\xf5\xe6\x37\x33\x32\x18\xd1\xc0\x02" "\xb8\xc4\xaf\xab\xed\xad\xef\x58\xdf\xfe\x61\x3c\x52\x02\xd3\x81\xd0" "\x94\x66\xa7\x7f\x77\x55\x14\x1d\x60\x12\x69\xad\x25\x74\xcf\x4f\x14" "\x50\xd3\x52\x5d\xc5\xb7\x02\xee\xc6\xe8\x2d\xcd\x37\x2d\x54\xdd\x8e" "\xcb\x58\xe2\x7c\x92\xfe\xf2\xcc\x43\xb9\x36\x62\x50\x20\x02\xa2\x16" "\x0e\xa7\x13\xb2\xa7\xef\x0d\xe6\xa9\xaf\x34\xa6\x10\xa3\x2c\x70\xbc" "\xc7\x26\x6c\x0d\x25\x8c\x82\x37\xe1\xf7\xcc\x62\x9a\x42\x40\x43\x2b" "\xa1\x87\xce\xc4\xbb\xda\xdf\x3b\x7a\x49\xb2\x90\xb4\x85\xd9\x82\x02" "\x86\x5f\x79\x63\x8a\x41\x0e\x85\x79\x79\x74\xa4\xc1\x9f\x37\xd9\xf3" "\xd7\xa5\xcb\xed\x21\x3c\x97\xd1\x09\x2d\x22\x26\x69\x19\x5c\x08\xb1" "\x63\x39\x81\x38\x94\x08\xf3\x36\x82\x6b\x42\x8b\xf2\xcb\x18\xef\xd8" "\x51\x1f\xe2\x95\xb7\x29\xd6\x4c\x13\x66\xd0\xc7\xac\x31\x02\x7b\x03" "\x0f\x32\xe5\x1b\x99\xab\xa4\x86\xaf\x9b\xf9\xb4\xbf\x45\xa9\x7b\x88" "\xf3\x34\x0c\xe9\xbe\x15\x64\x48\x35\x56\x6f\xa9\x4f\xbf\x37\x4d\x23" "\x7b\xfe\x34\x6a\x71\xef\x8b\xce\x14\xa8\xbe\xfb\xdb\x1f\xa9\xec\xab" "\x11\x1c\x1d\x06\xd2\x73\x83\xc4\x47\xb9\x36\x92\x91\x2e\x1f\x3b\x3a" "\xa6\x97\x82\xec\x03\xd2\x62\x39\xf2\xea\x2f\xa2\xce\xa0\xc9\xe4\x16" "\x15\x5f\x29\xc3\x19\x3a\xe3\xd4\xde\x53\x62\xe9\x34\x33\xba\xea\xa9" "\x69\x2e\x9e\xbc\x99\x24\xea\x44\x00\x38\x00\x90\xee\x87\xae\x5b\x6c" "\xf0\x0d\x67\xef\xa6\xaf\x0f\xa2\xee\x10\x0c\x9e\xf9\xc7\xce\xc6\x83" "\xf7\xab\xb9\x03\x95\xaf\xfa\x75\x37\x64\x41\x3b\x97\x3c\xed\x7d\x76" "\xff\x4f\x5b\x7b\x60\x33\xe0\xe0\x22\x09\x42\x58\x37\x8c\xee\xfd\x36" "\x4c\x22\x56\x87\xee\xf7\xfa\x44\xd4\xa3\x84\xd0\x99\xcd\x72\xf8\x75" "\x8d\x7a\x9d\x9b\xca\xbc\x20\x0e\x18\x10\x3e\x5c\x32\x71\x8e\xfc\x0e" "\x81\x7c\xd5\x12\x8c\xef\xdd\x95\x18\xb8\x2b\xd5\xf4\x3e\x0b\x8c\xfc" "\x0a\x43\x79\xc9\x3a\x4d\x65\x18\x74\xc7\xaf\x6d\x15\xcb\x29\xe7\x89" "\xf8\xb3\xe3\xb1\x68\x2e\xb5\xd3\x5e\x13\xc3\x6d\xbc\x9f\x43\x2e\x44" "\x49\x56\x6c\x81\x95\xc5\xe9\x63\xb5\x00\x46\xaf\x5f\xee\x64\xd5\xc2" "\x8e\x6d\x64\x1e\xe4\x0f\xa7\x5e\x12\xc1\x1d\x37\xcf\xf8\x42\x15\x2b" "\xb0\xaa\x8e\x09\x69\x8c\xed\x29\x7f\x3f\x36\x3c\xf5\xbb\xca\x93\xbe" "\xe4\x3d\x22\x49\xa6\xdf\xec\xf2\xec\x5a\x6a\xc4\x89\x9b\x0e\xae\xbd" "\xb8\xae\x5a\x60\xa5\x2c\x52\x9e\x55\xb8\x28\xd3\x88\xfe\x60\xa6\x14" "\x82\x40\x09\x40\xc3\x4e\x92\x11\xd4\x4a\xb8\x68\x63\x57\x68\xad\xb2" "\xb8\xbf\xfc\xe4\xb9\xdd\x59\x3c\xe1\x2e\x42\x32\xe5\xec\xa5\xe8\xb7" "\xc4\xad\x54\x45\x01\x3f\xb7\x45\x1a\xd0\x71\xdb\xea\x55\x41\xdb\x80" "\x2b\x0c\x00\xed\x23\x84\xc1\x6a\xda\x4f\xd7\x62\x27\xcf\x53\x6d\x95" "\x73\x1f\xb4\xaf\xea\xcc\xe2\x2c\x8e\x08\x24\x44\xf3\x5c\xec\x98\x6b" "\x23\xee\xa8\x3a\x7a\xc2\x6f\x33\xe3\xf6\x8b\x13\xec\x9d\x34\x6d\x74" "\x8c\x61\x3f\xb7\x9a\x58\xa4\x1f\xb8\xa3\xf3\x98\x20\x6d\x1f\xcf\xbe" "\x2c\x8f\x68\x64\x83\xf7\x8a\x57\x3b\x6c\xee\xcd\x27\x8a\x54\x0a\x8f" "\x0d\x73\x49\x19\xcc\xc2\x51\x2d\xb6\x1b\x5a\x42\xe4\x9b\x51\xbe\x33" "\xeb\x18\x2a\x23\x78\x6f\xf4\x76\xbc\xa1\x37\x6c\x35\x3c\x37\x37\x0d" "\x15\x7b\xeb\xc5\xa8\x35\x90\x50\x16\x9f\x57\xef\x0e\x43\x6e\x08\xea" "\x1f\x29\x92\xe7\xcb\x48\x55\x9e\xe9\x8f\x82\x48\x36\xbe\x68\xc8\x60" "\x04\x9d\xf3\xdd\x98\x58\xb4\x68\xfd\x49\x9a\x10\x0f\x75\xc3\x2f\x37" "\x68\x48\x7b\x98\x37\x8b\xb2\x57\x43\xdb\x48\xe7\xa0\x2f\x3d\x02\x27" "\xc6\xd8\x74\xa4\xb5\xe8\x6a\xde\xbd\x04\x49\x43\x15\xa8\x7e\xa3\x66" "\xe7\x8e\xfb\x6d\xc7\x76\xf4\xfe\xd0\x57\x34\x2c\xe2\xbb\xe3\x7c\x3f" "\xc0\x26\xc7\xb9\xdc\xbc\x03\x52\x56\x7e\xc5\x41\x5c\x97\x64\x51\x6b" "\xc8\x1c\x08\x31\x3a\x28\x87\xa9\xfb\x19\x7b\x65\xae\xe3\x20\x0f\x5a" "\xa7\x50\x7c\x68\xed\xbf\x3a\x93\x65\xc4\xbc\x1d\xec\x07\x72\x48\xad" "\xf4\xae\xd1\x47\xa6\x59\x16\x52\x99\xfa\x8b\x12\x08\xbf\x51\x40\x71" "\x67\xd5\x59\xa6\x99\x1a\x6f\xb0\xcd\x57\xed\x3b\x5a\x53\x85\xaf\xb2" "\xa5\x07\xc2\x87\x8d\xdc\xab\xa3\x66\x9d\xe0\x34\x7c\x1b\x3c\xf0\x06" "\x98\x77\xa5\x40\xef\x9b\xe9\x93\xa7\x66\xfe\x60\x88\x2d\xd4\x0f\x75" "\x6d\x3c\x32\x56\x74\x8f\x96\x83\x1f\x0a\x32\x71\xc4\xd3\x44\x58\x9f" "\x3e\x08\xe9\x80\x7d\x0d\xfe\xe9\x6a\xa3\x98\xd1\x41\x34\xf7\xcd\x1e" "\x66\xcc\xf9\x4c\x2c\xbb\xc7\x2b\x02\xaa\x9e\x6e\xb8\x58\x92\xbf\x26" "\x04\x10\xbf\xc0\x69\x2d\x05\x2a\x1d\x88\x97\xcc\x7c\x88\xe0\x09\xd2" "\xa7\x3f\x38\xaa\xf8\x0a\xa4\x87\x0f\x77\x8b\x91\xc9\xb2\x93\x7a\x54" "\x4f\xe1\x33\x0b\x95\xc3\x2e\xa8\xa7\x09\xd5\x97\x1b\x53\xef\x8d\x6a" "\x84\xcd\x60\xf0\x60\xe6\xf9\xc7\x22\x6c\xc3\xd2\xdf\x53\x13\xee\x6b" "\x55\x7c\xab\xd2\xb8\x78\x56\x27\x7d\x01\x32\x8e\x8d\x6c\x15\x00\x39" "\x2b\xd0\xf2\xb0\x6e\x0d\x26\x53\xed\x34\x2c\xf6\xbb\x50\x1f\x02\x60" "\x4f\x67\x85\xd9\x7b\xf9\xf4\xd2\x4a\x99\x94\xf1\xf2\x06\x26\x6d\xbb" "\xf7\xb5\x45\x88\x71\x70\x65\x7d\x64\xc6\xac\x39\x49\xec\x05\x6a\xb6" "\x39\x93\x42\x68\xc2\x58\x84\xc4\x2e\x73\x72\x7a\xd5\x9b\x61\xd3\xed" "\xda\x47\x4d\x26\x00\xcf\x2d\x9e\x50\xf9\xa0\xa0\x94\x49\xc9\x92\x03" "\xc0\xf9\xe7\x2e\xf1\x52\x83\xd2\x08\x35\x04\xa0\xf3\x1a\x4f\x69\x69" "\x90\xff\x43\xa4\xb6\xcf\x0f\x90\x8f\x0c\x86\x98\xf9\x2a\x6f\x82\xf2" "\x46\x50\xbc\xbf\x11\x61\x76\xd4\xe8\xe8\x41\x7f\x8b\x95\x2d\xc1\x32" "\xf9\x2f\xa7\x0d\xa6\x4c\xf1\xbd\x53\x73\x78\xc7\xe4\xe4\x87\xf3\x42" "\x6c\x21\x34\x77\x89\xa1\x52\xf1\x45\x56\x3c\x03\xf5\x2f\xdc\x31\x48" "\xe0\xd6\xff\xdc\x43\xb7\xce\xb4\xc9\x36\x17\x12\xfb\x19\x98\x4a\x59" "\x7f\xa9\x30\x77\x63\x5c\xc5\x25\x97\x3d\x57\x55\xf8\x0c\xf0\x44\x8d" "\xc9\x31\x97\x74\x16\xe6\xd7\xcc\x12\x63\x81\x1b\x9e\x3d\xfc\xad\x46" "\x17\xa0\x0e\xe9\x26\xf0\x05\x12\x44\xf9\xc7\x09\x83\x33\x7d\x12\x05" "\xd9\x79\x43\x1d\x91\x97\x53\x2e\x04\x5a\xa4\xd1\xe8\x5a\x3f\xd9\x97" "\xa0\xe6\xcc\xc2\x71\x0f\x68\x64\x6a\xeb\x09\x1d\xad\xb7\xff\xfd\xcb" "\x81\x81\x6e\xdb\x3f\xf0\x56\x5c\x11\x55\xfc\x8c\xfa\x59\x43\xfd\x9a" "\xb9\x03\xd0\x83\x23\x16\x0a\x03\x48\x0d\xc8\xcb\x59\x3a\x82\xbe\xa5" "\x47\xaa\x0d\x89\x64\xba\x57\x05\xad\xa2\xc9\xd3\x00\x21\x60\xa9\x1f" "\x9f\xa4\x72\x00\x6c\x0c\x9c\x9a\x6c\xad\x17\xd8\x61\x64\x97\xce\x9b" "\x64\xce\x46\x1d\x7e\x34\xfc\x10\x5a\x34\x75\xe0\x60\xbb\x11\x82\x6e" "\xc0\xc3\x4b\x3e\xac\xb7\x93\xdf\x69\x6c\x87\x6f\x68\x0f\x23\x81\xa3" "\x92\x17\xa8\x3f\xbd\x31\x35\xbd\x74\xb0\x1c\xe0\x40\x49\xa6\xd7\x70" "\xb2\x81\xe3\x21\x83\xce\x7e\x63\xdb\x5b\x31\xef\x74\x3a\x66\x75\x68" "\x8c\x10\x81\x40\x07\x31\x5e\xfa\x7d\xa5\xb3\xe9\x2e\xba\x3e\x2e\x8d" "\x5d\xdb\xd2\x01\xcf\x76\xdc\xac\x45\xca\x06\xee\xa8\xfc\xf2\x63\xbf" "\x24\x8c\x79\x65\x7a\x23\xeb\x4b\xcf\x06\x27\x1e\xab\x72\xbf\xd9\x3a" "\xf4\x69\x3d\xd7\xde\x62\xbc\x4d\x53\x6c\x4c\xcd\xc3\x35\x3e\x47\xb9" "\x1d\x60\xb5\xb6\x7e\x49\x58\x9c\xa0\x56\xbb\x21\x59\xa6\x27\x7c\x2a" "\x54\x15\x89\x78\x8c\xbf\xc1\x47\x46\x3b\xc7\xe6\x70\x4f\x2d\xca\x3e" "\xc1\xa1\xa4\x46\xc7\x2f\x06\x0b\x86\x97\x1a\xca\xd6\xf8\x1a\xff\x43" "\xc4\xa5\x10\xe9\x4a\x09\xdb\xe4\xed\x4b\xf5\xdb\xc4\xed\xef\xa9\xf5" "\xd5\x26\x08\x7d\x53\xcb\x82\x20\x0f\xa5\xcf\x51\xdc\xdc\x8c\x4e\x93" "\x5d\xe7\xab\x77\x8c\xf8\xad\x26\x56\x37\x9a\x33\x4f\x27\x9b\x73\x1f" "\x8b\x40\x71\x30\xf6\x28\x8c\x37\x59\xc1\x90\x34\x29\x7c\xcd\x33\x62" "\x98\xf5\xcb\xf0\x01\x9f\x9a\x29\x07\x82\xad\x51\x04\x32\x56\x47\x3c" "\xa8\x8a\x21\x33\x52\xab\x2a\xb7\x60\x79\x36\xd6\x2f\xc8\x40\xeb\xfd" "\x68\xb4\x95\x95\xd7\x40\xa8\x85\xe6\x90\xda\x43\x66\x1e\x55\xab\xf3" "\x14\xf7\x95\x0d\x06\x69\x6b\x7e\xaa\x79\x1b\xd2\x19\xd3\x8b\x0e\x9a" "\xc9\x37\x45\x12\x95\xf6\x49\x54\xff\x3d\x2f\x1f\xc9\xbb\x88\x8d\x75" "\x37\xb9\xae\xd2\x39\xa7\xd2\xf3\x44\x46\x38\xb6\xa9\x27\xa1\x6c\x1f" "\xdf\xe0\xae\xda\x37\xd3\x16\xd0\xc7\x94\x33\x6f\x7e\xa7\x3f\x96\x19" "\x8f\x33\x1d\x09\x72\x00\xbc\xe5\x75\x3e\x88\x1a\x65\xfb\x2f\x7e\xea" "\x9b\x6b\x3d\x25\xc0\x1f\xe2\x48\xe2\x81\x2d\x7f\xc7\xf2\xdc\x4c\xee" "\x06\x0f\x1e\x09\x2a\xf6\x10\x3d\x81\x27\x49\xfe\x8d\x7b\xdb\x9f\x06" "\xcc\xa7\x07\xce\xce\xc8\xc2\xb6\x77\x23\x6c\x0f\xc6\x46\x4e\x09\x0d" "\xf5\x8f\x56\x6e\x7d\xdf\x42\x01\x25\x1f\xe1\x74\x4a\x7f\x28\x91\x63" "\xa0\x8a\xcb\xa8\x27\xa2\x5e\xd4\xf0\xde\x90\x82\xa5\xf6\x84\x63\xc0" "\xdc\xad\xf3\x1b\xe1\xd4\xe6\x21\x5d\x0b\x52\x16\x68\x7c\xea\x75\x75" "\x83\x63\xf9\xf0\x71\x54\x02\x30\x5a\xd4\x49\xa0\x0d\xc9\x6b\xb8\x04" "\xb6\xde\x6f\x76\x8a\x9a\xf9\x74\x92\x99\x9b\x28\xd5\x10\x48\x8f\xa5" "\x71\x00\x5a\x36\xdc\x0b\xbc\x48\xe0\x06\x7f\x78\xd2\x85\xa0\x32\x87" "\x2d\xff\xe7\x33\x88\x4e\x38\x25\x11\xa3\x76\xd1\x8f\x32\x99\xc3\x0e" "\x14\x73\xb8\xdd\xa3\xa0\x0b\x02\xbf\x69\x4f\x7f\x8a\x10\x2b\xde\x10" "\xad\x6b\xfd\x43\xaf\xcf\x3d\x6b\xa0\x0b\x23\x3a\x71\xbe\x46\x8c\x7b" "\xa6\x65\xd2\xb2\xbf\xac\xcf\xab\xb8\x96\x0b\xca\x83\x97\x01\xa5\x0b" "\xa9\x33\xc9\x09\x07\xaf\x88\x32\xae\x55\xc9\xa7\x77\x6c\x73\xdf\x18" "\xd6\x73\xc0\x18\x47\xbf\x42\x7f\xdf\xea\x16\xd7\x01\x96\x50\x7f\x54" "\x4b\xc4\xf1\x91\xb9\x8e\xe0\xfc\x2f\x1b\x16\xf8\xcc\xe6\xde\x51\x02" "\xb9\x1a\xcf\x19\x81\xf2\x0f\x56\x83\x49\xf7\x96\x0c\xd7\x74\x1c\x53" "\x1f\x64\x09\x9b\xae\xdd\xe0\x3f\xf8\xbf\x56\xd7\x5b\x69\x4d\xdd\x6e" "\x7d\xa9\x53\x4c\x99\xd4\xb6\x6a\xb3\x69\x86\x2c\x33\x53\xbf\xb4\x84" "\x31\xe1\xda\x25\x74\xa5\xfe\xed\x74\xe4\xf8\x1b\x69\xb3\xbc\x00\x6f" "\xc5\x5d\xd7\x1f\x14\x74\x6f\x22\x0a\x2f\x26\x49\x9f\x06\xac\x3b\xe2" "\x09\x35\x49\x93\x71\x9d\xf6\x40\xc8\x85\x88\x7c\x6b\x7e\x06\x63\x02" "\x34\x45\xab\x40\x2b\x38\x3a\x72\x80\x87\x9f\x87\x61\xaf\x6d\xb2\x80" "\x34\xbd\xea\xf6\x0d\xa5\x65\xcf\x6d\xac\x98\xde\xed\x7b\x20\x32\xda" "\xae\x4d\xe5\x47\x81\xd1\xe7\x80\x35\xcf\xb0\x75\x4e\xf9\x8e\x1e\x85" "\x52\xb0\x1f\xf7\xd8\x58\x9f\x14\x01\x9d\xf2\x0a\x2f\x76\xde\x10\x50" "\x07\xc1\x9a\x0f\x15\x3e\xd3\x5b\x29\x5b\xdc\x6e\x0b\xcb\x82\x5b\xd4" "\x38\x3a\xa3\x57\x04\x40\x04\x67\xe8\x6e\x3e\x86\xd3\x66\x89\x36\x8d" "\x1a\x40\x8e\xd9\x34\x6c\xfe\xd3\xdd\x0f\xde\x48\x73\x0d\xb9\x34\xf8" "\xb6\xd4\xeb\x29\x82\x3e\x85\xb7\xfb\xee\x41\xc7\x10\x2c\x02\x08\xb7" "\x59\x7f\xf8\xa7\xa8\x21\x02\xa9\x9d\x34\x95\x0a\xeb\xf9\x2b\x5d\x85" "\xbd\xb7\x43\x9c\x0b\xd4\x60\xfa\xd0\xbb\x29\xb0\xc2\x04\x2c\xf1\xe6" "\xf9\x02\x6e\xcf\x56\xb0\x11\xd8\x11\x0b\xd6\x6d\xce\xc5\x86\x46\x56" "\xfb\xf1\x57\x4d\xe1\xe6\x94\x89\x67\x9a\x2c\x75\xb6\x3c\x17\x28\x15" "\x41\x94\x79\x1a\xe1\xcc\x44\x35\x12\xf2\x00\xa0\xbb\x67\x70\xc9\x26" "\x85\xed\xc6\x4f\x64\xfd\xbf\x64\xe8\xa3\x63\xe2\xb7\xd4\xf1\xe2\xc1" "\x8f\xa7\xa5\xba\xa1\x42\xf4\x36\x14\xe6\x7b\x14\x50\xae\x24\xb5\x65" "\xd8\x1a\x72\xca\xba\xbb\x9b\x84\xbb\xa4\x24\x8f\x49\x12\x86\xd5\x32" "\xcb\xf6\xfc\x22\x63\x98\x47\x01\xb8\xce\x91\xac\x7d\xf1\x05\xdc\x2f" "\x60\x76\xbe\x10\x15\xee\x19\xb0\x4f\x96\x3d\xfc\x7e\x77\x47\xc9\x59" "\x7c\x0d\x22\xd5\x26\x11\x54\x8c\x77\xb9\x33\x70\x51\xfb\xec\xa9\xff" "\x5a\x38\xd1\x7c\x02\x2b\x6e\x08\x90\xec\x13\x67\x8d\x92\x70\xcf\x81" "\xa4\x0a\xf2\xf5\xe4\x5e\xde\xe1\x24\x94\x13\xe0\x25\xea\x3a\xf8\xe6" "\x6f\x32\xaf\x35\xf0\x9f\x68\xda\x77\x30\xfe\xe4\xf8\xd4\xc0\xc0\x13" "\x98\xd7\x88\x6f\xe0\xb4\xe5\xd1\x59\x7d\x41\x65\x76\x72\xf4\xec\xbc" "\x46\xee\xfa\xfc\xcd\xf9\x0f\x14\xea\x94\xb2\x4f\xdb\x83\xe4\xe0\xac" "\x57\x64\x81\xb8\x10\xf7\xa1\x8d\xba\xc9\x13\xa6\xb7\x57\xf7\x6e\x0d" "\x55\xfb\x23\xe4\xa7\x2f\x0f\xd1\xb9\x16\x47\xa5\x57\x27\xd6\xde\xb0" "\x93\xc8\xad\x27\x65\x62\x7a\x94\x70\x12\xb1\xe1\x17\x02\x8f\x8f\x4e" "\x05\x83\x24\x06\xa3\xaa\x8e\x0b\xf5\xda\x7a\x45\x4c\x29\xfc\x2f\x6f" "\xd4\x84\x14\x58\x05\xf8\xa4\x45\xcb\x63\x72\x54\xec\x7f\x59\x02\x82" "\xb4\x66\xea\xf5\x6b\x7b\xf6\x8b\x4a\xc7\xf4\x66\x9c\xd1\xa4\x0a\x63" "\xb3\x9f\xfe\x29\x04\x98\xd8\x00\x0e\x88\x03\xce\x34\xb4\xb8\xbf\x64" "\x42\xb8\x59\x6b\x8a\x10\x92\xf7\xed\x09\x81\x92\x0d\xf2\x66\xd2\x6e" "\x07\x82\x61\xaf\x8c\xea\xc4\x7a\x54\x78\x83\x16\xdd\x5e\xcb\x2b\x50" "\xd4\x5f\x63\x32\xf5\x0d\x09\x82\x63\x0c\x97\xad\xc1\xdc\x4f\x67\xdd" "\xce\xec\x2f\x2c\x04\x4c\x5b\xf4\x92\x23\xf4\x15\x79\x86\x45\x7f\x1b" "\x9c\x51\x79\x9a\x02\x8b\xa8\xd9\x87\x97\x4f\x15\x9b\xd3\x3e\xb0\xfb" "\xb9\xdf\x7c\x72\x7c\x83\xe5\x40\x90\x92\x46\x94\x14\xe2\xd5\x31\x06" "\x8b\xd5\x02\x1c\xe1\x89\x7e\x56\x55\x98\x62\xd9\x92\x45\xb9\x08\x41" "\xe5\x7f\x58\xbe\x3e\x90\x29\x33\xca\xe7\x9b\xc7\xb7\x26\x91\xeb\xc5" "\x14\xe6\x02\xfb\x9a\xbf\x03\x3e\x8b\xc9\xa5\x02\x57\x9c\x1e\xf4\xf5" "\xea\x2b\xbf\xab\x13\xec\x65\xad\x58\x3d\x24\xe7\xde\xf2\xfa\x4e\x72" "\x4d\x59\x62\x0b\x53\xe6\xb5\xe2\x38\x43\x4d\xd5\xc0\x98\xb6\xaf\x13" "\x1d\x91\x9b\x8b\x36\x43\xaa\xee\xa2\x2a\x47\xa9\x98\xeb\xed\xb9\x12" "\x8c\x8b\x3b\x1f\xf4\xe4\x71\x9e\x37\xf8\xe3\x31\x9e\xcb\x22\xa4\xd8" "\x91\xd7\x2e\xb2\x8d\x9b\x02\x8f\x3f\xf6\xc0\xf7\x12\xa4\xc2\xf5\x0e" "\x57\x15\x61\xba\xb0\x94\x2c\xb8\x8f\x76\xb9\xda\x5f\x9f\x40\x73\x61" "\x14\xc4\x78\x0f\x35\xda\x06\xa7\xc5\x94\xcf\x59\xca\x26\x0c\x06\xa1" "\x4b\xd6\x42\xc0\x05\xb6\x86\x48\x33\x05\x31\x97\xd3\xa2\x6b\x81\xb4" "\x3a\x4b\xb7\x74\xa2\x8c\x8b\x80\xe2\xc5\x41\xa9\x9b\xcb\x25\x1b\x90" "\x4e\x93\xc3\x4c\xd6\x58\xf0\xc1\x57\x54\xee\x58\x3d\x69\x82\x0a\x08" "\x20\xc2\x23\x43\x12\x80\x61\xab\xa3\xb7\xd8\x5a\xee\x93\xf9\x10\x3a" "\xd6\x38\xd5\x35\x3e\x26\x1b\xf1\xec\x0d\x6c\x82\xe1\x92\xcf\x60\x14" "\x94\x01\xe0\x35\x41\x0e\x2f\x63\x31\x96\x6e\x76\xf4\x8b\xa1\xe5\x46" "\xf4\xa4\x85\x51\xb2\x1f\x85\xfc\xce\x9d\x61\xbc\x55\x9f\x68\x8e\x2f" "\x53\x3a\x0c\xcf\x77\x72\x00\x7b\x2f\xb7\x91\x9b\x22\xf0\xf8\x0e\xee" "\xf0\x83\xef\x93\xe8\xad\x26\x91\xd1\xfb\x99\x27\xa7\x61\x8e\x13\xd8" "\x53\xc9\x0d\xe3\x40\x27\xcd\x8a\x98\x93\x36\x0a\x57\x11\xa1\x2f\x3f" "\x12\xb6\x33\xd9\x3b\x51\xca\xad\xb6\xf8\x03\x61\x6d\x97\x20\x25\x90" "\xc7\x02\x62\xf4\x08\x78\xa9\x21\x60\x97\x16\x04\xf0\x86\xe5\xea\x86" "\x0c\x9c\x9f\x26\xb4\xa7\x34\x4d\x21\x1c\xd8\x8f\x89\x02\x4d\xda\xb4" "\xcf\x33\x64\xe9\x7b\xa0\x41\xba\xe6\x36\x65\xcd\x4c\x0d\xc7\xa6\x9c" "\x3d\x66\xe7\x1a\xd1\xf8\x3a\x83\xe0\x66\x55\x6a\x6e\x28\x4d\x68\xd9" "\xc3\x8f\x59\xe8\x22\xe6\xbc\x1d\xa9\x55\x23\x1d\x5f\x4d\x4a\x12\xaa" "\x4c\xd9\xe2\x38\x9b\x80\xfb\xd2\x72\x30\x35\xa0\x6c\x58\xb6\xc4\x86" "\xac\xdf\x91\x82\xd7\x14\xe0\x78\xff\x3b\xc7\xc4\x5e\x01\xb5\x1b\x86" "\x0b\x44\x1f\x0d\x14\xca\xbf\x8d\x92\xfb\x5f\x52\x0c\xdc\x67\xab\x0e" "\xa1\xf9\xc2\x31\xcc\x15\x4e\x95\x60\x5b\x76\x3d\x9c\xa7\xed\x64\x9a" "\x4b\x68\x30\xc2\x3e\xc0\xb8\x29\xe4\x52\xe0\xda\x89\x63\xf4\x7f\xec" "\xfe\x58\x7b\x35\xae\xc4\x24\x0d\xc1\xfd\xc1\xbf\x4b\x53\xee\xd4\xda" "\x54\xfe\x27\xe8\x5e\x49\xcc\x47\xd9\x1d\x04\x3f\x8b\x42\xcf\x94\x93" "\x7b\xae\x2e\x9f\xf2\x6c\x87\x79\x01\x75\x36\xac\x37\x73\x69\x92\x10" "\x7a\x99\x5d\x76\x2a\x38\xc3\xc2\x65\x0f\xac\x94\xe1\x86\xde\x01\x90" "\x5b\x39\x09\x9d\x76\x86\xbb\xe2\x6d\x6d\xc4\x3c\x95\x2c\x13\xbd\x11" "\xc8\x90\x0c\x89\x72\x9e\x2a\x5c\xf3\x70\x01\x45\x46\xed\xef\xdf\x64" "\x20\xf1\x36\x2d\xdc\xa4\x40\x60\x47\xf2\x82\xdc\x19\xd6\x88\xe1\x85" "\x45\x10\xdb\x2a\xef\x59\xaa\x8c\xe9\x40\x10\xcd\x7a\xb5\xc2\xf8\xee" "\xa1\x35\xe0\xbd\x26\x9f\x88\x20\xac\xe1\x84\xd8\x1b\xa6\x70\xd3\xfa" "\x82\xf3\x49\x1f\x5d\x1f\xcd\xfa\x1b\x96\x15\x68\x87\x00\xc3\xd8\x9f" "\x1d\x6e\x7d\xfb\x13\x6a\x90\x54\x09\x96\x0e\x36\xaa\xea\x88\x6a\x07" "\x8f\xbe\x77\x19\x30\x7e\xb1\x99\x9e\x94\xd4\x0d\x32\x43\x86\x68\x52" "\x21\xae\x6e\xd0\x79\x98\x0c\xf3\x1c\xc2\x30\xd5\x1b\x74\x63\x70\xcb" "\x1b\x38\xfc\xaf\x84\xce\xa5\x1f\x2c\xd3\x6f\xc0\x67\xd1\x54\x77\xe0" "\xe9\xa7\xa0\x88\xc6\x9b\x6f\x19\xbb\x6d\x61\x18\x88\x73\xea\xad\x6a" "\x51\xd1\xb1\x63\xc7\x6f\x57\x8c\xcb\x4f\xd3\x94\x15\xd4\x1a\x68\x21" "\x79\x8a\xd8\x5d\xfa\xf0\x6e\xbf\xd9\xe6\x18\x52\x0d\xdf\x16\x3b\xaa" "\x33\x44\xbf\x7e\x3d\x4d\xa2\x09\xb1\x5b\x27\x0c\x5f\x4d\x65\x13\xa7" "\x13\xdd\x5a\xd1\x56\xcb\xc6\x76\x0d\xfb\x85\x71\x82\x70\x48\x9f\xd1" "\x36\x96\x8a\x49\x83\x96\xba\xa5\x54\x34\x70\xc1\x28\xe2\x66\x13\x42" "\x9e\x8b\x9c\x3b\x33\xe4\xfd\xb0\x6d\x0f\x53\x0b\x30\x3a\xb1\x65\x70" "\x30\x4e\x8d\xda\x26\xd3\x5b\x80\xfc\x5b\xfe\x30\x98\x80\xfa\xbf\x56" "\xd7\x20\x6c\x65\xe4\x6d\x3f\x62\x51\x40\x00\x71\xcd\x9c\xc5\x1b\xc9" "\x33\x6c\xa1\xac\x26\x89\x80\x51\xee\x78\x53\xe8\x21\x44\xc2\xa6\x38" "\x15\x6e\xc0\x78\x51\x5d\xaa\xe0\x31\x4d\x11\xc4\xeb\xd1\xda\x4a\x0e" "\x4b\x4d\xa1\x00\x18\x61\x81\x3a\x91\x3c\xbc\xa5\x30\x89\x63\xb8", 4096)); NONFAILING(*(uint16_t*)0x20007c04 = 0x1000); syscall(__NR_write, /*fd=*/r[0], /*data=*/0x20006c00ul, /*len=*/0x1006ul); break; case 4: NONFAILING(memcpy((void*)0x20000040, "./file1\000", 8)); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000040ul, /*flags=O_SYNC|O_CREAT|O_RDWR*/ 0x101042, /*mode=*/0); break; } } 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); setup_sysctl(); const char* reason; (void)reason; install_segv_handler(); loop(); return 0; }