// https://syzkaller.appspot.com/bug?id=1dbd4274debfac1ad27c5a1472907d69b91d2896 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) struct fs_image_segment { void* data; uintptr_t size; uintptr_t offset; }; #define IMAGE_MAX_SEGMENTS 4096 #define IMAGE_MAX_SIZE (129 << 20) static unsigned long fs_image_segment_check(unsigned long size, unsigned long nsegs, struct fs_image_segment* segs) { if (nsegs > IMAGE_MAX_SEGMENTS) nsegs = IMAGE_MAX_SEGMENTS; for (size_t i = 0; i < nsegs; i++) { if (segs[i].size > IMAGE_MAX_SIZE) segs[i].size = IMAGE_MAX_SIZE; segs[i].offset %= IMAGE_MAX_SIZE; if (segs[i].offset > IMAGE_MAX_SIZE - segs[i].size) segs[i].offset = IMAGE_MAX_SIZE - segs[i].size; if (size < segs[i].offset + segs[i].offset) size = segs[i].offset + segs[i].offset; } if (size > IMAGE_MAX_SIZE) size = IMAGE_MAX_SIZE; return size; } static int setup_loop_device(long unsigned size, long unsigned nsegs, struct fs_image_segment* segs, const char* loopname, int* memfd_p, int* loopfd_p) { int err = 0, loopfd = -1; size = fs_image_segment_check(size, nsegs, segs); int memfd = syscall(__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) { struct fs_image_segment* segs = (struct fs_image_segment*)segments; int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!segs; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(size, nsegs, segs, loopname, &memfd, &loopfd) == -1) return -1; source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; } error_clear_loop: if (need_loop_device) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); close(memfd); } errno = err; return res; } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; 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); install_segv_handler(); intptr_t res = 0; NONFAILING(memcpy((void*)0x20000000, "udf\000", 4)); NONFAILING(memcpy((void*)0x20000100, "./file0\000", 8)); NONFAILING(*(uint64_t*)0x20000200 = 0x20010000); NONFAILING(memcpy((void*)0x20010000, "\000BEA01", 6)); NONFAILING(*(uint64_t*)0x20000208 = 6); NONFAILING(*(uint64_t*)0x20000210 = 0x8000); NONFAILING(*(uint64_t*)0x20000218 = 0x20010100); NONFAILING(memcpy((void*)0x20010100, "\000NSR03", 6)); NONFAILING(*(uint64_t*)0x20000220 = 6); NONFAILING(*(uint64_t*)0x20000228 = 0x8800); NONFAILING(*(uint64_t*)0x20000230 = 0x20010300); NONFAILING(memcpy( (void*)0x20010300, "\x01\x00\x03\x00\x12\x00\x01\x00\xcb\xf1\xf0\x01\x60\x00\x00\x00\x01\x00" "\x00\x00\x00\x00\x00\x00\x08\x4c\x69\x6e\x75\x78\x55\x44\x46\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x09\x01\x00\x01\x00\x03\x00\x03\x00\x01\x00\x00\x00\x01\x00\x00\x00" "\x08\x31\x32\x33\x34\x35\x36\x37\x38\x31\x32\x33\x34\x35\x36\x37\x38\x4c" "\x69\x6e\x75\x78\x55\x44\x46", 97)); NONFAILING(*(uint64_t*)0x20000238 = 0x61); NONFAILING(*(uint64_t*)0x20000240 = 0xc000); NONFAILING(*(uint64_t*)0x20000248 = 0x20010400); NONFAILING(memcpy( (void*)0x20010400, "\x00\x00\x00\x00\x00\x00\x00\x19\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70" "\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55" "\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x6d\x6b" "\x75\x64\x66\x66\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00" "\x00\x00\x00\x00\x78\x10\xe4\x07\x09\x13\x14\x2c\x16\x43\x09\x2d\x00\x2a" "\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x04\x05", 222)); NONFAILING(*(uint64_t*)0x20000250 = 0xde); NONFAILING(*(uint64_t*)0x20000258 = 0xc0c0); NONFAILING(*(uint64_t*)0x20000260 = 0x20010500); NONFAILING(memcpy( (void*)0x20010500, "\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\x06\x00\x03\x00" "\x61\x00\x01\x00\xfd\x10\xe8\x01\x61\x00\x00\x00\x02\x00\x00\x00\x00\x4f" "\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69" "\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\x4c\x69\x6e\x75\x78\x55\x44\x46", 125)); NONFAILING(*(uint64_t*)0x20000268 = 0x7d); NONFAILING(*(uint64_t*)0x20000270 = 0xc1e0); NONFAILING(*(uint64_t*)0x20000278 = 0x20010600); NONFAILING(memcpy( (void*)0x20010600, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x09\x00\x02\x00\x00\x00\x2a\x4f\x53\x54\x41\x20\x55\x44\x46\x20\x43" "\x6f\x6d\x70\x6c\x69\x61\x6e\x74\x00\x00\x00\x00\x01\x02\x00\x00\x00\x00" "\x00\x00\x00\x02\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x40\x00\x00\x00\x01\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44" "\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05", 106)); NONFAILING(*(uint64_t*)0x20000280 = 0x6a); NONFAILING(*(uint64_t*)0x20000288 = 0xc2c0); NONFAILING(*(uint64_t*)0x20000290 = 0x20010700); NONFAILING(memcpy( (void*)0x20010700, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40" "\x00\x00\x80\x00\x00\x00\x02\x40\x00\x00\x00\x2a\x55\x44\x46\x20\x53\x70" "\x61\x72\x61\x62\x6c\x65\x20\x50\x61\x72\x74\x69\x74\x69\x6f\x6e\x01\x02" "\x04\x05\x00\x00\x00\x00\x01\x00\x00\x00\x20\x00\x02\x00\x38\x01\x00\x00" "\xa0\x00\x00\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x05\x00\x03\x00\x33\x00\x01\x00\xcd\x0a\xf0\x01" "\x62\x00\x00\x00\x05\x00\x00\x00\x01\x00\x00\x00\x00\x2b\x4e\x53\x52\x30" "\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" "\x02", 162)); NONFAILING(*(uint64_t*)0x20000298 = 0xa2); NONFAILING(*(uint64_t*)0x200002a0 = 0xc3a0); NONFAILING(*(uint64_t*)0x200002a8 = 0x20010800); NONFAILING( memcpy((void*)0x20010800, "\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\x20\x05\x00\x00" "\xa0\x02\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46" "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05", 62)); NONFAILING(*(uint64_t*)0x200002b0 = 0x3e); NONFAILING(*(uint64_t*)0x200002b8 = 0xc4a0); NONFAILING(*(uint64_t*)0x200002c0 = 0x20011100); NONFAILING( memcpy((void*)0x20011100, "\x02\x00\x03\x00\xfe\x00\x01\x00\x8f\x77\xf0\x01\x00\x01\x00\x00" "\x00\x40\x00\x00\x60\x00\x00\x00\x00\x40\x00\x00\xc0\x07", 30)); NONFAILING(*(uint64_t*)0x200002c8 = 0x1e); NONFAILING(*(uint64_t*)0x200002d0 = 0x20000); NONFAILING(*(uint64_t*)0x200002d8 = 0x20011200); NONFAILING(memcpy((void*)0x20011200, "\x08\x01\x03\x00\x2e\x00\x01\x00\xc0\x59\x08\x00\x00\x00" "\x00\x00\xa0\x02\x00\x00\x54\x00\x00\x00\xfe", 25)); NONFAILING(*(uint64_t*)0x200002e0 = 0x19); NONFAILING(*(uint64_t*)0x200002e8 = 0xa4000); NONFAILING(*(uint64_t*)0x200002f0 = 0x20000140); NONFAILING(memcpy( (void*)0x20000140, "\x00\x01\x03\x00\x6e\x00\x01\x00\x3a\x1e\xf0\x01\x20\x00\x00\x00\x78\x10" "\xe4\x07\x09\x13\x14\x2c\x16\x43\x09\x2d\x03\x00\x03\x00\x01\x00\x00\x00" "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4f\x53\x54\x41\x20" "\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69\x63\x6f\x64\x65" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x4c\x69\x6e\x75\x78\x55\x44\x46", 121)); NONFAILING(*(uint64_t*)0x200002f8 = 0x79); NONFAILING(*(uint64_t*)0x20000300 = 0xa8000); NONFAILING(*(uint64_t*)0x20000308 = 0x20011400); NONFAILING(memcpy( (void*)0x20011400, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x4f" "\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69" "\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\x4c\x69\x6e\x75\x78\x55\x44\x46\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x09\x08\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a" "\x08\x41\x62\x73\x74\x72\x61\x63\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x02\x00\x00" "\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x4f\x53\x54\x41" "\x20\x55\x44\x46\x20\x43\x6f\x6d\x70\x6c\x69\x61\x6e\x74\x00\x00\x00\x00" "\x01\x02\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\x40", 245)); NONFAILING(*(uint64_t*)0x20000310 = 0xf5); NONFAILING(*(uint64_t*)0x20000318 = 0xa80e0); NONFAILING(*(uint64_t*)0x20000320 = 0x20011700); NONFAILING(memcpy( (void*)0x20011700, "\x0a\x01\x03\x00\xed\x00\x01\x00\xc6\xe7\xd0\x01\x60\x00\x00\x00\x00\x00" "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x04\x00\x00\x00\x00\x00\x00\x03\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x3c\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x08\x01\x00\x00\x00\x00\x00\x00\x08\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe4\x07\x09\x13\x12\x2c\x16\x43" "\x09\x2d\x00\x10\xe4\x07\x09\x13\x12\x2c\x17\x09\x36\x35\x00\x10\xe4\x07" "\x09\x13\x12\x2c\x16\x43\x09\x2d\x00\x10\xe4\x07\x09\x13\x12\x2c\x17\x09" "\x36\x35\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46" "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x01\x00\x00" "\x01\x01\x03\x00\x85\x00\x01\x00\x33\xd4\x18\x00\x60\x00\x00\x00\x01\x00" "\x0a\x00\x00\x02\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x01\x01\x03\x00\x87\x00\x01\x00\xe8\x1d\x1c\x00\x60\x00" "\x00\x00\x01\x00\x02\x06\x00\x02\x00\x00\x61\x00\x00\x00\x00\x00\x00\x00" "\x10\x00\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x30\x01\x01\x03\x00\x9e\x00" "\x01\x00\x1f\xfd\x1c\x00\x60\x00\x00\x00\x01\x00\x00\x06\x00\x02\x00\x00" "\x67\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x08\x66\x69\x6c" "\x65\x31\x01\x01\x03\x00\x09\x00\x01\x00\x97\xf0\x1c\x00\x60\x00\x00\x00" "\x01\x00\x00\x06\x00\x02\x00\x00\x68\x00\x00\x00\x00\x00\x00\x00\x14\x00" "\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x32\x01\x01\x03\x00\x28\x00\x01\x00" "\xc3\xe3\x1c\x00\x60\x00\x00\x00\x01\x00\x00\x06\x00\x02\x00\x00\x68\x00" "\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x33" "\x01\x01\x03\x00\xe4\x00\x01\x00\xb7\xa7\x20\x00\x60\x00\x00\x00\x01\x00" "\x00\x0a\x00\x02\x00\x00\x7b\x00\x00\x00\x00\x00\x00\x00\x16\x00\x00\x00" "\x00\x00\x08\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64", 480)); NONFAILING(*(uint64_t*)0x20000328 = 0x1e0); NONFAILING(*(uint64_t*)0x20000330 = 0xb0000); NONFAILING(syz_mount_image(0x20000000, 0x20000100, 0, 0xd, 0x20000200, 0, 0x20013500)); NONFAILING(memcpy((void*)0x20000340, "memory.events\000", 14)); res = syscall(__NR_openat, 0xffffff9c, 0x20000340ul, 0x275aul, 0ul); if (res != -1) r[0] = res; NONFAILING(memcpy( (void*)0x20000380, "\xd0\x4a\xdd\xbf\x86\x00\x00\x00\x00\x00\x00\x00\x00\xe5\x00\x9f\x95\x46" "\x39\xda\xa0\x88\xa9\x3f\x12\x7e\x02\x61\x20\x34\x1c\xaf\x1e\x19\x6f\xd8" "\x0d\x6b\xe0\xfb\x7d\x67\xa8\x83\x9f\xb0\x58\x26\x0b\x76\x69\xdd\xf1\x89" "\x21\x13\x0c\x1d\xc7\x41\xc6\x6b\xa7\xc4\x8a\x93\x3c\x59\x19\xe1\x7e\xfa" "\xc3\xd9\x63\xa9\x04\xbd\x10\x0c\x98\xfc\xf5\x4d\x07\xdc\xa0\xbc\x09\x56" "\x78\x42\x8d\xb4\x4e\x9d\x4d\x7b\x20\xa4\x5f\x67\xa5\x2a\x00\x1d\x8b\x4b" "\x9f\x95\x4a\x4a\xb0\x41\x9e\x13\xe0\x96\x44\x9b\x00\x86\x3d\x16\xed\x42" "\x93\x2a\xda\x4a\x25\xec\x14\xdc\xd5\xd0\xb8\xb7\x6f\xab\x41\xbd\x0a\xe8" "\x08\xa2\x9a\xf7\x12\x26\xda\xfd\xc1\xd1\x12\x06\x68\xa7\xa4\x82\xad\xfd" "\x7c\xba\xab\x2b\xf4\xb9\x6f\xa2\x5b\x19\xc1\x62\xa4\x6f\xb7\x96\xde\xf7" "\xa8\xbc\x6f\x83\x81\xe2\x3b\xc6\xd5\xb8\x0e\x03\x3f\x01\xd0\x74\xa1\xfd" "\xcb\xc2\x60\x6f\xfb\x9b\x35\xae\x28\xa1\xef\x8a\x25\xb7\x62\xdf\xc5\x2a" "\xef\xe9\x0b\xd5\xd8\x59\xcc\x8b\xd6\x3d\x55\x86\x35\x45\xa6\xa9\xc3\x23" "\x6c\x52\x38\xbf\xef\x8c\xaf\xb0\x87\xfc\xe7\xcf\xf9\x9b\xba\x88\x21\xd7" "\x96\xa8\x41\xe7\x67\xce\xc2\x8e\xd4\x71\x44\xcf\x83\xb8\x6a\x04\x40\x9a" "\xd4\x01\x9e\x31\xc9\xc3\x9c\x94\x8c\xc2\x77\xd9\x8c\x02\xec\x75\x3f\x75" "\xac\xef\x0b\xeb\x30\x53\xab\xc4\x48\xa4\x7f\x7c\x73\x05\xb3\xcf\x51\x73" "\x63\x6d\xcd\x6a\x30\xa5\x13\xf8\xc3\xa3\x62\xfa\x46\x2a\xaf\x29\xc2\x35" "\x95\xc3\x8e\x50\xdf\x0d\xde\xbd\x33\x3b\x9d\xee\x09\xf6\x6f\x55\x8e\x1a" "\x66\x75\xfc\x0f\x9e\x60\x94\x5e\x91\xf2\xa9\x69\x81\x39\xb4\xd5\xa9\x43" "\xb1\x95\xdf\x8b\x84\x0b\x55\x8e\x4c\x62\x39\xd5\xca\xc8\x4e\xcf\x8d\x52" "\x6d\x3a\x19\xb2\x35\xc5\x0d\xef\x1c\x77\x03\x30\x1a\x3e\x4e\x70\x52\x49" "\x14\xc1\x73\x9f\x10\x1e\x66\x9d\x91\x08\xd5\x0d\x1e\xf4\xab\x20\xd7\x94" "\xf2\x99\x7b\x93\xe8\xe5\xbf\x08\x8b\xea\x71\x2a\x24\x04\x99\x97\xa2\xa3" "\x27\x12\x99\x99\x29\x87\xca\xe8\x3b\x33\x56\x48\x4b\xf1\xf3\x5a\xa8\x74" "\x46\x1a\xb2\xaf\x66\x23\x1d\x29\xa2\x1b\x56\x0f\xd6\x5c\x9d\x87\xb6\x00" "\x7a\x82\xee\xb4\x50\xcf\xff\xc0\x99", 477)); syscall(__NR_write, r[0], 0x20000380ul, 0x106ul); syscall(__NR_mmap, 0x20000000ul, 0x4000ul, 1ul, 0x10012ul, r[0], 0ul); NONFAILING(memcpy((void*)0x20021000, "./file0\000", 8)); res = syscall(__NR_open, 0x20021000ul, 0ul, 0ul); if (res != -1) r[1] = res; syscall(__NR_fchdir, r[1]); NONFAILING(memcpy((void*)0x20000080, "./bus\000", 6)); syscall(__NR_open, 0x20000080ul, 0x12e42ul, 0ul); NONFAILING(memcpy((void*)0x200000c0, "./file0\000", 8)); syscall(__NR_mount, 0ul, 0x200000c0ul, 0ul, 0ul, 0ul); return 0; }