// https://syzkaller.appspot.com/bug?id=f10ee477162a6f234fa4fc7120fa57a4586533c8 // 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 #ifndef __NR_bpf #define __NR_bpf 321 #endif 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; } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) 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"); } 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[9] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; syscall(__NR_write, /*fd=*/-1, /*buf=*/0ul, /*len=*/0ul); *(uint32_t*)0x20000180 = 0x11; *(uint32_t*)0x20000184 = 0xb; *(uint64_t*)0x20000188 = 0x20000440; *(uint8_t*)0x20000440 = 0x18; STORE_BY_BITMASK(uint8_t, , 0x20000441, 0, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000441, 0, 4, 4); *(uint16_t*)0x20000442 = 0; *(uint32_t*)0x20000444 = 0; *(uint8_t*)0x20000448 = 0; *(uint8_t*)0x20000449 = 0; *(uint16_t*)0x2000044a = 0; *(uint32_t*)0x2000044c = 0; *(uint8_t*)0x20000450 = 0x18; STORE_BY_BITMASK(uint8_t, , 0x20000451, 1, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000451, 0, 4, 4); *(uint16_t*)0x20000452 = 0; *(uint32_t*)0x20000454 = 0x25782020; *(uint8_t*)0x20000458 = 0; *(uint8_t*)0x20000459 = 0; *(uint16_t*)0x2000045a = 0; *(uint32_t*)0x2000045c = 0x20202000; STORE_BY_BITMASK(uint8_t, , 0x20000460, 3, 0, 3); STORE_BY_BITMASK(uint8_t, , 0x20000460, 3, 3, 2); STORE_BY_BITMASK(uint8_t, , 0x20000460, 3, 5, 3); STORE_BY_BITMASK(uint8_t, , 0x20000461, 0xa, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000461, 1, 4, 4); *(uint16_t*)0x20000462 = 0xfff8; *(uint32_t*)0x20000464 = 0; STORE_BY_BITMASK(uint8_t, , 0x20000468, 7, 0, 3); STORE_BY_BITMASK(uint8_t, , 0x20000468, 1, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x20000468, 0xb, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x20000469, 1, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000469, 0xa, 4, 4); *(uint16_t*)0x2000046a = 0; *(uint32_t*)0x2000046c = 0; STORE_BY_BITMASK(uint8_t, , 0x20000470, 7, 0, 3); STORE_BY_BITMASK(uint8_t, , 0x20000470, 0, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x20000470, 0, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x20000471, 1, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000471, 0, 4, 4); *(uint16_t*)0x20000472 = 0; *(uint32_t*)0x20000474 = 0xfffffff8; STORE_BY_BITMASK(uint8_t, , 0x20000478, 7, 0, 3); STORE_BY_BITMASK(uint8_t, , 0x20000478, 0, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x20000478, 0xb, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x20000479, 2, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000479, 0, 4, 4); *(uint16_t*)0x2000047a = 0; *(uint32_t*)0x2000047c = 8; STORE_BY_BITMASK(uint8_t, , 0x20000480, 7, 0, 3); STORE_BY_BITMASK(uint8_t, , 0x20000480, 0, 3, 1); STORE_BY_BITMASK(uint8_t, , 0x20000480, 0xb, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x20000481, 3, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x20000481, 0, 4, 4); *(uint16_t*)0x20000482 = 0; *(uint32_t*)0x20000484 = 0; *(uint8_t*)0x20000488 = 0x85; *(uint8_t*)0x20000489 = 0; *(uint16_t*)0x2000048a = 0; *(uint32_t*)0x2000048c = 6; *(uint8_t*)0x20000490 = 0x95; *(uint8_t*)0x20000491 = 0; *(uint16_t*)0x20000492 = 0; *(uint32_t*)0x20000494 = 0; *(uint64_t*)0x20000190 = 0x20000100; memcpy((void*)0x20000100, "GPL\000", 4); *(uint32_t*)0x20000198 = 0; *(uint32_t*)0x2000019c = 0; *(uint64_t*)0x200001a0 = 0; *(uint32_t*)0x200001a8 = 0; *(uint32_t*)0x200001ac = 0; memset((void*)0x200001b0, 0, 16); *(uint32_t*)0x200001c0 = 0; *(uint32_t*)0x200001c4 = 0; *(uint32_t*)0x200001c8 = -1; *(uint32_t*)0x200001cc = 0; *(uint64_t*)0x200001d0 = 0; *(uint32_t*)0x200001d8 = 0; *(uint32_t*)0x200001dc = 0; *(uint64_t*)0x200001e0 = 0; *(uint32_t*)0x200001e8 = 0; *(uint32_t*)0x200001ec = 0; *(uint32_t*)0x200001f0 = 0; *(uint32_t*)0x200001f4 = 0; *(uint64_t*)0x200001f8 = 0; *(uint64_t*)0x20000200 = 0; *(uint32_t*)0x20000208 = 0; *(uint32_t*)0x2000020c = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x20000180ul, /*size=*/0x90ul); if (res != -1) r[0] = res; *(uint64_t*)0x20000240 = 0x20000080; memcpy((void*)0x20000080, "mm_page_alloc\000", 14); *(uint32_t*)0x20000248 = r[0]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000240ul, /*size=*/0x10ul); res = syscall(__NR_socket, /*domain=*/0x2cul, /*type=*/3ul, /*proto=*/0); if (res != -1) r[1] = res; *(uint64_t*)0x200000c0 = 0; *(uint64_t*)0x200000c8 = 0x1130000; *(uint32_t*)0x200000d0 = 0x1000; *(uint32_t*)0x200000d4 = 0; *(uint32_t*)0x200000d8 = 0; syscall(__NR_setsockopt, /*fd=*/r[1], /*level=*/0x11b, /*opt=*/4, /*val=*/0x200000c0ul, /*len=*/0x20ul); memcpy((void*)0x20000040, "/dev/uinput\000", 12); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000040ul, /*flags=O_RDWR_NONBLOCK*/ 0x802ul, /*mode=*/0ul); if (res != -1) r[2] = res; *(uint16_t*)0x20000340 = 0x2f; *(uint32_t*)0x20000344 = 0; *(uint32_t*)0x20000348 = 0; *(uint32_t*)0x2000034c = 0; *(uint32_t*)0x20000350 = 0; *(uint32_t*)0x20000354 = 0; *(uint32_t*)0x20000358 = 0; syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x401c5504, /*arg=*/0x20000340ul); *(uint32_t*)0x20000200 = 0x11; *(uint32_t*)0x20000204 = 4; *(uint64_t*)0x20000208 = 0x200002c0; memcpy((void*)0x200002c0, "\x18\x01\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\xea\x04\x85" "\x00\x00\x00\x6d\x00\x00\x00\x95", 25); *(uint64_t*)0x20000210 = 0x20000100; memcpy((void*)0x20000100, "GPL\000", 4); *(uint32_t*)0x20000218 = 0; *(uint32_t*)0x2000021c = 0; *(uint64_t*)0x20000220 = 0; *(uint32_t*)0x20000228 = 0; *(uint32_t*)0x2000022c = 0; memset((void*)0x20000230, 0, 16); *(uint32_t*)0x20000240 = 0; *(uint32_t*)0x20000244 = 2; *(uint32_t*)0x20000248 = -1; *(uint32_t*)0x2000024c = 8; *(uint64_t*)0x20000250 = 0; *(uint32_t*)0x20000258 = 0; *(uint32_t*)0x2000025c = 0x10; *(uint64_t*)0x20000260 = 0; *(uint32_t*)0x20000268 = 0; *(uint32_t*)0x2000026c = 0; *(uint32_t*)0x20000270 = 0; *(uint32_t*)0x20000274 = 0; *(uint64_t*)0x20000278 = 0; *(uint64_t*)0x20000280 = 0; *(uint32_t*)0x20000288 = 0x10; *(uint32_t*)0x2000028c = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x20000200ul, /*size=*/0x80ul); if (res != -1) r[3] = res; syscall(__NR_socket, /*domain=*/2ul, /*type=*/2ul, /*proto=*/0); *(uint64_t*)0x20000200 = 0x20000140; memcpy((void*)0x20000140, "mm_page_alloc\000", 14); *(uint32_t*)0x20000208 = r[3]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000200ul, /*size=*/0x10ul); *(uint64_t*)0x20000200 = 0x20000140; memcpy((void*)0x20000140, "mm_page_alloc\000", 14); *(uint32_t*)0x20000208 = r[3]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000200ul, /*size=*/0x10ul); syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0xae41, /*id=*/1ul); syscall(__NR_ftruncate, /*fd=*/-1, /*len=*/0ul); *(uint32_t*)0x20000200 = 0x18; *(uint32_t*)0x20000204 = 4; *(uint64_t*)0x20000208 = 0x200002c0; *(uint64_t*)0x20000210 = 0x20000100; memcpy((void*)0x20000100, "GPL\000", 4); *(uint32_t*)0x20000218 = 0; *(uint32_t*)0x2000021c = 0; *(uint64_t*)0x20000220 = 0; *(uint32_t*)0x20000228 = 0; *(uint32_t*)0x2000022c = 0; memset((void*)0x20000230, 0, 16); *(uint32_t*)0x20000240 = 0; *(uint32_t*)0x20000244 = 2; *(uint32_t*)0x20000248 = -1; *(uint32_t*)0x2000024c = 8; *(uint64_t*)0x20000250 = 0; *(uint32_t*)0x20000258 = 0; *(uint32_t*)0x2000025c = 0x10; *(uint64_t*)0x20000260 = 0; *(uint32_t*)0x20000268 = 0; *(uint32_t*)0x2000026c = 0; *(uint32_t*)0x20000270 = 0; *(uint32_t*)0x20000274 = 0; *(uint64_t*)0x20000278 = 0; *(uint64_t*)0x20000280 = 0; *(uint32_t*)0x20000288 = 0x10; *(uint32_t*)0x2000028c = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x20000200ul, /*size=*/0x90ul); if (res != -1) r[4] = res; res = syscall(__NR_dup2, /*oldfd=*/r[4], /*newfd=*/r[4]); if (res != -1) r[5] = res; *(uint64_t*)0x20000080 = 0x20000000; memcpy((void*)0x20000000, "sys_enter\000", 10); *(uint32_t*)0x20000088 = r[5]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000080ul, /*size=*/0x10ul); *(uint64_t*)0x20000400 = 0x20000300; *(uint16_t*)0x20000300 = 0x10; *(uint16_t*)0x20000302 = 0; *(uint32_t*)0x20000304 = 0; *(uint32_t*)0x20000308 = 4; *(uint32_t*)0x20000408 = 0xc; *(uint64_t*)0x20000410 = 0x200003c0; *(uint64_t*)0x200003c0 = 0x20000380; *(uint32_t*)0x20000380 = 0x3c; *(uint8_t*)0x20000384 = 1; *(uint8_t*)0x20000385 = 7; *(uint16_t*)0x20000386 = 0x201; *(uint32_t*)0x20000388 = 0; *(uint32_t*)0x2000038c = 0; *(uint8_t*)0x20000390 = 0; *(uint8_t*)0x20000391 = 0; *(uint16_t*)0x20000392 = htobe16(5); *(uint16_t*)0x20000394 = 0xc; STORE_BY_BITMASK(uint16_t, , 0x20000396, 2, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x20000397, 1, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x20000397, 0, 7, 1); *(uint64_t*)0x20000398 = htobe64(5); *(uint16_t*)0x200003a0 = 0x1c; STORE_BY_BITMASK(uint16_t, , 0x200003a2, 7, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200003a3, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200003a3, 1, 7, 1); *(uint16_t*)0x200003a4 = 8; STORE_BY_BITMASK(uint16_t, , 0x200003a6, 2, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200003a7, 1, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200003a7, 0, 7, 1); *(uint32_t*)0x200003a8 = htobe32(0x7ff); *(uint16_t*)0x200003ac = 8; STORE_BY_BITMASK(uint16_t, , 0x200003ae, 1, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200003af, 1, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200003af, 0, 7, 1); *(uint32_t*)0x200003b0 = htobe32(8); *(uint16_t*)0x200003b4 = 8; STORE_BY_BITMASK(uint16_t, , 0x200003b6, 1, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200003b7, 1, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200003b7, 0, 7, 1); *(uint32_t*)0x200003b8 = htobe32(0x3a6); *(uint64_t*)0x200003c8 = 0x3c; *(uint64_t*)0x20000418 = 1; *(uint64_t*)0x20000420 = 0; *(uint64_t*)0x20000428 = 0; *(uint32_t*)0x20000430 = 0x20000800; syscall(__NR_sendmsg, /*fd=*/r[5], /*msg=*/0x20000400ul, /*f=MSG_ZEROCOPY|MSG_BATCH|MSG_NOSIGNAL|MSG_DONTWAIT*/ 0x4044040ul); syscall(__NR_sendmsg, /*fd=*/r[5], /*msg=*/0ul, /*f=MSG_ZEROCOPY|MSG_BATCH|MSG_NOSIGNAL|MSG_DONTWAIT*/ 0x4044040ul); syscall(__NR_uname, /*buf=*/0ul); syscall(__NR_uname, /*buf=*/0ul); memcpy((void*)0x20000800, "syz1\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\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\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000", 80); *(uint16_t*)0x20000850 = 0; *(uint16_t*)0x20000852 = 0; *(uint16_t*)0x20000854 = 0; *(uint16_t*)0x20000856 = 0; *(uint32_t*)0x20000858 = 0; *(uint32_t*)0x2000085c = 0; *(uint32_t*)0x20000860 = 0; *(uint32_t*)0x20000864 = 0; *(uint32_t*)0x20000868 = 0; *(uint32_t*)0x2000086c = 0; *(uint32_t*)0x20000870 = 0; *(uint32_t*)0x20000874 = 0; *(uint32_t*)0x20000878 = 0; *(uint32_t*)0x2000087c = 0; *(uint32_t*)0x20000880 = 0; *(uint32_t*)0x20000884 = 0; *(uint32_t*)0x20000888 = 0; *(uint32_t*)0x2000088c = 0; *(uint32_t*)0x20000890 = 0; *(uint32_t*)0x20000894 = 0; *(uint32_t*)0x20000898 = 0; *(uint32_t*)0x2000089c = 0; *(uint32_t*)0x200008a0 = 0; *(uint32_t*)0x200008a4 = 0; *(uint32_t*)0x200008a8 = 0; *(uint32_t*)0x200008ac = 0; *(uint32_t*)0x200008b0 = 0; *(uint32_t*)0x200008b4 = 0; *(uint32_t*)0x200008b8 = 0; *(uint32_t*)0x200008bc = 0; *(uint32_t*)0x200008c0 = 0; *(uint32_t*)0x200008c4 = 0; *(uint32_t*)0x200008c8 = 0; *(uint32_t*)0x200008cc = 0; *(uint32_t*)0x200008d0 = 0; *(uint32_t*)0x200008d4 = 0; *(uint32_t*)0x200008d8 = 0; *(uint32_t*)0x200008dc = 0; *(uint32_t*)0x200008e0 = 0; *(uint32_t*)0x200008e4 = 0; *(uint32_t*)0x200008e8 = 0; *(uint32_t*)0x200008ec = 0; *(uint32_t*)0x200008f0 = 0; *(uint32_t*)0x200008f4 = 0; *(uint32_t*)0x200008f8 = 0; *(uint32_t*)0x200008fc = 0; *(uint32_t*)0x20000900 = 0; *(uint32_t*)0x20000904 = 0; *(uint32_t*)0x20000908 = 0; *(uint32_t*)0x2000090c = 0; *(uint32_t*)0x20000910 = 0; *(uint32_t*)0x20000914 = 0; *(uint32_t*)0x20000918 = 0x296; *(uint32_t*)0x2000091c = 0; *(uint32_t*)0x20000920 = 0; *(uint32_t*)0x20000924 = 0; *(uint32_t*)0x20000928 = 0; *(uint32_t*)0x2000092c = 0; *(uint32_t*)0x20000930 = 0; *(uint32_t*)0x20000934 = 0; *(uint32_t*)0x20000938 = 0; *(uint32_t*)0x2000093c = 0; *(uint32_t*)0x20000940 = 0; *(uint32_t*)0x20000944 = 0; *(uint32_t*)0x20000948 = 0; *(uint32_t*)0x2000094c = 0; *(uint32_t*)0x20000950 = 0; *(uint32_t*)0x20000954 = 0; *(uint32_t*)0x20000958 = 0; *(uint32_t*)0x2000095c = 0; *(uint32_t*)0x20000960 = 0; *(uint32_t*)0x20000964 = 0; *(uint32_t*)0x20000968 = 0; *(uint32_t*)0x2000096c = 0; *(uint32_t*)0x20000970 = 0; *(uint32_t*)0x20000974 = 0; *(uint32_t*)0x20000978 = 0; *(uint32_t*)0x2000097c = 0; *(uint32_t*)0x20000980 = 0; *(uint32_t*)0x20000984 = 0; *(uint32_t*)0x20000988 = 0; *(uint32_t*)0x2000098c = 0; *(uint32_t*)0x20000990 = 0; *(uint32_t*)0x20000994 = 0; *(uint32_t*)0x20000998 = 0; *(uint32_t*)0x2000099c = 0; *(uint32_t*)0x200009a0 = 0; *(uint32_t*)0x200009a4 = 0; *(uint32_t*)0x200009a8 = 0; *(uint32_t*)0x200009ac = 0; *(uint32_t*)0x200009b0 = 0; *(uint32_t*)0x200009b4 = 0; *(uint32_t*)0x200009b8 = 0; *(uint32_t*)0x200009bc = 0; *(uint32_t*)0x200009c0 = 0; *(uint32_t*)0x200009c4 = 0; *(uint32_t*)0x200009c8 = 0; *(uint32_t*)0x200009cc = 0; *(uint32_t*)0x200009d0 = 0; *(uint32_t*)0x200009d4 = 0; *(uint32_t*)0x200009d8 = 0; *(uint32_t*)0x200009dc = 0; *(uint32_t*)0x200009e0 = 0; *(uint32_t*)0x200009e4 = 0; *(uint32_t*)0x200009e8 = 0; *(uint32_t*)0x200009ec = 0; *(uint32_t*)0x200009f0 = 0; *(uint32_t*)0x200009f4 = 0; *(uint32_t*)0x200009f8 = 0; *(uint32_t*)0x200009fc = 0; *(uint32_t*)0x20000a00 = 0; *(uint32_t*)0x20000a04 = 0; *(uint32_t*)0x20000a08 = 0; *(uint32_t*)0x20000a0c = 0; *(uint32_t*)0x20000a10 = 0; *(uint32_t*)0x20000a14 = 0; *(uint32_t*)0x20000a18 = 0; *(uint32_t*)0x20000a1c = 0; *(uint32_t*)0x20000a20 = 0; *(uint32_t*)0x20000a24 = 0; *(uint32_t*)0x20000a28 = 0; *(uint32_t*)0x20000a2c = 0; *(uint32_t*)0x20000a30 = 0; *(uint32_t*)0x20000a34 = 0; *(uint32_t*)0x20000a38 = 0; *(uint32_t*)0x20000a3c = 0; *(uint32_t*)0x20000a40 = 0; *(uint32_t*)0x20000a44 = 0; *(uint32_t*)0x20000a48 = 0; *(uint32_t*)0x20000a4c = 0; *(uint32_t*)0x20000a50 = 0; *(uint32_t*)0x20000a54 = 0; *(uint32_t*)0x20000a58 = 0; *(uint32_t*)0x20000a5c = 0; *(uint32_t*)0x20000a60 = 0; *(uint32_t*)0x20000a64 = 0; *(uint32_t*)0x20000a68 = 0; *(uint32_t*)0x20000a6c = 0; *(uint32_t*)0x20000a70 = 0; *(uint32_t*)0x20000a74 = 0; *(uint32_t*)0x20000a78 = 0; *(uint32_t*)0x20000a7c = 0; *(uint32_t*)0x20000a80 = 0; *(uint32_t*)0x20000a84 = 0; *(uint32_t*)0x20000a88 = 0; *(uint32_t*)0x20000a8c = 0; *(uint32_t*)0x20000a90 = 0; *(uint32_t*)0x20000a94 = 0; *(uint32_t*)0x20000a98 = 0; *(uint32_t*)0x20000a9c = 0; *(uint32_t*)0x20000aa0 = 0; *(uint32_t*)0x20000aa4 = 0; *(uint32_t*)0x20000aa8 = 0; *(uint32_t*)0x20000aac = 0; *(uint32_t*)0x20000ab0 = 0; *(uint32_t*)0x20000ab4 = 0; *(uint32_t*)0x20000ab8 = 0; *(uint32_t*)0x20000abc = 0; *(uint32_t*)0x20000ac0 = 0; *(uint32_t*)0x20000ac4 = 0; *(uint32_t*)0x20000ac8 = 0; *(uint32_t*)0x20000acc = 0; *(uint32_t*)0x20000ad0 = 0; *(uint32_t*)0x20000ad4 = 0; *(uint32_t*)0x20000ad8 = 0; *(uint32_t*)0x20000adc = 0; *(uint32_t*)0x20000ae0 = 0; *(uint32_t*)0x20000ae4 = 0; *(uint32_t*)0x20000ae8 = 0; *(uint32_t*)0x20000aec = 0; *(uint32_t*)0x20000af0 = 0; *(uint32_t*)0x20000af4 = 0; *(uint32_t*)0x20000af8 = 0; *(uint32_t*)0x20000afc = 0; *(uint32_t*)0x20000b00 = 0; *(uint32_t*)0x20000b04 = 0; *(uint32_t*)0x20000b08 = 0; *(uint32_t*)0x20000b0c = 0; *(uint32_t*)0x20000b10 = 0; *(uint32_t*)0x20000b14 = 0; *(uint32_t*)0x20000b18 = 0; *(uint32_t*)0x20000b1c = 0; *(uint32_t*)0x20000b20 = 0; *(uint32_t*)0x20000b24 = 0; *(uint32_t*)0x20000b28 = 0; *(uint32_t*)0x20000b2c = 0; *(uint32_t*)0x20000b30 = 0; *(uint32_t*)0x20000b34 = 0; *(uint32_t*)0x20000b38 = 0; *(uint32_t*)0x20000b3c = 0; *(uint32_t*)0x20000b40 = 0; *(uint32_t*)0x20000b44 = 0; *(uint32_t*)0x20000b48 = 0; *(uint32_t*)0x20000b4c = 0; *(uint32_t*)0x20000b50 = 0; *(uint32_t*)0x20000b54 = 0; *(uint32_t*)0x20000b58 = 0; *(uint32_t*)0x20000b5c = 0; *(uint32_t*)0x20000b60 = 0; *(uint32_t*)0x20000b64 = 0; *(uint32_t*)0x20000b68 = 0; *(uint32_t*)0x20000b6c = 0; *(uint32_t*)0x20000b70 = 0; *(uint32_t*)0x20000b74 = 0; *(uint32_t*)0x20000b78 = 0; *(uint32_t*)0x20000b7c = 0; *(uint32_t*)0x20000b80 = 0; *(uint32_t*)0x20000b84 = 0; *(uint32_t*)0x20000b88 = 0; *(uint32_t*)0x20000b8c = 0; *(uint32_t*)0x20000b90 = 0; *(uint32_t*)0x20000b94 = 0; *(uint32_t*)0x20000b98 = 0; *(uint32_t*)0x20000b9c = 0; *(uint32_t*)0x20000ba0 = 0; *(uint32_t*)0x20000ba4 = 0; *(uint32_t*)0x20000ba8 = 0; *(uint32_t*)0x20000bac = 0; *(uint32_t*)0x20000bb0 = 0; *(uint32_t*)0x20000bb4 = 0; *(uint32_t*)0x20000bb8 = 0; *(uint32_t*)0x20000bbc = 0; *(uint32_t*)0x20000bc0 = 0xef3; *(uint32_t*)0x20000bc4 = 0; *(uint32_t*)0x20000bc8 = 0; *(uint32_t*)0x20000bcc = 0; *(uint32_t*)0x20000bd0 = 0; *(uint32_t*)0x20000bd4 = 0; *(uint32_t*)0x20000bd8 = 0; *(uint32_t*)0x20000bdc = 0; *(uint32_t*)0x20000be0 = 0; *(uint32_t*)0x20000be4 = 0; *(uint32_t*)0x20000be8 = 0; *(uint32_t*)0x20000bec = 0; *(uint32_t*)0x20000bf0 = 0; *(uint32_t*)0x20000bf4 = 0; *(uint32_t*)0x20000bf8 = 0; *(uint32_t*)0x20000bfc = 0; *(uint32_t*)0x20000c00 = 0; *(uint32_t*)0x20000c04 = 0; *(uint32_t*)0x20000c08 = 0; *(uint32_t*)0x20000c0c = 0; *(uint32_t*)0x20000c10 = 0; *(uint32_t*)0x20000c14 = 0; *(uint32_t*)0x20000c18 = 0; *(uint32_t*)0x20000c1c = 0; *(uint32_t*)0x20000c20 = 0; *(uint32_t*)0x20000c24 = 0; *(uint32_t*)0x20000c28 = 0; *(uint32_t*)0x20000c2c = 0; *(uint32_t*)0x20000c30 = 0; *(uint32_t*)0x20000c34 = 0; *(uint32_t*)0x20000c38 = 0; *(uint32_t*)0x20000c3c = 0; *(uint32_t*)0x20000c40 = 0; *(uint32_t*)0x20000c44 = 0; *(uint32_t*)0x20000c48 = 0; *(uint32_t*)0x20000c4c = 0; *(uint32_t*)0x20000c50 = 0; *(uint32_t*)0x20000c54 = 0; *(uint32_t*)0x20000c58 = 0; syscall(__NR_write, /*fd=*/r[2], /*data=*/0x20000800ul, /*len=*/0x45cul); memcpy((void*)0x20000800, "syz1\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\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\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000", 80); *(uint16_t*)0x20000850 = 0; *(uint16_t*)0x20000852 = 0; *(uint16_t*)0x20000854 = 0; *(uint16_t*)0x20000856 = 0; *(uint32_t*)0x20000858 = 0; *(uint32_t*)0x2000085c = 0; *(uint32_t*)0x20000860 = 0; *(uint32_t*)0x20000864 = 0; *(uint32_t*)0x20000868 = 0; *(uint32_t*)0x2000086c = 0; *(uint32_t*)0x20000870 = 0; *(uint32_t*)0x20000874 = 0; *(uint32_t*)0x20000878 = 0; *(uint32_t*)0x2000087c = 0; *(uint32_t*)0x20000880 = 0; *(uint32_t*)0x20000884 = 0; *(uint32_t*)0x20000888 = 0; *(uint32_t*)0x2000088c = 0; *(uint32_t*)0x20000890 = 0; *(uint32_t*)0x20000894 = 0; *(uint32_t*)0x20000898 = 0; *(uint32_t*)0x2000089c = 0; *(uint32_t*)0x200008a0 = 0; *(uint32_t*)0x200008a4 = 0; *(uint32_t*)0x200008a8 = 0; *(uint32_t*)0x200008ac = 0; *(uint32_t*)0x200008b0 = 0; *(uint32_t*)0x200008b4 = 0; *(uint32_t*)0x200008b8 = 0; *(uint32_t*)0x200008bc = 0; *(uint32_t*)0x200008c0 = 0; *(uint32_t*)0x200008c4 = 0; *(uint32_t*)0x200008c8 = 0; *(uint32_t*)0x200008cc = 0; *(uint32_t*)0x200008d0 = 0; *(uint32_t*)0x200008d4 = 0; *(uint32_t*)0x200008d8 = 0; *(uint32_t*)0x200008dc = 0; *(uint32_t*)0x200008e0 = 0; *(uint32_t*)0x200008e4 = 0; *(uint32_t*)0x200008e8 = 0; *(uint32_t*)0x200008ec = 0; *(uint32_t*)0x200008f0 = 0; *(uint32_t*)0x200008f4 = 0; *(uint32_t*)0x200008f8 = 0; *(uint32_t*)0x200008fc = 0; *(uint32_t*)0x20000900 = 0; *(uint32_t*)0x20000904 = 0; *(uint32_t*)0x20000908 = 0; *(uint32_t*)0x2000090c = 0; *(uint32_t*)0x20000910 = 0; *(uint32_t*)0x20000914 = 0; *(uint32_t*)0x20000918 = 0x296; *(uint32_t*)0x2000091c = 0; *(uint32_t*)0x20000920 = 0; *(uint32_t*)0x20000924 = 0; *(uint32_t*)0x20000928 = 0; *(uint32_t*)0x2000092c = 0; *(uint32_t*)0x20000930 = 0; *(uint32_t*)0x20000934 = 0; *(uint32_t*)0x20000938 = 0; *(uint32_t*)0x2000093c = 0; *(uint32_t*)0x20000940 = 0; *(uint32_t*)0x20000944 = 0; *(uint32_t*)0x20000948 = 0; *(uint32_t*)0x2000094c = 0; *(uint32_t*)0x20000950 = 0; *(uint32_t*)0x20000954 = 0; *(uint32_t*)0x20000958 = 0; *(uint32_t*)0x2000095c = 0; *(uint32_t*)0x20000960 = 0; *(uint32_t*)0x20000964 = 0; *(uint32_t*)0x20000968 = 0; *(uint32_t*)0x2000096c = 0; *(uint32_t*)0x20000970 = 0; *(uint32_t*)0x20000974 = 0; *(uint32_t*)0x20000978 = 0; *(uint32_t*)0x2000097c = 0; *(uint32_t*)0x20000980 = 0; *(uint32_t*)0x20000984 = 0; *(uint32_t*)0x20000988 = 0; *(uint32_t*)0x2000098c = 0; *(uint32_t*)0x20000990 = 0; *(uint32_t*)0x20000994 = 0; *(uint32_t*)0x20000998 = 0; *(uint32_t*)0x2000099c = 0; *(uint32_t*)0x200009a0 = 0; *(uint32_t*)0x200009a4 = 0; *(uint32_t*)0x200009a8 = 0; *(uint32_t*)0x200009ac = 0; *(uint32_t*)0x200009b0 = 0; *(uint32_t*)0x200009b4 = 0; *(uint32_t*)0x200009b8 = 0; *(uint32_t*)0x200009bc = 0; *(uint32_t*)0x200009c0 = 0; *(uint32_t*)0x200009c4 = 0; *(uint32_t*)0x200009c8 = 0; *(uint32_t*)0x200009cc = 0; *(uint32_t*)0x200009d0 = 0; *(uint32_t*)0x200009d4 = 0; *(uint32_t*)0x200009d8 = 0; *(uint32_t*)0x200009dc = 0; *(uint32_t*)0x200009e0 = 0; *(uint32_t*)0x200009e4 = 0; *(uint32_t*)0x200009e8 = 0; *(uint32_t*)0x200009ec = 0; *(uint32_t*)0x200009f0 = 0; *(uint32_t*)0x200009f4 = 0; *(uint32_t*)0x200009f8 = 0; *(uint32_t*)0x200009fc = 0; *(uint32_t*)0x20000a00 = 0; *(uint32_t*)0x20000a04 = 0; *(uint32_t*)0x20000a08 = 0; *(uint32_t*)0x20000a0c = 0; *(uint32_t*)0x20000a10 = 0; *(uint32_t*)0x20000a14 = 0; *(uint32_t*)0x20000a18 = 0; *(uint32_t*)0x20000a1c = 0; *(uint32_t*)0x20000a20 = 0; *(uint32_t*)0x20000a24 = 0; *(uint32_t*)0x20000a28 = 0; *(uint32_t*)0x20000a2c = 0; *(uint32_t*)0x20000a30 = 0; *(uint32_t*)0x20000a34 = 0; *(uint32_t*)0x20000a38 = 0; *(uint32_t*)0x20000a3c = 0; *(uint32_t*)0x20000a40 = 0; *(uint32_t*)0x20000a44 = 0; *(uint32_t*)0x20000a48 = 0; *(uint32_t*)0x20000a4c = 0; *(uint32_t*)0x20000a50 = 0; *(uint32_t*)0x20000a54 = 0; *(uint32_t*)0x20000a58 = 0; *(uint32_t*)0x20000a5c = 0; *(uint32_t*)0x20000a60 = 0; *(uint32_t*)0x20000a64 = 0; *(uint32_t*)0x20000a68 = 0; *(uint32_t*)0x20000a6c = 0; *(uint32_t*)0x20000a70 = 0; *(uint32_t*)0x20000a74 = 0; *(uint32_t*)0x20000a78 = 0; *(uint32_t*)0x20000a7c = 0; *(uint32_t*)0x20000a80 = 0; *(uint32_t*)0x20000a84 = 0; *(uint32_t*)0x20000a88 = 0; *(uint32_t*)0x20000a8c = 0; *(uint32_t*)0x20000a90 = 0; *(uint32_t*)0x20000a94 = 0; *(uint32_t*)0x20000a98 = 0; *(uint32_t*)0x20000a9c = 0; *(uint32_t*)0x20000aa0 = 0; *(uint32_t*)0x20000aa4 = 0; *(uint32_t*)0x20000aa8 = 0; *(uint32_t*)0x20000aac = 0; *(uint32_t*)0x20000ab0 = 0; *(uint32_t*)0x20000ab4 = 0; *(uint32_t*)0x20000ab8 = 0; *(uint32_t*)0x20000abc = 0; *(uint32_t*)0x20000ac0 = 0; *(uint32_t*)0x20000ac4 = 0; *(uint32_t*)0x20000ac8 = 0; *(uint32_t*)0x20000acc = 0; *(uint32_t*)0x20000ad0 = 0; *(uint32_t*)0x20000ad4 = 0; *(uint32_t*)0x20000ad8 = 0; *(uint32_t*)0x20000adc = 0; *(uint32_t*)0x20000ae0 = 0; *(uint32_t*)0x20000ae4 = 0; *(uint32_t*)0x20000ae8 = 0; *(uint32_t*)0x20000aec = 0; *(uint32_t*)0x20000af0 = 0; *(uint32_t*)0x20000af4 = 0; *(uint32_t*)0x20000af8 = 0; *(uint32_t*)0x20000afc = 0; *(uint32_t*)0x20000b00 = 0; *(uint32_t*)0x20000b04 = 0; *(uint32_t*)0x20000b08 = 0; *(uint32_t*)0x20000b0c = 0; *(uint32_t*)0x20000b10 = 0; *(uint32_t*)0x20000b14 = 0; *(uint32_t*)0x20000b18 = 0; *(uint32_t*)0x20000b1c = 0; *(uint32_t*)0x20000b20 = 0; *(uint32_t*)0x20000b24 = 0; *(uint32_t*)0x20000b28 = 0; *(uint32_t*)0x20000b2c = 0; *(uint32_t*)0x20000b30 = 0; *(uint32_t*)0x20000b34 = 0; *(uint32_t*)0x20000b38 = 0; *(uint32_t*)0x20000b3c = 0; *(uint32_t*)0x20000b40 = 0; *(uint32_t*)0x20000b44 = 0; *(uint32_t*)0x20000b48 = 0; *(uint32_t*)0x20000b4c = 0; *(uint32_t*)0x20000b50 = 0; *(uint32_t*)0x20000b54 = 0; *(uint32_t*)0x20000b58 = 0; *(uint32_t*)0x20000b5c = 0; *(uint32_t*)0x20000b60 = 0; *(uint32_t*)0x20000b64 = 0; *(uint32_t*)0x20000b68 = 0; *(uint32_t*)0x20000b6c = 0; *(uint32_t*)0x20000b70 = 0; *(uint32_t*)0x20000b74 = 0; *(uint32_t*)0x20000b78 = 0; *(uint32_t*)0x20000b7c = 0; *(uint32_t*)0x20000b80 = 0; *(uint32_t*)0x20000b84 = 0; *(uint32_t*)0x20000b88 = 0; *(uint32_t*)0x20000b8c = 0; *(uint32_t*)0x20000b90 = 0; *(uint32_t*)0x20000b94 = 0; *(uint32_t*)0x20000b98 = 0; *(uint32_t*)0x20000b9c = 0; *(uint32_t*)0x20000ba0 = 0; *(uint32_t*)0x20000ba4 = 0; *(uint32_t*)0x20000ba8 = 0; *(uint32_t*)0x20000bac = 0; *(uint32_t*)0x20000bb0 = 0; *(uint32_t*)0x20000bb4 = 0; *(uint32_t*)0x20000bb8 = 0; *(uint32_t*)0x20000bbc = 0; *(uint32_t*)0x20000bc0 = 0xef3; *(uint32_t*)0x20000bc4 = 0; *(uint32_t*)0x20000bc8 = 0; *(uint32_t*)0x20000bcc = 0; *(uint32_t*)0x20000bd0 = 0; *(uint32_t*)0x20000bd4 = 0; *(uint32_t*)0x20000bd8 = 0; *(uint32_t*)0x20000bdc = 0; *(uint32_t*)0x20000be0 = 0; *(uint32_t*)0x20000be4 = 0; *(uint32_t*)0x20000be8 = 0; *(uint32_t*)0x20000bec = 0; *(uint32_t*)0x20000bf0 = 0; *(uint32_t*)0x20000bf4 = 0; *(uint32_t*)0x20000bf8 = 0; *(uint32_t*)0x20000bfc = 0; *(uint32_t*)0x20000c00 = 0; *(uint32_t*)0x20000c04 = 0; *(uint32_t*)0x20000c08 = 0; *(uint32_t*)0x20000c0c = 0; *(uint32_t*)0x20000c10 = 0; *(uint32_t*)0x20000c14 = 0; *(uint32_t*)0x20000c18 = 0; *(uint32_t*)0x20000c1c = 0; *(uint32_t*)0x20000c20 = 0; *(uint32_t*)0x20000c24 = 0; *(uint32_t*)0x20000c28 = 0; *(uint32_t*)0x20000c2c = 0; *(uint32_t*)0x20000c30 = 0; *(uint32_t*)0x20000c34 = 0; *(uint32_t*)0x20000c38 = 0; *(uint32_t*)0x20000c3c = 0; *(uint32_t*)0x20000c40 = 0; *(uint32_t*)0x20000c44 = 0; *(uint32_t*)0x20000c48 = 0; *(uint32_t*)0x20000c4c = 0; *(uint32_t*)0x20000c50 = 0; *(uint32_t*)0x20000c54 = 0; *(uint32_t*)0x20000c58 = 0; syscall(__NR_write, /*fd=*/r[2], /*data=*/0x20000800ul, /*len=*/0x45cul); syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x40045564, /*arg=*/3ul); syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x40045564, /*arg=*/3ul); memcpy((void*)0x20000000, "/dev/fuse\000", 10); syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000000ul, /*flags=*/2ul, /*mode=*/0ul); memcpy((void*)0x20000240, "/dev/net/tun\000", 13); syscall( __NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000240ul, /*flags=O_SYNC|O_NONBLOCK|O_NOATIME|O_CREAT|O_CLOEXEC|0x2*/ 0x1c1842ul, /*mode=*/0ul); memcpy((void*)0x20000240, "/dev/net/tun\000", 13); res = syscall( __NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000240ul, /*flags=O_SYNC|O_NONBLOCK|O_NOATIME|O_CREAT|O_CLOEXEC|0x2*/ 0x1c1842ul, /*mode=*/0ul); if (res != -1) r[6] = res; memcpy((void*)0x20000040, "syzkaller0\000\000\000\000\000\000", 16); *(uint16_t*)0x20000050 = 0x7101; syscall(__NR_ioctl, /*fd=*/r[6], /*cmd=*/0x400454ca, /*arg=*/0x20000040ul); memcpy((void*)0x20000040, "syzkaller0\000\000\000\000\000\000", 16); *(uint16_t*)0x20000050 = 0x7101; syscall(__NR_ioctl, /*fd=*/r[6], /*cmd=*/0x400454ca, /*arg=*/0x20000040ul); *(uint32_t*)0x200000c0 = 0x11; *(uint32_t*)0x200000c4 = 0xb; *(uint64_t*)0x200000c8 = 0x20000180; memcpy((void*)0x20000180, "\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18" "\x01\x00\x00\x20\x20\x70\x25\x00\x00\x00\x00\x00\x20\x20\x20\x7b\x1a" "\xf8\xff\x00\x00\x00\x00\xbf\xa1\x00\x00\x00\x00\x00\x00\x07\x01\x00" "\x00\xf8\xff\xff\xff\xb7\x02\x00\x00\x01\x00\x00\x00\xb7\x03\x00\x00" "\x00\x00\x00\xf7\x85\x00\x00\x00\x2d\x00\x00\x00\x95", 81); *(uint64_t*)0x200000d0 = 0x20000040; memcpy((void*)0x20000040, "GPL\000", 4); *(uint32_t*)0x200000d8 = 0; *(uint32_t*)0x200000dc = 0; *(uint64_t*)0x200000e0 = 0; *(uint32_t*)0x200000e8 = 0; *(uint32_t*)0x200000ec = 0; memset((void*)0x200000f0, 0, 16); *(uint32_t*)0x20000100 = 0; *(uint32_t*)0x20000104 = 0; *(uint32_t*)0x20000108 = 0; *(uint32_t*)0x2000010c = 0; *(uint64_t*)0x20000110 = 0; *(uint32_t*)0x20000118 = 0; *(uint32_t*)0x2000011c = 0; *(uint64_t*)0x20000120 = 0; *(uint32_t*)0x20000128 = 0; *(uint32_t*)0x2000012c = 0; *(uint32_t*)0x20000130 = 0; *(uint32_t*)0x20000134 = 0; *(uint64_t*)0x20000138 = 0; *(uint64_t*)0x20000140 = 0; *(uint32_t*)0x20000148 = 0; *(uint32_t*)0x2000014c = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000c0ul, /*size=*/0x90ul); if (res != -1) r[7] = res; *(uint64_t*)0x20000180 = 0x20000140; memcpy((void*)0x20000140, "kmem_cache_free\000", 16); *(uint32_t*)0x20000188 = r[7]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000180ul, /*size=*/0x10ul); *(uint64_t*)0x20000180 = 0; *(uint32_t*)0x20000188 = r[7]; syscall(__NR_bpf, /*cmd=*/0x11ul, /*arg=*/0x20000180ul, /*size=*/0x10ul); syscall(__NR_write, /*fd=*/r[6], /*buf=*/0x20000400ul, /*len=*/0x200103ddul); syscall(__NR_write, /*fd=*/r[6], /*buf=*/0x20000400ul, /*len=*/0x200103ddul); res = syscall(__NR_socket, /*domain=*/0x10ul, /*type=*/3ul, /*proto=*/0xc); if (res != -1) r[8] = res; *(uint64_t*)0x20000100 = 0; *(uint32_t*)0x20000108 = 0; *(uint64_t*)0x20000110 = 0x200000c0; *(uint64_t*)0x200000c0 = 0; *(uint64_t*)0x200000c8 = 0; *(uint64_t*)0x20000118 = 1; *(uint64_t*)0x20000120 = 0; *(uint64_t*)0x20000128 = 0; *(uint32_t*)0x20000130 = 0; syscall(__NR_sendmsg, /*fd=*/r[8], /*msg=*/0x20000100ul, /*f=*/0ul); } 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; }