// https://syzkaller.appspot.com/bug?id=e0c6711e93046aa193a7de9831e65ddff50fcfbd // 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 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; } 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 setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 6; 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); 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++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: res = syscall(__NR_socketpair, /*domain=*/0x1eul, /*type=*/1ul, /*proto=*/0, /*fds=*/0x20000000ul); if (res != -1) { r[0] = *(uint32_t*)0x20000000; r[1] = *(uint32_t*)0x20000004; } break; case 1: *(uint64_t*)0x200003c0 = 0x20000180; *(uint16_t*)0x20000180 = 0x1e; *(uint8_t*)0x20000182 = 1; *(uint8_t*)0x20000183 = 0; *(uint32_t*)0x20000184 = 0; *(uint32_t*)0x20000188 = 0; *(uint32_t*)0x2000018c = 0; *(uint32_t*)0x200003c8 = 0x10; *(uint64_t*)0x200003d0 = 0x20000380; *(uint64_t*)0x20000380 = 0x20000480; memcpy( (void*)0x20000480, "\xc3\xe9\x72\xbd\x85\xa6\xd8\x41\x36\xd6\xdd\x55\x04\x8d\x35\x93\xa7" "\x4f\x33\x8c\xe6\x77\x2a\xb9\xa6\xf6\x40\x41\xc2\xf6\xfb\xbe\xcd\xc0" "\x8e\xbc\xd3\x19\x2b\x6a\x53\x66\x2d\xae\x7c\x8e\x9c\x66\x5e\x80\xa5" "\xd0\x92\x5f\x72\x8d\xca\xc3\x0c\x29\x79\x39\x92\xe5\x88\x95\x26\x53" "\xd4\x14\xcb\x8c\xcd\xab\xc3\x87\x67\xfe\xe8\x19\xec\x5a\xf0\xc5\xee" "\x93\x68\x80\xfe\x85\x49\xb4\xed\x34\x77\x79\xca\xb4\xff\xd4\xe0\xb6" "\x2c\x53\xa1\xc0\x1d\xb2\x8f\x2b\x3f\x91\xc3\x42\x11\xc9\x35\x3b\xc1" "\xde\xce\x61\x51\x19\x17\xc2\x24\x5f\xd6\x6c\xb8\xdf\xfe\xac\xb4\xd4" "\x6d\x62\x7c\x97\xb4\x98\xbf\x1f\xf6\xb3\x13\xbf\xbc\x97\x65\x45\x7c" "\x83\x17\x71\xd5\xee\xc7\x99\x7e\xc2\x42\xe4\x50\x5f\x01\xc1\xbb\x3e" "\x06\x9b\x2e\x63\x0f\x42\xa2\xbe\x86\x59\x8a\x61", 182); *(uint64_t*)0x20000388 = 0x64; *(uint64_t*)0x20000390 = 0x20000300; memset((void*)0x20000300, 86, 1); *(uint64_t*)0x20000398 = 1; *(uint64_t*)0x200003a0 = 0x20001600; memcpy( (void*)0x20001600, "\x3e\xed\x50\xd0\x12\x57\x19\xa8\x10\xf8\x8e\x3f\x47\x18\x6f\xe4\xda" "\xe7\x41\x82\xdf\xd1\x09\xa2\x58\x7c\x47\x97\x41\x0c\x9b\x8e\x39\xbd" "\x3d\x9a\xa1\x44\xd5\x90\x86\x47\xc3\x0c\x8d\xb6\x9b\x5c\x17\x08\x4c" "\x9b\x1b\xfb\xb8\x68\x07\x37\xc4\xf8\x8a\xbc\xdb\xc7\xd2\x94\xd7\x2a" "\xb1\xb3\x44\x27\x09\x15\xdf\x9d\xdf\x56\x35\x64\x4c\x35\x1c\x22\xb2" "\x9d\x94\x8a\xc4\x10\x6b\xce\x71\x07\x57\x0b\xee\xd6\x30\x77\xcf\xbc" "\x98\xef\x71\x69\x9e\xae\x65\xd3\x77\x24\xd9\x95\xb5\x53\xe7\xa3\xad" "\xe6\x19\xb5\x22\x31\x3a\xb3\x82\xca\xf8\x79\xfe\xb4\x89\x42\x87\x8e" "\x60\x5e\xe3\xee\x28\x72\x79\x4e\x3a\xbe\x22\xa3\xf0\x25\x06\x8b\x62" "\x8a\x5d\x92\x46\x80\x92\xa5\xcc\x64\x9b\xbb\xd9\x78\xb5\x77\x2e\x53" "\x79\x39\x43\x2a\x50\x21\x22\x23\x5c\xed\x31\x2d\xaf\xd1\x08\xc9\xff" "\xeb\x0b\x38\xcc\x16\xda\x94\x18\xca\x01\xd4\x85\xa6\xaf\xb5\x82\x7d" "\xa4\xdf\x6e\x11\x21\xec\x30\x7d\xe1\x4b\xb3\x2b\x6a\x97\x76\x08\xe4" "\x57\x6a\x99\x81\x82\xdd\x93\xd5\x92\xff\x43\xe5\x5b\xfd\xbb\xce\x23" "\xec\xd5\x01\xe4\x3b\x3e\x93\xef\x8d\x9d\x01\x71\x1d\xff\x54\xc3\x01" "\xe2\x99\xd3\x80\x1a\x3c\xff\xe6\xc9\x88\x3f\xbd\x0e\x47\x12\x4d\xc0" "\x25\x69\xf6\x2d\x48\xb8\x78\xfc\xb5\x8c\xe9\x9f\xcf\xfc\xd2\xa5\x16" "\x6e\xff\x3a\xd9\x3c\xf1\xd1\x37\x27\x49\x93\xd8\x6a\x3b\x37\x30\xd6" "\x3d\xed\x75\x9f\x6c\xa8\x8f\xa4\x49\xe5\x57\x5b\x15\x32\x1e\x5a\x58" "\xa1\xf8\x88\xee\xd7\x46\x6d\xb4\x97\x6c\xe3\x5f\x6d\x2e\xfb\x5a\xd0" "\x5d\x99\xa6\x64\x82\xdc\x60\x7c\xb5\xac\xb2\x4d\x32\x68\x03\xbd\x33" "\x75\x19\xcc\x98\x10\x3f\x59\xc6\x3b\x59\x62\xcd\x72\xe4\x49\x7d\x1b" "\x00\x81\x7d\x6e\x09\xde\x70\x27\x0a\x09\xb4\x93\xc2\x22\x66\x17\xb1" "\xc9\xef\x9d\x50\x6b\xe0\x0d\x6e\x07\xf1\x46\x33\xa9\x66\xf0\x4e\xcc" "\xa9\x0f\xb8\xd2\xb9\x63\xad\x6f\x38\x17\x93\x5b\xd6\x53\x4f\xa3\xda" "\x1c\x5d\xc4\x68\x78\x9c\xbf\x11\x92\xf3\xc0\xbf\xf3\x77\x7f\x1e\xdd" "\x2a\xda\x5d\x35\xf8\x8f\x12\xf2\x9e\x95\x2c\x44\x44\x5c\xe6\x23\x50" "\x9d\x66\x81\x1c\x80\xa9\xe0\xf1\x3a\xd8\x5a\xba\x37\xd8\x6f\xf0\xda" "\x4d\xda\x60\x1d\x9e\x8a\xcb\x26\x42\x33\xbc\x93\x9f\xb0\x56\x31\x66" "\x12\xcf\xf6\x87\xd5\xc4\x41\x57\xbe\x05\xbc\xc8\x8b\x33\x3f\xf2\xa4" "\x00\x41\xd9\x8f\x1a\xcf\xe6\xe2\x23\x1a\x84\xe0\x9b\xd7\xa5\x4a\x04" "\x42\xcf\x87\xce\x3e\xe8\xfd\x8d\xa3\x9d\xa1\x86\x28\x62\xae\x40\xfc" "\x3c\xb3\x05\x5c\x8b\x70\xe6\x2f\x24\x38\x50\x70\x73\x41\xf5\x14\x26" "\xbb\x3e\x71\xc7\xa4\xff\xfe\xfa\xb0\x60\xdb\x78\x60\x00\x61\x8b\x05" "\xeb\x08\x7a\x42\x4a\x2f\x30\xf6\xa2\x32\xff\x44\xb6\x05\xf7\x0c\xee" "\xc0\xa8\xf7\x0e\x37\x90\x7f\x6e\x0b\xbb\xa2\x1e\x9d\x5b\x7e\xcb\x6d" "\x28\x77\x42\xb7\x5c\x10\x1b\xa7\x95\x25\x91\x8c\x34\x73\xea\xe3\x8f" "\x3c\x17\x72\x49\xdf\xa8\x81\x66\x61\xc9\x92\x1f\x0b\x0c\x85\x8d\x53" "\xab\x87\xc8\x40\x7b\x97\x95\x0c\x84\x21\x11\x00\x2e\xdd\x1d\x1e\x80" "\xb8\x01\xb4\x95\xda\x28\xbc\xd5\x40\x9b\xc9\x71\xe5\x5d\xab\x18\x57" "\xe1\x88\xac\x97\x28\xef\xc8\xf9\xa4\x54\x39\x45\xf8\x6a\xde\x13\xb4" "\x45\xea\xce\xcb\xbf\x84\x8a\x96\x41\x0a\xc3\x7c\x57\xe3\xe9\xe8\xbc" "\x8b\x8f\xad\xd5\x59\xd2\x25\xc7\x46\x86\x39\xda\x2b\x5d\x12\x08\x55" "\x8b\x51\xe9\x4c\x14\xfa\xa7\x94\x7a\x7c\x60\xe8\x1a\x96\xbb\x5d\x19" "\x4c\xc7\x28\x9a\xdb\xc0\x2e\xbb\x4b\x49\xbe\x1f\x1e\xfc\x42\x9d\xb2" "\xf9\xb7\x9b\x5a\x22\x91\x9d\xba\x0c\x35\x34\x10\x42\xc5\x77\x69\x42" "\xc5\x23\x65\x36\x7c\x4b\xfc\x95\xb4\x2b\xe3\x83\xcc\xa7\x10\x71\x61" "\xde\xd7\xe8\x51\xd0\x12\x6d\xa3\x3d\x58\x1f\x1e\x2b\x08\xd0\xc0\x61" "\xe8\x6d\x31\xe7\xa8\x3f\x9b\x51\xc7\x9b\x40\x34\xc7\xde\xda\x76\x97" "\x03\x4e\x14\x04\xc6\xe8\xe4\x59\xf7\x6c\x2e\xfe\x64\x35\x01\x46\xc7" "\x43\x7e\xf8\x08\xe0\x4c\xa1\x4d\xf5\xf6\xf5\x00\x26\x4f\xd9\x77\x27" "\x2b\xbf\x8f\xc0\x96\x77\x4e\x8e\xb6\x1d\x09\x63\x43\x07\x51\xac\x14" "\x25\xa0\x73\xf8\x43\x46\xb0\xeb\xa3\x68\xcb\xa7\xfa\x34\xad\xc4\x20" "\x80\x0d\x4f\x99\x92\x72\x80\xeb\xa1\x99\xf9\x69\x5c\xf8\x81\x24\xfa" "\xfc\x3a\x2b\x12\x26\xd2\xf2\xab\x3e\xa2\x7c\x69\xa1\x27\x65\x0c\xf5" "\xc7\x25\xb5\x4c\x02\xbd\x87\x29\x03\x3c\xf6\x99\xce\x7f\x03\x0f\x9a" "\x34\x42\x05\x62\x44\xda\x3c\xfb\x61\xa8\x12\x6d\xba\x11\x37\x76\x24" "\xf3\x9e\xb0\x09\x24\x21\x52\xfd\x7b\x8b\x88\xde\x7d\xd8\x60\x57\xf2" "\x9b\xfc\xb7\xb7\xdf\x0e\x65\xe7\xe9\xac\x9e\xea\xa4\x1a\xfa\x62\x74" "\x36\x98\xbf\xf0\x3d\x5b\x2d\x51\xfb\x6b\xca\x2d\x92\x29\x4e\x8e\x17" "\x7c\xfa\x36\x61\xb2\x6f\x1c\x04\x0e\x9b\xed\x98\x3b\x7b\xc0\xaa\x15" "\x4e\xb9\xc9\x2e\x4e\xe2\x50\x91\x31\x8c\x53\x11\x3a\x1c\x23\xac\x62" "\xd2\xd7\x15\x04\xcb\xa9\x90\x41\xf2\x9a\x4f\x33\x21\x33\x29\x2c\xf2" "\x0a\xbe\xc9\x22\x2a\x2a\xcc\xa5\x7c\xac\x48\xfa\x6c\x06\x68\xee\x5e" "\xec\xb4\x94\x74\x1a\x64\xd3\x3b\x01\x1d\xcc\xa7\x46\x96\xd4\x61\x4c" "\x5b\x45\xa5\xd2\x09\x83\xb1\x70\x8d\x36\x5e\xd3\xff\xa6\x0f\x91\x61" "\x97\x2a\x61\x1c\x22\x64\x2c\x3c\x25\x9b\x41\xf9\x43\xf6\xd7\xa8\xb6" "\x0f\x28\x4d\x32\x5e\x38\xfe\x76\xf0\x64\x5e\x06\x9f\xf7\x0c\xae\x38" "\x85\x0c\xcf\x97\x31\x93\xb6\x23\x2c\x98\x7d\xf2\x62\x39\xa5\x74\x69" "\x1f\x7f\x07\xff\xfa\x6d\xea\xe1\xeb\x03\x24\xfe\x54\x65\x73\xc3\x6f" "\x2a\x2c\x31\xcd\x44\x25\x17\xa9\xb0\x36\xae\x6a\x2a\x49\x1e\x73\x43" "\x86\x46\x93\xc1\x07\xa5\xdc\x25\x85\x82\x08\x63\xc1\x46\xc1\xba\x6c" "\xaa\x4f\xea\x9b\x87\xd5\x67\x71\x6f\x4c\x8c\xa1\xa9\xd2\x84\x80\x55" "\xcd\x75\x05\x12\xd3\xb7\x41\x5d\x09\x00\x19\xdc\x8a\x04\xa1\xa1\xd2" "\x89\x31\x09\x3c\xd8\xf0\x0e\x94\xc4\x07\xca\x1f\xa2\xa5\xce\x90\x3d" "\x9d\xf2\x6e\x00\x8c\x07\xcd\x13\xaf\xa7\x83\x22\x0e\x1b\xd5\xe6\xb6" "\x06\x45\xf3\xdb\xb6\xec\xb4\x15\x6f\xed\xaf\xa2\xdd\x25\x49\x8c\x6a" "\x99\xd9\x4f\x0b\x38\x12\x5e\xa7\x74\x1b\x75\x10\x9d\xca\xc9\xf8\x06" "\x35\xf7\x9f\x5c\x8a\x04\x83\xbb\x9f\x05\xa3\xa5\xbf\x72\x1c\x75\x41" "\xed\xb2\x52\x44\x9f\x8b\x13\xe6\x3c\x37\x0a\x61\x46\x33\x2f\x03\xca" "\x1f\x1b\x6f\xe0\xbe\xd9\x84\xf1\x37\x44\xbb\x7f\xa0\xfe\x32\x2e\x83" "\xdd\xf9\xff\xb2\x08\x3e\x94\xf3\x36\x04\xa0\xa1\x99\x22\x0c\x45\x0d" "\xad\x94\xbf\x15\x48\x05\xe7\xf9\xe4\x35\x0c\xa2\xd8\x1a\xdf\x29\x78" "\xc8\x7d\xcc\x8a\x8a\x7d\x56\x29\x7e\xc1\x24\xbf\xef\x0d\x28\xf3\x57" "\x77\x20\x5e\x97\x32\x72\xc8\x7e\x01\x07\x0f\x14\xf5\xb1\x4d\xaa\x3b" "\x51\x04\xd9\xff\x6b\x29\x6c\x4f\x16\xed\x49\xeb\x42\xd3\x5e\x7b\xa3" "\xbc\xcb\x7a\x26\xc3\x3a\x26\x3d\xf8\x8a\xad\xd5\x96\xe9\xd9\xde\x0a" "\xbb\xd4\xd4\x49\xdf\x11\x08\x1f\x2c\xd6\x2e\x1d\x89\x62\xb9\xb9\xfe" "\xb2\x5a\x3b\x8e\x03\x53\x7d\x61\xa6\x1c\x11\xac\x22\xb7\x21\x1d\x12" "\xc8\x4e\x60\xa6\xab\xcc\x21\x9e\x55\x8b\x25\x13\xd8\xc5\x30\xb3\xc7" "\xa5\x7c\xdc\x47\xde\x54\x5a\xaf\xbb\x2a\x13\xc0\xe6\xc7\x5b\x1b\x92" "\xfa\x24\x1c\x71\x3c\x83\xa0\x9c\x92\xb2\xb6\x1d\x56\x51\x20\x37\x2a" "\x91\x43\x41\x55\x83\xc9\x59\x6f\x27\xa6\x63\xd4\x96\x7c\xd6\x53\xb0" "\x8c\xeb\xd6\xcb\x96\xc1\xf0\xdc\x80\xd5\x72\x67\xac\x9a\x82\x81\xd7" "\x14\x9b\xde\x88\x08\x28\xee\x27\xd6\x9a\x68\x18\xdb\x58\x32\x0d\xb2" "\x9d\x1b\x04\x4e\xaf\x6a\xb8\xa5\x10\x8b\xc5\x22\xde\x40\x69\x90\xb5" "\x39\x3b\x1f\x7e\x7b\xab\x71\xbf\x6c\xf8\xee\xd1\xcd\x59\xc7\x60\x7d" "\x66\x2e\x8b\x31\x3f\x5c\x4f\xce\x0f\x59\xb1\x02\x73\x71\x38\x10\x11" "\xb6\x3d\xd5\xb2\xb0\x97\x39\x08\x2c\x0d\x62\xff\xad\x96\xe3\x01\x53" "\xa3\x95\x23\x49\x37\xd3\x77\xc3\x2f\xe7\xaf\x82\xac\xa3\xa1\x9d\x0e" "\xbc\x4a\x5c\x5f\xb5\xff\x19\x0f\x14\xd5\x69\x5c\x70\x3b\x57\x1f\xb4" "\xbf\x03\x75\x66\x35\xca\xfc\x6c\xf6\x26\x7e\xab\x83\x6c\x34\x7a\x9d" "\x07\xe8\x08\x9f\xc1\x05\x34\x69\x34\xcf\x33\x64\xe5\xbe\x37\x0b\x3c" "\x42\xb9\x4b\xc5\xae\x3d\x17\xa8\x17\x39\x85\x66\xa2\x95\x32\x51\xeb" "\x91\x69\x7d\x67\x27\x81\x45\xdf\x9a\x4b\x91\x7b\xcc\xa1\xbf\x21\x17" "\x80\xb2\x2f\x4c\xaa\xcf\xcb\x76\x04\xc8\x4f\x94\x3d\x05\xf6\xfd\xf8" "\xed\xbd\x25\x8d\x7d\x8d\xbf\x84\xf9\xd9\x9e\x57\x47\x2c\x5b\x1c\x23" "\x37\xd7\x49\xa1\xf3\x45\xe6\x62\xe2\x53\x6d\x23\xc7\xa6\x3b\xbb\xbf" "\x00\xf8\xb5\xb0\xa2\x10\x6a\x03\x42\xab\x27\xb9\xa1\x0b\x82\xe8\x26" "\x68\xcd\x49\xe0\xcb\xb0\x9d\x7b\xe0\x21\x76\x45\xf1\xdd\xa3\xbe\x59" "\xc8\x23\x2f\xa2\x90\xd3\x47\x91\xcd\xa5\x2a\xa5\xb5\xce\xc6\x33\x9a" "\xb9\x6a\x2e\xb3\xf5\x32\x8c\xc7\xc0\xe6\x71\x7c\x28\x24\x34\x45\x47" "\xa2\xed\x51\x8f\x6b\x2b\x4e\x4f\xe5\xb6\x84\x59\x6a\xa6\xa9\xd3\x98" "\x8f\xc5\xd5\xff\x4c\xb4\x6c\xec\x99\xd9\x51\xb8\x38\x6b\x10\x94\x9a" "\x16\x3a\xf9\x74\xb7\x54\x3d\xf9\x7b\x48\x82\xa4\xed\x60\xe9\x27\xa1" "\xde\xb6\x7c\x5f\x81\x42\x35\xbe\xf6\x5f\xea\x79\xa2\xc7\x12\x81\x5b" "\xe7\x40\x3c\x93\xa3\x70\x7f\xb9\x0d\x46\x04\xec\x3a\x6a\x3b\x09\x28" "\xf2\x53\xf6\xab\x6b\xd5\x6c\x95\x8e\x02\x6c\x8c\x58\x17\x2c\x4a\xc2" "\xa3\xef\xe2\xec\xd5\xce\xa7\x0c\x83\x13\xf9\xac\x2d\x63\x8b\xc2\x96" "\xba\x99\xe2\xca\x86\xd2\xfd\x06\xb5\x40\x2c\xdc\xdd\xc3\xf3\xc9\x84" "\x5d\x5a\xe7\x7f\x6f\x36\x96\x3b\x91\xe8\xf6\xcd\xcc\xd1\x7a\xbe\x8d" "\x40\xed\x02\x46\x3a\xf4\xbb\x0e\x49\x63\x44\xf3\x50\x09\x7f\x1c\xc1" "\x33\x13\xfa\x1e\x17\x2b\x63\x55\x6e\xd2\xb8\xa8\x12\x1c\x01\xa5\xfb" "\x34\x3f\xf7\x76\x78\x21\x62\x6f\xc4\x9b\x0d\x6b\xd5\x22\xe1\xc9\xbf" "\x13\x7d\x5a\x5b\xcc\xb4\xbc\x8d\xbb\x64\xc8\x3a\x82\xef\x6c\x28\x94" "\xf3\x89\x6c\x9f\x6b\xf0\xc3\x76\x40\x11\xd5\x3e\xeb\x6d\xb9\xea\x9d" "\xae\x22\xd3\xeb\xcc\xa4\x94\x2d\x58\x28\xc0\xbc\xa0\xd9\xea\x37\x70" "\x1d\x5a\x06\xc0\x66\xac\x4f\xe3\x18\xe1\x1e\x9c\x0d\x6c\x65\x8a\xc8" "\x10\xfb\x5d\x78\x36\xcf\xff\xe4\xcc\xbb\x09\x34\xe5\x56\x7d\x74\x69" "\x59\x80\xa1\x56\xd4\xbf\x1c\x18\x86\x1c\x5a\x29\xcc\xd3\x49\x99\x9d" "\xc2\x05\x62\xd0\x0e\x1f\x6c\x18\x51\xae\x56\x35\x41\x08\x64\x38\xd6" "\x0b\x97\x5c\x8c\xeb\x46\x64\x14\xff\x60\xef\xa0\xb2\xde\xe7\x90\xfd" "\x06\x59\xff\xa9\x8b\x92\x41\x4c\x13\xd5\xa6\x82\x53\x68\xf5\x6c\x49" "\x84\x41\x22\x05\x04\x1c\xd8\xe0\x06\xc7\x12\x7d\x43\x95\xec\xdf\xfb" "\x5a\xdd\xf8\x0e\xf9\x38\xce\x54\xa3\x67\x15\x4c\x4f\xc2\x86\xd5\xf9" "\x69\x32\x5c\x12\xb1\x36\x55\xa9\xa9\x56\xdd\x3b\x98\x28\x1f\x53\x7e" "\x83\x76\x69\xfc\x55\xd8\x93\x06\x76\xe8\x07\xaa\x8c\xd0\x46\xe0\xf4" "\x58\x3d\x59\xf8\x6c\xb9\x9f\x3f\x7a\x7d\xdd\xe1\xfb\x39\x11\x1f\xde" "\xc7\x67\x7d\x2f\xee\x4b\x8f\x48\x14\xa5\xde\xf5\xeb\xcc\x67\xc6\x53" "\x38\x4c\xe8\x0e\xaf\xfd\x88\x04\x05\xf7\xed\xf8\xfd\x3e\xa0\x49\xf0" "\x40\x59\x5d\xf4\xa7\x5e\x2f\x89\x2e\x7a\x85\xe0\xba\x35\x1f\xb8\xd2" "\x63\xbf\xff\x71\x68\xbb\x85\x01\x7b\x36\x0f\xcd\x2b\xa8\x93\x46\x68" "\x2a\x6e\xa7\xcc\xc4\x6a\xfb\xdb\x5a\xb4\x44\xe3\xf4\x77\x23\x8b\x2a" "\xb5\x03\xbd\xe9\x14\xd3\xcf\x17\x89\x53\x9c\xde\x9c\x06\x21\x15\x2c" "\xd9\x7b\xff\x9f\x23\x5d\x88\xa1\xef\x4e\xa4\x30\x9d\xb3\xa0\x5d\x40" "\x1a\xf7\xfb\x82\x78\x4b\x05\x0e\xf5\x29\xda\xb4\xf1\xf0\x03\xeb\x29" "\x71\x0a\x96\x2f\x75\x38\xc5\x21\xe6\x17\xe2\xf0\xef\xac\x36\x18\x2d" "\x09\x98\x5e\x1d\x72\x5c\xc3\x8c\x38\x33\xa5\x37\x42\xa0\x2f\x76\xfb" "\x28\x54\xa9\xe4\x5f\x0f\xeb\xac\xf3\xbd\xa8\x3f\x11\x18\x3e\xf5\xb9" "\xfe\xf0\x2e\xbc\xdf\x56\xd4\x10\x4b\x17\x5b\xad\x93\x7d\x8f\x61\x96" "\x4f\x97\xd6\x73\x57\x7c\xdc\xbb\xb4\x8d\x8e\xb6\x2b\x06\x3e\xe6\x56" "\x3b\x9f\xf0\x53\x71\x9b\xaf\xf8\x71\xbc\xd8\x38\x22\xd8\x65\xb2\xf7" "\xef\x02\x30\x76\x42\x5a\xc5\xcd\x71\xb1\xf2\x30\x9d\xe0\xc6\xf1\x4c" "\xc9\xc4\xd3\xe8\xfa\xd9\x45\xf7\x56\xa7\xc8\xa0\x84\xea\x1b\xfd\xf5" "\xac\x6e\x74\x00\x43\xe7\xf7\xbd\xac\xa0\x67\x74\xb0\x84\xae\x31\x4c" "\x26\x36\x52\x9d\x4f\xdc\xd9\x65\xc7\xf8\xc0\x71\x56\x57\x26\x20\xb8" "\x27\xd6\x94\xef\xdc\x9d\x2b\xfc\x5a\xa9\x39\x12\x20\xa8\x37\x65\xf2" "\xc7\x1f\xcd\x48\xd4\xac\xae\xd6\x0a\xfb\x53\xd1\x01\x3f\xa3\xb1\x5e" "\x94\x8e\xc4\x15\x9f\x7d\x13\x0e\xf8\x5b\x59\x40\x18\x34\x6e\x99\x03" "\x4c\x18\x73\x82\x85\x22\x3e\xa5\x3a\x6b\x1d\x5c\xf1\x1a\x60\x7d\xe2" "\xe1\x96\x08\xba\x03\xec\x97\x0a\x91\x5b\x77\x38\x24\x26\x1f\x3f\xc9" "\x31\xdd\x6d\x3b\x93\x4d\x89\xf0\x7b\xaf\x14\x77\x63\x14\xc3\xee\xb8" "\xcd\x05\x37\xef\x57\x36\xf5\x65\xfb\xd1\x4e\x52\x0d\x4a\xb2\xf7\x7e" "\xd9\x59\x7b\x76\xff\x91\xf8\xd1\xf9\x9e\xbd\x6e\x47\x3e\xfd\xa7\xac" "\xcb\x27\x39\x75\xa0\x69\x44\xd1\x03\x70\x32\x12\x99\x92\xb9\x94\xca" "\x79\x1a\x09\xb4\xd8\x39\x80\xa1\xe4\x94\xb0\xf9\x70\x98\xdf\x5f\x6f" "\xb6\xbb\xb0\x27\x22\xad\xb1\x1d\xc3\x19\xc5\x65\xc2\xc3\x63\xcb\xd1" "\x9d\x9f\xb3\xef\xb4\x61\x3b\x62\xd6\x58\x4c\xd5\x3f\x7b\xd8\x0e\x3e" "\x89\x30\x4f\x44\x4c\xe9\xdd\x18\x35\x66\x1e\x3b\xb4\xde\x02\xcc\xf5" "\x68\xa2\xa5\xda\xaf\x0d\x56\x89\x8d\x42\x86\xc3\xfb\x62\xe2\x2a\xf6" "\x2d\x7a\xc3\x18\x68\x58\x34\x46\x7f\x33\x75\x61\xdd\xe2\xe0\xc1\xe2" "\x82\x7c\xdf\xfc\xf4\x2c\x17\x72\x8e\xe6\x4b\x3f\xf4\xcc\xc0\x22\x75" "\x90\xba\xdd\x0b\xd7\xe4\x48\xb8\xcc\xa0\x89\x2d\x6a\x5e\x01\x30\xd2" "\xac\x66\x5f\x47\xc6\xb2\x8d\xaa\x10\x1c\x1b\x31\x98\x69\xbd\xd3\x9f" "\xa9\x24\xd6\xd9\xba\x7d\x72\xfe\xda\x5f\x21\xac\x78\x64\x1c\x7d\x48" "\x01\xd4\x1c\x78\x79\x72\x1b\x3b\xe4\xda\xb4\x0d\x9c\x4a\x78\x55\x24" "\x40\x10\x1f\x37\x34\x89\xcc\x52\x40\xb0\x14\x4a\x9c\xe3\x26\x91\xa7" "\x84\xb6\xdf\xe9\x71\xa2\x1b\xb5\x98\x0f\xf6\x7d\xa2\xd1\xbb\x90\xb2" "\x23\xc9\xe1\x92\xa3\x9c\x1a\xea\xdd\x1f\x5c\x79\x08\x11\x07\x9c\x0b" "\x51\xa9\x71\x05\xc9\x9b\x6f\x95\xd7\x1b\xb3\xea\x47\xc3\x3d\x9d\xcb" "\x0a\x53\xc9\x29\xc4\x44\x99\xe1\x84\xa3\xcd\x72\x2c\x90\x8d\x3b\x0d" "\x15\x7e\x28\xff\xde\xb2\xed\x71\x92\xe7\x80\xd9\x6a\x7a\x2f\x0f\xd5" "\xa8\x7b\xdc\x97\x3e\x04\x9d\xa0\xca\xf9\x31\xf2\x6f\x5a\x21\x81\x3e" "\x2e\x60\x2c\xeb\x22\x59\x99\x7e\x02\x05\xce\x48\xfd\x94\x24\xbd\x6d" "\x4d\x75\xdd\x43\x01\xf4\x29\xee\x30\x74\x5c\xd8\x39\xa4\x0d\xbe\xab" "\x4c\x3d\xb2\xf0\xf1\x0b\xba\xea\x07\x1c\xa4\x1d\x13\x92\x38\x56\x81" "\x73\x0a\x36\x78\xa5\xf6\x0f\x60\x4d\xbe\x19\xcb\x9d\x7d\xd2\x34\x33" "\x7e\x32\x74\x51\xb8\xcc\x65\x39\x4a\xf3\x99\x43\x2e\xf7\xfc\x37\x65" "\xd0\x55\x87\x4e\xbd\xca\x14\xe5\x99\x92\x92\xd6\xf7\x2f\x31\xe9\x2b" "\xac\xf2\x5d\xb5\xef\x8f\x52\x12\x95\x2c\x19\x10\xde\x06\xdd\xbe\x16" "\x87\xa0\xe1\x83\x79\x22\xf2\x22\x82\x89\x91\x6e\xd3\xae\xb7\xb9\xcc" "\x24\xda\x3a\xe4\x71\x39\xe3\x71\x93\x0a\xfa\x6d\x35\x73\xdf\x67\x32" "\xc2\x6c\x0c\x7a\xe0\x6d\x9c\xed\xfa\x77\x16\x07\x11\xbc\xb0\x6e\x65" "\x53\x33\x8d\xea\xe4\xc5\x73\x1c\xf5\x3c\xc1\x54\x11\x30\x96\xd0\x2f" "\x30\x36\xd7\xd9\xed\xfc\xdc\x33\x1e\x4b\xb8\x60\xc5\x20\x84\x89\x21" "\x2e\x90\x4e\xab\x70\xe7\xf8\x60\xb0\x37\x98\x95\xcb\xde\xcb\xf7\xa0" "\xb7\xa2\x5e\x5b\x85\x3c\x7d\xbe\x08\xa4\xe2\x96\xa3\x0a\xfe\xc8\xcf" "\x5a\x9f\x6e\xa4\xae\xf3\x2a\x50\x86\x55\xd5\x39\xa7\x70\xb2\x1e\x66" "\x0c\x9e\xe1\xd7\x68\x8c\x56\xab\xeb\x7c\xf1\xaf\xcc\xc8\xd5\x97\x80" "\xcf\x26\x31\x25\x89\xe0\xc8\xe1\xbc\x00\xad\x7b\x13\x25\xcd\x9a\x5d" "\xd6\x92\x46\xe0\xb3\x34\x07\xc3\x81\xea\x09\x26\x51\x54\xae\xc2\x97" "\xe4\xcc\xdf\x97\x85\xa1\x04\x2a\x83\xe7\x7c\x13\xd4\xce\x43\x60\x78" "\x2f\x24\x28\xf9\x91\x6b\x5c\xd1\x23\xb0\x89\xeb\x68\x3d\x30\xc1\xe8" "\x95\xb9\x94\x4a\xa9\x05\xa1\xa5\xb5\x23\x01\xd8\xcc\x5e\x47\x41\x83" "\x4e\xad\x6e\xbd\xb5\xdc\x05\xc9\xc4\x9c\x5e\x88\x3e\x99\xd4\x0b\x98" "\x38\x03\x7b\xea\xf8\x76\x53\x4d\x74\x78\x56\x10\x3e\x59\xca\xf6\x26" "\x6f\xbb\xe7\x60\xb6\xef\x83\xd0\x04\x63\x4b\x74\xf1\x4f\x8e\xb4\xae" "\xf9\x3c\x4c\xc9\xcb\xbd\x78\xd8\x3d\x53\x2c\x70\xfe\xef\x51\xea\x3f" "\x17\x0b\x25\xd8\x1a\x6a\x9b\x07\x4b\xfc\xa7\xe9\xb3\x77\x1b\xf8\x35" "\x17\xe0\xdd\x9d\x06\x00\xf7\x0b\x86\xb2\x0f\x61\xfe\x36\x07\x6f\x8b" "\xad\xa3\x34\xb2\x39\x0f\xa9\x54\x97\x3b\xc9\x01\x61\x9a\x3c\xfd\x03" "\x93\x49\xcb\x32\x86\x25\xf4\x95\xab\x28\x8d\xbd\xd6\xdb\xfd\x02\x2c" "\x2a\x83\xf5\x9e\x0b\x99\x86\x19\xa1\x2e\x35\x89\x1b\x5a\xe9\xe8\x3a" "\x71\x76\x55\x07\xb4\xa5\x71\xcd\x22\x41\xe5\x88\x5c\x70\x52\x44\xc1" "\x02\x26\x88\xbe\xf7\xc5\x06\x5f\xbc\xf2\x19\xfc\x01\x75\x3a\xdb\x61" "\x1b\x3f\xbc\x09\x40\x3d\xcb\x10\xa4\xf9\x9d\x78\x86\x67\xef\xf7\x5f" "\xa2\x70\x74\xca\x84\x81\xa6\x33\x53\x0e\x26\x16\x3c\xcf\x7d\xad\xa0" "\x49\xd2\x3e\x71\x7e\x06\x7b\x6f\xa5\xb2\xf6\x52\xbc\x50\xab\xda\x9e" "\x7c\xcd\xc5\xf2\xf3\xc3\x5e\xcc\x2c\x44\x31\xc8\x19\xc9\x69\x1b\xe4" "\x42\x2e\x37\x97\x50\x77\x4e\x9f\x39\xda\xe0\x6f\x26\x42\x3c\x8a\x42" "\x78\x78\x9c\x9f\x31\x11\xb4\x3f\x6d\xd2\x5b\x0a\xd4\x7c\x4c\xc5\xfd" "\xa3\xf3\xed\x82\x07\x9c\x93\x66\xe0\xad\xce\xd8\x83\x48\x8f\x42\x9c" "\x1d\x7e\x1b\x35\x1f\xd0\xbb\x20\x4d\xd7\x97\x7e\xf2\x24\xc4\xdf\x6d" "\x7a\x5f\x76\x97\xbc\x65\x00\xa7\xd0\x3a\x8a\x91\x41\x54\x77\x9f\xa7" "\x09\x2b\xf1\xbe\x6b\xad\x40\x92\x36\x7c\xe5\xd2\x95\xa5\xd5\xd0\xe7" "\xc4\x69\xf3\x72\xca\x20\x11\xd6\x12\x63\x70\x25\xe8\x9f\x17\x8a\xe9" "\xad\xa0\xc5\xb7\x3b\xcb\x7d\x7c\x03\x4f\xf5\x95\x26\x3c\xd4\x21\x6e" "\x3c\x76\xba\x5f\x3d\x81\x93\x2a\x08\x8a\x90\xbf\x80\x43\xe8\x77\xe2" "\x99\xc6\x70\xef\x16\x22\xa0\x98\xd5\x51\x9d\x9a\xdc\x4e\xe7\xd4\xcd" "\x00\xe5\x93\x4a\x43\x75\xfa\x83\xfd\xb8\x12\x14\xb8\x92\x48\x2b\x31" "\xbd\xde\x59\xa7\x0a\xaf\x25\xcb\x7f\x41\x7c\x3a\x2a\x91\xc4\xe5\x4b" "\x48\x14\x9f\x6c\x41\xd9\xd3\x96\xee\x6f\xf1\x3e\x30\x28\xc6\x4a\x7c" "\x9b\x1f\x2e\x7c\x6e\x67\x18\x4a\x3d\x52\xd6\xf5\x70\xdb\x3d\x22\x5c" "\x94\x74\x23\xc4\xc6\x53\x3f\x22\xdf\x57\xd1\x5c\x5e\x5a\x31\x83\x42" "\x2b\xd3\x78\xb0\x6f\xe4\x73\x2a\x94\x01\xdc\xb1\x98\x40\xfb\x8f\xa5" "\xc5\x0a\x0f\xf4\x97\xfe\xf3\x62\xc5\x07\x75\x3e\x46\xb8\x88\x1d\x3e" "\x76\x7f\x3b\x1d\x89\x3a\x38\x05\x94\x1c\x94\xf2\xef\xa0\x5c\xe3\x4b" "\x9e\xa8\x1d\x71\x69\x84\xaf\x68\x34\x23\x0d\x47\x07\xa8\x70\x89\xd4" "\x07\x79\x50\x3e\xe6\xa9\xbb\x24\x5d\x7d\x99\x7f\x14\xac\xb8\x0e\x89" "\x73\x1c\x04\x2b\xbb\xbe\x3d\xcd\x05\x17\x7b\x0e\xe0\xee\xc2\x34\x55" "\x83\x0e\xf5\xb6\x5a\xca\x35\x7f\x2b\x0b\x88\x7e\x0b\x98\x21\xc0", 4096); *(uint64_t*)0x200003a8 = 0x1000; *(uint64_t*)0x200003b0 = 0x20000340; memcpy((void*)0x20000340, "\xb7\x68\xeb\x20\x30\x4f\x2f\xdc\x5a\x96\x94\xa4\x86\x78\x40\xd9" "\x31\x70\xca\x1a\x86\x40\x6f", 23); *(uint64_t*)0x200003b8 = 0xfffffec0; *(uint64_t*)0x200003d8 = 4; *(uint64_t*)0x200003e0 = 0; *(uint64_t*)0x200003e8 = 0; *(uint32_t*)0x200003f0 = 0x8010; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x200003c0ul, /*f=*/0ul); break; case 2: *(uint64_t*)0x20003b00 = 0; *(uint32_t*)0x20003b08 = 0; *(uint64_t*)0x20003b10 = 0; *(uint64_t*)0x20003b18 = 0; *(uint64_t*)0x20003b20 = 0; *(uint64_t*)0x20003b28 = 0; *(uint32_t*)0x20003b30 = 0; *(uint32_t*)0x20003b38 = 0; *(uint64_t*)0x20003b40 = 0; *(uint32_t*)0x20003b48 = 0; *(uint64_t*)0x20003b50 = 0; *(uint64_t*)0x20003b58 = 0; *(uint64_t*)0x20003b60 = 0; *(uint64_t*)0x20003b68 = 0; *(uint32_t*)0x20003b70 = 0; *(uint32_t*)0x20003b78 = 0; *(uint64_t*)0x20003b80 = 0; *(uint32_t*)0x20003b88 = 0; *(uint64_t*)0x20003b90 = 0; *(uint64_t*)0x20003b98 = 0; *(uint64_t*)0x20003ba0 = 0; *(uint64_t*)0x20003ba8 = 0; *(uint32_t*)0x20003bb0 = 0; *(uint32_t*)0x20003bb8 = 0; syscall(__NR_sendmmsg, /*fd=*/r[1], /*mmsg=*/0x20003b00ul, /*vlen=*/3ul, /*f=*/0ul); break; case 3: syscall(__NR_dup2, /*oldfd=*/r[1], /*newfd=*/r[0]); break; case 4: *(uint32_t*)0x20000040 = -1; syscall(__NR_setsockopt, /*fd=*/r[0], /*level=*/1, /*optname=*/0x21, /*optval=*/0x20000040ul, /*optlen=*/4ul); break; case 5: *(uint64_t*)0x20002700 = 0; *(uint32_t*)0x20002708 = 0; *(uint64_t*)0x20002710 = 0; *(uint64_t*)0x20002718 = 0; *(uint64_t*)0x20002720 = 0x20002880; *(uint64_t*)0x20002728 = 0x38; *(uint32_t*)0x20002730 = 0; *(uint32_t*)0x20002738 = 0; *(uint64_t*)0x20002740 = 0; *(uint32_t*)0x20002748 = 0; *(uint64_t*)0x20002750 = 0; *(uint64_t*)0x20002758 = 0; *(uint64_t*)0x20002760 = 0; *(uint64_t*)0x20002768 = 0; *(uint32_t*)0x20002770 = 0; *(uint32_t*)0x20002778 = 0; *(uint64_t*)0x20002780 = 0; *(uint32_t*)0x20002788 = 0; *(uint64_t*)0x20002790 = 0x20001480; *(uint64_t*)0x20001480 = 0x20000fc0; memcpy( (void*)0x20000fc0, "\x4b\x56\x49\x9b\x28\xc6\x64\x16\xd8\x3e\x88\xb1\xc4\x77\x32\xee\x16" "\x3c\x55\xf1\xba\xdf\x70\x49\x47\x2b\x77\x91\xd6\x80\x4c\x28\x6c\x2e" "\x2e\xef\xb2\xe7\x34\x71\x7f\xb2\x6c\x75\xa7\x60\xfb\xd5\xed\x82\x50" "\x98\x8d\x82\x64\xeb\x7c\x6e\xb4\x4c\x7d\x63\xae\xa5\x6a\xba\x81\xa0" "\x41\xbf\x05\xd7\x8b\x41\x4f\x17\x93\xa1\x56\x1d\x79\x7b\xad\x2e\x5d" "\x25\x13\x93\xb1\x82\x2f\x2b\x9b\xff\x11\x2e\xc9\x62\x9b\x3b\x4e\xbb" "\xf6\xa8\x90\xf1\xa6\x98\x85\x8b\x1a\x5a\x39\xb0\xc0\x9b\x7e\x32\x66" "\x67\x13\xed\x27\x49\x25\xf9\xb1\xd2\x81\x91\x5d\xb5\x9e\x05\x8a\xd9" "\x4d\xe3\xdc\xa6\x02\xa1\xc6\x37\x75\xde\x43\x91\xec\x0c", 150); *(uint64_t*)0x20001488 = 0x96; *(uint64_t*)0x20001490 = 0x20001080; memcpy( (void*)0x20001080, "\x53\x31\x8b\x07\xe3\x95\x2c\xdf\x5c\x10\x29\x6f\x40\x7a\x1a\xd6\x8a" "\x70\x59\xe3\x23\x3c\x2f\x5c\xda\x46\xb1\x0e\x52\x60\x27\xfd\xc2\x1b" "\x7d\xc3\xdb\x9a\xed\x51\x85\x39\x0d\x40\xc5\x40\x23\xb2\x53\x65\x30" "\xa3\x3c\x1c\x9b\x0c\x14\xf4\x04\x34\x8c\x5c\xa7\xe9\xbe\x70\x67\xc4" "\x8f\xd6\xd4\x13\xcc\xd3\x54\xe7\x61\xe2\xcb\x66\x07\x1d\x89\xc1\x74" "\x66\x12\xad\xf4\x65\x8f\x84\x55\x11\x44\xf8\xc2\x59\x7a\x67\x7e\xb5" "\xf1\x50\xa8\xe8\x1d\x14\x7a\xaf\xfe\x34\xcd\xf8\xdc\xe4\x8e\x4d\xff" "\x10\x9f\x96\xc3\xa7\x9e\xac\x7d\xa5\xb2\x65\xc7\x0a\xb7\x89\xbd\xdb" "\x55\x8d\xc0\x35\x42\x9d\xe7\xe2\xcf\xbb\x6b\xba\x82\x51\xc9\xe6\xc4" "\x92\x07\xec\x2a\xea\xca\x43\xe8\x8b\xf9\x80\x73\xad\x26\x4c\x19\x0e" "\x90\x1a\x27\xe0\x87\x8e\x17\x88\x5e\x29\x8c\xa5\x72\xb3\x61\x01\xe8" "\xff\x80\xcf\xb4\x0e\x98\x59\x8f\xb7\xf8\xe8\x33\x51\xac\x0e", 202); *(uint64_t*)0x20001498 = 0xca; *(uint64_t*)0x200014a0 = 0x20001180; memcpy((void*)0x20001180, "\x3f\x93\xfa\x9f\x6a\x19\x71\xcd\x92\x3f\xe7\x8a\x48\xbd\x74\x79" "\x77\x1e\xb4\xee\xcb\xf1\xc1\x60\x2a\x4e\xc9\xcb\xe2\x86\x36\x75" "\x0f\x78\x8f\xbc\x67\xd7\x5b\x54\x20\x2e\xb2\x06\x11\x61\x06\x00" "\x92\xcd\x38\x9e\xc2\xff\x19\xaf\x1a\x77\xdf\x09\x16\x66\x0f\x83" "\x5a\x13\x24\x0b\x4e\x4d\x6e\xbd\xbb\x15\xa3\x54\xe8\x48\xba\x90" "\x73\xa7\xa8\x70\x8b\xcb\xc3\x48\x08\xc5\xd2\xdd\x22\xc5\xae\xdf", 96); *(uint64_t*)0x200014a8 = 0x60; *(uint64_t*)0x200014b0 = 0x20004e80; memcpy( (void*)0x20004e80, "\xc5\xe8\x89\xab\x2e\x17\x2e\x92\xee\xa7\x91\xdf\x0b\x22\x95\x85\x0f" "\x1d\x61\xd5\x20\x59\xd2\xee\x94\xef\xa1\x88\x07\x84\x2c\xa6\xa1\xc3" "\x25\x46\xfa\xc5\x50\xe8\x5e\xbc\xe1\xee\x36\xa5\x1d\xa9\x0e\xd8\x3e" "\x85\x08\xe2\x45\x49\x2c\xdf\x96\xf3\x20\x4b\xa9\x7f\x37\xf8\xa6\xea" "\x76\x22\x03\xb0\x71\x6f\x84\xe8\xac\x2c\x34\x15\xa0\xfd\x24\x5e\x71" "\xe3\xd6\xc1\x29\xa0\x4a\xe8\xc0\x0c\xd2\x20\xa1\x24\x03\xcc\x46\xb1" "\x74\x22\x90\xa4\x2b\x61\xba\xcf\x89\x75\x30\xe6\xfb\xe5\xbf\xb7\xf5" "\xc9\x4b\x7b\x32\x88\xf9\xf7\x63\xa4\x31\x6b\x09\x9a\x45\x6a\x24\xea" "\x5c\xbb\xb5\x18\xc0\xfc\x6f\x74\x49\xb4\xf3\x59\x91\x22\xf1\xc9\xfd" "\xfc\x2a\xaf\x64\x97\xa7\xf2\x96\x4a\x1d\x06\xea\xe7\xfe\x6f\xa7\x9e" "\xc9\xd6\x80\xa9\x87\xbe\x71\x30\x41\x9a\xbd\xf5\xfe\x6d\x15\x7a\xfb" "\xa4\xa8\xeb\xf7\xd1\x20\x63\x73\x51\xbc\x36\x18\xd1\x1a\x64\x70\x08" "\x9b\x60\x8b\xe6\x44\x08\xe5\x3a\x0a\xfa\x8a\xe8\x33\xa7\x52\x21\x0b" "\xd8\x1d\x0e\x87\xb6\x56\xa0\x6f\xcd\x94\xf3\x8d\x38\x74\x8b\x23\x16" "\x0b\x96\x54\x37\xe9\x4c\x7f\xec\x84\x77\x3f\x8f\x37\x04\xb0\x38\x04" "\x99\x4f\x08\x10\x56\xde\xa2\x42\x76\x93\x78\xa1\xf8\x15\x47\xad\x12" "\x0a\x0f\x0e\x83\x5c\x00\x98\xbf\xef\xa4\x46\x96\x69\xe5\x70\x78\x61" "\xb5\x20\x03\x9b\x58\xce\xb1\x31\x26\xdc\xae\x3c\xfc\x4f\x7f\xd8\x2c" "\xca\x08\xdc\x27\xa4\xac\xf9\x87\x2b\x21\x69\x50\x7c\xa8\x19\x68\xbc" "\x62\xc2\x38\x3f\x20\x8f\xdd\xee\xe8\x54\x47\x48\x6b\x9a\xb5\xbc\x81" "\x84\x63\x74\x88\xe9\x7e\xaf\x49\x29\xd0\xde\x88\x7b\xd0\xa1\x61\x7b" "\x0c\xef\xeb\xb6\x2d\xd5\xd6\x45\x67\xf6\x91\x90\x08\xe8\x92\xa3\x1a" "\xc5\x41\xf5\xe5\x8b\x8d\x44\x85\x35\x91\x93\xb9\xa7\x6f\x4b\xd2\x64" "\xea\x2e\xdb\x00\x87\x9a\x3d\xef\x25\xfe\xac\xd3\x87\x50\x36\xba\xcc" "\xd3\x7a\xcf\x2f\xc8\xbf\x31\x3c\x6d\x25\x98\x82\xa7\x90\x32\x91\x60" "\xc0\xa4\xc9\x5b\xe1\x3c\x59\x58\x5e\x55\xd4\x8f\xa8\xc2\x54\xfd\x67" "\xd4\x0b\x74\x68\x8b\x56\x7a\xdd\xeb\xc4\xeb\x87\xdc\xc2\x00\x1c\x66" "\x25\x8f\x72\x2e\xdf\x5c\x1a\xe3\xe7\xff\xe3\x83\x32\xe0\xab\x7e\x97" "\xe9\x22\xef\xa3\x6f\xa2\x32\x71\xe0\x7c\xad\xeb\xea\x1b\xa7\xd3\xf0" "\xc0\xe6\xb6\x67\x16\x6d\x4f\x89\xa3\x1f\x41\x02\x84\x48\xd4\xcb\xb6" "\x10\xaa\x00\x6d\xa9\xb7\xde\xbe\xd3\x0e\xc0\xfc\x03\xb1\x7c\xcf\xed" "\xf2\x64\x41\xca\x71\x81\x2d\x6c\x0d\x59\x19\xaf\x17\x07\x8d\xd7\x69" "\x7a\xe2\x6a\x62\xa3\x8b\xb2\x9f\xd0\x51\xab\x46\x28\x36\x1d\x0e\x3b" "\x60\xcf\xd0\x1d\x13\x38\xd8\xc7\x97\x36\x5f\x08\x50\x21\x5b\xce\x25" "\x9a\x88\xc3\xf1\xcb\xf8\x95\x41\x42\xbc\x95\x10\xf9\xec\x34\xe4\x2c" "\x04\x6b\x87\x0a\x1d\x43\x55\x8c\xce\x83\x79\x2b\x0e\x53\x24\x60\xea" "\x99\xb3\xf5\x62\x2f\x7a\x5d\xbb\x6c\xbe\x55\xee\xa6\xdd\xa6\xc1\xba" "\x4e\xfa\x83\xdb\x58\xb6\xdd\x5b\x71\x0e\x97\x55\xb6\x4f\xe3\x58\xf4" "\x03\x23\xfd\xd7\xd4\xc2\x33\x61\x2f\x44\x69\xd1\x3f\xaf\x52\x91\x1b" "\x90\xc9\xc5\xce\x20\xd3\x43\xbc\x26\x1e\xa5\x96\x49\xa9\x53\xe6\x2b" "\x3c\x57\x63\x7c\x5c\xfd\xd4\xd1\x3a\x91\x84\x09\x65\x7e\x52\x5b\x31" "\xaa\xa9\x64\xd5\x2e\x02\xde\x7e\x5b\x2b\x9b\x86\x04\xca\x53\xf8\x29" "\xc8\x8f\xdb\xfe\xde\xbb\x3c\x75\xc2\xab\x7b\xe0\x50\x27\x3e\x32\xa5" "\x5f\x1c\xf2\x17\x60\x4b\x65\xb5\x29\x51\x23\xce\xdf\xed\x95\xc4\x3e" "\x94\x59\x96\x38\x57\x62\xfb\xc3\x93\xd1\x45\xab\xe8\x14\xca\x0b\x6a" "\x97\xb3\x7d\x00\x85\x1d\x57\x36\x88\x13\xc6\xe0\xcb\x5b\xc9\x7e\x53" "\x75\x82\xdb\x42\x07\x66\xad\xdd\x2c\xe8\x88\xbc\xa1\xac\x9c\x73\xa0" "\x0d\x56\xd8\x93\x87\xa7\x9a\xfe\x87\x71\xc9\x22\x4a\x77\x92\x74\x1b" "\x72\x5f\x1c\x74\x5d\x2e\x73\xe5\x47\x23\x72\xb6\x1e\x46\x44\xa5\xc4" "\x91\x01\x3e\x9e\xb2\x07\xc5\x11\x3c\x23\x59\x75\x13\xe6\x75\x92\xb8" "\x72\x1a\x74\x48\x69\x0a\x88\xcc\x46\xf2\xf5\x9a\xaa\x48\xf5\x45\x3b" "\x0a\xa6\xad\xfd\x9e\x95\xe4\x4d\xa1\x16\x30\x8c\x36\x1d\x62\xa7\xbd" "\xeb\x31\x73\xe5\x07\x75\x11\xc6\xa0\xdc\x37\xb6\xa4\xc6\xe0\x42\x19" "\x89\xff\x2c\xaa\xb7\x06\xf2\xda\xaa\xf0\xe6\xc4\x20\xbe\x2b\x0b\xfd" "\xa0\xfc\xaa\x29\xf9\x3d\x12\xaf\x0a\x48\xac\x25\x34\x01\xe7\x91\xb1" "\xab\x6e\xb8\xae\x22\x68\x1c\xae\x57\xdc\xdb\x26\x1b\xad\x1e\xdb\xcf" "\xa9\xeb\xa0\x8c\x4c\x3b\x85\x50\xa2\xdb\xf3\x00\x16\x54\x69\x09\x89" "\x07\x80\xee\xcc\xcc\xc0\x93\xe7\x67\xee\xce\xb6\x4b\x45\xc0\x39\x84" "\xb7\x0d\x14\x10\x8f\x71\x75\xe4\xe5\x0e\x7d\xdf\xcb\x7f\x03\x3e\xba" "\x3f", 1004); *(uint64_t*)0x200014b8 = 0x3ec; *(uint64_t*)0x200014c0 = 0; *(uint64_t*)0x200014c8 = 0; *(uint64_t*)0x200014d0 = 0; *(uint64_t*)0x200014d8 = 0; *(uint64_t*)0x200014e0 = 0x20001380; memcpy( (void*)0x20001380, "\xea\x16\x72\xb9\x79\x90\x3a\xbf\xda\xf0\x38\xf5\xc4\x67\xb5\x6c\xdf" "\xff\x2a\x22\xcb\x8f\x35\x7b\x96\xbe\xc3\xee\xac\xb8\x8b\x57\x8a\x94" "\x64\xef\xfb\xd1\xe1\x6f\x5e\x5d\x84\xdf\x4d\x3c\x2a\x20\x9b", 49); *(uint64_t*)0x200014e8 = 0x31; *(uint64_t*)0x20002798 = 7; *(uint64_t*)0x200027a0 = 0; *(uint64_t*)0x200027a8 = 0; *(uint32_t*)0x200027b0 = 0; *(uint32_t*)0x200027b8 = 0; *(uint64_t*)0x200027c0 = 0; *(uint32_t*)0x200027c8 = 0; *(uint64_t*)0x200027d0 = 0; *(uint64_t*)0x200027d8 = 0; *(uint64_t*)0x200027e0 = 0; *(uint64_t*)0x200027e8 = 0; *(uint32_t*)0x200027f0 = 0; *(uint32_t*)0x200027f8 = 0; syscall(__NR_sendmmsg, /*fd=*/r[0], /*mmsg=*/0x20002700ul, /*vlen=*/4ul, /*f=*/0ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); loop(); return 0; }