// https://syzkaller.appspot.com/bug?id=dd526205a598fb0f936c2d29e676c8c3e435adb1 // 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 #include #include static unsigned long long procid; 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; } #define MAX_FDS 30 struct fs_image_segment { void* data; uintptr_t size; uintptr_t offset; }; #define IMAGE_MAX_SEGMENTS 4096 #define IMAGE_MAX_SIZE (129 << 20) #define sys_memfd_create 319 static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, struct fs_image_segment* segs) { if (nsegs > IMAGE_MAX_SEGMENTS) nsegs = IMAGE_MAX_SEGMENTS; for (size_t i = 0; i < nsegs; i++) { if (segs[i].size > IMAGE_MAX_SIZE) segs[i].size = IMAGE_MAX_SIZE; segs[i].offset %= IMAGE_MAX_SIZE; if (segs[i].offset > IMAGE_MAX_SIZE - segs[i].size) segs[i].offset = IMAGE_MAX_SIZE - segs[i].size; if (size < segs[i].offset + segs[i].offset) size = segs[i].offset + segs[i].offset; } if (size > IMAGE_MAX_SIZE) size = IMAGE_MAX_SIZE; return size; } static int setup_loop_device(long unsigned size, long unsigned nsegs, struct fs_image_segment* segs, const char* loopname, int* memfd_p, int* loopfd_p) { int err = 0, loopfd = -1; size = fs_image_segment_check(size, nsegs, segs); int memfd = syscall(sys_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (ftruncate(memfd, size)) { err = errno; goto error_close_memfd; } for (size_t i = 0; i < nsegs; i++) { if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) { } } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } *memfd_p = memfd; *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile unsigned long size, volatile unsigned long nsegs, volatile long segments, volatile long flags, volatile long optsarg) { struct fs_image_segment* segs = (struct fs_image_segment*)segments; int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!segs; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(size, nsegs, segs, loopname, &memfd, &loopfd) == -1) return -1; source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); } errno = err; return res; } static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void 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 = 0; 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)) { } loop(); exit(1); } 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 close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } 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) { int i, call, thread; int collide = 0; again: for (call = 0; call < 2; 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 (collide && (call % 2) == 0) break; event_timedwait(&th->done, 45 + (call == 0 ? 50 : 0) + (call == 1 ? 50 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); if (!collide) { collide = 1; goto again; } } 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 < 5 * 1000) continue; kill_and_wait(pid, &status); break; } } } void execute_call(int call) { switch (call) { case 0: memcpy((void*)0x20000000, "btrfs\000", 6); memcpy((void*)0x20000100, "./file0\000", 8); *(uint64_t*)0x20000700 = 0x20010000; memcpy((void*)0x20010000, "\x42\x69\xf9\x65\x1b\x24\x49\xe2\x20\x8b\xab\xf6\xb8\x0c\xf5\xc1" "\x98\xa1\x9f\x06\x05\xea\xa3\x3a\xc8\x5f\xa6\x99\xfc\x6e\x96\x04" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92" "\x00\x00\x01\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x5f\x42\x48\x52\x66\x53\x5f\x4d\x07\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x50\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\xd0\x00\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00" "\x61\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc5\x01\x00\x00" "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x72\x00\x00\x00\x00" "\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x5c\x50\xb3\x69" "\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x10\x72\x8f\x38\x6b" "\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92\x00", 300); *(uint64_t*)0x20000708 = 0x12c; *(uint64_t*)0x20000710 = 0x10000; *(uint64_t*)0x20000718 = 0x20010200; memcpy((void*)0x20010200, "\000\000\000\000\000\000\000\000\000\000\000\a" "\000\000\000\000\000\000\000\a\000\000\000\000" "\000\000\000\000\000\000\000\000", 32); *(uint64_t*)0x20000720 = 0x20; *(uint64_t*)0x20000728 = 0x10220; *(uint64_t*)0x20000730 = 0x20010300; memcpy((void*)0x20010300, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\xe4\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x40\x00" "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00" "\x00\x10\x00\x00\x00\x10\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x58\x5c\x50\xb3" "\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 123); *(uint64_t*)0x20000738 = 0x7b; *(uint64_t*)0x20000740 = 0x10320; *(uint64_t*)0x20000748 = 0x20010400; memcpy( (void*)0x20010400, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00" "\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00" "\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x20\x50\x00\x00\x00\x00\x00" "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x04" "\x00\x00\x00\x00\x00\x00\x00\x00\x70\x50\x00\x00\x00\x00\x00\x04\x00" "\x00\x00\x00\x00\x00\x00\x00\x80\x50\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x80\x00\x00" "\x00\x00\x00\x00\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\xf0\x50\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04" "\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x50\x00\x00\x00\x00\x00\x06\x00" "\x00\x00\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00\x00\x00\x06\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\xd0\x00\x00\x00\x00" "\x00\x00\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\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x07\x00" "\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00\x00\x00\x07\x00\x00\x00" "\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\xd0\x00\x00\x00\x00\x00\x00" "\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\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x50\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x60\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x70\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00" "\x00\x80\x50\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00", 638); *(uint64_t*)0x20000750 = 0x27e; *(uint64_t*)0x20000758 = 0x10b20; *(uint64_t*)0x20000760 = 0x20010800; memcpy( (void*)0x20010800, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19" "\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x10\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00\x58\x5c\x50\xb3\x69\x99\x48" "\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x00\x00\x19\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x05" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x10" "\x00\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50" "\x00\x00\x00\x00\x00\x58\x5c\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26" "\x48\x4d\x35\xa6\x00\x00\x40\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x01\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x58\x5c\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x72\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x5c\x50" "\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x10\x72\x8f\x38" "\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92\x4d\xc5\x32\xc8\x9a" "\xbb\x41\xc1\x52\xe3\x49\xee\x2e\xac\x29\x4e\x36\xec\xc4\x60\xbf\x21" "\x60\x31\x8d\x00\x7e\xd1\xa3\x65\x65\x3f\x10\x72\x8f\x38\x6b\xaa\x48" "\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92\x00\x10\x10\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x01\xfe\xaf\x32\x6c\x3b\x5d\x43\x58\x8b" "\xde\x9e\x06\x5a\x8b\x80\xa8\x04\x00\x00\x00\x00\x00\x00\x00\x03\x00" "\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\xd8\x01\x00\x00\x00\x00\x00\x00\x00\x39\x0f\x00\x00\x62\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\xe4\x00\x00\x10\x00\x00\x00" "\x00\x00\xe9\x0e\x00\x00\x50\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\xe4\x00\x00\x50\x00\x00\x00\x00\x00\x99\x0e\x00\x00\x50\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\xe4\x00\x00\x69\x00\x00\x00\x00" "\x00\x49\x0e\x00\x00\x50\x00\x00\x00\x00\x00\x00", 556); *(uint64_t*)0x20000768 = 0x22c; *(uint64_t*)0x20000770 = 0x100ea0; *(uint64_t*)0x20000778 = 0x20010b00; memcpy((void*)0x20010b00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x19\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x10\x00\x00\x01\x00\x01\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00\x58\x5c" "\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x00\x00" "\x19\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x10\x00\x00\x01\x00\x01\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x58\x5c" "\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x00\x00" "\x40\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x10" "\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x01\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x58\x5c" "\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x72\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x10" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x58\x5c\x50\xb3\x69\x99\x48\x84\x99\x98\x54\x26\x48\x4d\x35\xa6" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92", 352); *(uint64_t*)0x20000780 = 0x160; *(uint64_t*)0x20000788 = 0x101ea0; *(uint64_t*)0x20000790 = 0; *(uint64_t*)0x20000798 = 0; *(uint64_t*)0x200007a0 = 0; *(uint64_t*)0x200007a8 = 0; *(uint64_t*)0x200007b0 = 0; *(uint64_t*)0x200007b8 = 0; *(uint64_t*)0x200007c0 = 0; *(uint64_t*)0x200007c8 = 0; *(uint64_t*)0x200007d0 = 0; *(uint64_t*)0x200007d8 = 0x20011800; memcpy((void*)0x20011800, "\x6d\xb2\xfa\xa7\xed\x34\x70\xe7\x03\x31\xf7\x43\xdc\xf6\xd0\x21" "\xcc\xf4\xb1\xad\x81\x8c\xc8\xf4\x8c\xff\x05\x03\x58\xd9\xec\x80" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92" "\x00\x00\x50\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01" "\xfe\xaf\x32\x6c\x3b\x5d\x43\x58\x8b\xde\x9e\x06\x5a\x8b\x80\xa8" "\x07\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x0a\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00" "\x00\x00\x00\x00\x00\x00\xe4\x0d\x00\x00\xb7\x01\x00\x00\x04\x00" "\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x2d" "\x0c\x00\x00\xb7\x01\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x0c" "\x06\x00\x00\x00\x00\x00\x00\x00\x1c\x0c\x00\x00\x11\x00\x00\x00" "\x05\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00" "\x00\x65\x0a\x00\x00\xb7\x01\x00\x00\x06\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\xc5\x09\x00\x00\xa0\x00" "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x0c\x06\x00\x00\x00\x00" "\x00\x00\x00\xb9\x09\x00\x00\x0c\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x54\xd2\xc2\xbf\x8d\x00\x00\x00\x00\x94\x09\x00\x00" "\x25\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00" "\x00\x00\x00\x00\x00\xdd\x07\x00\x00\xb7\x01\x00\x00\x09\x00\x00" "\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x00\x26\x06" "\x00\x00\xb7\x01\x00\x00\xf7\xff\xff\xff\xff\xff\xff\xff\x84\x00" "\x00\x00\x00\x00\x00\x00\x00\x6f\x04\x00\x00\xb7\x01", 349); *(uint64_t*)0x200007e0 = 0x15d; *(uint64_t*)0x200007e8 = 0x500000; *(uint64_t*)0x200007f0 = 0x20011a00; memcpy((void*)0x20011a00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x90\x50\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x04", 100); *(uint64_t*)0x200007f8 = 0x64; *(uint64_t*)0x20000800 = 0x500560; *(uint64_t*)0x20000808 = 0x20011b00; memcpy((void*)0x20011b00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x50\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00", 95); *(uint64_t*)0x20000810 = 0x5f; *(uint64_t*)0x20000818 = 0x500720; *(uint64_t*)0x20000820 = 0x20011c00; memcpy((void*)0x20011c00, "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xed\x41", 56); *(uint64_t*)0x20000828 = 0x38; *(uint64_t*)0x20000830 = 0x500840; *(uint64_t*)0x20000838 = 0x20011d00; memcpy((void*)0x20011d00, "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x60\x50\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00", 83); *(uint64_t*)0x20000840 = 0x53; *(uint64_t*)0x20000848 = 0x5008e0; *(uint64_t*)0x20000850 = 0x20011e00; memcpy((void*)0x20011e00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00" "\x00\x84\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x07\x00\x02\x64\x65\x66\x61\x75\x6c\x74\x00\x00" "\x00\x00\x00\x00\x00\x00\x02\x00\x2e\x2e\x03\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00" "\x00\x00\x00\x00\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00\x00\x00\x00" "\x00\x00\x5c\xbc\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x5c\xbc" "\x64\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xff\xff" "\xff\xff\x00\x00\x00\x00\x00\x00", 312); *(uint64_t*)0x20000858 = 0x138; *(uint64_t*)0x20000860 = 0x5009e0; *(uint64_t*)0x20000868 = 0x20012000; memcpy((void*)0x20012000, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xd0\x50\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x06\x00\x00\x00\x00\x00\x00" "\x00\x82\xf6\xdc\x99\x22\xaa\x4f\x64\x99\x77\x6c\x03\x8d\x92\xce" "\xd8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x5d\xbc\x64\x5f\x00\x00\x00\x00\x20\xf1\xa8\x0e\x5c\xbc\x64" "\x5f", 193); *(uint64_t*)0x20000870 = 0xc1; *(uint64_t*)0x20000878 = 0x500b60; *(uint64_t*)0x20000880 = 0x20012100; memcpy((void*)0x20012100, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x64\x65\x66\x61\x75" "\x6c\x74\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xed\x41\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00", 84); *(uint64_t*)0x20000888 = 0x54; *(uint64_t*)0x20000890 = 0x500c80; *(uint64_t*)0x20000898 = 0x20012200; memcpy((void*)0x20012200, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x51\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x06", 98); *(uint64_t*)0x200008a0 = 0x62; *(uint64_t*)0x200008a8 = 0x500d20; *(uint64_t*)0x200008b0 = 0x20012300; memcpy((void*)0x20012300, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00" "\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x41", 63); *(uint64_t*)0x200008b8 = 0x3f; *(uint64_t*)0x200008c0 = 0x500e40; *(uint64_t*)0x200008c8 = 0x20012400; memcpy((void*)0x20012400, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00", 90); *(uint64_t*)0x200008d0 = 0x5a; *(uint64_t*)0x200008d8 = 0x500ee0; *(uint64_t*)0x200008e0 = 0x20012500; memcpy((void*)0x20012500, "\x48\xe5\x9d\x4e\x80\x29\x72\x94\x9d\x69\x43\xf6\xad\x6c\xc5\xd5" "\xbe\xbe\xa0\x9a\x02\x4a\xe5\xaf\x0c\x56\x17\xfe\x08\x71\xc5\xec" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92" "\x00\x10\x50\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01" "\xfe\xaf\x32\x6c\x3b\x5d\x43\x58\x8b\xde\x9e\x06\x5a\x8b\x80\xa8" "\x07\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00" "\x0e\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\xc0\x00\x00" "\x40\x00\x00\x00\x00\x00\x83\x0f\x00\x00\x18\x00\x00\x00\x00\x10" "\x10\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x62" "\x0f\x00\x00\x21\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\xa9" "\x00\x00\x00\x00\x00\x00\x00\x00\x41\x0f\x00\x00\x21\x00\x00\x00" "\x00\x00\x50\x00\x00\x00\x00\x00\xc0\x00\x00\x19\x00\x00\x00\x00" "\x00\x29\x0f\x00\x00\x18\x00\x00\x00\x00\x10\x50\x00\x00\x00\x00" "\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x08\x0f\x00\x00\x21\x00" "\x00\x00\x00\x30\x50\x00\x00\x00\x00\x00\xa8\x00\x30\x00\x00\x00" "\x00\x00\x00\xd3\x0e\x00\x00\x35\x00\x00\x00\x00\x60\x50\x00\x00" "\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\xb2\x0e\x00\x00" "\x21\x00\x00\x00\x00\x90\x50\x00\x00\x00\x00\x00\xa9\x00\x00\x00" "\x00\x00\x00\x00\x00\x91\x0e\x00\x00\x21\x00\x00\x00\x00\xa0\x50" "\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x70\x0e" "\x00\x00\x21\x00\x00\x00\x00\xc0\x50\x00\x00\x00\x00\x00\xa9\x00" "\x00\x00\x00\x00\x00\x00\x00\x4f\x0e\x00\x00\x21\x00\x00\x00\x00" "\xd0\x50\x00\x00\x00\x00\x00\xa9\x01\x00\x00\x00\x00\x00\x00\x00" "\x2e\x0e\x00\x00\x21\x00\x00\x00\x00\xe0\x50\x00\x00\x00\x00\x00" "\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x0e\x00\x00\x21\x00\x00" "\x00\x00\x00\x51\x00\x00\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00" "\x00\x00\xec\x0d\x00\x00\x21\x00\x00\x00\x00\x00\x69\x00\x00\x00" "\x00\x00\xc0\x00\x00\x19\x00\x00\x00\x00\x00\xd4\x0d\x00\x00\x18", 448); *(uint64_t*)0x200008e8 = 0x1c0; *(uint64_t*)0x200008f0 = 0x501000; *(uint64_t*)0x200008f8 = 0x20012700; memcpy((void*)0x20012700, "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00" "\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x04\x00\x00\x00\x00\x00" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00" "\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x05\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00" "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x05\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00" "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x05\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00" "\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x09\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x04\x00" "\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\xf7" "\xff\xff\xff\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x06" "\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0" "\x07\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x06\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\xb2\x05\x00\x00\x00\x00\x00\x00\x00\x05\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00" "\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00" "\x00\x00\x00\x00\x00\xb0\x02\x00\x00\x00\x00\x00\x00\x00\x00\xc0" "\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x05\x00" "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x07\x00" "\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0\x01" "\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x04" "\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xb0" "\x03\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00", 448); *(uint64_t*)0x20000900 = 0x1c0; *(uint64_t*)0x20000908 = 0x501e40; *(uint64_t*)0x20000910 = 0; *(uint64_t*)0x20000918 = 0; *(uint64_t*)0x20000920 = 0x506000; *(uint64_t*)0x20000928 = 0; *(uint64_t*)0x20000930 = 0; *(uint64_t*)0x20000938 = 0x506fa0; *(uint64_t*)0x20000940 = 0; *(uint64_t*)0x20000948 = 0; *(uint64_t*)0x20000950 = 0; *(uint64_t*)0x20000958 = 0; *(uint64_t*)0x20000960 = 0; *(uint64_t*)0x20000968 = 0x509000; *(uint64_t*)0x20000970 = 0; *(uint64_t*)0x20000978 = 0; *(uint64_t*)0x20000980 = 0x509f40; *(uint64_t*)0x20000988 = 0; *(uint64_t*)0x20000990 = 0; *(uint64_t*)0x20000998 = 0x50afe0; *(uint64_t*)0x200009a0 = 0; *(uint64_t*)0x200009a8 = 0; *(uint64_t*)0x200009b0 = 0x50be40; *(uint64_t*)0x200009b8 = 0; *(uint64_t*)0x200009c0 = 0; *(uint64_t*)0x200009c8 = 0x50cca0; *(uint64_t*)0x200009d0 = 0; *(uint64_t*)0x200009d8 = 0; *(uint64_t*)0x200009e0 = 0x50e000; *(uint64_t*)0x200009e8 = 0; *(uint64_t*)0x200009f0 = 0; *(uint64_t*)0x200009f8 = 0x50e6e0; *(uint64_t*)0x20000a00 = 0; *(uint64_t*)0x20000a08 = 0; *(uint64_t*)0x20000a10 = 0x50f560; *(uint64_t*)0x20000a18 = 0; *(uint64_t*)0x20000a20 = 0; *(uint64_t*)0x20000a28 = 0; *(uint64_t*)0x20000a30 = 0; *(uint64_t*)0x20000a38 = 0; *(uint64_t*)0x20000a40 = 0; *(uint64_t*)0x20000a48 = 0; *(uint64_t*)0x20000a50 = 0; *(uint64_t*)0x20000a58 = 0; *(uint64_t*)0x20000a60 = 0x20015700; memcpy((void*)0x20015700, "\xab\xbf\x70\x91\x3d\xd7\x74\x04\xe1\x61\x0f\x7c\xe2\x99\x26\x24" "\xcd\x94\x2c\xed\x68\xb3\x92\xf6\x89\x2c\x96\x5f\x40\x0e\xf2\x64" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92" "\x00\x00\x51\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01" "\xfe\xaf\x32\x6c\x3b\x5d\x43\x58\x8b\xde\x9e\x06\x5a\x8b\x80\xa8" "\x06\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00" "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\x01\x00" "\x00\x00\x00\x00\x00\x00\x73\x0f\x00\x00\x28\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\xcc\x00\x00\x10\x00\x00\x00\x00\x00\x43" "\x0f\x00\x00\x30\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xcc" "\x00\x00\x50\x00\x00\x00\x00\x00\x13\x0f\x00\x00\x30\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\xcc\x00\x00\x69\x00\x00\x00\x00" "\x00\xe3\x0e\x00\x00\x30", 198); *(uint64_t*)0x20000a68 = 0xc6; *(uint64_t*)0x20000a70 = 0x510000; *(uint64_t*)0x20000a78 = 0x20015800; memcpy((void*)0x20015800, "\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x69\x00\x00\x00\x00\x00" "\x00\x00\x19\x00\x00\x00\x00\x00\xfe\xaf\x32\x6c\x3b\x5d\x43\x58" "\x8b\xde\x9e\x06\x5a\x8b\x80\xa8\x03\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00" "\x00\x00\x19\x00\x00\x00\x00\x00\xfe\xaf\x32\x6c\x3b\x5d\x43\x58" "\x8b\xde\x9e\x06\x5a\x8b\x80\xa8\x03\x00\x00\x00\x00\x00\x00\x00" "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" "\x00\x00\x40\x00\x00\x00\x00\x00\xfe\xaf\x32\x6c\x3b\x5d\x43\x58" "\x8b\xde\x9e\x06\x5a\x8b\x80\xa8", 152); *(uint64_t*)0x20000a80 = 0x98; *(uint64_t*)0x20000a88 = 0x510f40; memcpy((void*)0x20000040, "ssd", 3); *(uint8_t*)0x20000043 = 0x2c; memcpy((void*)0x20000044, "nospace_cache", 13); *(uint8_t*)0x20000051 = 0x2c; memcpy((void*)0x20000052, "treelog", 7); *(uint8_t*)0x20000059 = 0x2c; memcpy((void*)0x2000005a, "noautodefrag", 12); *(uint8_t*)0x20000066 = 0x2c; memcpy((void*)0x20000067, "usebackuproot", 13); *(uint8_t*)0x20000074 = 0x2c; *(uint8_t*)0x20000075 = 0; syz_mount_image(0x20000000, 0x20000100, 0, 0x26, 0x20000700, 0, 0x20000040); break; case 1: memcpy((void*)0x20000100, "./file0\000", 8); *(uint64_t*)0x20000700 = 0x20010000; memcpy((void*)0x20010000, "\x42\x69\xf9\x65\x1b\x24\x49\xe2\x20\x8b\xab\xf6\xb8\x0c\xf5\xc1" "\x98\xa1\x9f\x06\x05\xea\xa3\x3a\xc8\x5f\xa6\x99\xfc\x6e\x96\x04" "\x10\x72\x8f\x38\x6b\xaa\x48\xac\x8c\x08\x0b\x0b\x5b\xf8\xfd\x92" "\x00\x00\x01\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" "\x5f\x42\x48\x52\x66\x53\x5f\x4d", 72); *(uint64_t*)0x20000708 = 0x48; *(uint64_t*)0x20000710 = 0x10000; *(uint64_t*)0x20000718 = 0; *(uint64_t*)0x20000720 = 0; *(uint64_t*)0x20000728 = 0x10220; *(uint64_t*)0x20000730 = 0; *(uint64_t*)0x20000738 = 0; *(uint64_t*)0x20000740 = 0x10320; *(uint64_t*)0x20000748 = 0; *(uint64_t*)0x20000750 = 0; *(uint64_t*)0x20000758 = 0x10b20; *(uint64_t*)0x20000760 = 0; *(uint64_t*)0x20000768 = 0; *(uint64_t*)0x20000770 = 0; *(uint64_t*)0x20000778 = 0; *(uint64_t*)0x20000780 = 0; *(uint64_t*)0x20000788 = 0; memcpy((void*)0x20000040, "ssd", 3); *(uint8_t*)0x20000043 = 0x2c; memcpy((void*)0x20000044, "nospace_cache", 13); *(uint8_t*)0x20000051 = 0x2c; memcpy((void*)0x20000052, "space_cache", 11); *(uint8_t*)0x2000005d = 0x2c; memcpy((void*)0x2000005e, "noautodefrag", 12); *(uint8_t*)0x2000006a = 0x2c; *(uint8_t*)0x2000006b = 0; syz_mount_image(0, 0x20000100, 0, 6, 0x20000700, 0, 0x20000040); break; } } 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); for (procid = 0; procid < 6; procid++) { if (fork() == 0) { do_sandbox_none(); } } sleep(1000000); return 0; }