// https://syzkaller.appspot.com/bug?id=912f70e859dfffd2533b7cfcd2c71e0dd6f71e9d // autogenerated by syzkaller (http://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 #include #include #include #include #include #include #include __attribute__((noreturn)) static void doexit(int status) { volatile unsigned i; syscall(__NR_exit_group, status); for (i = 0;; i++) { } } #include #include const int kFailStatus = 67; const int kRetryStatus = 69; static void fail(const char* msg, ...) { int e = errno; va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); fprintf(stderr, " (errno %d)\n", e); doexit((e == ENOMEM || e == EAGAIN) ? kRetryStatus : kFailStatus); } #define BITMASK_LEN(type, bf_len) (type)((1ull << (bf_len)) - 1) #define BITMASK_LEN_OFF(type, bf_off, bf_len) \ (type)(BITMASK_LEN(type, (bf_len)) << (bf_off)) #define STORE_BY_BITMASK(type, addr, val, bf_off, bf_len) \ if ((bf_off) == 0 && (bf_len) == 0) { \ *(type*)(addr) = (type)(val); \ } else { \ type new_val = *(type*)(addr); \ new_val &= ~BITMASK_LEN_OFF(type, (bf_off), (bf_len)); \ new_val |= ((type)(val)&BITMASK_LEN(type, (bf_len))) << (bf_off); \ *(type*)(addr) = new_val; \ } struct csum_inet { uint32_t acc; }; static void csum_inet_init(struct csum_inet* csum) { csum->acc = 0; } static void csum_inet_update(struct csum_inet* csum, const uint8_t* data, size_t length) { if (length == 0) return; size_t i; for (i = 0; i < length - 1; i += 2) csum->acc += *(uint16_t*)&data[i]; if (length & 1) csum->acc += (uint16_t)data[length - 1]; while (csum->acc > 0xffff) csum->acc = (csum->acc & 0xffff) + (csum->acc >> 16); } static uint16_t csum_inet_digest(struct csum_inet* csum) { return ~csum->acc; } static uint64_t current_time_ms() { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) fail("clock_gettime failed"); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void vsnprintf_check(char* str, size_t size, const char* format, va_list args) { int rv; rv = vsnprintf(str, size, format, args); if (rv < 0) fail("tun: snprintf failed"); if ((size_t)rv >= size) fail("tun: string '%s...' doesn't fit into buffer", str); } static void snprintf_check(char* str, size_t size, const char* format, ...) { va_list args; va_start(args, format); vsnprintf_check(str, size, format, args); va_end(args); } #define COMMAND_MAX_LEN 128 #define PATH_PREFIX \ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin " #define PATH_PREFIX_LEN (sizeof(PATH_PREFIX) - 1) static void execute_command(bool panic, const char* format, ...) { va_list args; char command[PATH_PREFIX_LEN + COMMAND_MAX_LEN]; int rv; va_start(args, format); memcpy(command, PATH_PREFIX, PATH_PREFIX_LEN); vsnprintf_check(command + PATH_PREFIX_LEN, COMMAND_MAX_LEN, format, args); rv = system(command); if (panic && rv != 0) fail("tun: command \"%s\" failed with code %d", &command[0], rv); va_end(args); } static int tunfd = -1; static int tun_frags_enabled; #define SYZ_TUN_MAX_PACKET_SIZE 1000 #define MAX_PIDS 32 #define ADDR_MAX_LEN 32 #define LOCAL_MAC "aa:aa:aa:aa:%02hx:aa" #define REMOTE_MAC "aa:aa:aa:aa:%02hx:bb" #define LOCAL_IPV4 "172.20.%d.170" #define REMOTE_IPV4 "172.20.%d.187" #define LOCAL_IPV6 "fe80::%02hx:aa" #define REMOTE_IPV6 "fe80::%02hx:bb" #define IFF_NAPI 0x0010 #define IFF_NAPI_FRAGS 0x0020 static void initialize_tun(int id) { if (id >= MAX_PIDS) fail("tun: no more than %d executors", MAX_PIDS); tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK); if (tunfd == -1) { printf("tun: can't open /dev/net/tun: please enable CONFIG_TUN=y\n"); printf("otherwise fuzzing or reproducing might not work as intended\n"); return; } char iface[IFNAMSIZ]; snprintf_check(iface, sizeof(iface), "syz%d", id); struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, iface, IFNAMSIZ); ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS; if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) { ifr.ifr_flags = IFF_TAP | IFF_NO_PI; if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) fail("tun: ioctl(TUNSETIFF) failed"); } if (ioctl(tunfd, TUNGETIFF, (void*)&ifr) < 0) fail("tun: ioctl(TUNGETIFF) failed"); tun_frags_enabled = (ifr.ifr_flags & IFF_NAPI_FRAGS) != 0; char local_mac[ADDR_MAX_LEN]; snprintf_check(local_mac, sizeof(local_mac), LOCAL_MAC, id); char remote_mac[ADDR_MAX_LEN]; snprintf_check(remote_mac, sizeof(remote_mac), REMOTE_MAC, id); char local_ipv4[ADDR_MAX_LEN]; snprintf_check(local_ipv4, sizeof(local_ipv4), LOCAL_IPV4, id); char remote_ipv4[ADDR_MAX_LEN]; snprintf_check(remote_ipv4, sizeof(remote_ipv4), REMOTE_IPV4, id); char local_ipv6[ADDR_MAX_LEN]; snprintf_check(local_ipv6, sizeof(local_ipv6), LOCAL_IPV6, id); char remote_ipv6[ADDR_MAX_LEN]; snprintf_check(remote_ipv6, sizeof(remote_ipv6), REMOTE_IPV6, id); execute_command(1, "sysctl -w net.ipv6.conf.%s.accept_dad=0", iface); execute_command(1, "sysctl -w net.ipv6.conf.%s.router_solicitations=0", iface); execute_command(1, "ip link set dev %s address %s", iface, local_mac); execute_command(1, "ip addr add %s/24 dev %s", local_ipv4, iface); execute_command(1, "ip -6 addr add %s/120 dev %s", local_ipv6, iface); execute_command(1, "ip neigh add %s lladdr %s dev %s nud permanent", remote_ipv4, remote_mac, iface); execute_command(1, "ip -6 neigh add %s lladdr %s dev %s nud permanent", remote_ipv6, remote_mac, iface); execute_command(1, "ip link set dev %s up", iface); } #define DEV_IPV4 "172.20.%d.%d" #define DEV_IPV6 "fe80::%02hx:%02hx" #define DEV_MAC "aa:aa:aa:aa:%02hx:%02hx" static void initialize_netdevices(int id) { unsigned i; const char* devtypes[] = {"ip6gretap", "bridge", "vcan"}; const char* devnames[] = {"lo", "sit0", "bridge0", "vcan0", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "ip6tnl0", "ip6gre0", "ip6gretap0", "erspan0"}; for (i = 0; i < sizeof(devtypes) / (sizeof(devtypes[0])); i++) execute_command(0, "ip link add dev %s0 type %s", devtypes[i], devtypes[i]); for (i = 0; i < sizeof(devnames) / (sizeof(devnames[0])); i++) { char addr[ADDR_MAX_LEN]; snprintf_check(addr, sizeof(addr), DEV_IPV4, id, id + 10); execute_command(0, "ip -4 addr add %s/24 dev %s", addr, devnames[i]); snprintf_check(addr, sizeof(addr), DEV_IPV6, id, id + 10); execute_command(0, "ip -6 addr add %s/120 dev %s", addr, devnames[i]); snprintf_check(addr, sizeof(addr), DEV_MAC, id, id + 10); execute_command(0, "ip link set dev %s address %s", devnames[i], addr); execute_command(0, "ip link set dev %s up", devnames[i]); } } static void setup_tun(uint64_t pid, bool enable_tun) { if (enable_tun) { initialize_tun(pid); initialize_netdevices(pid); } } static int read_tun(char* data, int size) { if (tunfd < 0) return -1; int rv = read(tunfd, data, size); if (rv < 0) { if (errno == EAGAIN) return -1; if (errno == EBADFD) return -1; fail("tun: read failed with %d", rv); } return rv; } #define MAX_FRAGS 4 struct vnet_fragmentation { uint32_t full; uint32_t count; uint32_t frags[MAX_FRAGS]; }; static uintptr_t syz_emit_ethernet(uintptr_t a0, uintptr_t a1, uintptr_t a2) { if (tunfd < 0) return (uintptr_t)-1; uint32_t length = a0; char* data = (char*)a1; struct vnet_fragmentation* frags = (struct vnet_fragmentation*)a2; struct iovec vecs[MAX_FRAGS + 1]; uint32_t nfrags = 0; if (!tun_frags_enabled || frags == NULL) { vecs[nfrags].iov_base = data; vecs[nfrags].iov_len = length; nfrags++; } else { bool full = true; uint32_t i, count = 0; full = frags->full; count = frags->count; if (count > MAX_FRAGS) count = MAX_FRAGS; for (i = 0; i < count && length != 0; i++) { uint32_t size = 0; size = frags->frags[i]; if (size > length) size = length; vecs[nfrags].iov_base = data; vecs[nfrags].iov_len = size; nfrags++; data += size; length -= size; } if (length != 0 && (full || nfrags == 0)) { vecs[nfrags].iov_base = data; vecs[nfrags].iov_len = length; nfrags++; } } return writev(tunfd, vecs, nfrags); } static void flush_tun() { char data[SYZ_TUN_MAX_PACKET_SIZE]; while (read_tun(&data[0], sizeof(data)) != -1) ; } struct ipt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_entries; unsigned int size; }; struct ipt_get_entries { char name[32]; unsigned int size; void* entrytable[1024 / sizeof(void*)]; }; struct xt_counters { uint64_t pcnt, bcnt; }; struct ipt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[5]; unsigned int underflow[5]; unsigned int num_counters; struct xt_counters* counters; char entrytable[1024]; }; struct ipt_table_desc { const char* name; struct ipt_getinfo info; struct ipt_get_entries entries; struct ipt_replace replace; struct xt_counters counters[10]; }; static struct ipt_table_desc ipv4_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; #define IPT_BASE_CTL 64 #define IPT_SO_SET_REPLACE (IPT_BASE_CTL) #define IPT_SO_GET_INFO (IPT_BASE_CTL) #define IPT_SO_GET_ENTRIES (IPT_BASE_CTL + 1) static void checkpoint_net_namespace(void) { socklen_t optlen; unsigned i; int fd; fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) fail("socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)"); for (i = 0; i < sizeof(ipv4_tables) / sizeof(ipv4_tables[0]); i++) { struct ipt_table_desc* table = &ipv4_tables[i]; strcpy(table->info.name, table->name); strcpy(table->entries.name, table->name); strcpy(table->replace.name, table->name); optlen = sizeof(table->info); if (getsockopt(fd, SOL_IP, IPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } fail("getsockopt(IPT_SO_GET_INFO)"); } if (table->info.size > sizeof(table->entries.entrytable)) fail("table size is too large: %u", table->info.size); if (table->info.num_entries > sizeof(table->counters) / sizeof(table->counters[0])) fail("too many counters: %u", table->info.num_entries); table->entries.size = table->info.size; optlen = sizeof(table->entries) - sizeof(table->entries.entrytable) + table->info.size; if (getsockopt(fd, SOL_IP, IPT_SO_GET_ENTRIES, &table->entries, &optlen)) fail("getsockopt(IPT_SO_GET_ENTRIES)"); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; table->replace.counters = table->counters; table->replace.size = table->info.size; memcpy(table->replace.hook_entry, table->info.hook_entry, sizeof(table->replace.hook_entry)); memcpy(table->replace.underflow, table->info.underflow, sizeof(table->replace.underflow)); memcpy(table->replace.entrytable, table->entries.entrytable, table->info.size); } close(fd); } static void reset_net_namespace(void) { struct ipt_get_entries entries; struct ipt_getinfo info; socklen_t optlen; unsigned i; int fd; memset(&info, 0, sizeof(info)); memset(&entries, 0, sizeof(entries)); fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) fail("socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)"); for (i = 0; i < sizeof(ipv4_tables) / sizeof(ipv4_tables[0]); i++) { struct ipt_table_desc* table = &ipv4_tables[i]; if (table->info.valid_hooks == 0) continue; strcpy(info.name, table->name); optlen = sizeof(info); if (getsockopt(fd, SOL_IP, IPT_SO_GET_INFO, &info, &optlen)) fail("getsockopt(IPT_SO_GET_INFO)"); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, SOL_IP, IPT_SO_GET_ENTRIES, &entries, &optlen)) fail("getsockopt(IPT_SO_GET_ENTRIES)"); if (memcmp(&table->entries, &entries, optlen) == 0) continue; } table->replace.num_counters = info.num_entries; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, SOL_IP, IPT_SO_SET_REPLACE, &table->replace, optlen)) fail("setsockopt(IPT_SO_SET_REPLACE)"); } close(fd); } static void test(); void loop() { int iter; checkpoint_net_namespace(); for (iter = 0;; iter++) { int pid = fork(); if (pid < 0) fail("loop fork failed"); if (pid == 0) { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); flush_tun(); test(); doexit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { int res = waitpid(-1, &status, __WALL | WNOHANG); if (res == pid) break; usleep(1000); if (current_time_ms() - start > 5 * 1000) { kill(-pid, SIGKILL); kill(pid, SIGKILL); while (waitpid(-1, &status, __WALL) != pid) { } break; } } reset_net_namespace(); } } long r[3]; void test() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 0xa, 3, 0xd); memcpy((void*)0x20006a60, "\x73\x65\x63\x75\x72\x69\x74\x79\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00", 32); *(uint32_t*)0x20006a80 = 0xe; *(uint32_t*)0x20006a84 = 4; *(uint32_t*)0x20006a88 = 0x440; *(uint32_t*)0x20006a8c = -1; *(uint32_t*)0x20006a90 = 0; *(uint32_t*)0x20006a94 = 0; *(uint32_t*)0x20006a98 = 0; *(uint32_t*)0x20006a9c = -1; *(uint32_t*)0x20006aa0 = -1; *(uint32_t*)0x20006aa4 = 0; *(uint32_t*)0x20006aa8 = 0; *(uint32_t*)0x20006aac = 0; *(uint32_t*)0x20006ab0 = -1; *(uint32_t*)0x20006ab4 = 4; *(uint64_t*)0x20006ab8 = 0x20000fc0; *(uint8_t*)0x20006ac0 = 0; *(uint8_t*)0x20006ac1 = 0; *(uint8_t*)0x20006ac2 = 0; *(uint8_t*)0x20006ac3 = 0; *(uint8_t*)0x20006ac4 = 0; *(uint8_t*)0x20006ac5 = 0; *(uint8_t*)0x20006ac6 = 0; *(uint8_t*)0x20006ac7 = 0; *(uint8_t*)0x20006ac8 = 0; *(uint8_t*)0x20006ac9 = 0; *(uint8_t*)0x20006aca = 0; *(uint8_t*)0x20006acb = 0; *(uint8_t*)0x20006acc = 0; *(uint8_t*)0x20006acd = 0; *(uint8_t*)0x20006ace = 0; *(uint8_t*)0x20006acf = 0; *(uint8_t*)0x20006ad0 = 0; *(uint8_t*)0x20006ad1 = 0; *(uint8_t*)0x20006ad2 = 0; *(uint8_t*)0x20006ad3 = 0; *(uint8_t*)0x20006ad4 = 0; *(uint8_t*)0x20006ad5 = 0; *(uint8_t*)0x20006ad6 = 0; *(uint8_t*)0x20006ad7 = 0; *(uint8_t*)0x20006ad8 = 0; *(uint8_t*)0x20006ad9 = 0; *(uint8_t*)0x20006ada = 0; *(uint8_t*)0x20006adb = 0; *(uint8_t*)0x20006adc = 0; *(uint8_t*)0x20006add = 0; *(uint8_t*)0x20006ade = 0; *(uint8_t*)0x20006adf = 0; *(uint8_t*)0x20006ae0 = 0; *(uint8_t*)0x20006ae1 = 0; *(uint8_t*)0x20006ae2 = 0; *(uint8_t*)0x20006ae3 = 0; *(uint8_t*)0x20006ae4 = 0; *(uint8_t*)0x20006ae5 = 0; *(uint8_t*)0x20006ae6 = 0; *(uint8_t*)0x20006ae7 = 0; *(uint8_t*)0x20006ae8 = 0; *(uint8_t*)0x20006ae9 = 0; *(uint8_t*)0x20006aea = 0; *(uint8_t*)0x20006aeb = 0; *(uint8_t*)0x20006aec = 0; *(uint8_t*)0x20006aed = 0; *(uint8_t*)0x20006aee = 0; *(uint8_t*)0x20006aef = 0; *(uint8_t*)0x20006af0 = 0; *(uint8_t*)0x20006af1 = 0; *(uint8_t*)0x20006af2 = 0; *(uint8_t*)0x20006af3 = 0; *(uint8_t*)0x20006af4 = 0; *(uint8_t*)0x20006af5 = 0; *(uint8_t*)0x20006af6 = 0; *(uint8_t*)0x20006af7 = 0; *(uint8_t*)0x20006af8 = 0; *(uint8_t*)0x20006af9 = 0; *(uint8_t*)0x20006afa = 0; *(uint8_t*)0x20006afb = 0; *(uint8_t*)0x20006afc = 0; *(uint8_t*)0x20006afd = 0; *(uint8_t*)0x20006afe = 0; *(uint8_t*)0x20006aff = 0; *(uint8_t*)0x20006b00 = 0; *(uint8_t*)0x20006b01 = 0; *(uint8_t*)0x20006b02 = 0; *(uint8_t*)0x20006b03 = 0; *(uint8_t*)0x20006b04 = 0; *(uint8_t*)0x20006b05 = 0; *(uint8_t*)0x20006b06 = 0; *(uint8_t*)0x20006b07 = 0; *(uint8_t*)0x20006b08 = 0; *(uint8_t*)0x20006b09 = 0; *(uint8_t*)0x20006b0a = 0; *(uint8_t*)0x20006b0b = 0; *(uint8_t*)0x20006b0c = 0; *(uint8_t*)0x20006b0d = 0; *(uint8_t*)0x20006b0e = 0; *(uint8_t*)0x20006b0f = 0; *(uint8_t*)0x20006b10 = 0; *(uint8_t*)0x20006b11 = 0; *(uint8_t*)0x20006b12 = 0; *(uint8_t*)0x20006b13 = 0; *(uint8_t*)0x20006b14 = 0; *(uint8_t*)0x20006b15 = 0; *(uint8_t*)0x20006b16 = 0; *(uint8_t*)0x20006b17 = 0; *(uint8_t*)0x20006b18 = 0; *(uint8_t*)0x20006b19 = 0; *(uint8_t*)0x20006b1a = 0; *(uint8_t*)0x20006b1b = 0; *(uint8_t*)0x20006b1c = 0; *(uint8_t*)0x20006b1d = 0; *(uint8_t*)0x20006b1e = 0; *(uint8_t*)0x20006b1f = 0; *(uint8_t*)0x20006b20 = 0; *(uint8_t*)0x20006b21 = 0; *(uint8_t*)0x20006b22 = 0; *(uint8_t*)0x20006b23 = 0; *(uint8_t*)0x20006b24 = 0; *(uint8_t*)0x20006b25 = 0; *(uint8_t*)0x20006b26 = 0; *(uint8_t*)0x20006b27 = 0; *(uint8_t*)0x20006b28 = 0; *(uint8_t*)0x20006b29 = 0; *(uint8_t*)0x20006b2a = 0; *(uint8_t*)0x20006b2b = 0; *(uint8_t*)0x20006b2c = 0; *(uint8_t*)0x20006b2d = 0; *(uint8_t*)0x20006b2e = 0; *(uint8_t*)0x20006b2f = 0; *(uint8_t*)0x20006b30 = 0; *(uint8_t*)0x20006b31 = 0; *(uint8_t*)0x20006b32 = 0; *(uint8_t*)0x20006b33 = 0; *(uint8_t*)0x20006b34 = 0; *(uint8_t*)0x20006b35 = 0; *(uint8_t*)0x20006b36 = 0; *(uint8_t*)0x20006b37 = 0; *(uint8_t*)0x20006b38 = 0; *(uint8_t*)0x20006b39 = 0; *(uint8_t*)0x20006b3a = 0; *(uint8_t*)0x20006b3b = 0; *(uint8_t*)0x20006b3c = 0; *(uint8_t*)0x20006b3d = 0; *(uint8_t*)0x20006b3e = 0; *(uint8_t*)0x20006b3f = 0; *(uint8_t*)0x20006b40 = 0; *(uint8_t*)0x20006b41 = 0; *(uint8_t*)0x20006b42 = 0; *(uint8_t*)0x20006b43 = 0; *(uint8_t*)0x20006b44 = 0; *(uint8_t*)0x20006b45 = 0; *(uint8_t*)0x20006b46 = 0; *(uint8_t*)0x20006b47 = 0; *(uint32_t*)0x20006b48 = 0; *(uint16_t*)0x20006b4c = 0xa8; *(uint16_t*)0x20006b4e = 0xd0; *(uint32_t*)0x20006b50 = 0; *(uint64_t*)0x20006b58 = 0; *(uint64_t*)0x20006b60 = 0; *(uint16_t*)0x20006b68 = 0x28; memcpy((void*)0x20006b6a, "\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", 29); *(uint8_t*)0x20006b87 = 0; *(uint32_t*)0x20006b88 = 0xfffffffe; *(uint8_t*)0x20006b90 = 0; *(uint8_t*)0x20006b91 = 0; *(uint8_t*)0x20006b92 = 0; *(uint8_t*)0x20006b93 = 0; *(uint8_t*)0x20006b94 = 0; *(uint8_t*)0x20006b95 = 0; *(uint8_t*)0x20006b96 = 0; *(uint8_t*)0x20006b97 = 0; *(uint8_t*)0x20006b98 = 0; *(uint8_t*)0x20006b99 = 0; *(uint8_t*)0x20006b9a = 0; *(uint8_t*)0x20006b9b = 0; *(uint8_t*)0x20006b9c = 0; *(uint8_t*)0x20006b9d = 0; *(uint8_t*)0x20006b9e = 0; *(uint8_t*)0x20006b9f = 0; *(uint8_t*)0x20006ba0 = 0; *(uint8_t*)0x20006ba1 = 0; *(uint8_t*)0x20006ba2 = 0; *(uint8_t*)0x20006ba3 = 0; *(uint8_t*)0x20006ba4 = 0; *(uint8_t*)0x20006ba5 = 0; *(uint8_t*)0x20006ba6 = 0; *(uint8_t*)0x20006ba7 = 0; *(uint8_t*)0x20006ba8 = 0; *(uint8_t*)0x20006ba9 = 0; *(uint8_t*)0x20006baa = 0; *(uint8_t*)0x20006bab = 0; *(uint8_t*)0x20006bac = 0; *(uint8_t*)0x20006bad = 0; *(uint8_t*)0x20006bae = 0; *(uint8_t*)0x20006baf = 0; *(uint8_t*)0x20006bb0 = 0; *(uint8_t*)0x20006bb1 = 0; *(uint8_t*)0x20006bb2 = 0; *(uint8_t*)0x20006bb3 = 0; *(uint8_t*)0x20006bb4 = 0; *(uint8_t*)0x20006bb5 = 0; *(uint8_t*)0x20006bb6 = 0; *(uint8_t*)0x20006bb7 = 0; *(uint8_t*)0x20006bb8 = 0; *(uint8_t*)0x20006bb9 = 0; *(uint8_t*)0x20006bba = 0; *(uint8_t*)0x20006bbb = 0; *(uint8_t*)0x20006bbc = 0; *(uint8_t*)0x20006bbd = 0; *(uint8_t*)0x20006bbe = 0; *(uint8_t*)0x20006bbf = 0; *(uint8_t*)0x20006bc0 = 0; *(uint8_t*)0x20006bc1 = 0; *(uint8_t*)0x20006bc2 = 0; *(uint8_t*)0x20006bc3 = 0; *(uint8_t*)0x20006bc4 = 0; *(uint8_t*)0x20006bc5 = 0; *(uint8_t*)0x20006bc6 = 0; *(uint8_t*)0x20006bc7 = 0; *(uint8_t*)0x20006bc8 = 0; *(uint8_t*)0x20006bc9 = 0; *(uint8_t*)0x20006bca = 0; *(uint8_t*)0x20006bcb = 0; *(uint8_t*)0x20006bcc = 0; *(uint8_t*)0x20006bcd = 0; *(uint8_t*)0x20006bce = 0; *(uint8_t*)0x20006bcf = 0; *(uint8_t*)0x20006bd0 = 0; *(uint8_t*)0x20006bd1 = 0; *(uint8_t*)0x20006bd2 = 0; *(uint8_t*)0x20006bd3 = 0; *(uint8_t*)0x20006bd4 = 0; *(uint8_t*)0x20006bd5 = 0; *(uint8_t*)0x20006bd6 = 0; *(uint8_t*)0x20006bd7 = 0; *(uint8_t*)0x20006bd8 = 0; *(uint8_t*)0x20006bd9 = 0; *(uint8_t*)0x20006bda = 0; *(uint8_t*)0x20006bdb = 0; *(uint8_t*)0x20006bdc = 0; *(uint8_t*)0x20006bdd = 0; *(uint8_t*)0x20006bde = 0; *(uint8_t*)0x20006bdf = 0; *(uint8_t*)0x20006be0 = 0; *(uint8_t*)0x20006be1 = 0; *(uint8_t*)0x20006be2 = 0; *(uint8_t*)0x20006be3 = 0; *(uint8_t*)0x20006be4 = 0; *(uint8_t*)0x20006be5 = 0; *(uint8_t*)0x20006be6 = 0; *(uint8_t*)0x20006be7 = 0; *(uint8_t*)0x20006be8 = 0; *(uint8_t*)0x20006be9 = 0; *(uint8_t*)0x20006bea = 0; *(uint8_t*)0x20006beb = 0; *(uint8_t*)0x20006bec = 0; *(uint8_t*)0x20006bed = 0; *(uint8_t*)0x20006bee = 0; *(uint8_t*)0x20006bef = 0; *(uint8_t*)0x20006bf0 = 0; *(uint8_t*)0x20006bf1 = 0; *(uint8_t*)0x20006bf2 = 0; *(uint8_t*)0x20006bf3 = 0; *(uint8_t*)0x20006bf4 = 0; *(uint8_t*)0x20006bf5 = 0; *(uint8_t*)0x20006bf6 = 0; *(uint8_t*)0x20006bf7 = 0; *(uint8_t*)0x20006bf8 = 0; *(uint8_t*)0x20006bf9 = 0; *(uint8_t*)0x20006bfa = 0; *(uint8_t*)0x20006bfb = 0; *(uint8_t*)0x20006bfc = 0; *(uint8_t*)0x20006bfd = 0; *(uint8_t*)0x20006bfe = 0; *(uint8_t*)0x20006bff = 0; *(uint8_t*)0x20006c00 = 0; *(uint8_t*)0x20006c01 = 0; *(uint8_t*)0x20006c02 = 0; *(uint8_t*)0x20006c03 = 0; *(uint8_t*)0x20006c04 = 0; *(uint8_t*)0x20006c05 = 0; *(uint8_t*)0x20006c06 = 0; *(uint8_t*)0x20006c07 = 0; *(uint8_t*)0x20006c08 = 0; *(uint8_t*)0x20006c09 = 0; *(uint8_t*)0x20006c0a = 0; *(uint8_t*)0x20006c0b = 0; *(uint8_t*)0x20006c0c = 0; *(uint8_t*)0x20006c0d = 0; *(uint8_t*)0x20006c0e = 0; *(uint8_t*)0x20006c0f = 0; *(uint8_t*)0x20006c10 = 0; *(uint8_t*)0x20006c11 = 0; *(uint8_t*)0x20006c12 = 0; *(uint8_t*)0x20006c13 = 0; *(uint8_t*)0x20006c14 = 0; *(uint8_t*)0x20006c15 = 0; *(uint8_t*)0x20006c16 = 0; *(uint8_t*)0x20006c17 = 0; *(uint32_t*)0x20006c18 = 0; *(uint16_t*)0x20006c1c = 0xa8; *(uint16_t*)0x20006c1e = 0x1d0; *(uint32_t*)0x20006c20 = 0; *(uint64_t*)0x20006c24 = 0; *(uint64_t*)0x20006c2c = 0; *(uint16_t*)0x20006c38 = 0x128; memcpy((void*)0x20006c3a, "\x53\x45\x43\x4d\x41\x52\x4b\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x20006c57 = 0; *(uint8_t*)0x20006c58 = 1; *(uint32_t*)0x20006c5c = 0; memcpy((void*)0x20006c60, "\x73\x79\x73\x74\x65\x6d\x5f\x75\x3a\x6f\x62\x6a\x65\x63\x74\x5f\x72" "\x3a\x73\x79\x73\x74\x65\x6d\x64\x5f\x75\x6e\x69\x74\x5f\x66\x69\x6c" "\x65\x5f\x74\x3a\x73\x30\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\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\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\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", 256); *(uint8_t*)0x20006d60 = 0; *(uint8_t*)0x20006d61 = 0; *(uint8_t*)0x20006d62 = 0; *(uint8_t*)0x20006d63 = 0; *(uint8_t*)0x20006d64 = 0; *(uint8_t*)0x20006d65 = 0; *(uint8_t*)0x20006d66 = 0; *(uint8_t*)0x20006d67 = 0; *(uint8_t*)0x20006d68 = 0; *(uint8_t*)0x20006d69 = 0; *(uint8_t*)0x20006d6a = 0; *(uint8_t*)0x20006d6b = 0; *(uint8_t*)0x20006d6c = 0; *(uint8_t*)0x20006d6d = 0; *(uint8_t*)0x20006d6e = 0; *(uint8_t*)0x20006d6f = 0; *(uint8_t*)0x20006d70 = 0; *(uint8_t*)0x20006d71 = 0; *(uint8_t*)0x20006d72 = 0; *(uint8_t*)0x20006d73 = 0; *(uint8_t*)0x20006d74 = 0; *(uint8_t*)0x20006d75 = 0; *(uint8_t*)0x20006d76 = 0; *(uint8_t*)0x20006d77 = 0; *(uint8_t*)0x20006d78 = 0; *(uint8_t*)0x20006d79 = 0; *(uint8_t*)0x20006d7a = 0; *(uint8_t*)0x20006d7b = 0; *(uint8_t*)0x20006d7c = 0; *(uint8_t*)0x20006d7d = 0; *(uint8_t*)0x20006d7e = 0; *(uint8_t*)0x20006d7f = 0; *(uint8_t*)0x20006d80 = 0; *(uint8_t*)0x20006d81 = 0; *(uint8_t*)0x20006d82 = 0; *(uint8_t*)0x20006d83 = 0; *(uint8_t*)0x20006d84 = 0; *(uint8_t*)0x20006d85 = 0; *(uint8_t*)0x20006d86 = 0; *(uint8_t*)0x20006d87 = 0; *(uint8_t*)0x20006d88 = 0; *(uint8_t*)0x20006d89 = 0; *(uint8_t*)0x20006d8a = 0; *(uint8_t*)0x20006d8b = 0; *(uint8_t*)0x20006d8c = 0; *(uint8_t*)0x20006d8d = 0; *(uint8_t*)0x20006d8e = 0; *(uint8_t*)0x20006d8f = 0; *(uint8_t*)0x20006d90 = 0; *(uint8_t*)0x20006d91 = 0; *(uint8_t*)0x20006d92 = 0; *(uint8_t*)0x20006d93 = 0; *(uint8_t*)0x20006d94 = 0; *(uint8_t*)0x20006d95 = 0; *(uint8_t*)0x20006d96 = 0; *(uint8_t*)0x20006d97 = 0; *(uint8_t*)0x20006d98 = 0; *(uint8_t*)0x20006d99 = 0; *(uint8_t*)0x20006d9a = 0; *(uint8_t*)0x20006d9b = 0; *(uint8_t*)0x20006d9c = 0; *(uint8_t*)0x20006d9d = 0; *(uint8_t*)0x20006d9e = 0; *(uint8_t*)0x20006d9f = 0; *(uint8_t*)0x20006da0 = 0; *(uint8_t*)0x20006da1 = 0; *(uint8_t*)0x20006da2 = 0; *(uint8_t*)0x20006da3 = 0; *(uint8_t*)0x20006da4 = 0; *(uint8_t*)0x20006da5 = 0; *(uint8_t*)0x20006da6 = 0; *(uint8_t*)0x20006da7 = 0; *(uint8_t*)0x20006da8 = 0; *(uint8_t*)0x20006da9 = 0; *(uint8_t*)0x20006daa = 0; *(uint8_t*)0x20006dab = 0; *(uint8_t*)0x20006dac = 0; *(uint8_t*)0x20006dad = 0; *(uint8_t*)0x20006dae = 0; *(uint8_t*)0x20006daf = 0; *(uint8_t*)0x20006db0 = 0; *(uint8_t*)0x20006db1 = 0; *(uint8_t*)0x20006db2 = 0; *(uint8_t*)0x20006db3 = 0; *(uint8_t*)0x20006db4 = 0; *(uint8_t*)0x20006db5 = 0; *(uint8_t*)0x20006db6 = 0; *(uint8_t*)0x20006db7 = 0; *(uint8_t*)0x20006db8 = 0; *(uint8_t*)0x20006db9 = 0; *(uint8_t*)0x20006dba = 0; *(uint8_t*)0x20006dbb = 0; *(uint8_t*)0x20006dbc = 0; *(uint8_t*)0x20006dbd = 0; *(uint8_t*)0x20006dbe = 0; *(uint8_t*)0x20006dbf = 0; *(uint8_t*)0x20006dc0 = 0; *(uint8_t*)0x20006dc1 = 0; *(uint8_t*)0x20006dc2 = 0; *(uint8_t*)0x20006dc3 = 0; *(uint8_t*)0x20006dc4 = 0; *(uint8_t*)0x20006dc5 = 0; *(uint8_t*)0x20006dc6 = 0; *(uint8_t*)0x20006dc7 = 0; *(uint8_t*)0x20006dc8 = 0; *(uint8_t*)0x20006dc9 = 0; *(uint8_t*)0x20006dca = 0; *(uint8_t*)0x20006dcb = 0; *(uint8_t*)0x20006dcc = 0; *(uint8_t*)0x20006dcd = 0; *(uint8_t*)0x20006dce = 0; *(uint8_t*)0x20006dcf = 0; *(uint8_t*)0x20006dd0 = 0; *(uint8_t*)0x20006dd1 = 0; *(uint8_t*)0x20006dd2 = 0; *(uint8_t*)0x20006dd3 = 0; *(uint8_t*)0x20006dd4 = 0; *(uint8_t*)0x20006dd5 = 0; *(uint8_t*)0x20006dd6 = 0; *(uint8_t*)0x20006dd7 = 0; *(uint8_t*)0x20006dd8 = 0; *(uint8_t*)0x20006dd9 = 0; *(uint8_t*)0x20006dda = 0; *(uint8_t*)0x20006ddb = 0; *(uint8_t*)0x20006ddc = 0; *(uint8_t*)0x20006ddd = 0; *(uint8_t*)0x20006dde = 0; *(uint8_t*)0x20006ddf = 0; *(uint8_t*)0x20006de0 = 0; *(uint8_t*)0x20006de1 = 0; *(uint8_t*)0x20006de2 = 0; *(uint8_t*)0x20006de3 = 0; *(uint8_t*)0x20006de4 = 0; *(uint8_t*)0x20006de5 = 0; *(uint8_t*)0x20006de6 = 0; *(uint8_t*)0x20006de7 = 0; *(uint32_t*)0x20006de8 = 0; *(uint16_t*)0x20006dec = 0xa8; *(uint16_t*)0x20006dee = 0xd0; *(uint32_t*)0x20006df0 = 0; *(uint64_t*)0x20006df4 = 0; *(uint64_t*)0x20006dfc = 0; *(uint16_t*)0x20006e08 = 0x28; memcpy((void*)0x20006e0a, "\x43\x4f\x4e\x4e\x53\x45\x43\x4d\x41\x52\x4b\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x20006e27 = 0; *(uint8_t*)0x20006e28 = 1; *(uint8_t*)0x20006e30 = 0; *(uint8_t*)0x20006e31 = 0; *(uint8_t*)0x20006e32 = 0; *(uint8_t*)0x20006e33 = 0; *(uint8_t*)0x20006e34 = 0; *(uint8_t*)0x20006e35 = 0; *(uint8_t*)0x20006e36 = 0; *(uint8_t*)0x20006e37 = 0; *(uint8_t*)0x20006e38 = 0; *(uint8_t*)0x20006e39 = 0; *(uint8_t*)0x20006e3a = 0; *(uint8_t*)0x20006e3b = 0; *(uint8_t*)0x20006e3c = 0; *(uint8_t*)0x20006e3d = 0; *(uint8_t*)0x20006e3e = 0; *(uint8_t*)0x20006e3f = 0; *(uint8_t*)0x20006e40 = 0; *(uint8_t*)0x20006e41 = 0; *(uint8_t*)0x20006e42 = 0; *(uint8_t*)0x20006e43 = 0; *(uint8_t*)0x20006e44 = 0; *(uint8_t*)0x20006e45 = 0; *(uint8_t*)0x20006e46 = 0; *(uint8_t*)0x20006e47 = 0; *(uint8_t*)0x20006e48 = 0; *(uint8_t*)0x20006e49 = 0; *(uint8_t*)0x20006e4a = 0; *(uint8_t*)0x20006e4b = 0; *(uint8_t*)0x20006e4c = 0; *(uint8_t*)0x20006e4d = 0; *(uint8_t*)0x20006e4e = 0; *(uint8_t*)0x20006e4f = 0; *(uint8_t*)0x20006e50 = 0; *(uint8_t*)0x20006e51 = 0; *(uint8_t*)0x20006e52 = 0; *(uint8_t*)0x20006e53 = 0; *(uint8_t*)0x20006e54 = 0; *(uint8_t*)0x20006e55 = 0; *(uint8_t*)0x20006e56 = 0; *(uint8_t*)0x20006e57 = 0; *(uint8_t*)0x20006e58 = 0; *(uint8_t*)0x20006e59 = 0; *(uint8_t*)0x20006e5a = 0; *(uint8_t*)0x20006e5b = 0; *(uint8_t*)0x20006e5c = 0; *(uint8_t*)0x20006e5d = 0; *(uint8_t*)0x20006e5e = 0; *(uint8_t*)0x20006e5f = 0; *(uint8_t*)0x20006e60 = 0; *(uint8_t*)0x20006e61 = 0; *(uint8_t*)0x20006e62 = 0; *(uint8_t*)0x20006e63 = 0; *(uint8_t*)0x20006e64 = 0; *(uint8_t*)0x20006e65 = 0; *(uint8_t*)0x20006e66 = 0; *(uint8_t*)0x20006e67 = 0; *(uint8_t*)0x20006e68 = 0; *(uint8_t*)0x20006e69 = 0; *(uint8_t*)0x20006e6a = 0; *(uint8_t*)0x20006e6b = 0; *(uint8_t*)0x20006e6c = 0; *(uint8_t*)0x20006e6d = 0; *(uint8_t*)0x20006e6e = 0; *(uint8_t*)0x20006e6f = 0; *(uint8_t*)0x20006e70 = 0; *(uint8_t*)0x20006e71 = 0; *(uint8_t*)0x20006e72 = 0; *(uint8_t*)0x20006e73 = 0; *(uint8_t*)0x20006e74 = 0; *(uint8_t*)0x20006e75 = 0; *(uint8_t*)0x20006e76 = 0; *(uint8_t*)0x20006e77 = 0; *(uint8_t*)0x20006e78 = 0; *(uint8_t*)0x20006e79 = 0; *(uint8_t*)0x20006e7a = 0; *(uint8_t*)0x20006e7b = 0; *(uint8_t*)0x20006e7c = 0; *(uint8_t*)0x20006e7d = 0; *(uint8_t*)0x20006e7e = 0; *(uint8_t*)0x20006e7f = 0; *(uint8_t*)0x20006e80 = 0; *(uint8_t*)0x20006e81 = 0; *(uint8_t*)0x20006e82 = 0; *(uint8_t*)0x20006e83 = 0; *(uint8_t*)0x20006e84 = 0; *(uint8_t*)0x20006e85 = 0; *(uint8_t*)0x20006e86 = 0; *(uint8_t*)0x20006e87 = 0; *(uint8_t*)0x20006e88 = 0; *(uint8_t*)0x20006e89 = 0; *(uint8_t*)0x20006e8a = 0; *(uint8_t*)0x20006e8b = 0; *(uint8_t*)0x20006e8c = 0; *(uint8_t*)0x20006e8d = 0; *(uint8_t*)0x20006e8e = 0; *(uint8_t*)0x20006e8f = 0; *(uint8_t*)0x20006e90 = 0; *(uint8_t*)0x20006e91 = 0; *(uint8_t*)0x20006e92 = 0; *(uint8_t*)0x20006e93 = 0; *(uint8_t*)0x20006e94 = 0; *(uint8_t*)0x20006e95 = 0; *(uint8_t*)0x20006e96 = 0; *(uint8_t*)0x20006e97 = 0; *(uint8_t*)0x20006e98 = 0; *(uint8_t*)0x20006e99 = 0; *(uint8_t*)0x20006e9a = 0; *(uint8_t*)0x20006e9b = 0; *(uint8_t*)0x20006e9c = 0; *(uint8_t*)0x20006e9d = 0; *(uint8_t*)0x20006e9e = 0; *(uint8_t*)0x20006e9f = 0; *(uint8_t*)0x20006ea0 = 0; *(uint8_t*)0x20006ea1 = 0; *(uint8_t*)0x20006ea2 = 0; *(uint8_t*)0x20006ea3 = 0; *(uint8_t*)0x20006ea4 = 0; *(uint8_t*)0x20006ea5 = 0; *(uint8_t*)0x20006ea6 = 0; *(uint8_t*)0x20006ea7 = 0; *(uint8_t*)0x20006ea8 = 0; *(uint8_t*)0x20006ea9 = 0; *(uint8_t*)0x20006eaa = 0; *(uint8_t*)0x20006eab = 0; *(uint8_t*)0x20006eac = 0; *(uint8_t*)0x20006ead = 0; *(uint8_t*)0x20006eae = 0; *(uint8_t*)0x20006eaf = 0; *(uint8_t*)0x20006eb0 = 0; *(uint8_t*)0x20006eb1 = 0; *(uint8_t*)0x20006eb2 = 0; *(uint8_t*)0x20006eb3 = 0; *(uint8_t*)0x20006eb4 = 0; *(uint8_t*)0x20006eb5 = 0; *(uint8_t*)0x20006eb6 = 0; *(uint8_t*)0x20006eb7 = 0; *(uint32_t*)0x20006eb8 = 0; *(uint16_t*)0x20006ebc = 0xa8; *(uint16_t*)0x20006ebe = 0xd0; *(uint32_t*)0x20006ec0 = 0; *(uint64_t*)0x20006ec4 = 0; *(uint64_t*)0x20006ecc = 0; *(uint16_t*)0x20006ed8 = 0x28; memcpy((void*)0x20006eda, "\x41\x55\x44\x49\x54\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x20006ef7 = 0; *(uint8_t*)0x20006ef8 = 0; *(uint64_t*)0x20000fc0 = 0; *(uint64_t*)0x20000fc8 = 0; *(uint64_t*)0x20000fd0 = 0; *(uint64_t*)0x20000fd8 = 0; *(uint64_t*)0x20000fe0 = 0; *(uint64_t*)0x20000fe8 = 0; *(uint64_t*)0x20000ff0 = 0; *(uint64_t*)0x20000ff8 = 0; syscall(__NR_setsockopt, r[0], 0x29, 0x40, 0x20006a60, 0x4a0); r[1] = syscall(__NR_socket, 0xa, 1, 0); *(uint8_t*)0x20578fec = 0; *(uint8_t*)0x20578fed = 0; *(uint8_t*)0x20578fee = 0; *(uint8_t*)0x20578fef = 0; *(uint8_t*)0x20578ff0 = 0; *(uint8_t*)0x20578ff1 = 0; *(uint8_t*)0x20578ff2 = 0; *(uint8_t*)0x20578ff3 = 0; *(uint8_t*)0x20578ff4 = 0; *(uint8_t*)0x20578ff5 = 0; *(uint8_t*)0x20578ff6 = -1; *(uint8_t*)0x20578ff7 = -1; *(uint32_t*)0x20578ff8 = htobe32(-1); *(uint32_t*)0x20578ffc = 0; syscall(__NR_setsockopt, r[1], 0x29, 0x1b, 0x20578fec, 0x14); r[2] = syscall(__NR_socket, 2, 3, 0x81); memcpy((void*)0x2000b000, "\x66\x69\x6c\x74\x65\x72\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", 32); *(uint32_t*)0x2000b020 = 0xe; *(uint32_t*)0x2000b024 = 4; *(uint32_t*)0x2000b028 = 0x298; *(uint32_t*)0x2000b02c = -1; *(uint32_t*)0x2000b030 = 0; *(uint32_t*)0x2000b034 = 0; *(uint32_t*)0x2000b038 = 0; *(uint32_t*)0x2000b03c = -1; *(uint32_t*)0x2000b040 = -1; *(uint32_t*)0x2000b044 = 0; *(uint32_t*)0x2000b048 = 0; *(uint32_t*)0x2000b04c = 0; *(uint32_t*)0x2000b050 = -1; *(uint32_t*)0x2000b054 = 4; *(uint64_t*)0x2000b058 = 0x20012fc0; *(uint8_t*)0x2000b060 = 0; *(uint8_t*)0x2000b061 = 0; *(uint8_t*)0x2000b062 = 0; *(uint8_t*)0x2000b063 = 0; *(uint8_t*)0x2000b064 = 0; *(uint8_t*)0x2000b065 = 0; *(uint8_t*)0x2000b066 = 0; *(uint8_t*)0x2000b067 = 0; *(uint8_t*)0x2000b068 = 0; *(uint8_t*)0x2000b069 = 0; *(uint8_t*)0x2000b06a = 0; *(uint8_t*)0x2000b06b = 0; *(uint8_t*)0x2000b06c = 0; *(uint8_t*)0x2000b06d = 0; *(uint8_t*)0x2000b06e = 0; *(uint8_t*)0x2000b06f = 0; *(uint8_t*)0x2000b070 = 0; *(uint8_t*)0x2000b071 = 0; *(uint8_t*)0x2000b072 = 0; *(uint8_t*)0x2000b073 = 0; *(uint8_t*)0x2000b074 = 0; *(uint8_t*)0x2000b075 = 0; *(uint8_t*)0x2000b076 = 0; *(uint8_t*)0x2000b077 = 0; *(uint8_t*)0x2000b078 = 0; *(uint8_t*)0x2000b079 = 0; *(uint8_t*)0x2000b07a = 0; *(uint8_t*)0x2000b07b = 0; *(uint8_t*)0x2000b07c = 0; *(uint8_t*)0x2000b07d = 0; *(uint8_t*)0x2000b07e = 0; *(uint8_t*)0x2000b07f = 0; *(uint8_t*)0x2000b080 = 0; *(uint8_t*)0x2000b081 = 0; *(uint8_t*)0x2000b082 = 0; *(uint8_t*)0x2000b083 = 0; *(uint8_t*)0x2000b084 = 0; *(uint8_t*)0x2000b085 = 0; *(uint8_t*)0x2000b086 = 0; *(uint8_t*)0x2000b087 = 0; *(uint8_t*)0x2000b088 = 0; *(uint8_t*)0x2000b089 = 0; *(uint8_t*)0x2000b08a = 0; *(uint8_t*)0x2000b08b = 0; *(uint8_t*)0x2000b08c = 0; *(uint8_t*)0x2000b08d = 0; *(uint8_t*)0x2000b08e = 0; *(uint8_t*)0x2000b08f = 0; *(uint8_t*)0x2000b090 = 0; *(uint8_t*)0x2000b091 = 0; *(uint8_t*)0x2000b092 = 0; *(uint8_t*)0x2000b093 = 0; *(uint8_t*)0x2000b094 = 0; *(uint8_t*)0x2000b095 = 0; *(uint8_t*)0x2000b096 = 0; *(uint8_t*)0x2000b097 = 0; *(uint8_t*)0x2000b098 = 0; *(uint8_t*)0x2000b099 = 0; *(uint8_t*)0x2000b09a = 0; *(uint8_t*)0x2000b09b = 0; *(uint8_t*)0x2000b09c = 0; *(uint8_t*)0x2000b09d = 0; *(uint8_t*)0x2000b09e = 0; *(uint8_t*)0x2000b09f = 0; *(uint8_t*)0x2000b0a0 = 0; *(uint8_t*)0x2000b0a1 = 0; *(uint8_t*)0x2000b0a2 = 0; *(uint8_t*)0x2000b0a3 = 0; *(uint8_t*)0x2000b0a4 = 0; *(uint8_t*)0x2000b0a5 = 0; *(uint8_t*)0x2000b0a6 = 0; *(uint8_t*)0x2000b0a7 = 0; *(uint8_t*)0x2000b0a8 = 0; *(uint8_t*)0x2000b0a9 = 0; *(uint8_t*)0x2000b0aa = 0; *(uint8_t*)0x2000b0ab = 0; *(uint8_t*)0x2000b0ac = 0; *(uint8_t*)0x2000b0ad = 0; *(uint8_t*)0x2000b0ae = 0; *(uint8_t*)0x2000b0af = 0; *(uint8_t*)0x2000b0b0 = 0; *(uint8_t*)0x2000b0b1 = 0; *(uint8_t*)0x2000b0b2 = 0; *(uint8_t*)0x2000b0b3 = 0; *(uint32_t*)0x2000b0b4 = 0; *(uint16_t*)0x2000b0b8 = 0x70; *(uint16_t*)0x2000b0ba = 0x98; *(uint32_t*)0x2000b0bc = 0; *(uint64_t*)0x2000b0c0 = 0; *(uint64_t*)0x2000b0c8 = 0; *(uint16_t*)0x2000b0d0 = 0x28; memcpy((void*)0x2000b0d2, "\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", 29); *(uint8_t*)0x2000b0ef = 0; *(uint32_t*)0x2000b0f0 = 0xfffffffe; *(uint32_t*)0x2000b0f8 = htobe32(0); *(uint8_t*)0x2000b0fc = 0xac; *(uint8_t*)0x2000b0fd = 0x14; *(uint8_t*)0x2000b0fe = 0; *(uint8_t*)0x2000b0ff = 0; *(uint32_t*)0x2000b100 = htobe32(0); *(uint32_t*)0x2000b104 = htobe32(0); *(uint8_t*)0x2000b108 = 0x73; *(uint8_t*)0x2000b109 = 0x79; *(uint8_t*)0x2000b10a = 0x7a; *(uint8_t*)0x2000b10b = 0; *(uint8_t*)0x2000b10c = 0; *(uint8_t*)0x2000b118 = 0x73; *(uint8_t*)0x2000b119 = 0x79; *(uint8_t*)0x2000b11a = 0x7a; *(uint8_t*)0x2000b11b = 0; *(uint8_t*)0x2000b11c = 0; *(uint8_t*)0x2000b128 = 0; *(uint8_t*)0x2000b129 = 0; *(uint8_t*)0x2000b12a = 0; *(uint8_t*)0x2000b12b = 0; *(uint8_t*)0x2000b12c = 0; *(uint8_t*)0x2000b12d = 0; *(uint8_t*)0x2000b12e = 0; *(uint8_t*)0x2000b12f = 0; *(uint8_t*)0x2000b130 = 0; *(uint8_t*)0x2000b131 = 0; *(uint8_t*)0x2000b132 = 0; *(uint8_t*)0x2000b133 = 0; *(uint8_t*)0x2000b134 = 0; *(uint8_t*)0x2000b135 = 0; *(uint8_t*)0x2000b136 = 0; *(uint8_t*)0x2000b137 = 0; *(uint8_t*)0x2000b138 = 0; *(uint8_t*)0x2000b139 = 0; *(uint8_t*)0x2000b13a = 0; *(uint8_t*)0x2000b13b = 0; *(uint8_t*)0x2000b13c = 0; *(uint8_t*)0x2000b13d = 0; *(uint8_t*)0x2000b13e = 0; *(uint8_t*)0x2000b13f = 0; *(uint8_t*)0x2000b140 = 0; *(uint8_t*)0x2000b141 = 0; *(uint8_t*)0x2000b142 = 0; *(uint8_t*)0x2000b143 = 0; *(uint8_t*)0x2000b144 = 0; *(uint8_t*)0x2000b145 = 0; *(uint8_t*)0x2000b146 = 0; *(uint8_t*)0x2000b147 = 0; *(uint16_t*)0x2000b148 = 0; *(uint8_t*)0x2000b14a = 0; *(uint8_t*)0x2000b14b = 0; *(uint32_t*)0x2000b14c = 0; *(uint16_t*)0x2000b150 = 0x70; *(uint16_t*)0x2000b152 = 0x98; *(uint32_t*)0x2000b154 = 0; *(uint64_t*)0x2000b158 = 0; *(uint64_t*)0x2000b160 = 0; *(uint16_t*)0x2000b168 = 0x28; memcpy((void*)0x2000b16a, "\x43\x4c\x41\x53\x53\x49\x46\x59\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x2000b187 = 0; *(uint32_t*)0x2000b188 = 0; *(uint32_t*)0x2000b190 = htobe32(0); *(uint32_t*)0x2000b194 = htobe32(0xe0000002); *(uint32_t*)0x2000b198 = htobe32(0); *(uint32_t*)0x2000b19c = htobe32(0); memcpy((void*)0x2000b1a0, "\x74\x75\x6e\x6c\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); memcpy((void*)0x2000b1b0, "\x7b\x54\x5c\xd8\xd8\x57\xc5\xe1\xb1\x57\xa3\x10\x3b\xde\x15\xee", 16); *(uint8_t*)0x2000b1c0 = 0; *(uint8_t*)0x2000b1c1 = 0; *(uint8_t*)0x2000b1c2 = 0; *(uint8_t*)0x2000b1c3 = 0; *(uint8_t*)0x2000b1c4 = 0; *(uint8_t*)0x2000b1c5 = 0; *(uint8_t*)0x2000b1c6 = 0; *(uint8_t*)0x2000b1c7 = 0; *(uint8_t*)0x2000b1c8 = 0; *(uint8_t*)0x2000b1c9 = 0; *(uint8_t*)0x2000b1ca = 0; *(uint8_t*)0x2000b1cb = 0; *(uint8_t*)0x2000b1cc = 0; *(uint8_t*)0x2000b1cd = 0; *(uint8_t*)0x2000b1ce = 0; *(uint8_t*)0x2000b1cf = 0; *(uint8_t*)0x2000b1d0 = 0; *(uint8_t*)0x2000b1d1 = 0; *(uint8_t*)0x2000b1d2 = 0; *(uint8_t*)0x2000b1d3 = 0; *(uint8_t*)0x2000b1d4 = 0; *(uint8_t*)0x2000b1d5 = 0; *(uint8_t*)0x2000b1d6 = 0; *(uint8_t*)0x2000b1d7 = 0; *(uint8_t*)0x2000b1d8 = 0; *(uint8_t*)0x2000b1d9 = 0; *(uint8_t*)0x2000b1da = 0; *(uint8_t*)0x2000b1db = 0; *(uint8_t*)0x2000b1dc = 0; *(uint8_t*)0x2000b1dd = 0; *(uint8_t*)0x2000b1de = 0; *(uint8_t*)0x2000b1df = 0; *(uint16_t*)0x2000b1e0 = 0; *(uint8_t*)0x2000b1e2 = 0; *(uint8_t*)0x2000b1e3 = 0; *(uint32_t*)0x2000b1e4 = 0; *(uint16_t*)0x2000b1e8 = 0x70; *(uint16_t*)0x2000b1ea = 0x98; *(uint32_t*)0x2000b1ec = 0; *(uint64_t*)0x2000b1f0 = 0; *(uint64_t*)0x2000b1f8 = 0; *(uint16_t*)0x2000b200 = 0x28; memcpy((void*)0x2000b202, "\x52\x45\x4a\x45\x43\x54\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x2000b21f = 0; *(uint32_t*)0x2000b220 = 0; *(uint32_t*)0x2000b228 = htobe32(0); *(uint32_t*)0x2000b22c = htobe32(0xe0000002); *(uint32_t*)0x2000b230 = htobe32(0); *(uint32_t*)0x2000b234 = htobe32(-1); *(uint8_t*)0x2000b238 = 0x73; *(uint8_t*)0x2000b239 = 0x79; *(uint8_t*)0x2000b23a = 0x7a; *(uint8_t*)0x2000b23b = 0x30; *(uint8_t*)0x2000b23c = 0; *(uint8_t*)0x2000b248 = 0x73; *(uint8_t*)0x2000b249 = 0x79; *(uint8_t*)0x2000b24a = 0x7a; *(uint8_t*)0x2000b24b = 0; *(uint8_t*)0x2000b24c = 0; *(uint8_t*)0x2000b258 = 0; *(uint8_t*)0x2000b259 = 0; *(uint8_t*)0x2000b25a = 0; *(uint8_t*)0x2000b25b = 0; *(uint8_t*)0x2000b25c = 0; *(uint8_t*)0x2000b25d = 0; *(uint8_t*)0x2000b25e = 0; *(uint8_t*)0x2000b25f = 0; *(uint8_t*)0x2000b260 = 0; *(uint8_t*)0x2000b261 = 0; *(uint8_t*)0x2000b262 = 0; *(uint8_t*)0x2000b263 = 0; *(uint8_t*)0x2000b264 = 0; *(uint8_t*)0x2000b265 = 0; *(uint8_t*)0x2000b266 = 0; *(uint8_t*)0x2000b267 = 0; *(uint8_t*)0x2000b268 = 0; *(uint8_t*)0x2000b269 = 0; *(uint8_t*)0x2000b26a = 0; *(uint8_t*)0x2000b26b = 0; *(uint8_t*)0x2000b26c = 0; *(uint8_t*)0x2000b26d = 0; *(uint8_t*)0x2000b26e = 0; *(uint8_t*)0x2000b26f = 0; *(uint8_t*)0x2000b270 = 0; *(uint8_t*)0x2000b271 = 0; *(uint8_t*)0x2000b272 = 0; *(uint8_t*)0x2000b273 = 0; *(uint8_t*)0x2000b274 = 0; *(uint8_t*)0x2000b275 = 0; *(uint8_t*)0x2000b276 = 0; *(uint8_t*)0x2000b277 = 0; *(uint16_t*)0x2000b278 = 0; *(uint8_t*)0x2000b27a = 0; *(uint8_t*)0x2000b27b = 0; *(uint32_t*)0x2000b27c = 0; *(uint16_t*)0x2000b280 = 0x70; *(uint16_t*)0x2000b282 = 0xd0; *(uint32_t*)0x2000b284 = 0; *(uint64_t*)0x2000b288 = 0; *(uint64_t*)0x2000b290 = 0; *(uint16_t*)0x2000b298 = 0x60; memcpy((void*)0x2000b29a, "\x43\x4c\x55\x53\x54\x45\x52\x49\x50\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x2000b2b7 = 0; *(uint32_t*)0x2000b2b8 = 1; *(uint8_t*)0x2000b2bc = 1; *(uint8_t*)0x2000b2bd = 0x80; *(uint8_t*)0x2000b2be = 0xc2; *(uint8_t*)0x2000b2bf = 0; *(uint8_t*)0x2000b2c0 = 0; *(uint8_t*)0x2000b2c1 = 0; *(uint16_t*)0x2000b2c2 = 0; *(uint16_t*)0x2000b2c4 = 4; *(uint16_t*)0x2000b2c6 = 0; *(uint16_t*)0x2000b2c8 = 0; *(uint16_t*)0x2000b2ca = 0; *(uint16_t*)0x2000b2cc = 0; *(uint16_t*)0x2000b2ce = 0; *(uint16_t*)0x2000b2d0 = 0; *(uint16_t*)0x2000b2d2 = 0; *(uint16_t*)0x2000b2d4 = 0; *(uint16_t*)0x2000b2d6 = 0; *(uint16_t*)0x2000b2d8 = 0; *(uint16_t*)0x2000b2da = 0; *(uint16_t*)0x2000b2dc = 0; *(uint16_t*)0x2000b2de = 0; *(uint16_t*)0x2000b2e0 = 0; *(uint16_t*)0x2000b2e2 = 0; *(uint16_t*)0x2000b2e4 = 0; *(uint32_t*)0x2000b2e8 = 0; *(uint32_t*)0x2000b2ec = 0; *(uint64_t*)0x2000b2f0 = 0; *(uint64_t*)0x20012fc0 = 0; *(uint64_t*)0x20012fc8 = 0; *(uint64_t*)0x20012fd0 = 0; *(uint64_t*)0x20012fd8 = 0; *(uint64_t*)0x20012fe0 = 0; *(uint64_t*)0x20012fe8 = 0; *(uint64_t*)0x20012ff0 = 0; *(uint64_t*)0x20012ff8 = 0; syscall(__NR_setsockopt, r[2], 0, 0x40, 0x2000b000, 0x2f8); *(uint8_t*)0x20025fb6 = -1; *(uint8_t*)0x20025fb7 = -1; *(uint8_t*)0x20025fb8 = -1; *(uint8_t*)0x20025fb9 = -1; *(uint8_t*)0x20025fba = -1; *(uint8_t*)0x20025fbb = -1; *(uint8_t*)0x20025fbc = 0; *(uint8_t*)0x20025fbd = 0; *(uint8_t*)0x20025fbe = 0; *(uint8_t*)0x20025fbf = 0; *(uint8_t*)0x20025fc0 = 0; *(uint8_t*)0x20025fc1 = 0; *(uint16_t*)0x20025fc2 = htobe16(0x800); STORE_BY_BITMASK(uint8_t, 0x20025fc4, 5, 0, 4); STORE_BY_BITMASK(uint8_t, 0x20025fc4, 4, 4, 4); STORE_BY_BITMASK(uint8_t, 0x20025fc5, 0, 0, 2); STORE_BY_BITMASK(uint8_t, 0x20025fc5, 0, 2, 6); *(uint16_t*)0x20025fc6 = htobe16(0x3c); *(uint16_t*)0x20025fc8 = 0; *(uint16_t*)0x20025fca = htobe16(0); *(uint8_t*)0x20025fcc = 0; *(uint8_t*)0x20025fcd = 6; *(uint16_t*)0x20025fce = 0; *(uint8_t*)0x20025fd0 = 0xac; *(uint8_t*)0x20025fd1 = 0x14; *(uint8_t*)0x20025fd2 = 0; *(uint8_t*)0x20025fd3 = 0xaa; *(uint32_t*)0x20025fd4 = htobe32(0); *(uint16_t*)0x20025fd8 = 0; *(uint16_t*)0x20025fda = 0; *(uint32_t*)0x20025fdc = 0x42424242; *(uint32_t*)0x20025fe0 = 0x42424242; STORE_BY_BITMASK(uint8_t, 0x20025fe4, 0, 0, 1); STORE_BY_BITMASK(uint8_t, 0x20025fe4, 0, 1, 3); STORE_BY_BITMASK(uint8_t, 0x20025fe4, 0xa, 4, 4); *(uint8_t*)0x20025fe5 = 0x22; *(uint16_t*)0x20025fe6 = htobe16(0); *(uint16_t*)0x20025fe8 = 0; *(uint16_t*)0x20025fea = htobe16(0); *(uint8_t*)0x20025fec = 5; *(uint8_t*)0x20025fed = 0x12; *(uint32_t*)0x20025fee = htobe32(0); *(uint32_t*)0x20025ff2 = htobe32(0); *(uint32_t*)0x20025ff6 = htobe32(0); *(uint32_t*)0x20025ffa = htobe32(0); struct csum_inet csum_1; csum_inet_init(&csum_1); csum_inet_update(&csum_1, (const uint8_t*)0x20025fd0, 4); csum_inet_update(&csum_1, (const uint8_t*)0x20025fd4, 4); uint16_t csum_1_chunk_2 = 0x600; csum_inet_update(&csum_1, (const uint8_t*)&csum_1_chunk_2, 2); uint16_t csum_1_chunk_3 = 0x2800; csum_inet_update(&csum_1, (const uint8_t*)&csum_1_chunk_3, 2); csum_inet_update(&csum_1, (const uint8_t*)0x20025fd8, 40); *(uint16_t*)0x20025fe8 = csum_inet_digest(&csum_1); struct csum_inet csum_2; csum_inet_init(&csum_2); csum_inet_update(&csum_2, (const uint8_t*)0x20025fc4, 20); *(uint16_t*)0x20025fce = csum_inet_digest(&csum_2); syz_emit_ethernet(0x4a, 0x20025fb6, 0x20000000); } int main() { for (;;) { setup_tun(0, true); loop(); } }