// https://syzkaller.appspot.com/bug?id=efc234d0d3f0d6b900fe67b5334dc76cde55dbd4 // 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 static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } #define MAX_FDS 30 static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setsid(); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 0; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } loop(); exit(1); } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } 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(); close_fds(); 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[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0}; void execute_one(void) { intptr_t res = 0; res = syscall(__NR_socket, 0x1000000010ul, 0x80002ul, 0); if (res != -1) r[0] = res; res = syscall(__NR_socket, 0x10ul, 0x803ul, 0); if (res != -1) r[1] = res; *(uint64_t*)0x20000280 = 0; *(uint32_t*)0x20000288 = 0; *(uint64_t*)0x20000290 = 0x20000180; *(uint64_t*)0x20000180 = 0; *(uint64_t*)0x20000188 = 0; *(uint64_t*)0x20000298 = 1; *(uint64_t*)0x200002a0 = 0; *(uint64_t*)0x200002a8 = 0; *(uint32_t*)0x200002b0 = 0; syscall(__NR_sendmsg, r[1], 0x20000280ul, 0ul); *(uint32_t*)0x20000200 = 0x14; res = syscall(__NR_getsockname, r[1], 0x20000100ul, 0x20000200ul); if (res != -1) r[2] = *(uint32_t*)0x20000104; *(uint64_t*)0x20000240 = 0; *(uint32_t*)0x20000248 = 0; *(uint64_t*)0x20000250 = 0x20000140; *(uint64_t*)0x20000140 = 0x200000c0; memcpy((void*)0x200000c0, "\x38\x00\x00\x00\x24\x00\x07\x05\x00\x00\x00\x40" "\x07\xa2\xa3\x00\x05\x00\x00\x00", 20); *(uint32_t*)0x200000d4 = r[2]; memcpy((void*)0x200000d8, "\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00" "\x09\x00\x01\x00\x68\x66\x73\x63\x00\x00\x00\x00" "\x08\x00\x02", 27); *(uint64_t*)0x20000148 = 0x38; *(uint64_t*)0x20000258 = 1; *(uint64_t*)0x20000260 = 0; *(uint64_t*)0x20000268 = 0; *(uint32_t*)0x20000270 = 0; syscall(__NR_sendmsg, -1, 0x20000240ul, 0ul); *(uint64_t*)0x20000440 = 0; *(uint32_t*)0x20000448 = 0; *(uint64_t*)0x20000450 = 0x20000180; *(uint64_t*)0x20000180 = 0x20000480; *(uint32_t*)0x20000480 = 0x4d4; *(uint16_t*)0x20000484 = 0x2c; *(uint16_t*)0x20000486 = 0xd27; *(uint32_t*)0x20000488 = 0; *(uint32_t*)0x2000048c = 0; *(uint8_t*)0x20000490 = 0; *(uint8_t*)0x20000491 = 0; *(uint16_t*)0x20000492 = 0; *(uint32_t*)0x20000494 = r[2]; *(uint16_t*)0x20000498 = 0; *(uint16_t*)0x2000049a = 0; *(uint16_t*)0x2000049c = 0; *(uint16_t*)0x2000049e = 0; *(uint16_t*)0x200004a0 = 4; *(uint16_t*)0x200004a2 = 0; *(uint16_t*)0x200004a4 = 0xa; *(uint16_t*)0x200004a6 = 1; memcpy((void*)0x200004a8, "rsvp6\000", 6); *(uint16_t*)0x200004b0 = 0x4a4; *(uint16_t*)0x200004b2 = 2; *(uint16_t*)0x200004b4 = 8; *(uint16_t*)0x200004b6 = 1; *(uint16_t*)0x200004b8 = 7; *(uint16_t*)0x200004ba = 0xb; *(uint16_t*)0x200004bc = 8; *(uint16_t*)0x200004be = 1; *(uint16_t*)0x200004c0 = 0xd; *(uint16_t*)0x200004c2 = 0xfff2; *(uint16_t*)0x200004c4 = 0x474; *(uint16_t*)0x200004c6 = 5; *(uint16_t*)0x200004c8 = 0xc; *(uint16_t*)0x200004ca = 9; *(uint64_t*)0x200004cc = 0x3ff; *(uint16_t*)0x200004d4 = 0x3c; *(uint16_t*)0x200004d6 = 1; *(uint32_t*)0x200004d8 = 0x80000001; *(uint32_t*)0x200004dc = 7; *(uint32_t*)0x200004e0 = 0x10001; *(uint32_t*)0x200004e4 = 8; *(uint32_t*)0x200004e8 = 0x7fff; *(uint8_t*)0x200004ec = 3; *(uint8_t*)0x200004ed = 0; *(uint16_t*)0x200004ee = 5; *(uint16_t*)0x200004f0 = 8; *(uint16_t*)0x200004f2 = 0x3ff; *(uint32_t*)0x200004f4 = 0; *(uint8_t*)0x200004f8 = 0x89; *(uint8_t*)0x200004f9 = 2; *(uint16_t*)0x200004fa = 0x20; *(uint16_t*)0x200004fc = 7; *(uint16_t*)0x200004fe = 0x4c; *(uint32_t*)0x20000500 = 6; *(uint32_t*)0x20000504 = 0x1f; *(uint32_t*)0x20000508 = 0x77; *(uint32_t*)0x2000050c = 0; *(uint16_t*)0x20000510 = 8; *(uint16_t*)0x20000512 = 5; *(uint32_t*)0x20000514 = 0xdd61; *(uint16_t*)0x20000518 = 0xc; *(uint16_t*)0x2000051a = 9; *(uint64_t*)0x2000051c = 0; *(uint16_t*)0x20000524 = 8; *(uint16_t*)0x20000526 = 5; *(uint32_t*)0x20000528 = 1; *(uint16_t*)0x2000052c = 0x404; *(uint16_t*)0x2000052e = 3; *(uint32_t*)0x20000530 = 0x4800000; *(uint32_t*)0x20000534 = 0x91a7; *(uint32_t*)0x20000538 = 0x10000; *(uint32_t*)0x2000053c = 2; *(uint32_t*)0x20000540 = 0x20; *(uint32_t*)0x20000544 = 5; *(uint32_t*)0x20000548 = 9; *(uint32_t*)0x2000054c = 4; *(uint32_t*)0x20000550 = 0x53; *(uint32_t*)0x20000554 = 0xae76; *(uint32_t*)0x20000558 = 0x401; *(uint32_t*)0x2000055c = 0x8000; *(uint32_t*)0x20000560 = 0x25; *(uint32_t*)0x20000564 = 4; *(uint32_t*)0x20000568 = 9; *(uint32_t*)0x2000056c = 4; *(uint32_t*)0x20000570 = 0; *(uint32_t*)0x20000574 = 7; *(uint32_t*)0x20000578 = 0xfff; *(uint32_t*)0x2000057c = 0xb2; *(uint32_t*)0x20000580 = 0x40000; *(uint32_t*)0x20000584 = 6; *(uint32_t*)0x20000588 = 1; *(uint32_t*)0x2000058c = 6; *(uint32_t*)0x20000590 = 0x40; *(uint32_t*)0x20000594 = 0x6e9; *(uint32_t*)0x20000598 = 1; *(uint32_t*)0x2000059c = 0x401; *(uint32_t*)0x200005a0 = 0x400; *(uint32_t*)0x200005a4 = 4; *(uint32_t*)0x200005a8 = 0x81; *(uint32_t*)0x200005ac = 0x1000; *(uint32_t*)0x200005b0 = 7; *(uint32_t*)0x200005b4 = 2; *(uint32_t*)0x200005b8 = 0x10001; *(uint32_t*)0x200005bc = 2; *(uint32_t*)0x200005c0 = 0x20; *(uint32_t*)0x200005c4 = 3; *(uint32_t*)0x200005c8 = -1; *(uint32_t*)0x200005cc = 0xc1; *(uint32_t*)0x200005d0 = 1; *(uint32_t*)0x200005d4 = 2; *(uint32_t*)0x200005d8 = 0x7fff; *(uint32_t*)0x200005dc = 0x3ff; *(uint32_t*)0x200005e0 = 6; *(uint32_t*)0x200005e4 = 0x1ff; *(uint32_t*)0x200005e8 = 1; *(uint32_t*)0x200005ec = 0x3f; *(uint32_t*)0x200005f0 = 0x3f; *(uint32_t*)0x200005f4 = 0xffff9c87; *(uint32_t*)0x200005f8 = 4; *(uint32_t*)0x200005fc = 0x401; *(uint32_t*)0x20000600 = 4; *(uint32_t*)0x20000604 = 1; *(uint32_t*)0x20000608 = 0x5cd1; *(uint32_t*)0x2000060c = 8; *(uint32_t*)0x20000610 = 8; *(uint32_t*)0x20000614 = 0x57; *(uint32_t*)0x20000618 = 0x103; *(uint32_t*)0x2000061c = 9; *(uint32_t*)0x20000620 = 0x69; *(uint32_t*)0x20000624 = 0xf7; *(uint32_t*)0x20000628 = 0x10000; *(uint32_t*)0x2000062c = 0xb0; *(uint32_t*)0x20000630 = 0x400; *(uint32_t*)0x20000634 = 5; *(uint32_t*)0x20000638 = 5; *(uint32_t*)0x2000063c = 0x80000000; *(uint32_t*)0x20000640 = 0x7f; *(uint32_t*)0x20000644 = 0x47f4; *(uint32_t*)0x20000648 = 0x3f; *(uint32_t*)0x2000064c = 0x7f; *(uint32_t*)0x20000650 = 0; *(uint32_t*)0x20000654 = 0xfffffffa; *(uint32_t*)0x20000658 = 2; *(uint32_t*)0x2000065c = 0x100000; *(uint32_t*)0x20000660 = 0x400; *(uint32_t*)0x20000664 = 0xfffffffd; *(uint32_t*)0x20000668 = 0x400; *(uint32_t*)0x2000066c = 5; *(uint32_t*)0x20000670 = 1; *(uint32_t*)0x20000674 = 0x40; *(uint32_t*)0x20000678 = 0xffff; *(uint32_t*)0x2000067c = 3; *(uint32_t*)0x20000680 = 7; *(uint32_t*)0x20000684 = 0xfffffff7; *(uint32_t*)0x20000688 = 1; *(uint32_t*)0x2000068c = 0xc7d; *(uint32_t*)0x20000690 = 9; *(uint32_t*)0x20000694 = 0x1000; *(uint32_t*)0x20000698 = 2; *(uint32_t*)0x2000069c = 0xfffffffc; *(uint32_t*)0x200006a0 = 9; *(uint32_t*)0x200006a4 = 0x7f; *(uint32_t*)0x200006a8 = 0x1f; *(uint32_t*)0x200006ac = 4; *(uint32_t*)0x200006b0 = 2; *(uint32_t*)0x200006b4 = 6; *(uint32_t*)0x200006b8 = 9; *(uint32_t*)0x200006bc = 2; *(uint32_t*)0x200006c0 = 0x800; *(uint32_t*)0x200006c4 = 0xab4; *(uint32_t*)0x200006c8 = 0x98b; *(uint32_t*)0x200006cc = 6; *(uint32_t*)0x200006d0 = 2; *(uint32_t*)0x200006d4 = 2; *(uint32_t*)0x200006d8 = 9; *(uint32_t*)0x200006dc = 0x401; *(uint32_t*)0x200006e0 = 0; *(uint32_t*)0x200006e4 = 0x8000; *(uint32_t*)0x200006e8 = 0x66; *(uint32_t*)0x200006ec = 7; *(uint32_t*)0x200006f0 = 2; *(uint32_t*)0x200006f4 = 2; *(uint32_t*)0x200006f8 = 4; *(uint32_t*)0x200006fc = 0x6c06283e; *(uint32_t*)0x20000700 = 2; *(uint32_t*)0x20000704 = 0xefe; *(uint32_t*)0x20000708 = 0x1f; *(uint32_t*)0x2000070c = 3; *(uint32_t*)0x20000710 = 0x58; *(uint32_t*)0x20000714 = 0xffff; *(uint32_t*)0x20000718 = 8; *(uint32_t*)0x2000071c = 0xf; *(uint32_t*)0x20000720 = 0x100; *(uint32_t*)0x20000724 = 0x1000; *(uint32_t*)0x20000728 = 7; *(uint32_t*)0x2000072c = 7; *(uint32_t*)0x20000730 = 4; *(uint32_t*)0x20000734 = 3; *(uint32_t*)0x20000738 = 0xa82; *(uint32_t*)0x2000073c = 7; *(uint32_t*)0x20000740 = 0x1000; *(uint32_t*)0x20000744 = 0x20; *(uint32_t*)0x20000748 = 7; *(uint32_t*)0x2000074c = 0xb8a8; *(uint32_t*)0x20000750 = 0xfff; *(uint32_t*)0x20000754 = 0x40; *(uint32_t*)0x20000758 = 0; *(uint32_t*)0x2000075c = 2; *(uint32_t*)0x20000760 = 5; *(uint32_t*)0x20000764 = 0x20000; *(uint32_t*)0x20000768 = 1; *(uint32_t*)0x2000076c = -1; *(uint32_t*)0x20000770 = 0x100; *(uint32_t*)0x20000774 = 0; *(uint32_t*)0x20000778 = 0x401; *(uint32_t*)0x2000077c = 0xfffffffe; *(uint32_t*)0x20000780 = 1; *(uint32_t*)0x20000784 = 0xaac6; *(uint32_t*)0x20000788 = 2; *(uint32_t*)0x2000078c = 0x80000001; *(uint32_t*)0x20000790 = 0; *(uint32_t*)0x20000794 = 9; *(uint32_t*)0x20000798 = 0x3f; *(uint32_t*)0x2000079c = 0xf8; *(uint32_t*)0x200007a0 = 0x2c0; *(uint32_t*)0x200007a4 = 0x1f; *(uint32_t*)0x200007a8 = 0xffff; *(uint32_t*)0x200007ac = 2; *(uint32_t*)0x200007b0 = 0x10001; *(uint32_t*)0x200007b4 = 0xffff; *(uint32_t*)0x200007b8 = 0x8000; *(uint32_t*)0x200007bc = 0x400; *(uint32_t*)0x200007c0 = 9; *(uint32_t*)0x200007c4 = 0; *(uint32_t*)0x200007c8 = 0x3bc6; *(uint32_t*)0x200007cc = 2; *(uint32_t*)0x200007d0 = 0xff; *(uint32_t*)0x200007d4 = 0x101; *(uint32_t*)0x200007d8 = 0; *(uint32_t*)0x200007dc = 0; *(uint32_t*)0x200007e0 = 0x800; *(uint32_t*)0x200007e4 = 0x101; *(uint32_t*)0x200007e8 = 0x20; *(uint32_t*)0x200007ec = 0xc3; *(uint32_t*)0x200007f0 = 0x1f; *(uint32_t*)0x200007f4 = 6; *(uint32_t*)0x200007f8 = 0xee89; *(uint32_t*)0x200007fc = 5; *(uint32_t*)0x20000800 = 0x7a2; *(uint32_t*)0x20000804 = 0xe7; *(uint32_t*)0x20000808 = 7; *(uint32_t*)0x2000080c = 0xfff; *(uint32_t*)0x20000810 = 3; *(uint32_t*)0x20000814 = 7; *(uint32_t*)0x20000818 = 0x8001; *(uint32_t*)0x2000081c = 6; *(uint32_t*)0x20000820 = 5; *(uint32_t*)0x20000824 = 4; *(uint32_t*)0x20000828 = 0xca000000; *(uint32_t*)0x2000082c = 0x800; *(uint32_t*)0x20000830 = 1; *(uint32_t*)0x20000834 = 4; *(uint32_t*)0x20000838 = 4; *(uint32_t*)0x2000083c = 0x800; *(uint32_t*)0x20000840 = 1; *(uint32_t*)0x20000844 = 8; *(uint32_t*)0x20000848 = 5; *(uint32_t*)0x2000084c = 7; *(uint32_t*)0x20000850 = 4; *(uint32_t*)0x20000854 = 0xda2; *(uint32_t*)0x20000858 = 0x89; *(uint32_t*)0x2000085c = 2; *(uint32_t*)0x20000860 = 2; *(uint32_t*)0x20000864 = 2; *(uint32_t*)0x20000868 = 0x8dbe; *(uint32_t*)0x2000086c = 4; *(uint32_t*)0x20000870 = 0x200; *(uint32_t*)0x20000874 = 0x3ff; *(uint32_t*)0x20000878 = 0x7f; *(uint32_t*)0x2000087c = 2; *(uint32_t*)0x20000880 = 8; *(uint32_t*)0x20000884 = 3; *(uint32_t*)0x20000888 = 5; *(uint32_t*)0x2000088c = 6; *(uint32_t*)0x20000890 = 4; *(uint32_t*)0x20000894 = 0x1e078bed; *(uint32_t*)0x20000898 = 7; *(uint32_t*)0x2000089c = 0x40; *(uint32_t*)0x200008a0 = 0xfffffffe; *(uint32_t*)0x200008a4 = 0xe1; *(uint32_t*)0x200008a8 = 7; *(uint32_t*)0x200008ac = 0xed; *(uint32_t*)0x200008b0 = 7; *(uint32_t*)0x200008b4 = 9; *(uint32_t*)0x200008b8 = 0xd6; *(uint32_t*)0x200008bc = 1; *(uint32_t*)0x200008c0 = 7; *(uint32_t*)0x200008c4 = 0x8000; *(uint32_t*)0x200008c8 = 1; *(uint32_t*)0x200008cc = 9; *(uint32_t*)0x200008d0 = 0xdadc; *(uint32_t*)0x200008d4 = 2; *(uint32_t*)0x200008d8 = 0x81; *(uint32_t*)0x200008dc = 0xfa; *(uint32_t*)0x200008e0 = 7; *(uint32_t*)0x200008e4 = 3; *(uint32_t*)0x200008e8 = 0x7ff; *(uint32_t*)0x200008ec = 9; *(uint32_t*)0x200008f0 = 0x7fff; *(uint32_t*)0x200008f4 = 0xe1a5; *(uint32_t*)0x200008f8 = 0x66b6; *(uint32_t*)0x200008fc = 8; *(uint32_t*)0x20000900 = 0xfff; *(uint32_t*)0x20000904 = 0; *(uint32_t*)0x20000908 = 0x8000; *(uint32_t*)0x2000090c = 8; *(uint32_t*)0x20000910 = 0xffff; *(uint32_t*)0x20000914 = 2; *(uint32_t*)0x20000918 = 4; *(uint32_t*)0x2000091c = 0xfb; *(uint32_t*)0x20000920 = 0x1ff; *(uint32_t*)0x20000924 = 0x100; *(uint32_t*)0x20000928 = 2; *(uint32_t*)0x2000092c = 0x101; *(uint16_t*)0x20000930 = 8; *(uint16_t*)0x20000932 = 5; *(uint32_t*)0x20000934 = 0x1ff; *(uint16_t*)0x20000938 = 0x14; *(uint16_t*)0x2000093a = 2; *(uint8_t*)0x2000093c = 0xfe; *(uint8_t*)0x2000093d = 0x80; *(uint8_t*)0x2000093e = 0; *(uint8_t*)0x2000093f = 0; *(uint8_t*)0x20000940 = 0; *(uint8_t*)0x20000941 = 0; *(uint8_t*)0x20000942 = 0; *(uint8_t*)0x20000943 = 0; *(uint8_t*)0x20000944 = 0; *(uint8_t*)0x20000945 = 0; *(uint8_t*)0x20000946 = 0; *(uint8_t*)0x20000947 = 0; *(uint8_t*)0x20000948 = 0; *(uint8_t*)0x20000949 = 0; *(uint8_t*)0x2000094a = 0; *(uint8_t*)0x2000094b = 0xbb; *(uint16_t*)0x2000094c = 8; *(uint16_t*)0x2000094e = 1; *(uint16_t*)0x20000950 = 7; *(uint16_t*)0x20000952 = 0xfff1; *(uint64_t*)0x20000188 = 0x4d4; *(uint64_t*)0x20000458 = 1; *(uint64_t*)0x20000460 = 0; *(uint64_t*)0x20000468 = 0; *(uint32_t*)0x20000470 = 0; syscall(__NR_sendmsg, -1, 0x20000440ul, 0ul); syscall(__NR_sendmmsg, r[0], 0x20000200ul, 0x10efe10675dec16ul, 0ul); } 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); do_sandbox_none(); return 0; }