// https://syzkaller.appspot.com/bug?id=6414c846646a1d8631515cdd08ff46f03f4788b2 // 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 #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 bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, loopfd = -1, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } static void 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() { char mypid[32]; snprintf(mypid, sizeof(mypid), "%d", getpid()); 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", mypid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) printf("write to %s failed: %s\n", files[i].name, strerror(errno)); } } 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 (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; NONFAILING(memcpy((void*)0x20000040, "ext4\000", 5)); NONFAILING(memcpy((void*)0x200007c0, "./file0\000", 8)); NONFAILING(memcpy( (void*)0x20000fc0, "\x78\x9c\xec\xdd\xcf\x6b\x5c\xd5\x1e\x00\xf0\xef\x9d\x64\x9a\xbe\xb4\xef" "\x25\x0f\x1e\x3c\xeb\x2a\x20\x68\xa0\x74\x62\x6a\x6c\x15\x5c\x44\x5c\x88" "\x60\xa1\xa0\x6b\xdb\x30\x99\x86\x9a\x49\xa6\x64\x26\xa5\x09\x41\x5b\x44" "\xe8\x46\x50\x71\x21\xe8\xa6\x6b\x7f\xb4\x3b\xb7\xfe\xd8\xea\x7f\xe1\x42" "\x5a\xaa\xa6\xc5\x8a\x0b\x89\xdc\xc9\x4c\x33\x6d\x66\x92\x49\x9a\x64\xa2" "\xf3\xf9\xc0\x6d\xcf\xb9\x73\xee\x9c\xf3\xbd\xe7\xfe\x38\x99\x73\x99\x09" "\xa0\x6b\x0d\xa5\xff\x64\x22\x8e\x44\xc4\xfb\x49\xc4\x40\x6d\x7d\x12\x11" "\xd9\x6a\xaa\x37\x62\x7c\xb5\xdc\xbd\xe5\xa5\x7c\xba\x24\xb1\xb2\xf2\xda" "\x2f\x49\xb5\xcc\xdd\xe5\xa5\x7c\x34\x6c\x93\x3a\x54\xcb\x3c\x16\x11\xdf" "\xbe\x1b\x71\x34\xb3\xbe\xde\xf2\xc2\xe2\xf4\x44\xb1\x58\x98\xab\xe5\x47" "\x2a\x33\x17\x46\xca\x0b\x8b\xc7\xce\xcf\x4c\x4c\x15\xa6\x0a\xb3\x27\x46" "\xc7\xc6\x8e\x9f\x7c\xf6\xe4\x89\x9d\x8b\xf5\xb7\x1f\x16\x0f\xdf\xfa\xe0" "\xe5\xa7\xbe\x1c\xff\xe3\x9d\xff\x5f\x7f\xef\xbb\x24\xc6\xe3\x70\xed\xb5" "\xc6\x38\x76\xca\x50\x0c\xd5\xf6\x49\x36\xdd\x85\x0f\x78\x69\xa7\x2b\xeb" "\xb0\xa4\xd3\x0d\x60\x5b\xd2\x53\xb3\x67\xf5\x2c\x8f\x23\x31\x10\x3d\xd5" "\x14\x00\xf0\x4f\xf6\x76\x44\xac\x6c\x55\x76\xeb\x9b\x00\x00\xfb\x49\xe2" "\x66\x0e\x00\x5d\xa6\xfe\x39\xc0\xdd\xe5\xa5\x7c\x7d\xe9\xec\x27\x12\x7b" "\xeb\xf6\x8b\x11\x71\x70\x35\xfe\xfa\xfc\xe6\xea\x6c\x48\x6f\x6d\xce\xee" "\x60\x75\x1e\xb4\xff\x6e\xf2\xc0\xcc\x48\x12\x11\x83\x3b\x50\xff\x50\x44" "\x7c\xfa\xd5\x1b\x9f\xa7\x4b\xec\xd2\x3c\x24\x40\x33\x97\xaf\x44\xc4\xd9" "\xc1\xa1\xf5\xd7\xff\x64\xdd\x33\x0b\x5b\xf5\x74\x1b\x65\x86\x1e\xca\xbb" "\xfe\xc1\xde\xf9\x3a\x1d\xff\x3c\xd7\x6c\xfc\x97\xb9\x3f\xfe\x89\x26\xe3" "\x9f\xbe\x26\xe7\xee\x76\x6c\x7e\xfe\x67\x6e\xee\x40\x35\x2d\xa5\xe3\xbf" "\x17\x1a\x9e\x6d\xbb\xd7\x10\x7f\xcd\x60\x4f\x2d\xf7\xef\xea\x98\x2f\x9b" "\x9c\x3b\x5f\x2c\xa4\xd7\xb6\xff\x44\xc4\x70\x64\xfb\xd2\xfc\xe8\x06\x75" "\x0c\xdf\xf9\xf3\x4e\xab\xd7\x1a\xc7\x7f\xbf\x7e\xf8\xe6\x67\x69\xfd\xe9" "\xff\x6b\x25\x32\x37\x7b\xfb\x1e\xdc\x66\x72\xa2\x32\xf1\x28\x31\x37\xba" "\x7d\x25\xe2\xf1\xde\x66\xf1\x27\xf7\xfb\x3f\x69\x31\xfe\x3d\xdd\x66\x1d" "\xaf\x3c\x7f\xf5\x93\x56\xaf\xa5\xf1\xa7\xf1\xd6\x97\xf5\xf1\xef\xae\x95" "\x6b\x11\x4f\x36\xed\xff\xb5\x27\xda\x92\x0d\x9f\x4f\x1c\xa9\x1e\x0e\x23" "\xf5\x83\xa2\x89\x1b\x3f\x7e\xdc\xdf\xaa\xfe\xc6\xfe\x4f\x97\xb4\xfe\xfa" "\xdf\x02\x8d\xb2\x3b\x12\xed\x7a\x69\xff\xf7\x6f\x1c\xff\x60\xb2\xf6\xbc" "\xe6\xd5\xb9\x72\xbb\xef\xfc\xd6\x8d\x7a\xea\xfb\x6b\x03\xdf\xb4\x2a\xb5" "\x79\xfc\xcd\x8f\xff\x03\xc9\xeb\xd5\xf4\x81\xda\xba\x4b\x13\x95\xca\xdc" "\x68\xc4\x81\xe4\xd5\xf5\xeb\x8f\xaf\x6d\x5b\xcf\xd7\xcb\xa7\xf1\x0f\x3f" "\xd1\xfc\xfc\xdf\xe8\xf8\x4f\xfb\xe3\x6c\x9b\x7b\xa2\xf7\xd6\xcf\x5f\x6c" "\x3f\xfe\xdd\x95\xc6\x3f\xd9\x7e\xff\x17\xe6\xb6\x91\xb8\x7e\x6f\xba\xa7" "\x55\xfd\xed\xf5\xff\x58\x35\x35\x5c\x5b\xd3\xce\xf5\xaf\xdd\x06\x3e\xca" "\xbe\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x80\x76\x65\x22\xe2\x70\x24\x99\xdc\xfd\x74\x26\x93\xcb\xad\xfe" "\x86\xf7\xff\xa2\x3f\x53\x2c\x95\x2b\x47\xcf\x95\xe6\x67\x27\xa3\xfa\x5b" "\xd9\x83\x91\xcd\xd4\xbf\xea\x72\xa0\xe1\xfb\x50\x47\x6b\xdf\x87\x5f\xcf" "\x1f\x7f\x28\xff\x4c\x44\xfc\x37\x22\x3e\xea\xfb\x57\x35\x9f\xcb\x97\x8a" "\x93\x9d\x0e\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6a" "\x0e\xb5\xf8\xfd\xff\xd4\x4f\x7d\x9d\x6e\x1d\x00\xb0\x6b\x0e\x76\xba\x01" "\x00\xc0\x9e\x73\xff\x07\x80\xee\xe3\xfe\x0f\x00\xdd\xc7\xfd\x1f\x00\xba" "\x8f\xfb\x3f\x00\x74\x1f\xf7\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x76\xd9\xe9\x53\xa7\xd2\x65\xe5\xf7\xe5\xa5\x7c\x9a" "\x9f\xbc\xb8\x30\x3f\x5d\xba\x78\x6c\xb2\x50\x9e\xce\xcd\xcc\xe7\x73\xf9" "\xd2\xdc\x85\xdc\x54\xa9\x34\x55\x2c\xe4\xf2\xa5\x99\xcd\xde\xaf\x58\x2a" "\x5d\x18\x8b\xd9\xf9\x4b\x23\x95\x42\xb9\x32\x52\x5e\x58\x3c\x33\x53\x9a" "\x9f\xad\x9c\x39\x3f\x33\x31\x55\x38\x53\xc8\xee\x49\x54\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x35\xe5\x85\xc5\xe9\x89\x62\xb1" "\x30\xb7\x9f\x12\xb5\xb6\x5d\xde\x2f\xed\xe9\xde\x44\xc4\xe6\x65\xc6\xf7" "\x47\x53\xf7\x7d\x22\x89\x88\x7d\xd0\x8c\x76\x13\x1d\xbe\x30\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xfc\x4d\xfc\x15\x00\x00\xff\xff\x64\x70\x23" "\xe8", 1927)); NONFAILING(syz_mount_image(0x20000040, 0x200007c0, 0, 0x20000800, 0x24, 0x787, 0x20000fc0)); NONFAILING(memcpy((void*)0x20000040, "./bus\000", 6)); res = syscall(__NR_creat, 0x20000040ul, 0ul); if (res != -1) r[0] = res; NONFAILING(memcpy((void*)0x20000380, "/dev/loop", 9)); NONFAILING(*(uint8_t*)0x20000389 = 0x30); NONFAILING(*(uint8_t*)0x2000038a = 0); NONFAILING(memcpy((void*)0x200003c0, "./bus\000", 6)); syscall(__NR_mount, 0x20000380ul, 0x200003c0ul, 0ul, 0x1000ul, 0ul); NONFAILING(*(uint64_t*)0x20008d00 = 0); NONFAILING(*(uint32_t*)0x20008d08 = 0); NONFAILING(*(uint64_t*)0x20008d10 = 0); NONFAILING(*(uint64_t*)0x20008d18 = 0); NONFAILING(*(uint64_t*)0x20008d20 = 0); NONFAILING(*(uint64_t*)0x20008d28 = 0x140); NONFAILING(*(uint32_t*)0x20008d30 = 0); NONFAILING(*(uint32_t*)0x20008d38 = 0); NONFAILING(*(uint64_t*)0x20008d40 = 0); NONFAILING(*(uint32_t*)0x20008d48 = 0); NONFAILING(*(uint64_t*)0x20008d50 = 0); NONFAILING(*(uint64_t*)0x20008d58 = 0); NONFAILING(*(uint64_t*)0x20008d60 = 0); NONFAILING(*(uint64_t*)0x20008d68 = 0); NONFAILING(*(uint32_t*)0x20008d70 = 0x4000); NONFAILING(*(uint32_t*)0x20008d78 = 0); NONFAILING(*(uint64_t*)0x20008d80 = 0); NONFAILING(*(uint32_t*)0x20008d88 = 0); NONFAILING(*(uint64_t*)0x20008d90 = 0x20003f00); NONFAILING(*(uint64_t*)0x20003f00 = 0); NONFAILING(*(uint64_t*)0x20003f08 = 0); NONFAILING(*(uint64_t*)0x20003f10 = 0); NONFAILING(*(uint64_t*)0x20003f18 = 0); NONFAILING(*(uint64_t*)0x20003f20 = 0); NONFAILING(*(uint64_t*)0x20003f28 = 0); NONFAILING(*(uint64_t*)0x20003f30 = 0); NONFAILING(*(uint64_t*)0x20003f38 = 0); NONFAILING(*(uint64_t*)0x20003f40 = 0); NONFAILING(*(uint64_t*)0x20003f48 = 0); NONFAILING(*(uint64_t*)0x20003f50 = 0); NONFAILING(*(uint64_t*)0x20003f58 = 0); NONFAILING(*(uint64_t*)0x20003f60 = 0x20004440); NONFAILING(memcpy( (void*)0x20004440, "\x40\x5c\xaa\xb8\x1c\xa3\x85\xac\xc6\x39\xdb\x00\xaa\xf7\xde\x80\x49\xf6" "\x8c\x9f\x82\xcd\x9c\xae\xe0\xba\xc7\x42\xd8\x22\x4c\xd4\x67\x3a\xe5\x73" "\x75\xf3\x48\xf9\x4d\xef\xbc\x52\xd3\xf7\xa1\x41\x81\x9f\x44\x13\x89\xb3" "\xe8\x89\x94\xf4\x80\xd7\x57\xc2\xc7\x8b\x98\x9d\x51\xf5\xd4\xf7\xa7\xee" "\x54\xd7\x44\x9d\x7f\x3f\x48\xec\x53\xfe\x2a\xa5\xc3\xc0\xc0\x40\xf3\x4f" "\xc5\x8a\x2c\xd5\x70\x5a\x26\x9b\xb1\x6c\x17\x0c\xd4\x00\x23\x06\x47\x90" "\x1a\xf5\x34\x52\x97\x1b\x4b\xb0\xca\xd5\xb8\x0e\xf2\x48\xac\xf3\x97\x9f" "\x3e\x0f\x8b\xf6\x95\xd9\xfb\x5e\x82\x56\xf4\xf6\x38\x3f\xf3\x3d\x9b\x95" "\x8c\x4a\xd2\xd0\x2a\x26\x44\x9c\x22\x93\x8d\x48\xcb\x58\xf0\xee\x5b\x26" "\x27\xc3\x55\x0a\x56\x70\xa0\xe2\xc4\xda\x4c\xd0\xfe\xee\xfd\x09\x2c\x17" "\x50\xfb\x05\x66\xfd\xef\x32\x68\x3c\x04\x16\xc9\xe0\xd8\xb0\xb5\x2e\xdc" "\x6b\x28\x1d\xaa\x38\x3a\xfe\xcd\x95\x2e\x21\xad\xf5\xc8\xdb\x15\x4d\x20" "\xc1\x03\x4b\x07\xe0\x00\xd0\x3d\x13\x8c\x8a\xfc\x44\x5d\x53\xc1\xd9\x21" "\xa4\x82\x13\x6d\xbf\xce\xca\x78\xb8\x8d\x16\x73\x78\x72\x7b\xe6\xba\xad" "\x94\xe1\x2f\x3e\xa5\x6a\x95\x18\xba\x01\x03\x6b\xb1\xac\xc8\x14\xd0\x09" "\x6a\x17\x4f\xf1\x1a\x90\x59\xe2\x9e\x33\x6b\xda\xf0\x74\xeb\x1b\xd1\xe6" "\xf6\x60\xda\x1e\x2b\x6e\xef\x8a\x13\x3a\xf9\x44\x73\xe3\x29\x12\x5d\x5d" "\xf9\x1f\xa5\xc7\x77\x1a\xa8\x24\x8d\x07\x57\x61\x01\x4a\xb4\xa7\xf4\x2b" "\x08\x4d\x63\x39\x3c\xff\xa1\x87\x7a\xcf\x65\x41\x27\xff\x6a\x0b\x9d\x66" "\x3c\x2c\x0c\xa1\x5c\xe6\x1a\xe5\x68\xea\x08\x4d\x7a\x26\x4a\x82\x0d\x0d" "\x07\xec\x3f\x81\x27\xea\x85\x31\x03\x95\x47\x3c\x33\xb4\x65\x42\x88\xc4" "\xd5\x39\x05\x20\x68\x9a\x9d\x48\x51\x89\x17\x3b\xb6\xb1\x07\x14\x29\x61" "\xf8\xa3\x78\x72\xc0\x5b\xae\x0f\x71\x40\xb5\x44\x82\x8b\x88\x8e\x63\x69" "\x54\xa1\xd6\x9a\x0d\xe0\x9e\x0b\x06\x1d\xb8\x0f\x1f\x89\x5a\xd9\xe1\x14" "\xa3\xe3\x90\x96\x3a\x42\xbe\x0d\x15\x4f\xdd\x1a\xb2\x1f\xd7\xc9\xfc\xde" "\x2a\xce\x29\x0d\x09\x49\x64\xdf\xc3\xf0\xcd\x84\x23\x64\x13\x00\x22\xfa" "\x9c\xbd\x18\xc1\xa5\x31\x2b\x0c\x70\x61\x39\xaa\x3f\xf0\xe5\x64\xae\x33" "\x39\x73\x30\x93\x72\x23\xe1\xdd\x7d\x33\xe3\xdb\x97\x77\x33\xbf\x07\x9b" "\x84\x57\x99\x52\x6e\xc8\xb2\x60\x70\x5b\xd6\xc4\xd5\x28\xdb\xb8\x50\x71" "\xca\x29\xd9\x84\x1c\x3e\x19\x67\x15\x2b\xbd\x5b\xc2\x3d\x10\x33\x9d\xe1" "\x1d\x99\xc6\x26\x52\x0b\x8d\x95\x06\x0b\xc6\xa0\x7c\x74\x6f\x5b\x7f\x08" "\x50\x65\xcd\xba\x69\x44\x64\xc7\xfb\x71\xa4\x40\x6d\xb7\x2e\x05\x45\x90" "\x57\xb1\x6d\x37\x3a\x64\xa5\xfe\x41\xa6\x14\xaf\x56\x2b\xa1\x26\xa8\xf1" "\x99\x2c\x50\x5c\xae\x63\xe9\xb8\xa1\xf2\xc5\x50\xc5\xa5\x9e\xd2\xb8\x86" "\xae\x23\x13\x03\x65\xe8\xa2\x07\xde\xf9\x66\xb2\xe1\x94\xed\xfd\xf3\xe6" "\x30\xed\xc7\xce\x2e\x18\xa4\x74\xbf\xec\x6c\xe8\x09\xbc\x30\x7c\xae\xb2" "\x31\x45\x16\xa9\x30\xa6\x62\xe9\x39\xe2\x5c\xda\x3c\xff\xc4\x4a\xa5\x88" "\xec\x80\x23\xbf\x2f\x11\x0f\x12\x51\x83\x07\x18\x2e\x0a\x1c\xc7\x29\x07" "\xce\xac\x56\xa7\x9f\x01\x40\xd0\xa1\x5f\x4c\xf9\x6d\x7d\x9a\x4c\x5e\xcb" "\x33\x07\xb0\x55\x4f\xa7\xa3\x0f\x42\xe2\x13\x5d\xdf\xf7\x10\xe7\x71\x6e" "\xe5\x48\x8e\xf4\xa4\xe1\x1b\xfb\x91\x10\xd2\x5b\x90\x0c\x93\xaf\x5a\xa8" "\xda\x1d\x58\x1f\x14\x0c\xb7\xde\x70\x1e\x49\x0b\xf6\xc5\xf4\x12\xc1\x0f" "\x8b\xf3\xcf\x5c\x07\xbd\xdc\x3d\x7c\xd1\xcc\xd9\x5a\x0b\x9e\xec\x81\x89" "\x2f\xa7\x7d\x48\x32\xe5\x23\x6c\xb7\xb0\x6a\x9d\x73\x26\xc0\xda\x8e\xd9" "\xa8\x82\xda\x06\x2d\xef\x4e\xfc\x16\xca\x1d\x44\x08\x28\x84\xdf\xe7\x49" "\x6e\x9c\xae\xb2\xc7\xe8\xd3\x48\xd4\x68\xab\x54\x2b\x87\xa3\xc8\x7c\x4f" "\x5b\x4f\x45\x64\xf1\x57\xb6\xad\xa1\xb7\x89\xd5\x92\x49\xc2\x81\x24\xee" "\xd3\x0f\x09\x0f\x3f\x83\xab\xb3\xd7\x20\xe4\xfc\x54\xa8\x91\x86\x69\x47" "\x90\x3d\x09\x53\x2d\x54\xc8\x5f\x10\xb2\xcd\x72\xfb\x2f\x67\x15\x97\xb9" "\x62\x11\x69\x4d\x57\x7e\xdd\x56\x5c\x8d\x23\xb0\xdf\x5d\x13\xbc\xb3\x19" "\x6b\xe3\x71\x44\x28\xc1\x13\xa1\xfc\xcd\x87\x1c\x4a\x66\x07\xae\x84\xa7" "\x96\x56\xd7\xbf\x4c\x6e\x0a\x32\xf0\x16\x90\x2d\x0d\x64\x28\xa0\x39\x01" "\x4a\x46\x0f\x67\x4f\x88\x01\x57\x10\x79\x1d\xef\xea\x44\x44\x3b\xac\x78" "\xae\x43\xed\x36\x97\x5e\xf4\x1a\x28\x8a\x52\xae\x6c\x53\xe5\xad\xff\xc1" "\x36\xe4\xfd\x36\x9d\xf7\x92\x83\x5b\x08\x52\xcb\xa7\xe8\x96\xe4\x18\x78" "\x81\x0f\xb7\x36\xd1\xa5\x2f\x5a\x92\x23\x10\xbb\x71\xca\xff\x09\x7e\x54" "\x0b\x09\xb8\x4c\x5e\x0e\x64\x97\x98\x40\x6c\xd4\x88\x9d\xac\xcd\x5f\x02" "\xf3\x5f\x1b\x91\x10\x88\x6b\x26\x47\x37\x16\x5d\xe5\x6f\xbc\xea\xa1\xd9" "\x2f\x40\x97\x44\xf6\x5a\x62\xe5\x05\xfa\x36\xb3\x8e\x94\x6b\x9d\x33\xc9" "\x24\xf3\xb8\x6c\x73\xa8\x8a\x51\x53\x61\xfd\x39\xc4\xb9\x02\x20\xea\x29" "\x10\x13\x56\xde\xfd\xe8\x5d\x07\xd9\xb9\xad\x83\x9c\xe4\xc8\x5c\x1b\x15" "\xec\x5d\x2d\xd9\x83\x29\x3f\x89\xce\xea\x6d\xa9\x52\x0d\x2c\x2b\x9b\x31" "\x49\xd7\x4e\x44\x6b\xdf\xd4\x14\xab\x86\x6c\x27\x92\xae\x25\x2d\x2d\xae" "\xc5\x82\xaf\xa6\x69\xc7\xaf\xef\x91\xd9\x93\xad\x94\xeb\x0b\xc2\x55\xba" "\x21\x24\x4f\x68\x1d\x2f\xed\xd3\xf3\x4c\xb1\xdc\x96\x73\x15\xac\x17\x7c" "\x00\x17\xe0\x66\x54\x16\x84\x95\x78\x41\xa7\x42\x5e\xde\xce\xb7\x9e\x42" "\x13\x2a\xa6\xd8\xfd\xeb\x6e\xa3\x9a\xac\x58\x99\x07\x29\x5a\x5e\xc1\xd7" "\x03\x22\xb9\xeb\x39\xd5\xb7\x14\x2e\xa0\x29\xc8\x00\xcc\x12\xfd\x47\xaa" "\x24\x4e\x80\x8c\x3c\x53\xe9\x78\xf3\xe1\x17\x1b\x70\x83\x9c\x33\x22\x14" "\xc5\xa3\x36\xf5\xd0\x69\x1f\xa6\xb4\xc2\xff\x0a\xbb\x84\x10\xbd\x91\xc7" "\x8b\x7a\x62\xbb\xf1\x13\x11\x0e\xa5\xf4\xa5\x38\xab\xfc\x3b\x95\x8a\x2e" "\x1a\x8d\x67\x5c\x8d\xbf\x65\x8d\x19\x80\x5f\xc1\x47\x3b\x80\xde\x45\x4b" "\xcf\x9f\xd2\x94\xbe\x68\x8a\x7d\x06\x05\x73\xa6\x02\x4a\x64\x96\xc4\x0c" "\x91\x44\xe8\x71\x23\xab\xa2\xd6\x52\x72\xcc\x77\x69\x1b\xfc\x1c\x89\x10" "\x7e\x4f\xc5\xb6\x04\x8a\xc7\x04\xb4\x1e\x00\xae\x0a\xd8\x56\x1d\xd8\x17" "\x2d\xa1\x08\x80\x32\x9f\xea\xf4\xae\x51\x1a\x9a\xc9\x38\x76\x6c\x40\xcf" "\x1a\xf7\x53\x68\x2e\xf9\xb2\xdd\x35\xde\x76\x50\x74\x9c\x50\xd0\x56\x5f" "\x11\xbe\x9e\x00\x87\xb9\xe1\xdf\x06\x94\xef\x3a\x5f\x14\xaa\x6d\xb5\x53" "\x1c\x7b\xaa\xdc\x4c\xcc\xea\x72\xf0\x33\xcf\x79\x22\x01\x4a\x43\x9d\xd3" "\xaa\x29\x03\xf6\x8d\xfa\xbd\x48\xb7\x90\x9c\x6f\x9c\x0d\x2c\xdb\xd8\x07" "\x04\xcd\x2a\xa2\xce\x69\x3c\xe7\x5f\x47\x17\x9d\x2f\x7b\x51\x68\xee\x0e" "\x3b\x49\xf6\xea\x4b\x8b\xd4\x52\x94\x00\x2a\x03\xf3\xe9", 1472)); NONFAILING(*(uint64_t*)0x20003f68 = 0x5c0); NONFAILING(*(uint64_t*)0x20008d98 = 7); NONFAILING(*(uint64_t*)0x20008da0 = 0); NONFAILING(*(uint64_t*)0x20008da8 = 0); NONFAILING(*(uint32_t*)0x20008db0 = 0x20000050); NONFAILING(*(uint32_t*)0x20008db8 = 0); syscall(__NR_sendmmsg, -1, 0x20008d00ul, 3ul, 0x4048001ul); NONFAILING(memcpy((void*)0x20004400, "./bus\000", 6)); res = syscall(__NR_openat, 0xffffff9c, 0x20004400ul, 0x1c1002ul, 0ul); if (res != -1) r[1] = res; NONFAILING(memset((void*)0x20004200, 116, 1)); syscall(__NR_write, r[1], 0x20004200ul, 0x1001ul); NONFAILING(*(uint32_t*)0x20000700 = 0x18); NONFAILING(*(uint32_t*)0x20000704 = 0); NONFAILING(*(uint64_t*)0x20000708 = 0); NONFAILING(*(uint32_t*)0x20000710 = 0); NONFAILING(*(uint32_t*)0x20000714 = 0); syscall(__NR_write, r[0], 0x20000700ul, 0x18ul); } 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); setup_sysctl(); install_segv_handler(); loop(); return 0; }