// https://syzkaller.appspot.com/bug?id=8b939c8d6b3b2b6eabd35dce2c49a8d4f14e0462 // 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 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 use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } 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; } struct fs_image_segment { void* data; uintptr_t size; uintptr_t offset; }; 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; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (ftruncate(memfd, size)) { err = errno; goto error_close_memfd; } 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, volatile long change_dir) { 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; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); } errno = err; return res; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; retry: while (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, MNT_DETACH | UMOUNT_NOFOLLOW)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } 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"); if (symlink("/dev/binderfs", "./binderfs")) { } } 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; for (call = 0; call < 10; 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); event_timedwait(&th->done, 50 + (call == 0 ? 50 : 0) + (call == 1 ? 50 : 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++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); 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; } remove_dir(cwdbuf); } } uint64_t r[1] = {0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x20000000, "f2fs\000", 5); memcpy((void*)0x20000100, "./mnt\000", 6); *(uint64_t*)0x20000200 = 0x20010000; memcpy((void*)0x20010000, "\x10\x20\xf5\xf2\x01\x00\x0e\x00\x09\x00\x00\x03\x03\x00\x00\x00" "\x0c\x00\x00\x00\x09\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00" "\x1f\x00\x00\x00\x02\x00\x00\x00\x02\x00\x02\x00\x02\x00\x00\x00" "\x01\x00\x00\x00\x18\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00" "\x00\x06\x00\x00\x00\x0a\x00\x00\x00\x0e\x00\x00\x00\x10\x00\x00" "\x03\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\xa3\xbd\x86\x5d" "\xa4\xe8\x4b\x25\x9c\xaa\xc9\x03\x30\x88\x87\xeb\x00\x00\x00\x00", 128); *(uint64_t*)0x20000208 = 0x80; *(uint64_t*)0x20000210 = 0x400; *(uint64_t*)0x20000218 = 0x20010080; memcpy( (void*)0x20010080, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000$" "\000\000\000mp\000\000\000\000\000\000wm\000\000\000\000\000\000og\000" "\000\000\000\000\000jp\000\000\000\000\000\000avi\000\000\000\000\000m" "4v\000\000\000\000\000m4p\000\000\000\000\000mkv\000\000\000\000\000mo" "v\000\000\000\000\000webm\000\000\000\000wav\000\000\000\000\000m4a" "\000\000\000\000\0003gp\000\000\000\000\000opus\000\000\000\000flac" "\000\000\000\000gif\000\000\000\000\000png\000\000\000\000\000svg\000" "\000\000\000\000webp\000\000\000\000jar\000\000\000\000\000deb\000\000" "\000\000\000iso\000\000\000\000\000gz\000\000\000\000\000\000xz\000" "\000\000\000\000\000zst\000\000\000\000\000pdf\000\000\000\000\000pyc" "\000\000\000\000\000ttc\000\000\000\000\000ttf\000\000\000\000\000exe" "\000\000\000\000\000apk\000\000\000\000\000cnt\000\000\000\000\000exo" "\000\000\000\000\000odex\000\000\000\000vdex\000\000\000\000so\000\000" "\000\000\000\000db\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 352); *(uint64_t*)0x20000220 = 0x160; *(uint64_t*)0x20000228 = 0x860; *(uint64_t*)0x20000230 = 0x200101e0; memcpy( (void*)0x200101e0, "\000\000\000\000Linux version 5.10.0-rc6-00193-gdafc6e24daf4 (e@sol) " "(gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon " "Nov 30 13:52:38 PST 2020\000\000\000\000\000\000\000\000\000\000\000", 160); *(uint64_t*)0x20000238 = 0xa0; *(uint64_t*)0x20000240 = 0xa80; *(uint64_t*)0x20000248 = 0x20010280; memcpy( (void*)0x20010280, "\000\000\000\000Linux version 5.10.0-rc6-00193-gdafc6e24daf4 (e@sol) " "(gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon " "Nov 30 13:52:38 PST 2020\000\000\000\000\000\000\000\000\000\000\000", 160); *(uint64_t*)0x20000250 = 0xa0; *(uint64_t*)0x20000258 = 0xb80; *(uint64_t*)0x20000260 = 0x20010320; memcpy((void*)0x20010320, "\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", 32); *(uint64_t*)0x20000268 = 0x20; *(uint64_t*)0x20000270 = 0xc80; *(uint64_t*)0x20000278 = 0x20010340; memcpy((void*)0x20010340, "\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", 32); *(uint64_t*)0x20000280 = 0x20; *(uint64_t*)0x20000288 = 0xec0; *(uint64_t*)0x20000290 = 0x20010680; memcpy((void*)0x20010680, "\x00\x00\x80\x00\x01\x00\x00\x00\x00\x40\xff\xff\x02\x00\x00\x00" "\xff\xe7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbd\x80\x00\x00", 32); *(uint64_t*)0x20000298 = 0x20; *(uint64_t*)0x200002a0 = 0xf41; *(uint64_t*)0x200002a8 = 0x20010360; memcpy((void*)0x20010360, "\x10\x20\xf5\xf2\x01\x00\x0e\x00\x09\x00\x00\x00\x03\x00\x00\x00" "\x0c\x00\x00\x00\x09\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00" "\x1f\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00" "\x01\x00\x00\x00\x18\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00" "\x00\x06\x00\x00\x00\x0a\x00\x00\x00\x0e\x00\x00\x00\x10\x00\x00" "\x03\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\xa3\xbd\x86\x5d" "\xa4\xe8\x4b\x25\x9c\xaa\xc9\x03\x30\x88\x87\xeb\x00\x00\x00\x00", 128); *(uint64_t*)0x200002b0 = 0x80; *(uint64_t*)0x200002b8 = 0x1400; *(uint64_t*)0x200002c0 = 0x200103e0; memcpy( (void*)0x200103e0, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000$" "\000\000\000mp\000\000\000\000\000\000wm\000\000\000\000\000\000og\000" "\000\000\000\000\000jp\000\000\000\000\000\000avi\000\000\000\000\000m" "4v\000\000\000\000\000m4p\000\000\000\000\000mkv\000\000\000\000\000mo" "v\000\000\000\000\000webm\000\000\000\000wav\000\000\000\000\000m4a" "\000\000\000\000\0003gp\000\000\000\000\000opus\000\000\000\000flac" "\000\000\000\000gif\000\000\000\000\000png\000\000\000\000\000svg\000" "\000\000\000\000webp\000\000\000\000jar\000\000\000\000\000deb\000\000" "\000\000\000iso\000\000\000\000\000gz\000\000\000\000\000\000xz\000" "\000\000\000\000\000zst\000\000\000\000\000pdf\000\000\000\000\000pyc" "\000\000\000\000\000ttc\000\000\000\000\000ttf\000\000\000\000\000exe" "\000\000\000\000\000apk\000\000\000\000\000cnt\000\000\000\000\000exo" "\000\000\000\000\000odex\000\000\000\000vdex\000\000\000\000so\000\000" "\000\000\000\000db\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 352); *(uint64_t*)0x200002c8 = 0x160; *(uint64_t*)0x200002d0 = 0x1860; *(uint64_t*)0x200002d8 = 0x20010540; memcpy( (void*)0x20010540, "\000\000\000\000Linux version 5.10.0-rc6-00193-gdafc6e24daf4 (e@sol) " "(gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon " "Nov 30 13:52:38 PST 2020\000\000\000\000\000\000\000\000\000\000\000", 160); *(uint64_t*)0x200002e0 = 0xa0; *(uint64_t*)0x200002e8 = 0x1a80; *(uint64_t*)0x200002f0 = 0x200105e0; memcpy( (void*)0x200105e0, "\000\000\000\000Linux version 5.10.0-rc6-00193-gdafc6e24daf4 (e@sol) " "(gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon " "Nov 30 13:52:38 PST 2020\000\000\000\000\000\000\000\000\000\000\000", 160); *(uint64_t*)0x200002f8 = 0xa0; *(uint64_t*)0x20000300 = 0x1b80; *(uint64_t*)0x20000308 = 0x200106a0; memcpy((void*)0x200106a0, "\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", 32); *(uint64_t*)0x20000310 = 0x20; *(uint64_t*)0x20000318 = 0x1ec0; *(uint64_t*)0x20000320 = 0x200106c0; memcpy((void*)0x200106c0, "\x0b\xd0\x3b\x75\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x10\x00\x00\x00" "\x12\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x05\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x85\x01\x00\x00\x06\x00\x00\x00\x01\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x40\x00\x00\x00" "\x40\x00\x00\x00\xfc\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 192); *(uint64_t*)0x20000328 = 0xc0; *(uint64_t*)0x20000330 = 0x200000; *(uint64_t*)0x20000338 = 0x20010780; memcpy((void*)0x20010780, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd9\xfa\x28\xd5" "\x01\x00\x03\x00\x00\x00\x00\x03\x00\x00\x00\x00\x10\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64); *(uint64_t*)0x20000340 = 0x40; *(uint64_t*)0x20000348 = 0x200fe0; *(uint64_t*)0x20000350 = 0x200107c0; memcpy((void*)0x200107c0, "\x00\x00\x00\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\x01\x0c\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64); *(uint64_t*)0x20000358 = 0x40; *(uint64_t*)0x20000360 = 0x2011e0; *(uint64_t*)0x20000368 = 0x20010800; memcpy((void*)0x20010800, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000370 = 0x20; *(uint64_t*)0x20000378 = 0x201240; *(uint64_t*)0x20000380 = 0x20010820; memcpy((void*)0x20010820, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x14\x00", 32); *(uint64_t*)0x20000388 = 0x20; *(uint64_t*)0x20000390 = 0x201280; *(uint64_t*)0x20000398 = 0x20010840; memcpy((void*)0x20010840, "\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x01\x00\x80\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200003a0 = 0x20; *(uint64_t*)0x200003a8 = 0x2012e0; *(uint64_t*)0x200003b0 = 0x20010860; memcpy((void*)0x20010860, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200003b8 = 0x20; *(uint64_t*)0x200003c0 = 0x201320; *(uint64_t*)0x200003c8 = 0x20010880; memcpy((void*)0x20010880, "\x00\x00\x00\x05\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200003d0 = 0x20; *(uint64_t*)0x200003d8 = 0x201380; *(uint64_t*)0x200003e0 = 0x200108a0; memcpy((void*)0x200108a0, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200003e8 = 0x20; *(uint64_t*)0x200003f0 = 0x2013e0; *(uint64_t*)0x200003f8 = 0x200108c0; memcpy((void*)0x200108c0, "\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\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000400 = 0x20; *(uint64_t*)0x20000408 = 0x202000; *(uint64_t*)0x20000410 = 0x200108e0; memcpy((void*)0x200108e0, "\x00\x00\x00\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", 32); *(uint64_t*)0x20000418 = 0x20; *(uint64_t*)0x20000420 = 0x202fe0; *(uint64_t*)0x20000428 = 0x20010900; memcpy((void*)0x20010900, "\x00\x00\x00\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", 32); *(uint64_t*)0x20000430 = 0x20; *(uint64_t*)0x20000438 = 0x203fe0; *(uint64_t*)0x20000440 = 0x20010920; memcpy((void*)0x20010920, "\x00\x00\x00\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" "\x0b\xd0\x3b\x75\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x10\x00\x00\x00" "\x12\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x05\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x85\x01\x00\x00\x06\x00\x00\x00\x01\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x40\x00\x00\x00" "\x40\x00\x00\x00\xfc\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 224); *(uint64_t*)0x20000448 = 0xe0; *(uint64_t*)0x20000450 = 0x204fe0; *(uint64_t*)0x20000458 = 0x20010a00; memcpy((void*)0x20010a00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd9\xfa\x28\xd5", 32); *(uint64_t*)0x20000460 = 0x20; *(uint64_t*)0x20000468 = 0x205fe0; *(uint64_t*)0x20000470 = 0x20010a20; memcpy((void*)0x20010a20, "\x0b\xd0\x3b\x75\xd9\xfa\x28\xd5\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000478 = 0x20; *(uint64_t*)0x20000480 = 0x3ff000; *(uint64_t*)0x20000488 = 0x20010a40; memcpy((void*)0x20010a40, "\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 96); *(uint64_t*)0x20000490 = 0x60; *(uint64_t*)0x20000498 = 0x3ff040; *(uint64_t*)0x200004a0 = 0x20010aa0; memcpy((void*)0x20010aa0, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x10\x00\x00\x00" "\x12\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x05\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x85\x01\x00\x00\x06\x00\x00\x00\x01\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x40\x00\x00\x00" "\x40\x00\x00\x00\xfc\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 192); *(uint64_t*)0x200004a8 = 0xc0; *(uint64_t*)0x200004b0 = 0x400000; *(uint64_t*)0x200004b8 = 0x20010b60; memcpy((void*)0x20010b60, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd9\xa1\xf3\x50", 32); *(uint64_t*)0x200004c0 = 0x20; *(uint64_t*)0x200004c8 = 0x400fe0; *(uint64_t*)0x200004d0 = 0x20010b80; memcpy((void*)0x20010b80, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" "\x02\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x10\x00\x00\x00" "\x12\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x05\x00\x00\x00" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x85\x01\x00\x00\x06\x00\x00\x00\x01\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x40\x00\x00\x00" "\x40\x00\x00\x00\xfc\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 192); *(uint64_t*)0x200004d8 = 0xc0; *(uint64_t*)0x200004e0 = 0x405000; *(uint64_t*)0x200004e8 = 0x20010c40; memcpy((void*)0x20010c40, "\xfa\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd9\xa1\xf3\x50", 32); *(uint64_t*)0x200004f0 = 0x20; *(uint64_t*)0x200004f8 = 0x405fe0; *(uint64_t*)0x20000500 = 0x20010c60; memcpy((void*)0x20010c60, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00" "\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x00\x03\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\x00\x00\x00\x00\x00\x00\x00\x00", 64); *(uint64_t*)0x20000508 = 0x40; *(uint64_t*)0x20000510 = 0xa00000; *(uint64_t*)0x20000518 = 0x20010ca0; memcpy((void*)0x20010ca0, "\xed\x41\x00\x00\xe8\x03\x00\x00\xe8\x03\x00\x00\x02\x00\x00\x00" "\x00\x10\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00" "\x55\xff\xc6\x5f\x00\x00\x00\x00\x55\xff\xc6\x5f\x00\x00\x00\x00" "\x55\xff\xc6\x5f\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\x00", 96); *(uint64_t*)0x20000520 = 0x60; *(uint64_t*)0x20000528 = 0x1000000; *(uint64_t*)0x20000530 = 0x20010d00; memcpy((void*)0x20010d00, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x16\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000538 = 0x20; *(uint64_t*)0x20000540 = 0x1000160; *(uint64_t*)0x20000548 = 0x20010d20; memcpy((void*)0x20010d20, "\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00" "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x00\x00", 32); *(uint64_t*)0x20000550 = 0x20; *(uint64_t*)0x20000558 = 0x1000fe0; *(uint64_t*)0x20000560 = 0x20010d40; memcpy((void*)0x20010d40, "\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\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x03\x00\x00\x00\x01\x00\x02\x00\x00\x00\x00\x03\x00\x00" "\x00\x02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64); *(uint64_t*)0x20000568 = 0x40; *(uint64_t*)0x20000570 = 0x1600000; *(uint64_t*)0x20000578 = 0x20010d80; memcpy((void*)0x20010d80, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000." "\000\000\000\000\000\000\000..\000\000\000\000\000\000", 32); *(uint64_t*)0x20000580 = 0x20; *(uint64_t*)0x20000588 = 0x1600940; memcpy((void*)0x20000740, "fsync_mode=posix", 16); *(uint8_t*)0x20000750 = 0x2c; memcpy((void*)0x20000751, "grpjquota", 9); *(uint8_t*)0x2000075a = 0x3d; memcpy((void*)0x2000075b, "(}", 2); *(uint8_t*)0x2000075d = 0x2c; memcpy((void*)0x2000075e, "nobarrier", 9); *(uint8_t*)0x20000767 = 0x2c; memcpy((void*)0x20000768, "jqfmt=vfsold", 12); *(uint8_t*)0x20000774 = 0x2c; *(uint8_t*)0x20000775 = 0; syz_mount_image(0x20000000, 0x20000100, 0x4000000, 0x26, 0x20000200, 0, 0x20000740, 0); break; case 1: memcpy((void*)0x20000000, "ext4\000", 5); memcpy((void*)0x20000100, "./file0\000", 8); *(uint64_t*)0x20000200 = 0x20000400; memcpy( (void*)0x20000400, "\x0c\x00\x00\x23\xbb\x53\xc5\x9c\x2b\x23\xf2\x28\xc5\x7e\x00\x0c\x00" "\x01\x02\x2e\x00\x00\x00\x02\x00\x00\x00\x0c\x00\x02\x02\x2e\x2e\x00" "\x00\x0d\x00\x00\x1c\x10\x08\x05\x01\x66\x69\x6c\x65\x30\x00\x00\x00" "\x0e\x00\x00\x00\xd8\x03\x05\x07\x66\x69\x6c\x65\x31\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x3d\x98\x43\x62\xe7\x58\xc5\xcf\x45\x03" "\xea\xf2\x02\x9e\xf5\x71\x38\x24\x68\xe8\xdd\x2d\xdf\x37\x84\xbc\x21" "\xab\xbd\xee\xbe\x59\xf1\xfd\x9b\xba\x7c\xd5\x74\x10\xe7\x10\x53\x23" "\x6d\x13\xc7\xe4\x5b\x8d\x37\x9a\x45\xd3\xbe\x17\x6b\xe6\x9a\x25\xdd" "\x3a\xf6\x95\x43\x58\x7e\xcc\xd6\x7d\x49\x81\x98\xf1\xe9\x50\x57\x19" "\xb4\xe9\x7a\x56\xa9\x09\x61\xd1\x3c\x3d\x12\xd2\xb0\xac\x44\x37\xb7" "\x19\x12\x8d\x42\x77\x0a\x85\xca\xb4\xd3\x91\x7e\x0a\xf0\xad\xa9\x7f" "\x7d\xf3\x7e\x64\x47\x66\x5d\x14\x5a\x94\x72\x8c\xa2\xf0\x2d\xe9\x14" "\x7c\xc0\x1d\xe7\x50\x3a\xd6\x34\x6d\x4b\x29\xb3\x17\x37\xfb\x14\xbd" "\x3e\x5a\x80\xb6\x15\xb1\x3a\xa1\x07\xe6\xaf\x84\x8f\xa5\x46\xa9\x59" "\x76\x47\xcb\xb2\x7d\xaf\xc0\x05\xac\x3c\xdf\x6a\x68\x0a\xb1\x5e\x44" "\xd5\xdc\x85\x03\x6d\x18\x36\x32\xc6\xad\x3e\x5e\xa8\xf0\x90\x03\x36" "\x49\x77\x10\xe9\xda\x0f\xcd\x0a\x51\x35\xda\x00\x63\x10\x34\xf2\x6b" "\xff\xaa\xd1\x6e\x13\x3c\x2b\x64\x2e\xf1\x52\x7b\xe3\xc8\x01\x1a\xb2" "\x8b\xa7\xaa\xb7\x85\xdd\x49\x32\x36\x0d\x04\xfa\x35\x72\xd1\x4c\xae", 323); *(uint64_t*)0x20000208 = 0x143; *(uint64_t*)0x20000210 = 9; *(uint64_t*)0x20000218 = 0x20010000; memcpy((void*)0x20010000, "\x20\x00\x00\x00\x00\x01\x00\x00\x0c\x00\x00\x00\xce\x00\x00\x00" "\x0f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x20\x00\x00\x00\x20\x00\x00\x20\x00\x00\x00\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x01\x00\xff\xff\x53\xef\x01\x00\x01\x00\x00\x00" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" "\x00\x00\x00\x00\x0b\x00\x00\x00\x80\x00\x00\x00\x08\x00\x00\x00" "\x52\x47\x00\x00\x62\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x00\x00\x00\x00\x00\x00\x00\x2f\x74\x6d\x70\x2f\x73\x79\x7a" "\x2d\x69\x6d\x61\x67\x65\x67\x65\x6e\x32\x34\x31\x39\x32\x30\x34" "\x35\x32\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 192); *(uint64_t*)0x20000220 = 0xc0; *(uint64_t*)0x20000228 = 0x400; *(uint64_t*)0x20000230 = 0x200100c0; memcpy((void*)0x200100c0, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3b\x34\x66\xcc" "\x1e\xa2\x44\x15\x8e\x33\x25\x80\xde\x23\x58\x9c\x01\x00\x00\x00" "\x0c\x0e\x00\x00\x00\x00\x00\x00\x70\x1f\x1f\x63\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64); *(uint64_t*)0x20000238 = 0x40; *(uint64_t*)0x20000240 = 0x4e0; *(uint64_t*)0x20000248 = 0x20010100; memcpy((void*)0x20010100, "\x01\x00\x00\x00\x00\x00\x05\x00\x11\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x04\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000250 = 0x20; *(uint64_t*)0x20000258 = 0x560; *(uint64_t*)0x20000260 = 0x20010120; memcpy((void*)0x20010120, "\x03\x00\x00\x00\x04\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000268 = 0x20; *(uint64_t*)0x20000270 = 0x640; *(uint64_t*)0x20000278 = 0x20010140; memcpy((void*)0x20010140, "\x03\x00\x00\x00\x13\x00\x00\x00\x23\x00\x00\x00\xce\x00\x0f\x00" "\x03\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000280 = 0x20; *(uint64_t*)0x20000288 = 0x800; *(uint64_t*)0x20000290 = 0x20010160; memcpy( (void*)0x20010160, "\xff\xff\xff\xff\xfc\xff\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\x02\x00\x00\x00\x0c\x00\x01\x02\x2e\x00\x00\x00\x02" "\x00\x00\x00\x0c\x00\x02\x02\x2e\x2e\x00\x00\x0b\x00\x00\x00\x14\x00" "\x0a\x02\x6c\x6f\x73\x74\x2b\x66\x6f\x75\x6e\x64\x00\x00\x0c\x00\x00" "\x00\x10\x00\x05\x02\x66\x69\x6c\x65\x30\x00\x00\x00\x0f\x00\x00\x00" "\x10\x00\x05\x01\x66\x69\x6c\x65\x31\x00\x00\x00\x10\x00\x00\x00\x10" "\x00\x05\x01\x66\x69\x6c\x65\x32\x00\x00\x00\x10\x00\x00\x00\x10\x00" "\x05\x01\x66\x69\x6c\x65\x33\x00\x00\x00\x11\x00\x00\x00\x94\x03\x09" "\x01\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64\x00\x00\x00", 1152); *(uint64_t*)0x20000298 = 0x480; *(uint64_t*)0x200002a0 = 0xc00; *(uint64_t*)0x200002a8 = 0x200105e0; memcpy((void*)0x200105e0, "\x0b\x00\x00\x00\x0c\x00\x01\x02\x2e\x00\x00\x00\x02\x00\x00\x00" "\xf4\x03\x02\x02\x2e\x2e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200002b0 = 0x20; *(uint64_t*)0x200002b8 = 0x1400; *(uint64_t*)0x200002c0 = 0x20010600; memcpy((void*)0x20010600, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x200002c8 = 0x20; *(uint64_t*)0x200002d0 = 0x1800; *(uint64_t*)0x200002d8 = 0x20010620; memcpy((void*)0x20010620, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x200002e0 = 0x20; *(uint64_t*)0x200002e8 = 0x1c00; *(uint64_t*)0x200002f0 = 0x20010640; memcpy((void*)0x20010640, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x200002f8 = 0x20; *(uint64_t*)0x20000300 = 0x2000; *(uint64_t*)0x20000308 = 0x20010660; memcpy((void*)0x20010660, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000310 = 0x20; *(uint64_t*)0x20000318 = 0x2400; *(uint64_t*)0x20000320 = 0x20010680; memcpy((void*)0x20010680, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000328 = 0x20; *(uint64_t*)0x20000330 = 0x2800; *(uint64_t*)0x20000338 = 0x200106a0; memcpy((void*)0x200106a0, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000340 = 0x20; *(uint64_t*)0x20000348 = 0x2c00; *(uint64_t*)0x20000350 = 0x200106c0; memcpy((void*)0x200106c0, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000358 = 0x20; *(uint64_t*)0x20000360 = 0x3000; *(uint64_t*)0x20000368 = 0x200106e0; memcpy((void*)0x200106e0, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000370 = 0x20; *(uint64_t*)0x20000378 = 0x3400; *(uint64_t*)0x20000380 = 0x20010700; memcpy((void*)0x20010700, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x20000388 = 0x20; *(uint64_t*)0x20000390 = 0x3800; *(uint64_t*)0x20000398 = 0x20010720; memcpy((void*)0x20010720, "\x00\x00\x00\x00\x09\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xc5\x00\x00\x00\x72\xb1\x55\x48\xa3", 32); *(uint64_t*)0x200003a0 = 0x20; *(uint64_t*)0x200003a8 = 0x3c00; *(uint64_t*)0x200003b0 = 0x200000c0; memcpy((void*)0x200000c0, "\x00\x00\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\x00\x00\x00", 32); *(uint64_t*)0x200003b8 = 0x20; *(uint64_t*)0x200003c0 = 0x4000; *(uint64_t*)0x200003c8 = 0x20010760; memcpy((void*)0x20010760, "\x50\x4d\x4d\x00\x50\x4d\x4d\xff\x70\x1f\x1f\x63\x00\x00\x00\x00" "\x68\x72\x75\x74\x76\x69\x6b\x2e\x63\x2e\x67\x6f\x6f\x67\x6c\x65" "\x72\x73\x2e\x63\x6f\x6d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x6c\x6f\x6f\x70\x32\x00\x6e\x75\x78\x2f\x74\x65\x73\x74\x2f\x73" "\x79\x7a\x5f\x6d\x6f\x75\x6e\x74\x5f\x69\x6d\x61\x67\x65\x5f\x65" "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 128); *(uint64_t*)0x200003d0 = 0x80; *(uint64_t*)0x200003d8 = 0x4400; *(uint64_t*)0x200003e0 = 0x200107e0; memcpy((void*)0x200107e0, "\x11\x1f\xc0\xd9\x01\x00\x00\x00\x80\x3a\x09\x00\x80\x3a\x09\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00", 32); *(uint64_t*)0x200003e8 = 0x20; *(uint64_t*)0x200003f0 = 0x4800; *(uint64_t*)0x200003f8 = 0x20010800; memcpy( (void*)0x20010800, "\xff\xff\x01\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" "\xff\xff\xff\xff\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\x00\x00\x00\x00\x00" "\x00\x00", 1056); *(uint64_t*)0x20000400 = 0x420; *(uint64_t*)0x20000408 = 0x4c00; *(uint64_t*)0x20000410 = 0x20010c20; memcpy((void*)0x20010c20, "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000418 = 0x20; *(uint64_t*)0x20000420 = 0x5400; *(uint64_t*)0x20000428 = 0x20010c40; memcpy((void*)0x20010c40, "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000430 = 0x20; *(uint64_t*)0x20000438 = 0x5800; *(uint64_t*)0x20000440 = 0x20000040; memcpy((void*)0x20000040, "\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\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 96); *(uint64_t*)0x20000448 = 0x60; *(uint64_t*)0x20000450 = 0x5c00; *(uint64_t*)0x20000458 = 0x20010cc0; memcpy((void*)0x20010cc0, "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000460 = 0x20; *(uint64_t*)0x20000468 = 0x6000; *(uint64_t*)0x20000470 = 0x20010ce0; memcpy((void*)0x20010ce0, "\x27\x19\xc0\xd9\x01\x00\x00\x00\x80\x3a\x09\x00\x80\x3a\x09\x00" "\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00", 32); *(uint64_t*)0x20000478 = 0x20; *(uint64_t*)0x20000480 = 0x6400; *(uint64_t*)0x20000488 = 0x20010d00; memcpy((void*)0x20010d00, "\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\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x20000490 = 0x20; *(uint64_t*)0x20000498 = 0x6800; *(uint64_t*)0x200004a0 = 0x20010d20; memcpy((void*)0x20010d20, "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200004a8 = 0x20; *(uint64_t*)0x200004b0 = 0x6c00; *(uint64_t*)0x200004b8 = 0x20010d40; memcpy((void*)0x20010d40, "\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200004c0 = 0x20; *(uint64_t*)0x200004c8 = 0x7000; *(uint64_t*)0x200004d0 = 0x20010d60; memcpy((void*)0x20010d60, "\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\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 96); *(uint64_t*)0x200004d8 = 0x60; *(uint64_t*)0x200004e0 = 0x7400; *(uint64_t*)0x200004e8 = 0x20010dc0; memcpy((void*)0x20010dc0, "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint64_t*)0x200004f0 = 0x20; *(uint64_t*)0x200004f8 = 0x7800; *(uint64_t*)0x20000500 = 0x20010e20; memcpy((void*)0x20010e20, "\x00\x00\x02\xea\x01\x00\x00\x00\x01\x00\x00\x00\x27\x0f\x24\x0c" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x06\x01\xf8\x03\x00\x00\x00\x00\x06\x00\x00\x00\x77\x9b\x53\x97" "\x78\x61\x74\x74\x72\x31\x00\x00\x06\x01\xf0\x03\x00\x00\x00\x00" "\x06\x00\x00\x00\x74\x98\x53\x97\x78\x61\x74\x74\x72\x32\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 96); *(uint64_t*)0x20000508 = 0x60; *(uint64_t*)0x20000510 = 0x8000; *(uint64_t*)0x20000518 = 0x20000140; memcpy( (void*)0x20000140, "\x00\x00\x00\x00\x00\x00\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x70" "\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf5\x00", 33); *(uint64_t*)0x20000520 = 0x21; *(uint64_t*)0x20000528 = 0x8c00; *(uint64_t*)0x20000530 = 0x20010ec0; memcpy((void*)0x20010ec0, "\xed\x41\x00\x00\x00\x04\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x04\x00\x02\x00\x00\x00" "\x00\x00\x08\x00\x05\x00\x00\x00\x0a\xf3\x01\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00", 64); *(uint64_t*)0x20000538 = 0x40; *(uint64_t*)0x20000540 = 0x8c80; *(uint64_t*)0x20000548 = 0x20010f00; memcpy((void*)0x20010f00, "\x80\x81\x00\x00\x00\x18\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\x00\x00" "\x10\x00\x08\x00\x00\x00\x00\x00\x0a\xf3\x03\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00\x02\x00\x00\x00" "\x04\x00\x00\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x80\x81\x00\x00\x00\x18\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\x00\x00" "\x10\x00\x08\x00\x00\x00\x00\x00\x0a\xf3\x03\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x19\x00\x00\x00" "\x01\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00\x02\x00\x00\x00" "\x04\x00\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 224); *(uint64_t*)0x20000550 = 0xe0; *(uint64_t*)0x20000558 = 0x8d00; *(uint64_t*)0x20000560 = 0x20010fe0; memcpy((void*)0x20010fe0, "\xc0\x41\x00\x00\x00\x30\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00\x00\x00" "\x00\x00\x08\x00\x00\x00\x00\x00\x0a\xf3\x01\x00\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x05\x00\x00\x00", 64); *(uint64_t*)0x20000568 = 0x40; *(uint64_t*)0x20000570 = 0x9100; *(uint64_t*)0x20000578 = 0x20011020; memcpy( (void*)0x20011020, "\xed\x41\x00\x00\x00\x04\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x70" "\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x02\x00\x02\x00\x00\x00\x00\x00" "\x08\x00\x03\x00\x00\x00\x0a\xf3\x01\x00\x04\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8d\xe4" "\x93\xfd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x81\x00\x00\x1a\x04\x00\x00" "\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x00\x00\x00\x00\x00" "\x00\x01\x00\x04\x00\x00\x00\x00\x00\x08\x00\x01\x00\x00\x00\x0a\xf3" "\x01\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00" "\x00\x27\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\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\x05\x04\x18\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xff\xa1\x00\x00\x27\x00\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63" "\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x01\x00\x00\x00\x2f\x74\x6d\x70\x2f\x73\x79\x7a\x2d\x69" "\x6d\x61\x67\x65\x67\x65\x6e\x32\x34\x31\x39\x32\x30\x34\x35\x32\x30" "\x2f\x66\x69\x6c\x65\x30\x2f\x66\x69\x6c\x65\x30\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc4" "\x69\x48\x22\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x81\x00\x00\x0a\x00\x00" "\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x00\x00\x00\x00" "\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x08\x00\x01\x00\x00\x00\x0a" "\xf3\x01\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" "\x00\x00\x29\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x49\xea\xda\xcb\x20\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xed\x81\x00\x00\x28\x23\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f" "\x63\x70\x1f\x1f\x63\x00\x00\x00\x00\x00\x00\x02\x00\x12\x00\x00\x00" "\x00\x00\x08\x00\x01\x00\x00\x00\x0a\xf3\x01\x00\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x2a\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x6b\x2d\xd0\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xed\x81\x00\x00\x64\x00" "\x00\x00\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x70\x1f\x1f\x63\x00\x00\x00" "\x00\x00\x00\x01\x00\x02\x00\x00\x00\x00\x00\x08\x00\x01\x00\x00\x00" "\x0a\xf3\x01\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01" "\x00\x00\x00\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc2\x34\x16\x6d\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00", 768); *(uint64_t*)0x20000580 = 0x300; *(uint64_t*)0x20000588 = 0x9180; *(uint64_t*)0x20000590 = 0x20011320; memcpy( (void*)0x20011320, "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkall" "ersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzka" "llersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyz" "kallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallers" "yzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkalle" "rsyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkal" "lersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzk" "allersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersy" "zkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller" "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkall" "ersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzka" "llersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyz" "kallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallers" "yzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkalle" "rsyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkal" "\000\000\000\000\000\000", 1056); *(uint64_t*)0x20000598 = 0x420; *(uint64_t*)0x200005a0 = 0x9c00; *(uint64_t*)0x200005a8 = 0x20011740; memcpy((void*)0x20011740, "syzkallers\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000", 32); *(uint64_t*)0x200005b0 = 0x20; *(uint64_t*)0x200005b8 = 0xa400; *(uint64_t*)0x200005c0 = 0x20000700; memcpy((void*)0x20000700, "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c" "\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61" "\x6c\x6c\x65\x72\x73\x79\x7e\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a" "\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73" "\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65" "\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c" "\x6c\x65\x72\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x5d\x77\x9b\x19\x6a\xe2\xb8\x96\x63\xb7\x00\x00\x00\x00\x00\x00" "\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00", 138); *(uint64_t*)0x200005c8 = 0x8a; *(uint64_t*)0x200005d0 = 0xcc00; memcpy((void*)0x20003e40, "dioread_lock", 12); *(uint8_t*)0x20003e4c = 0x2c; memcpy((void*)0x20003e4d, "data_err=abort", 14); *(uint8_t*)0x20003e5b = 0x2c; memcpy((void*)0x20003e5c, "max_dir_size_kb", 15); *(uint8_t*)0x20003e6b = 0x3d; sprintf((char*)0x20003e6c, "0x%016llx", (long long)5); *(uint8_t*)0x20003e7e = 0x2c; memcpy((void*)0x20003e7f, "abort", 5); *(uint8_t*)0x20003e84 = 0x2c; memcpy((void*)0x20003e85, "journal_ioprio", 14); *(uint8_t*)0x20003e93 = 0x3d; sprintf((char*)0x20003e94, "0x%016llx", (long long)0); *(uint8_t*)0x20003ea6 = 0x2c; memcpy((void*)0x20003ea7, "journal_ioprio", 14); *(uint8_t*)0x20003eb5 = 0x3d; sprintf((char*)0x20003eb6, "0x%016llx", (long long)6); *(uint8_t*)0x20003ec8 = 0x2c; memcpy((void*)0x20003ec9, "grpquota", 8); *(uint8_t*)0x20003ed1 = 0x2c; memcpy((void*)0x20003ed2, "block_validity", 14); *(uint8_t*)0x20003ee0 = 0x2c; memcpy((void*)0x20003ee1, "inode_readahead_blks", 20); *(uint8_t*)0x20003ef5 = 0x3d; sprintf((char*)0x20003ef6, "0x%016llx", (long long)0x400000); *(uint8_t*)0x20003f08 = 0x2c; *(uint8_t*)0x20003f09 = 0; syz_mount_image(0x20000000, 0x20000100, 0x8100000, 0x29, 0x20000200, 0, 0x20003e40, 1); break; case 2: syscall(__NR_lseek, -1, 5ul, 0ul); break; case 3: syscall(__NR_openat, 0xffffffffffffff9cul, 0ul, 2ul, 0ul); break; case 4: memcpy((void*)0x20000040, "/proc/schedstat\000", 16); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000040ul, 0ul, 0ul); if (res != -1) r[0] = res; break; case 5: syscall(__NR_mount, 0ul, 0ul, 0ul, 0ul, 0ul); break; case 6: syscall(__NR_openat, 0xffffffffffffff9cul, 0ul, 0x200ul, 0ul); break; case 7: syscall(__NR_read, r[0], 0ul, 0ul); break; case 8: memcpy((void*)0x200014c0, "./file1\000", 8); syscall(__NR_chown, 0x200014c0ul, 0, 0); break; case 9: *(uint32_t*)0x20002740 = 0xa0; *(uint32_t*)0x20002744 = 0; *(uint64_t*)0x20002748 = 0; *(uint64_t*)0x20002750 = 5; *(uint64_t*)0x20002758 = 0; *(uint64_t*)0x20002760 = 0x8001; *(uint64_t*)0x20002768 = 0xe26; *(uint32_t*)0x20002770 = 0x7fe; *(uint32_t*)0x20002774 = 0; *(uint64_t*)0x20002778 = 4; *(uint64_t*)0x20002780 = 4; *(uint64_t*)0x20002788 = 0; *(uint64_t*)0x20002790 = 7; *(uint64_t*)0x20002798 = 0xa; *(uint64_t*)0x200027a0 = 8; *(uint32_t*)0x200027a8 = 0x200; *(uint32_t*)0x200027ac = 0x8001; *(uint32_t*)0x200027b0 = 0x32; *(uint32_t*)0x200027b4 = 0; *(uint32_t*)0x200027b8 = 0; *(uint32_t*)0x200027bc = 0; *(uint32_t*)0x200027c0 = 0; *(uint32_t*)0x200027c4 = 0x80000001; *(uint32_t*)0x200027c8 = 0; *(uint32_t*)0x200027cc = 0; *(uint64_t*)0x200027d0 = 0; *(uint32_t*)0x200027d8 = 1; *(uint32_t*)0x200027dc = 0; syscall(__NR_write, -1, 0x20002740ul, 0xa0ul); 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) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }