// https://syzkaller.appspot.com/bug?id=06a62b218743b65182c953962811f26c9d8be988 // 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_close #define __NR_close 6 #endif #ifndef __NR_ioctl #define __NR_ioctl 54 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_openat #define __NR_openat 322 #endif #ifndef __NR_sendmsg #define __NR_sendmsg 296 #endif #ifndef __NR_socket #define __NR_socket 281 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 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; } 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 (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 15000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[11] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xffffffffffffffff, 0x0}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // socket$unix arguments: [ // domain: const = 0x1 (4 bytes) // type: unix_socket_type = 0x1 (4 bytes) // proto: const = 0x0 (4 bytes) // ] // returns sock_unix res = syscall(__NR_socket, /*domain=*/1, /*type=SOCK_STREAM*/ 1, /*proto=*/0); if (res != -1) r[0] = res; // openat$tun arguments: [ // fd: const = 0xffffffffffffff9c (4 bytes) // file: ptr[in, buffer] { // buffer: {2f 64 65 76 2f 6e 65 74 2f 74 75 6e 00} (length 0xd) // } // flags: open_flags = 0x0 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_tun memcpy((void*)0x20000240, "/dev/net/tun\000", 13); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000240, /*flags=*/0, /*mode=*/0); if (res != -1) r[1] = res; // ioctl$TUNSETIFF arguments: [ // fd: fd_tun (resource) // cmd: const = 0x400454ca (4 bytes) // arg: ptr[in, ifreq_dev_t[devnames, flags[tun_setiff_flags, int16]]] { // ifreq_dev_t[devnames, flags[tun_setiff_flags, int16]] { // ifr_ifrn: buffer: {73 79 7a 6b 61 6c 6c 65 72 30 00 00 00 00 00 00} // (length 0x10) elem: tun_setiff_flags = 0x7101 (2 bytes) pad = 0x0 // (14 bytes) // } // } // ] memcpy((void*)0x20000040, "syzkaller0\000\000\000\000\000\000", 16); *(uint16_t*)0x20000050 = 0x7101; syscall(__NR_ioctl, /*fd=*/(intptr_t)r[1], /*cmd=*/0x400454ca, /*arg=*/0x20000040); // socket arguments: [ // domain: socket_domain = 0x400000000010 (4 bytes) // type: socket_type = 0x3 (4 bytes) // proto: int32 = 0x0 (4 bytes) // ] // returns sock res = syscall(__NR_socket, /*domain=AF_NETLINK*/ 0x10, /*type=SOCK_RAW*/ 3, /*proto=*/0); if (res != -1) r[2] = res; // socket$unix arguments: [ // domain: const = 0x1 (4 bytes) // type: unix_socket_type = 0x1 (4 bytes) // proto: const = 0x0 (4 bytes) // ] // returns sock_unix res = syscall(__NR_socket, /*domain=*/1, /*type=SOCK_STREAM*/ 1, /*proto=*/0); if (res != -1) r[3] = res; // ioctl$sock_SIOCGIFINDEX arguments: [ // fd: sock (resource) // cmd: const = 0x8933 (4 bytes) // arg: ptr[out, ifreq_dev_t[devnames, ifindex]] { // ifreq_dev_t[devnames, ifindex] { // ifr_ifrn: buffer: {73 79 7a 6b 61 6c 6c 65 72 30 00 00 00 00 00 00} // (length 0x10) elem: ifindex (resource) pad = 0x0 (12 bytes) // } // } // ] memcpy((void*)0x20000100, "syzkaller0\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/(intptr_t)r[3], /*cmd=*/0x8933, /*arg=*/0x20000100); if (res != -1) r[4] = *(uint32_t*)0x20000110; // sendmsg$nl_route_sched arguments: [ // fd: sock_nl_route (resource) // msg: ptr[in, msghdr_netlink[netlink_msg_route_sched]] { // msghdr_netlink[netlink_msg_route_sched] { // addr: nil // addrlen: len = 0x0 (4 bytes) // vec: ptr[in, iovec[in, netlink_msg_route_sched]] { // iovec[in, netlink_msg_route_sched] { // addr: ptr[in, netlink_msg_route_sched] { // union netlink_msg_route_sched { // newqdisc: netlink_msg_t[const[RTM_NEWQDISC, int16], // tcmsg[AF_UNSPEC], rtm_tca_policy] { // len: len = 0x38 (4 bytes) // type: const = 0x24 (2 bytes) // flags: netlink_msg_flags = 0x4ee4e6a52ff56541 (2 bytes) // seq: int32 = 0x70bd2a (4 bytes) // pid: int32 = 0xffffffff (4 bytes) // payload: tcmsg[AF_UNSPEC] { // family: const = 0x0 (1 bytes) // tcm__pad1: const = 0x0 (1 bytes) // tcm__pad2: const = 0x0 (2 bytes) // ifindex: ifindex (resource) // tcm_handle: tcm_handle { // minor: tcm_handle_offsets = 0x0 (2 bytes) // major: tcm_handle_offsets = 0xfff1 (2 bytes) // } // tcm_parent: tcm_handle { // minor: tcm_handle_offsets = 0xffff (2 bytes) // major: tcm_handle_offsets = 0xffff (2 bytes) // } // tcm_info: tcm_handle { // minor: tcm_handle_offsets = 0x0 (2 bytes) // major: tcm_handle_offsets = 0x2 (2 bytes) // } // } // attrs: array[rtm_tca_policy] { // union rtm_tca_policy { // qdisc_kind_options: union qdisc_kind_options { // q_multiq: tca_kind_options_t["multiq", // tc_multiq_qopt] { // TCA_KIND: nlattr_t[const[TCA_KIND, int16], // string["multiq"]] { // nla_len: offsetof = 0xb (2 bytes) // nla_type: const = 0x1 (2 bytes) // payload: buffer: {6d 75 6c 74 69 71 00} (length // 0x7) size: buffer: {} (length 0x0) pad = 0x0 (1 // bytes) // } // TCA_OPTIONS: nlattr_t[const[TCA_OPTIONS, int16], // tc_multiq_qopt] { // nla_len: offsetof = 0x8 (2 bytes) // nla_type: const = 0x2 (2 bytes) // payload: tc_multiq_qopt { // bands: int16 = 0x0 (2 bytes) // max_bands: int16 = 0x3 (2 bytes) // } // size: buffer: {} (length 0x0) // } // } // } // } // } // } // } // } // len: len = 0x38 (4 bytes) // } // } // vlen: const = 0x1 (4 bytes) // ctrl: const = 0x0 (4 bytes) // ctrllen: const = 0x0 (4 bytes) // f: send_flags = 0x0 (4 bytes) // } // } // f: send_flags = 0x0 (4 bytes) // ] *(uint32_t*)0x20000bc0 = 0; *(uint32_t*)0x20000bc4 = 0; *(uint32_t*)0x20000bc8 = 0x20000080; *(uint32_t*)0x20000080 = 0x200005c0; *(uint32_t*)0x200005c0 = 0x38; *(uint16_t*)0x200005c4 = 0x24; *(uint16_t*)0x200005c6 = 0x6541; *(uint32_t*)0x200005c8 = 0x70bd2a; *(uint32_t*)0x200005cc = -1; *(uint8_t*)0x200005d0 = 0; *(uint8_t*)0x200005d1 = 0; *(uint16_t*)0x200005d2 = 0; *(uint32_t*)0x200005d4 = r[4]; *(uint16_t*)0x200005d8 = 0; *(uint16_t*)0x200005da = 0xfff1; *(uint16_t*)0x200005dc = -1; *(uint16_t*)0x200005de = -1; *(uint16_t*)0x200005e0 = 0; *(uint16_t*)0x200005e2 = 2; *(uint16_t*)0x200005e4 = 0xb; *(uint16_t*)0x200005e6 = 1; memcpy((void*)0x200005e8, "multiq\000", 7); *(uint16_t*)0x200005f0 = 8; *(uint16_t*)0x200005f2 = 2; *(uint16_t*)0x200005f4 = 0; *(uint16_t*)0x200005f6 = 3; *(uint32_t*)0x20000084 = 0x38; *(uint32_t*)0x20000bcc = 1; *(uint32_t*)0x20000bd0 = 0; *(uint32_t*)0x20000bd4 = 0; *(uint32_t*)0x20000bd8 = 0; syscall(__NR_sendmsg, /*fd=*/(intptr_t)r[2], /*msg=*/0x20000bc0, /*f=*/0); // socket$kcm arguments: [ // domain: const = 0x11 (4 bytes) // type: kcm_socket_type = 0x3 (4 bytes) // proto: const = 0x0 (4 bytes) // ] // returns sock_kcm res = syscall(__NR_socket, /*domain=*/0x11, /*type=SOCK_DGRAM|0x1*/ 3, /*proto=*/0); if (res != -1) r[5] = res; // socket arguments: [ // domain: socket_domain = 0x400000000010 (4 bytes) // type: socket_type = 0x3 (4 bytes) // proto: int32 = 0x0 (4 bytes) // ] // returns sock res = syscall(__NR_socket, /*domain=AF_NETLINK*/ 0x10, /*type=SOCK_RAW*/ 3, /*proto=*/0); if (res != -1) r[6] = res; // socket$unix arguments: [ // domain: const = 0x1 (4 bytes) // type: unix_socket_type = 0x5 (4 bytes) // proto: const = 0x0 (4 bytes) // ] // returns sock_unix res = syscall(__NR_socket, /*domain=*/1, /*type=SOCK_SEQPACKET*/ 5, /*proto=*/0); if (res != -1) r[7] = res; // ioctl$sock_SIOCGIFINDEX arguments: [ // fd: sock (resource) // cmd: const = 0x8933 (4 bytes) // arg: ptr[out, ifreq_dev_t[devnames, ifindex]] { // ifreq_dev_t[devnames, ifindex] { // ifr_ifrn: buffer: {73 79 7a 6b 61 6c 6c 65 72 30 00 00 00 00 00 00} // (length 0x10) elem: ifindex (resource) pad = 0x0 (12 bytes) // } // } // ] memcpy((void*)0x20000100, "syzkaller0\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/(intptr_t)r[7], /*cmd=*/0x8933, /*arg=*/0x20000100); if (res != -1) r[8] = *(uint32_t*)0x20000110; // sendmsg$nl_route_sched arguments: [ // fd: sock_nl_route (resource) // msg: ptr[in, msghdr_netlink[netlink_msg_route_sched]] { // msghdr_netlink[netlink_msg_route_sched] { // addr: nil // addrlen: len = 0x0 (4 bytes) // vec: ptr[in, iovec[in, netlink_msg_route_sched]] { // iovec[in, netlink_msg_route_sched] { // addr: ptr[in, netlink_msg_route_sched] { // union netlink_msg_route_sched { // newtfilter: netlink_msg_t[const[RTM_NEWTFILTER, int16], // tcmsg[AF_UNSPEC], filter_policy] { // len: len = 0x4c (4 bytes) // type: const = 0x2c (2 bytes) // flags: netlink_msg_flags = 0xd3f (2 bytes) // seq: int32 = 0x70bd24 (4 bytes) // pid: int32 = 0x25dfdbfc (4 bytes) // payload: tcmsg[AF_UNSPEC] { // family: const = 0x0 (1 bytes) // tcm__pad1: const = 0x0 (1 bytes) // tcm__pad2: const = 0x0 (2 bytes) // ifindex: ifindex (resource) // tcm_handle: tcm_handle { // minor: tcm_handle_offsets = 0xfff3 (2 bytes) // major: tcm_handle_offsets = 0xffe0 (2 bytes) // } // tcm_parent: tcm_handle { // minor: tcm_handle_offsets = 0x0 (2 bytes) // major: tcm_handle_offsets = 0x0 (2 bytes) // } // tcm_info: tcm_handle { // minor: tcm_handle_offsets = 0x7 (2 bytes) // major: tcm_handle_offsets = 0x2 (2 bytes) // } // } // attrs: array[filter_policy] { // union filter_policy { // filter_kind_options: union filter_kind_options { // f_bpf: tca_kind_options_t["bpf", array[bpf_policy]] // { // TCA_KIND: nlattr_t[const[TCA_KIND, int16], // string["bpf"]] { // nla_len: offsetof = 0x8 (2 bytes) // nla_type: const = 0x1 (2 bytes) // payload: buffer: {62 70 66 00} (length 0x4) // size: buffer: {} (length 0x0) // } // TCA_OPTIONS: nlattr_t[const[TCA_OPTIONS, int16], // array[bpf_policy]] { // nla_len: offsetof = 0x20 (2 bytes) // nla_type: const = 0x2 (2 bytes) // payload: array[bpf_policy] { // union bpf_policy { // TCA_BPF_OPS: bpf_policy$ops { // TCA_BPF_OPS_LEN: // nlattr_t[const[TCA_BPF_OPS_LEN, int16], // len[bpf_policy$ops:TCA_BPF_OPS:payload, // int16]] { // nla_len: offsetof = 0x6 (2 bytes) // nla_type: const = 0x4 (2 bytes) // payload: len = 0x1 (2 bytes) // size: buffer: {} (length 0x0) // pad = 0x0 (2 bytes) // } // TCA_BPF_OPS: nlattr_t[const[TCA_BPF_OPS, // int16], array[sock_filter]] { // nla_len: offsetof = 0xc (2 bytes) // nla_type: const = 0x5 (2 bytes) // payload: array[sock_filter] { // sock_filter { // code: int16 = 0x6 (2 bytes) // jt: int8 = 0xd (1 bytes) // jf: int8 = 0x5 (1 bytes) // k: int32 = 0x4 (4 bytes) // } // } // size: buffer: {} (length 0x0) // } // } // } // union bpf_policy { // TCA_BPF_FLAGS: nlattr_t[const[TCA_BPF_FLAGS, // int16], int32[0:1]] { // nla_len: offsetof = 0x8 (2 bytes) // nla_type: const = 0x8 (2 bytes) // payload: int32 = 0x1 (4 bytes) // size: buffer: {} (length 0x0) // } // } // } // size: buffer: {} (length 0x0) // } // } // } // } // } // } // } // } // len: len = 0x4c (4 bytes) // } // } // vlen: const = 0x1 (4 bytes) // ctrl: const = 0x0 (4 bytes) // ctrllen: const = 0x0 (4 bytes) // f: send_flags = 0x8848 (4 bytes) // } // } // f: send_flags = 0x20004804 (4 bytes) // ] *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 0; *(uint32_t*)0x20000008 = 0x20000380; *(uint32_t*)0x20000380 = 0x20000140; *(uint32_t*)0x20000140 = 0x4c; *(uint16_t*)0x20000144 = 0x2c; *(uint16_t*)0x20000146 = 0xd3f; *(uint32_t*)0x20000148 = 0x70bd24; *(uint32_t*)0x2000014c = 0x25dfdbfc; *(uint8_t*)0x20000150 = 0; *(uint8_t*)0x20000151 = 0; *(uint16_t*)0x20000152 = 0; *(uint32_t*)0x20000154 = r[8]; *(uint16_t*)0x20000158 = 0xfff3; *(uint16_t*)0x2000015a = 0xffe0; *(uint16_t*)0x2000015c = 0; *(uint16_t*)0x2000015e = 0; *(uint16_t*)0x20000160 = 7; *(uint16_t*)0x20000162 = 2; *(uint16_t*)0x20000164 = 8; *(uint16_t*)0x20000166 = 1; memcpy((void*)0x20000168, "bpf\000", 4); *(uint16_t*)0x2000016c = 0x20; *(uint16_t*)0x2000016e = 2; *(uint16_t*)0x20000170 = 6; *(uint16_t*)0x20000172 = 4; *(uint16_t*)0x20000174 = 1; *(uint16_t*)0x20000178 = 0xc; *(uint16_t*)0x2000017a = 5; *(uint16_t*)0x2000017c = 6; *(uint8_t*)0x2000017e = 0xd; *(uint8_t*)0x2000017f = 5; *(uint32_t*)0x20000180 = 4; *(uint16_t*)0x20000184 = 8; *(uint16_t*)0x20000186 = 8; *(uint32_t*)0x20000188 = 1; *(uint32_t*)0x20000384 = 0x4c; *(uint32_t*)0x2000000c = 1; *(uint32_t*)0x20000010 = 0; *(uint32_t*)0x20000014 = 0; *(uint32_t*)0x20000018 = 0x8848; syscall(__NR_sendmsg, /*fd=*/(intptr_t)r[6], /*msg=*/0x20000000, /*f=MSG_FASTOPEN|MSG_NOSIGNAL|MSG_DONTROUTE|MSG_CONFIRM*/ 0x20004804); // openat$tun arguments: [ // fd: const = 0xffffffffffffff9c (4 bytes) // file: ptr[in, buffer] { // buffer: {2f 64 65 76 2f 6e 65 74 2f 74 75 6e 00} (length 0xd) // } // flags: open_flags = 0x0 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_tun memcpy((void*)0x20000400, "/dev/net/tun\000", 13); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000400, /*flags=*/0, /*mode=*/0); if (res != -1) r[9] = res; // close arguments: [ // fd: fd (resource) // ] syscall(__NR_close, /*fd=*/(intptr_t)r[9]); // socket$nl_generic arguments: [ // domain: const = 0x10 (4 bytes) // type: const = 0x3 (4 bytes) // proto: const = 0x10 (4 bytes) // ] // returns sock_nl_generic syscall(__NR_socket, /*domain=*/0x10, /*type=*/3, /*proto=*/0x10); // ioctl$SIOCSIFHWADDR arguments: [ // fd: fd_tun (resource) // cmd: const = 0x8914 (4 bytes) // arg: ptr[in, ifreq_dev_t[devnames, mac_addr]] { // ifreq_dev_t[devnames, mac_addr] { // ifr_ifrn: buffer: {73 79 7a 6b 61 6c 6c 65 72 30 00 00 00 00 00 00} // (length 0x10) elem: union mac_addr { // multicast: buffer: {bb bb bb bb bb bb} (length 0x6) // } // pad = 0x0 (10 bytes) // } // } // ] memcpy((void*)0x20002280, "syzkaller0\000\000\000\000\000\000", 16); memset((void*)0x20002290, 187, 6); syscall(__NR_ioctl, /*fd=*/(intptr_t)r[9], /*cmd=*/0x8914, /*arg=*/0x20002280); // ioctl$sock_SIOCGIFINDEX arguments: [ // fd: sock (resource) // cmd: const = 0x8933 (4 bytes) // arg: ptr[out, ifreq_dev_t[devnames, ifindex]] { // ifreq_dev_t[devnames, ifindex] { // ifr_ifrn: buffer: {73 79 7a 6b 61 6c 6c 65 72 30 00 00 00 00 00 00} // (length 0x10) elem: ifindex (resource) pad = 0x0 (12 bytes) // } // } // ] memcpy((void*)0x20000100, "syzkaller0\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/(intptr_t)r[0], /*cmd=*/0x8933, /*arg=*/0x20000100); if (res != -1) r[10] = *(uint32_t*)0x20000110; // sendmsg$kcm arguments: [ // fd: sock_kcm (resource) // msg: ptr[in, send_msghdr] { // send_msghdr { // msg_name: ptr[in, sockaddr_storage] { // union sockaddr_storage { // xdp: sockaddr_xdp { // sxdp_family: const = 0x2c (2 bytes) // sxdp_flags: sxdp_flags = 0x7 (2 bytes) // sxdp_ifindex: ifindex (resource) // sxdp_queue_id: int32 = 0x3e (4 bytes) // sxdp_shared_umem_fd: const = 0x0 (4 bytes) // } // } // } // msg_namelen: len = 0x80 (4 bytes) // msg_iov: ptr[in, array[iovec[in, array[int8]]]] { // array[iovec[in, array[int8]]] { // iovec[in, array[int8]] { // addr: ptr[in, buffer] { // buffer: {27 03} (length 0x2) // } // len: len = 0x2 (4 bytes) // } // } // } // msg_iovlen: len = 0x1 (4 bytes) // msg_control: nil // msg_controllen: bytesize = 0x0 (4 bytes) // msg_flags: const = 0x0 (4 bytes) // } // } // f: send_flags = 0x4 (4 bytes) // ] *(uint32_t*)0x200000c0 = 0x20000380; *(uint16_t*)0x20000380 = 0x2c; *(uint16_t*)0x20000382 = 7; *(uint32_t*)0x20000384 = r[10]; *(uint32_t*)0x20000388 = 0x3e; *(uint32_t*)0x2000038c = 0; *(uint32_t*)0x200000c4 = 0x80; *(uint32_t*)0x200000c8 = 0x20000080; *(uint32_t*)0x20000080 = 0x20000180; memcpy((void*)0x20000180, "\x27\x03", 2); *(uint32_t*)0x20000084 = 2; *(uint32_t*)0x200000cc = 1; *(uint32_t*)0x200000d0 = 0; *(uint32_t*)0x200000d4 = 0; *(uint32_t*)0x200000d8 = 0; syscall(__NR_sendmsg, /*fd=*/(intptr_t)r[5], /*msg=*/0x200000c0, /*f=MSG_DONTROUTE*/ 4); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000, /*len=*/0x1000, /*prot=*/0, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32, /*fd=*/(intptr_t)-1, /*offset=*/0); syscall(__NR_mmap, /*addr=*/0x20000000, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32, /*fd=*/(intptr_t)-1, /*offset=*/0); syscall(__NR_mmap, /*addr=*/0x21000000, /*len=*/0x1000, /*prot=*/0, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32, /*fd=*/(intptr_t)-1, /*offset=*/0); const char* reason; (void)reason; loop(); return 0; }