| // general protection fault in team_nl_cmd_options_set |
| // https://syzkaller.appspot.com/bug?id=68d024221dc8e75989c560b41c437b0920627ff2 |
| // status:fixed |
| // autogenerated by syzkaller (https://github.com/google/syzkaller) |
| |
| #define _GNU_SOURCE |
| |
| #include <arpa/inet.h> |
| #include <dirent.h> |
| #include <endian.h> |
| #include <errno.h> |
| #include <fcntl.h> |
| #include <net/if_arp.h> |
| #include <pthread.h> |
| #include <sched.h> |
| #include <signal.h> |
| #include <stdarg.h> |
| #include <stdbool.h> |
| #include <stdint.h> |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <string.h> |
| #include <sys/ioctl.h> |
| #include <sys/mount.h> |
| #include <sys/prctl.h> |
| #include <sys/resource.h> |
| #include <sys/socket.h> |
| #include <sys/stat.h> |
| #include <sys/syscall.h> |
| #include <sys/time.h> |
| #include <sys/types.h> |
| #include <sys/uio.h> |
| #include <sys/wait.h> |
| #include <time.h> |
| #include <unistd.h> |
| |
| #include <linux/futex.h> |
| #include <linux/genetlink.h> |
| #include <linux/if.h> |
| #include <linux/if_ether.h> |
| #include <linux/if_tun.h> |
| #include <linux/ip.h> |
| #include <linux/netlink.h> |
| #include <linux/tcp.h> |
| |
| unsigned long long procid; |
| |
| 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 void use_temporary_dir(void) |
| { |
| char tmpdir_template[] = "./syzkaller.XXXXXX"; |
| char* tmpdir = mkdtemp(tmpdir_template); |
| if (!tmpdir) |
| exit(1); |
| if (chmod(tmpdir, 0777)) |
| exit(1); |
| if (chdir(tmpdir)) |
| exit(1); |
| } |
| |
| static void thread_start(void* (*fn)(void*), void* arg) |
| { |
| pthread_t th; |
| pthread_attr_t attr; |
| pthread_attr_init(&attr); |
| pthread_attr_setstacksize(&attr, 128 << 10); |
| if (pthread_create(&th, &attr, fn, arg)) |
| exit(1); |
| pthread_attr_destroy(&attr); |
| } |
| |
| typedef struct { |
| int state; |
| } event_t; |
| |
| static void event_init(event_t* ev) |
| { |
| ev->state = 0; |
| } |
| |
| static void event_reset(event_t* ev) |
| { |
| ev->state = 0; |
| } |
| |
| static void event_set(event_t* ev) |
| { |
| if (ev->state) |
| exit(1); |
| __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); |
| syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG); |
| } |
| |
| static void event_wait(event_t* ev) |
| { |
| while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) |
| syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); |
| } |
| |
| static int event_isset(event_t* ev) |
| { |
| return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); |
| } |
| |
| static int event_timedwait(event_t* ev, uint64_t timeout) |
| { |
| uint64_t start = current_time_ms(); |
| uint64_t now = start; |
| for (;;) { |
| uint64_t remain = timeout - (now - start); |
| struct timespec ts; |
| ts.tv_sec = remain / 1000; |
| ts.tv_nsec = (remain % 1000) * 1000 * 1000; |
| syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); |
| if (__atomic_load_n(&ev->state, __ATOMIC_RELAXED)) |
| return 1; |
| now = current_time_ms(); |
| if (now - start > timeout) |
| return 0; |
| } |
| } |
| |
| 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) |
| exit(1); |
| if ((size_t)rv >= size) |
| exit(1); |
| } |
| |
| #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); |
| va_end(args); |
| rv = system(command); |
| if (rv) { |
| if (panic) |
| exit(1); |
| } |
| } |
| |
| #define DEV_IPV4 "172.20.20.%d" |
| #define DEV_IPV6 "fe80::%02hx" |
| #define DEV_MAC "aa:aa:aa:aa:aa:%02hx" |
| |
| 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); |
| } |
| static void initialize_netdevices(void) |
| { |
| unsigned i; |
| const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "team"}; |
| const char* devnames[] = {"lo", |
| "sit0", |
| "bridge0", |
| "vcan0", |
| "tunl0", |
| "gre0", |
| "gretap0", |
| "ip_vti0", |
| "ip6_vti0", |
| "ip6tnl0", |
| "ip6gre0", |
| "ip6gretap0", |
| "erspan0", |
| "bond0", |
| "veth0", |
| "veth1", |
| "team0", |
| "veth0_to_bridge", |
| "veth1_to_bridge", |
| "veth0_to_bond", |
| "veth1_to_bond", |
| "veth0_to_team", |
| "veth1_to_team"}; |
| const char* devmasters[] = {"bridge", "bond", "team"}; |
| for (i = 0; i < sizeof(devtypes) / (sizeof(devtypes[0])); i++) |
| execute_command(0, "ip link add dev %s0 type %s", devtypes[i], devtypes[i]); |
| execute_command(0, "ip link add type veth"); |
| for (i = 0; i < sizeof(devmasters) / (sizeof(devmasters[0])); i++) { |
| execute_command( |
| 0, "ip link add name %s_slave_0 type veth peer name veth0_to_%s", |
| devmasters[i], devmasters[i]); |
| execute_command( |
| 0, "ip link add name %s_slave_1 type veth peer name veth1_to_%s", |
| devmasters[i], devmasters[i]); |
| execute_command(0, "ip link set %s_slave_0 master %s0", devmasters[i], |
| devmasters[i]); |
| execute_command(0, "ip link set %s_slave_1 master %s0", devmasters[i], |
| devmasters[i]); |
| execute_command(0, "ip link set veth0_to_%s up", devmasters[i]); |
| execute_command(0, "ip link set veth1_to_%s up", devmasters[i]); |
| } |
| execute_command(0, "ip link set bridge_slave_0 up"); |
| execute_command(0, "ip link set bridge_slave_1 up"); |
| for (i = 0; i < sizeof(devnames) / (sizeof(devnames[0])); i++) { |
| char addr[32]; |
| snprintf_check(addr, sizeof(addr), DEV_IPV4, i + 10); |
| execute_command(0, "ip -4 addr add %s/24 dev %s", addr, devnames[i]); |
| snprintf_check(addr, sizeof(addr), DEV_IPV6, i + 10); |
| execute_command(0, "ip -6 addr add %s/120 dev %s", addr, devnames[i]); |
| snprintf_check(addr, sizeof(addr), DEV_MAC, i + 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 long syz_genetlink_get_family_id(long name) |
| { |
| char buf[512] = {0}; |
| struct nlmsghdr* hdr = (struct nlmsghdr*)buf; |
| struct genlmsghdr* genlhdr = (struct genlmsghdr*)NLMSG_DATA(hdr); |
| struct nlattr* attr = (struct nlattr*)(genlhdr + 1); |
| hdr->nlmsg_len = |
| sizeof(*hdr) + sizeof(*genlhdr) + sizeof(*attr) + GENL_NAMSIZ; |
| hdr->nlmsg_type = GENL_ID_CTRL; |
| hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; |
| genlhdr->cmd = CTRL_CMD_GETFAMILY; |
| attr->nla_type = CTRL_ATTR_FAMILY_NAME; |
| attr->nla_len = sizeof(*attr) + GENL_NAMSIZ; |
| strncpy((char*)(attr + 1), (char*)name, GENL_NAMSIZ); |
| struct iovec iov = {hdr, hdr->nlmsg_len}; |
| struct sockaddr_nl addr = {0}; |
| addr.nl_family = AF_NETLINK; |
| int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); |
| if (fd == -1) { |
| return -1; |
| } |
| struct msghdr msg = {&addr, sizeof(addr), &iov, 1, NULL, 0, 0}; |
| if (sendmsg(fd, &msg, 0) == -1) { |
| close(fd); |
| return -1; |
| } |
| ssize_t n = recv(fd, buf, sizeof(buf), 0); |
| close(fd); |
| if (n <= 0) { |
| return -1; |
| } |
| if (hdr->nlmsg_type != GENL_ID_CTRL) { |
| return -1; |
| } |
| for (; (char*)attr < buf + n; |
| attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { |
| if (attr->nla_type == CTRL_ATTR_FAMILY_ID) |
| return *(uint16_t*)(attr + 1); |
| } |
| return -1; |
| } |
| |
| 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 setup_cgroups() |
| { |
| if (mkdir("/syzcgroup", 0777)) { |
| } |
| if (mkdir("/syzcgroup/unified", 0777)) { |
| } |
| if (mount("none", "/syzcgroup/unified", "cgroup2", 0, NULL)) { |
| } |
| if (chmod("/syzcgroup/unified", 0777)) { |
| } |
| if (!write_file("/syzcgroup/unified/cgroup.subtree_control", |
| "+cpu +memory +io +pids +rdma")) { |
| } |
| if (mkdir("/syzcgroup/cpu", 0777)) { |
| } |
| if (mount("none", "/syzcgroup/cpu", "cgroup", 0, |
| "cpuset,cpuacct,perf_event,hugetlb")) { |
| } |
| if (!write_file("/syzcgroup/cpu/cgroup.clone_children", "1")) { |
| } |
| if (chmod("/syzcgroup/cpu", 0777)) { |
| } |
| if (mkdir("/syzcgroup/net", 0777)) { |
| } |
| if (mount("none", "/syzcgroup/net", "cgroup", 0, |
| "net_cls,net_prio,devices,freezer")) { |
| } |
| if (chmod("/syzcgroup/net", 0777)) { |
| } |
| } |
| static void setup_binfmt_misc() |
| { |
| if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0)) { |
| } |
| if (!write_file("/proc/sys/fs/binfmt_misc/register", |
| ":syz0:M:0:\x01::./file0:")) { |
| } |
| if (!write_file("/proc/sys/fs/binfmt_misc/register", |
| ":syz1:M:1:\x02::./file0:POC")) { |
| } |
| } |
| |
| static void setup_common() |
| { |
| if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { |
| } |
| setup_cgroups(); |
| setup_binfmt_misc(); |
| } |
| |
| static void loop(); |
| |
| static void sandbox_common() |
| { |
| prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); |
| setpgrp(); |
| setsid(); |
| struct rlimit rlim; |
| rlim.rlim_cur = rlim.rlim_max = 200 << 20; |
| setrlimit(RLIMIT_AS, &rlim); |
| rlim.rlim_cur = rlim.rlim_max = 32 << 20; |
| setrlimit(RLIMIT_MEMLOCK, &rlim); |
| rlim.rlim_cur = rlim.rlim_max = 136 << 20; |
| setrlimit(RLIMIT_FSIZE, &rlim); |
| rlim.rlim_cur = rlim.rlim_max = 1 << 20; |
| setrlimit(RLIMIT_STACK, &rlim); |
| rlim.rlim_cur = rlim.rlim_max = 0; |
| setrlimit(RLIMIT_CORE, &rlim); |
| rlim.rlim_cur = rlim.rlim_max = 256; |
| setrlimit(RLIMIT_NOFILE, &rlim); |
| if (unshare(CLONE_NEWNS)) { |
| } |
| if (unshare(CLONE_NEWIPC)) { |
| } |
| if (unshare(0x02000000)) { |
| } |
| if (unshare(CLONE_NEWUTS)) { |
| } |
| if (unshare(CLONE_SYSVSEM)) { |
| } |
| } |
| |
| int wait_for_loop(int pid) |
| { |
| if (pid < 0) |
| exit(1); |
| int status = 0; |
| while (waitpid(-1, &status, __WALL) != pid) { |
| } |
| return WEXITSTATUS(status); |
| } |
| |
| static int do_sandbox_none(void) |
| { |
| if (unshare(CLONE_NEWPID)) { |
| } |
| int pid = fork(); |
| if (pid != 0) |
| return wait_for_loop(pid); |
| setup_common(); |
| sandbox_common(); |
| if (unshare(CLONE_NEWNET)) { |
| } |
| initialize_netdevices(); |
| loop(); |
| exit(1); |
| } |
| |
| #define FS_IOC_SETFLAGS _IOW('f', 2, long) |
| static void remove_dir(const char* dir) |
| { |
| DIR* dp; |
| struct dirent* ep; |
| int iter = 0; |
| retry: |
| while (umount2(dir, MNT_DETACH) == 0) { |
| } |
| dp = opendir(dir); |
| if (dp == NULL) { |
| if (errno == EMFILE) { |
| exit(1); |
| } |
| exit(1); |
| } |
| while ((ep = readdir(dp))) { |
| if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) |
| continue; |
| char filename[FILENAME_MAX]; |
| snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); |
| while (umount2(filename, MNT_DETACH) == 0) { |
| } |
| struct stat st; |
| if (lstat(filename, &st)) |
| exit(1); |
| if (S_ISDIR(st.st_mode)) { |
| remove_dir(filename); |
| continue; |
| } |
| int i; |
| for (i = 0;; i++) { |
| if (unlink(filename) == 0) |
| break; |
| if (errno == EPERM) { |
| int fd = open(filename, O_RDONLY); |
| if (fd != -1) { |
| long flags = 0; |
| if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) |
| close(fd); |
| continue; |
| } |
| } |
| if (errno == EROFS) { |
| break; |
| } |
| if (errno != EBUSY || i > 100) |
| exit(1); |
| if (umount2(filename, MNT_DETACH)) |
| exit(1); |
| } |
| } |
| closedir(dp); |
| int i; |
| for (i = 0;; i++) { |
| if (rmdir(dir) == 0) |
| break; |
| if (i < 100) { |
| if (errno == EPERM) { |
| int fd = open(dir, O_RDONLY); |
| if (fd != -1) { |
| long flags = 0; |
| if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) |
| close(fd); |
| continue; |
| } |
| } |
| if (errno == EROFS) { |
| break; |
| } |
| if (errno == EBUSY) { |
| if (umount2(dir, MNT_DETACH)) |
| exit(1); |
| continue; |
| } |
| if (errno == ENOTEMPTY) { |
| if (iter < 100) { |
| iter++; |
| goto retry; |
| } |
| } |
| } |
| exit(1); |
| } |
| } |
| |
| static void kill_and_wait(int pid, int* status) |
| { |
| kill(-pid, SIGKILL); |
| kill(pid, SIGKILL); |
| int i; |
| for (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) { |
| } |
| } |
| |
| #define SYZ_HAVE_SETUP_LOOP 1 |
| static void setup_loop() |
| { |
| int pid = getpid(); |
| char cgroupdir[64]; |
| char file[128]; |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); |
| if (mkdir(cgroupdir, 0777)) { |
| } |
| snprintf(file, sizeof(file), "%s/pids.max", cgroupdir); |
| if (!write_file(file, "32")) { |
| } |
| snprintf(file, sizeof(file), "%s/memory.low", cgroupdir); |
| if (!write_file(file, "%d", 298 << 20)) { |
| } |
| snprintf(file, sizeof(file), "%s/memory.high", cgroupdir); |
| if (!write_file(file, "%d", 299 << 20)) { |
| } |
| snprintf(file, sizeof(file), "%s/memory.max", cgroupdir); |
| if (!write_file(file, "%d", 300 << 20)) { |
| } |
| snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); |
| if (!write_file(file, "%d", pid)) { |
| } |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); |
| if (mkdir(cgroupdir, 0777)) { |
| } |
| snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); |
| if (!write_file(file, "%d", pid)) { |
| } |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); |
| if (mkdir(cgroupdir, 0777)) { |
| } |
| snprintf(file, sizeof(file), "%s/cgroup.procs", cgroupdir); |
| if (!write_file(file, "%d", pid)) { |
| } |
| } |
| |
| #define SYZ_HAVE_SETUP_TEST 1 |
| static void setup_test() |
| { |
| prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); |
| setpgrp(); |
| char cgroupdir[64]; |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/unified/syz%llu", procid); |
| if (symlink(cgroupdir, "./cgroup")) { |
| } |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/cpu/syz%llu", procid); |
| if (symlink(cgroupdir, "./cgroup.cpu")) { |
| } |
| snprintf(cgroupdir, sizeof(cgroupdir), "/syzcgroup/net/syz%llu", procid); |
| if (symlink(cgroupdir, "./cgroup.net")) { |
| } |
| if (!write_file("/proc/self/oom_score_adj", "1000")) { |
| } |
| } |
| |
| #define SYZ_HAVE_RESET_TEST 1 |
| static void reset_test() |
| { |
| int fd; |
| for (fd = 3; fd < 30; fd++) |
| close(fd); |
| } |
| |
| struct thread_t { |
| int created, call; |
| event_t ready, done; |
| }; |
| |
| static struct thread_t threads[16]; |
| static void execute_call(int call); |
| static int running; |
| |
| static void* thr(void* arg) |
| { |
| struct thread_t* th = (struct thread_t*)arg; |
| for (;;) { |
| event_wait(&th->ready); |
| event_reset(&th->ready); |
| execute_call(th->call); |
| __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); |
| event_set(&th->done); |
| } |
| return 0; |
| } |
| |
| static void execute_one(void) |
| { |
| int i, call, thread; |
| for (call = 0; call < 6; call++) { |
| for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); |
| thread++) { |
| struct thread_t* th = &threads[thread]; |
| if (!th->created) { |
| th->created = 1; |
| event_init(&th->ready); |
| event_init(&th->done); |
| event_set(&th->done); |
| thread_start(thr, th); |
| } |
| if (!event_isset(&th->done)) |
| continue; |
| event_reset(&th->done); |
| th->call = call; |
| __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); |
| event_set(&th->ready); |
| event_timedwait(&th->done, 45); |
| break; |
| } |
| } |
| for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) |
| sleep_ms(1); |
| } |
| |
| static void execute_one(void); |
| |
| #define WAIT_FLAGS __WALL |
| |
| static void loop(void) |
| { |
| setup_loop(); |
| int iter; |
| for (iter = 0;; iter++) { |
| char cwdbuf[32]; |
| sprintf(cwdbuf, "./%d", iter); |
| if (mkdir(cwdbuf, 0777)) |
| exit(1); |
| int pid = fork(); |
| if (pid < 0) |
| exit(1); |
| if (pid == 0) { |
| if (chdir(cwdbuf)) |
| exit(1); |
| setup_test(); |
| execute_one(); |
| reset_test(); |
| 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 < 5 * 1000) |
| continue; |
| kill_and_wait(pid, &status); |
| break; |
| } |
| remove_dir(cwdbuf); |
| } |
| } |
| |
| uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0}; |
| |
| void execute_call(int call) |
| { |
| long res; |
| switch (call) { |
| case 0: |
| res = syscall(__NR_socket, 0x10, 3, 0); |
| if (res != -1) |
| r[0] = res; |
| break; |
| case 1: |
| *(uint64_t*)0x20000040 = 0; |
| *(uint32_t*)0x20000048 = 0; |
| *(uint64_t*)0x20000050 = 0x200000c0; |
| *(uint64_t*)0x200000c0 = 0x20000000; |
| *(uint32_t*)0x20000000 = 0x30; |
| *(uint16_t*)0x20000004 = 0x10; |
| *(uint16_t*)0x20000006 = 0x801; |
| *(uint32_t*)0x20000008 = 0; |
| *(uint32_t*)0x2000000c = 0; |
| *(uint8_t*)0x20000010 = 0; |
| *(uint8_t*)0x20000011 = 0; |
| *(uint16_t*)0x20000012 = 0; |
| *(uint32_t*)0x20000014 = 0; |
| *(uint32_t*)0x20000018 = 0; |
| *(uint32_t*)0x2000001c = 0; |
| *(uint16_t*)0x20000020 = 8; |
| *(uint16_t*)0x20000022 = 0x1b; |
| *(uint32_t*)0x20000024 = 0; |
| *(uint16_t*)0x20000028 = 8; |
| *(uint16_t*)0x2000002a = 0xa; |
| *(uint8_t*)0x2000002c = 0; |
| *(uint64_t*)0x200000c8 = 0x30; |
| *(uint64_t*)0x20000058 = 1; |
| *(uint64_t*)0x20000060 = 0; |
| *(uint64_t*)0x20000068 = 0; |
| *(uint32_t*)0x20000070 = 0; |
| syscall(__NR_sendmsg, r[0], 0x20000040, 0); |
| break; |
| case 2: |
| res = syscall(__NR_socket, 0x10, 3, 0x10); |
| if (res != -1) |
| r[1] = res; |
| break; |
| case 3: |
| memcpy((void*)0x20000400, "team\x00", 5); |
| res = syz_genetlink_get_family_id(0x20000400); |
| if (res != -1) |
| r[2] = res; |
| break; |
| case 4: |
| memcpy((void*)0x20000000, |
| "team0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); |
| *(uint32_t*)0x20000010 = 0; |
| res = syscall(__NR_ioctl, r[1], 0x8933, 0x20000000); |
| if (res != -1) |
| r[3] = *(uint32_t*)0x20000010; |
| break; |
| case 5: |
| *(uint64_t*)0x20000200 = 0; |
| *(uint32_t*)0x20000208 = 0; |
| *(uint64_t*)0x20000210 = 0x20000180; |
| *(uint64_t*)0x20000180 = 0x20000440; |
| *(uint32_t*)0x20000440 = 0xc2c; |
| *(uint16_t*)0x20000444 = r[2]; |
| *(uint16_t*)0x20000446 = 9; |
| *(uint32_t*)0x20000448 = 0; |
| *(uint32_t*)0x2000044c = 0; |
| *(uint8_t*)0x20000450 = 1; |
| *(uint8_t*)0x20000451 = 0; |
| *(uint16_t*)0x20000452 = 0; |
| *(uint16_t*)0x20000454 = 8; |
| *(uint16_t*)0x20000456 = 1; |
| *(uint32_t*)0x20000458 = r[3]; |
| *(uint16_t*)0x2000045c = 0x10c; |
| *(uint16_t*)0x2000045e = 2; |
| *(uint16_t*)0x20000460 = 0x4c; |
| *(uint16_t*)0x20000462 = 1; |
| *(uint16_t*)0x20000464 = 0x24; |
| *(uint16_t*)0x20000466 = 1; |
| memcpy((void*)0x20000468, "lb_tx_" |
| "method\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000488 = 8; |
| *(uint16_t*)0x2000048a = 3; |
| *(uint8_t*)0x2000048c = 5; |
| *(uint16_t*)0x20000490 = 0x1c; |
| *(uint16_t*)0x20000492 = 4; |
| memcpy((void*)0x20000494, "hash_to_port_mapping\x00", 21); |
| *(uint16_t*)0x200004ac = 0x44; |
| *(uint16_t*)0x200004ae = 1; |
| *(uint16_t*)0x200004b0 = 0x24; |
| *(uint16_t*)0x200004b2 = 1; |
| memcpy((void*)0x200004b4, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x200004d4 = 8; |
| *(uint16_t*)0x200004d6 = 3; |
| *(uint8_t*)0x200004d8 = 0xb; |
| *(uint16_t*)0x200004dc = 0x14; |
| *(uint16_t*)0x200004de = 4; |
| *(uint16_t*)0x200004e0 = 0; |
| *(uint8_t*)0x200004e2 = -1; |
| *(uint8_t*)0x200004e3 = 5; |
| *(uint32_t*)0x200004e4 = 0x64b98c69; |
| *(uint16_t*)0x200004e8 = 7; |
| *(uint8_t*)0x200004ea = 4; |
| *(uint8_t*)0x200004eb = 0xcc; |
| *(uint32_t*)0x200004ec = 6; |
| *(uint16_t*)0x200004f0 = 0x40; |
| *(uint16_t*)0x200004f2 = 1; |
| *(uint16_t*)0x200004f4 = 0x24; |
| *(uint16_t*)0x200004f6 = 1; |
| memcpy((void*)0x200004f8, "lb_hash_" |
| "stats\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000518 = 8; |
| *(uint16_t*)0x2000051a = 3; |
| *(uint8_t*)0x2000051c = 0xb; |
| *(uint16_t*)0x20000520 = 8; |
| *(uint16_t*)0x20000522 = 4; |
| *(uint32_t*)0x20000524 = 1; |
| *(uint16_t*)0x20000528 = 8; |
| *(uint16_t*)0x2000052a = 7; |
| *(uint32_t*)0x2000052c = 0; |
| *(uint16_t*)0x20000530 = 0x38; |
| *(uint16_t*)0x20000532 = 1; |
| *(uint16_t*)0x20000534 = 0x24; |
| *(uint16_t*)0x20000536 = 1; |
| memcpy((void*)0x20000538, |
| "notify_peers_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000558 = 8; |
| *(uint16_t*)0x2000055a = 3; |
| *(uint8_t*)0x2000055c = 3; |
| *(uint16_t*)0x20000560 = 8; |
| *(uint16_t*)0x20000562 = 4; |
| *(uint32_t*)0x20000564 = 0x8606; |
| *(uint16_t*)0x20000568 = 8; |
| *(uint16_t*)0x2000056a = 1; |
| *(uint32_t*)0x2000056c = r[3]; |
| *(uint16_t*)0x20000570 = 0x254; |
| *(uint16_t*)0x20000572 = 2; |
| *(uint16_t*)0x20000574 = 0x38; |
| *(uint16_t*)0x20000576 = 1; |
| *(uint16_t*)0x20000578 = 0x24; |
| *(uint16_t*)0x2000057a = 1; |
| memcpy((void*)0x2000057c, |
| "mcast_rejoin_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x2000059c = 8; |
| *(uint16_t*)0x2000059e = 3; |
| *(uint8_t*)0x200005a0 = 3; |
| *(uint16_t*)0x200005a4 = 8; |
| *(uint16_t*)0x200005a6 = 4; |
| *(uint32_t*)0x200005a8 = 7; |
| *(uint16_t*)0x200005ac = 0x40; |
| *(uint16_t*)0x200005ae = 1; |
| *(uint16_t*)0x200005b0 = 0x24; |
| *(uint16_t*)0x200005b2 = 1; |
| memcpy((void*)0x200005b4, "queue_" |
| "id\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); |
| *(uint16_t*)0x200005d4 = 8; |
| *(uint16_t*)0x200005d6 = 3; |
| *(uint8_t*)0x200005d8 = 3; |
| *(uint16_t*)0x200005dc = 8; |
| *(uint16_t*)0x200005de = 4; |
| *(uint32_t*)0x200005e0 = 0x3f; |
| *(uint16_t*)0x200005e4 = 8; |
| *(uint16_t*)0x200005e6 = 6; |
| *(uint32_t*)0x200005e8 = r[3]; |
| *(uint16_t*)0x200005ec = 0x38; |
| *(uint16_t*)0x200005ee = 1; |
| *(uint16_t*)0x200005f0 = 0x24; |
| *(uint16_t*)0x200005f2 = 1; |
| memcpy((void*)0x200005f4, "activeport\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00", |
| 32); |
| *(uint16_t*)0x20000614 = 8; |
| *(uint16_t*)0x20000616 = 3; |
| *(uint8_t*)0x20000618 = 3; |
| *(uint16_t*)0x2000061c = 8; |
| *(uint16_t*)0x2000061e = 4; |
| *(uint32_t*)0x20000620 = r[3]; |
| *(uint16_t*)0x20000624 = 0x84; |
| *(uint16_t*)0x20000626 = 1; |
| *(uint16_t*)0x20000628 = 0x24; |
| *(uint16_t*)0x2000062a = 1; |
| memcpy((void*)0x2000062c, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x2000064c = 8; |
| *(uint16_t*)0x2000064e = 3; |
| *(uint8_t*)0x20000650 = 0xb; |
| *(uint16_t*)0x20000654 = 0x54; |
| *(uint16_t*)0x20000656 = 4; |
| *(uint16_t*)0x20000658 = 0xfffb; |
| *(uint8_t*)0x2000065a = 6; |
| *(uint8_t*)0x2000065b = 3; |
| *(uint32_t*)0x2000065c = 8; |
| *(uint16_t*)0x20000660 = 0xb703; |
| *(uint8_t*)0x20000662 = 0xa6; |
| *(uint8_t*)0x20000663 = 7; |
| *(uint32_t*)0x20000664 = 9; |
| *(uint16_t*)0x20000668 = 7; |
| *(uint8_t*)0x2000066a = 0xaa; |
| *(uint8_t*)0x2000066b = 9; |
| *(uint32_t*)0x2000066c = 0xfffffffc; |
| *(uint16_t*)0x20000670 = 6; |
| *(uint8_t*)0x20000672 = 0x68; |
| *(uint8_t*)0x20000673 = 1; |
| *(uint32_t*)0x20000674 = 4; |
| *(uint16_t*)0x20000678 = 0x80; |
| *(uint8_t*)0x2000067a = 5; |
| *(uint8_t*)0x2000067b = 0; |
| *(uint32_t*)0x2000067c = 0xebd; |
| *(uint16_t*)0x20000680 = 0x29f; |
| *(uint8_t*)0x20000682 = 7; |
| *(uint8_t*)0x20000683 = 3; |
| *(uint32_t*)0x20000684 = 9; |
| *(uint16_t*)0x20000688 = 0x7f; |
| *(uint8_t*)0x2000068a = 6; |
| *(uint8_t*)0x2000068b = 0xe7; |
| *(uint32_t*)0x2000068c = 3; |
| *(uint16_t*)0x20000690 = 0x7f; |
| *(uint8_t*)0x20000692 = 0x86; |
| *(uint8_t*)0x20000693 = 9; |
| *(uint32_t*)0x20000694 = 0xa42; |
| *(uint16_t*)0x20000698 = 0x4f; |
| *(uint8_t*)0x2000069a = 0; |
| *(uint8_t*)0x2000069b = 3; |
| *(uint32_t*)0x2000069c = 5; |
| *(uint16_t*)0x200006a0 = 7; |
| *(uint8_t*)0x200006a2 = 9; |
| *(uint8_t*)0x200006a3 = 6; |
| *(uint32_t*)0x200006a4 = 0x4b49; |
| *(uint16_t*)0x200006a8 = 0x38; |
| *(uint16_t*)0x200006aa = 1; |
| *(uint16_t*)0x200006ac = 0x24; |
| *(uint16_t*)0x200006ae = 1; |
| memcpy((void*)0x200006b0, |
| "lb_stats_refresh_interval\x00\x00\x00\x00\x00\x00\x00", 32); |
| *(uint16_t*)0x200006d0 = 8; |
| *(uint16_t*)0x200006d2 = 3; |
| *(uint8_t*)0x200006d4 = 3; |
| *(uint16_t*)0x200006d8 = 8; |
| *(uint16_t*)0x200006da = 4; |
| *(uint32_t*)0x200006dc = 8; |
| *(uint16_t*)0x200006e0 = 0x38; |
| *(uint16_t*)0x200006e2 = 1; |
| *(uint16_t*)0x200006e4 = 0x24; |
| *(uint16_t*)0x200006e6 = 1; |
| memcpy((void*)0x200006e8, |
| "lb_stats_refresh_interval\x00\x00\x00\x00\x00\x00\x00", 32); |
| *(uint16_t*)0x20000708 = 8; |
| *(uint16_t*)0x2000070a = 3; |
| *(uint8_t*)0x2000070c = 3; |
| *(uint16_t*)0x20000710 = 8; |
| *(uint16_t*)0x20000712 = 4; |
| *(uint32_t*)0x20000714 = 8; |
| *(uint16_t*)0x20000718 = 0x38; |
| *(uint16_t*)0x2000071a = 1; |
| *(uint16_t*)0x2000071c = 0x24; |
| *(uint16_t*)0x2000071e = 1; |
| memcpy((void*)0x20000720, "notify_peers_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000740 = 8; |
| *(uint16_t*)0x20000742 = 3; |
| *(uint8_t*)0x20000744 = 3; |
| *(uint16_t*)0x20000748 = 8; |
| *(uint16_t*)0x2000074a = 4; |
| *(uint32_t*)0x2000074c = 6; |
| *(uint16_t*)0x20000750 = 0x3c; |
| *(uint16_t*)0x20000752 = 1; |
| *(uint16_t*)0x20000754 = 0x24; |
| *(uint16_t*)0x20000756 = 1; |
| memcpy((void*)0x20000758, "lb_tx_" |
| "method\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000778 = 8; |
| *(uint16_t*)0x2000077a = 3; |
| *(uint8_t*)0x2000077c = 5; |
| *(uint16_t*)0x20000780 = 0xc; |
| *(uint16_t*)0x20000782 = 4; |
| memcpy((void*)0x20000784, "hash\x00", 5); |
| *(uint16_t*)0x2000078c = 0x38; |
| *(uint16_t*)0x2000078e = 1; |
| *(uint16_t*)0x20000790 = 0x24; |
| *(uint16_t*)0x20000792 = 1; |
| memcpy((void*)0x20000794, "notify_peers_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x200007b4 = 8; |
| *(uint16_t*)0x200007b6 = 3; |
| *(uint8_t*)0x200007b8 = 3; |
| *(uint16_t*)0x200007bc = 8; |
| *(uint16_t*)0x200007be = 4; |
| *(uint32_t*)0x200007c0 = 0x1000; |
| *(uint16_t*)0x200007c4 = 8; |
| *(uint16_t*)0x200007c6 = 1; |
| *(uint32_t*)0x200007c8 = r[3]; |
| *(uint16_t*)0x200007cc = 0x200; |
| *(uint16_t*)0x200007ce = 2; |
| *(uint16_t*)0x200007d0 = 0x3c; |
| *(uint16_t*)0x200007d2 = 1; |
| *(uint16_t*)0x200007d4 = 0x24; |
| *(uint16_t*)0x200007d6 = 1; |
| memcpy((void*)0x200007d8, "enabled\x00\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); |
| *(uint16_t*)0x200007f8 = 8; |
| *(uint16_t*)0x200007fa = 3; |
| *(uint8_t*)0x200007fc = 6; |
| *(uint16_t*)0x20000800 = 4; |
| *(uint16_t*)0x20000802 = 4; |
| *(uint16_t*)0x20000804 = 8; |
| *(uint16_t*)0x20000806 = 6; |
| *(uint32_t*)0x20000808 = r[3]; |
| *(uint16_t*)0x2000080c = 0x3c; |
| *(uint16_t*)0x2000080e = 1; |
| *(uint16_t*)0x20000810 = 0x24; |
| *(uint16_t*)0x20000812 = 1; |
| memcpy((void*)0x20000814, "user_linkup_" |
| "enabled\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000834 = 8; |
| *(uint16_t*)0x20000836 = 3; |
| *(uint8_t*)0x20000838 = 6; |
| *(uint16_t*)0x2000083c = 4; |
| *(uint16_t*)0x2000083e = 4; |
| *(uint16_t*)0x20000840 = 8; |
| *(uint16_t*)0x20000842 = 6; |
| *(uint32_t*)0x20000844 = r[3]; |
| *(uint16_t*)0x20000848 = 0x40; |
| *(uint16_t*)0x2000084a = 1; |
| *(uint16_t*)0x2000084c = 0x24; |
| *(uint16_t*)0x2000084e = 1; |
| memcpy((void*)0x20000850, "priority\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); |
| *(uint16_t*)0x20000870 = 8; |
| *(uint16_t*)0x20000872 = 3; |
| *(uint8_t*)0x20000874 = 0xe; |
| *(uint16_t*)0x20000878 = 8; |
| *(uint16_t*)0x2000087a = 4; |
| *(uint32_t*)0x2000087c = 0xf8; |
| *(uint16_t*)0x20000880 = 8; |
| *(uint16_t*)0x20000882 = 6; |
| *(uint32_t*)0x20000884 = r[3]; |
| *(uint16_t*)0x20000888 = 0x84; |
| *(uint16_t*)0x2000088a = 1; |
| *(uint16_t*)0x2000088c = 0x24; |
| *(uint16_t*)0x2000088e = 1; |
| memcpy((void*)0x20000890, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x200008b0 = 8; |
| *(uint16_t*)0x200008b2 = 3; |
| *(uint8_t*)0x200008b4 = 0xb; |
| *(uint16_t*)0x200008b8 = 0x54; |
| *(uint16_t*)0x200008ba = 4; |
| *(uint16_t*)0x200008bc = 0; |
| *(uint8_t*)0x200008be = 1; |
| *(uint8_t*)0x200008bf = 5; |
| *(uint32_t*)0x200008c0 = 8; |
| *(uint16_t*)0x200008c4 = 6; |
| *(uint8_t*)0x200008c6 = 3; |
| *(uint8_t*)0x200008c7 = 0; |
| *(uint32_t*)0x200008c8 = 0x80; |
| *(uint16_t*)0x200008cc = 2; |
| *(uint8_t*)0x200008ce = 0xd9; |
| *(uint8_t*)0x200008cf = 8; |
| *(uint32_t*)0x200008d0 = 9; |
| *(uint16_t*)0x200008d4 = 5; |
| *(uint8_t*)0x200008d6 = 0x1f; |
| *(uint8_t*)0x200008d7 = 9; |
| *(uint32_t*)0x200008d8 = 2; |
| *(uint16_t*)0x200008dc = 6; |
| *(uint8_t*)0x200008de = 9; |
| *(uint8_t*)0x200008df = 0; |
| *(uint32_t*)0x200008e0 = 7; |
| *(uint16_t*)0x200008e4 = 0x401; |
| *(uint8_t*)0x200008e6 = 7; |
| *(uint8_t*)0x200008e7 = 7; |
| *(uint32_t*)0x200008e8 = 0x8001; |
| *(uint16_t*)0x200008ec = -1; |
| *(uint8_t*)0x200008ee = 9; |
| *(uint8_t*)0x200008ef = 1; |
| *(uint32_t*)0x200008f0 = 0x200; |
| *(uint16_t*)0x200008f4 = 2; |
| *(uint8_t*)0x200008f6 = 7; |
| *(uint8_t*)0x200008f7 = 0x80; |
| *(uint32_t*)0x200008f8 = 1; |
| *(uint16_t*)0x200008fc = 1; |
| *(uint8_t*)0x200008fe = 1; |
| *(uint8_t*)0x200008ff = 5; |
| *(uint32_t*)0x20000900 = 0xeda; |
| *(uint16_t*)0x20000904 = 0; |
| *(uint8_t*)0x20000906 = 0x12; |
| *(uint8_t*)0x20000907 = 3; |
| *(uint32_t*)0x20000908 = 0x101; |
| *(uint16_t*)0x2000090c = 0x3c; |
| *(uint16_t*)0x2000090e = 1; |
| *(uint16_t*)0x20000910 = 0x24; |
| *(uint16_t*)0x20000912 = 1; |
| memcpy((void*)0x20000914, "user_" |
| "linkup\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000934 = 8; |
| *(uint16_t*)0x20000936 = 3; |
| *(uint8_t*)0x20000938 = 6; |
| *(uint16_t*)0x2000093c = 4; |
| *(uint16_t*)0x2000093e = 4; |
| *(uint16_t*)0x20000940 = 8; |
| *(uint16_t*)0x20000942 = 6; |
| *(uint32_t*)0x20000944 = r[3]; |
| *(uint16_t*)0x20000948 = 0x38; |
| *(uint16_t*)0x2000094a = 1; |
| *(uint16_t*)0x2000094c = 0x24; |
| *(uint16_t*)0x2000094e = 1; |
| memcpy((void*)0x20000950, |
| "mcast_rejoin_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000970 = 8; |
| *(uint16_t*)0x20000972 = 3; |
| *(uint8_t*)0x20000974 = 3; |
| *(uint16_t*)0x20000978 = 8; |
| *(uint16_t*)0x2000097a = 4; |
| *(uint32_t*)0x2000097c = 2; |
| *(uint16_t*)0x20000980 = 0x4c; |
| *(uint16_t*)0x20000982 = 1; |
| *(uint16_t*)0x20000984 = 0x24; |
| *(uint16_t*)0x20000986 = 1; |
| memcpy((void*)0x20000988, "lb_tx_" |
| "method\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x200009a8 = 8; |
| *(uint16_t*)0x200009aa = 3; |
| *(uint8_t*)0x200009ac = 5; |
| *(uint16_t*)0x200009b0 = 0x1c; |
| *(uint16_t*)0x200009b2 = 4; |
| memcpy((void*)0x200009b4, "hash_to_port_mapping\x00", 21); |
| *(uint16_t*)0x200009cc = 8; |
| *(uint16_t*)0x200009ce = 1; |
| *(uint32_t*)0x200009d0 = r[3]; |
| *(uint16_t*)0x200009d4 = 0x1a8; |
| *(uint16_t*)0x200009d6 = 2; |
| *(uint16_t*)0x200009d8 = 0x40; |
| *(uint16_t*)0x200009da = 1; |
| *(uint16_t*)0x200009dc = 0x24; |
| *(uint16_t*)0x200009de = 1; |
| memcpy((void*)0x200009e0, "lb_hash_" |
| "stats\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000a00 = 8; |
| *(uint16_t*)0x20000a02 = 3; |
| *(uint8_t*)0x20000a04 = 0xb; |
| *(uint16_t*)0x20000a08 = 8; |
| *(uint16_t*)0x20000a0a = 4; |
| *(uint32_t*)0x20000a0c = 3; |
| *(uint16_t*)0x20000a10 = 8; |
| *(uint16_t*)0x20000a12 = 7; |
| *(uint32_t*)0x20000a14 = 0; |
| *(uint16_t*)0x20000a18 = 0x40; |
| *(uint16_t*)0x20000a1a = 1; |
| *(uint16_t*)0x20000a1c = 0x24; |
| *(uint16_t*)0x20000a1e = 1; |
| memcpy((void*)0x20000a20, "mode\x00\x00\x00\x00\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); |
| *(uint16_t*)0x20000a40 = 8; |
| *(uint16_t*)0x20000a42 = 3; |
| *(uint8_t*)0x20000a44 = 5; |
| *(uint16_t*)0x20000a48 = 0x10; |
| *(uint16_t*)0x20000a4a = 4; |
| memcpy((void*)0x20000a4c, "broadcast\x00", 10); |
| *(uint16_t*)0x20000a58 = 0x38; |
| *(uint16_t*)0x20000a5a = 1; |
| *(uint16_t*)0x20000a5c = 0x24; |
| *(uint16_t*)0x20000a5e = 1; |
| memcpy((void*)0x20000a60, "activeport\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00", |
| 32); |
| *(uint16_t*)0x20000a80 = 8; |
| *(uint16_t*)0x20000a82 = 3; |
| *(uint8_t*)0x20000a84 = 3; |
| *(uint16_t*)0x20000a88 = 8; |
| *(uint16_t*)0x20000a8a = 4; |
| *(uint32_t*)0x20000a8c = r[3]; |
| *(uint16_t*)0x20000a90 = 0x3c; |
| *(uint16_t*)0x20000a92 = 1; |
| *(uint16_t*)0x20000a94 = 0x24; |
| *(uint16_t*)0x20000a96 = 1; |
| memcpy((void*)0x20000a98, "user_" |
| "linkup\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000ab8 = 8; |
| *(uint16_t*)0x20000aba = 3; |
| *(uint8_t*)0x20000abc = 6; |
| *(uint16_t*)0x20000ac0 = 4; |
| *(uint16_t*)0x20000ac2 = 4; |
| *(uint16_t*)0x20000ac4 = 8; |
| *(uint16_t*)0x20000ac6 = 6; |
| *(uint32_t*)0x20000ac8 = r[3]; |
| *(uint16_t*)0x20000acc = 0x40; |
| *(uint16_t*)0x20000ace = 1; |
| *(uint16_t*)0x20000ad0 = 0x24; |
| *(uint16_t*)0x20000ad2 = 1; |
| memcpy((void*)0x20000ad4, "lb_hash_" |
| "stats\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000af4 = 8; |
| *(uint16_t*)0x20000af6 = 3; |
| *(uint8_t*)0x20000af8 = 0xb; |
| *(uint16_t*)0x20000afc = 8; |
| *(uint16_t*)0x20000afe = 4; |
| *(uint32_t*)0x20000b00 = 2; |
| *(uint16_t*)0x20000b04 = 8; |
| *(uint16_t*)0x20000b06 = 7; |
| *(uint32_t*)0x20000b08 = 0; |
| *(uint16_t*)0x20000b0c = 0x38; |
| *(uint16_t*)0x20000b0e = 1; |
| *(uint16_t*)0x20000b10 = 0x24; |
| *(uint16_t*)0x20000b12 = 1; |
| memcpy((void*)0x20000b14, |
| "lb_stats_refresh_interval\x00\x00\x00\x00\x00\x00\x00", 32); |
| *(uint16_t*)0x20000b34 = 8; |
| *(uint16_t*)0x20000b36 = 3; |
| *(uint8_t*)0x20000b38 = 3; |
| *(uint16_t*)0x20000b3c = 8; |
| *(uint16_t*)0x20000b3e = 4; |
| *(uint32_t*)0x20000b40 = 1; |
| *(uint16_t*)0x20000b44 = 0x38; |
| *(uint16_t*)0x20000b46 = 1; |
| *(uint16_t*)0x20000b48 = 0x24; |
| *(uint16_t*)0x20000b4a = 1; |
| memcpy((void*)0x20000b4c, "notify_peers_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000b6c = 8; |
| *(uint16_t*)0x20000b6e = 3; |
| *(uint8_t*)0x20000b70 = 3; |
| *(uint16_t*)0x20000b74 = 8; |
| *(uint16_t*)0x20000b76 = 4; |
| *(uint32_t*)0x20000b78 = 3; |
| *(uint16_t*)0x20000b7c = 8; |
| *(uint16_t*)0x20000b7e = 1; |
| *(uint32_t*)0x20000b80 = r[3]; |
| *(uint16_t*)0x20000b84 = 0x1c8; |
| *(uint16_t*)0x20000b86 = 2; |
| *(uint16_t*)0x20000b88 = 0x3c; |
| *(uint16_t*)0x20000b8a = 1; |
| *(uint16_t*)0x20000b8c = 0x24; |
| *(uint16_t*)0x20000b8e = 1; |
| memcpy((void*)0x20000b90, "user_" |
| "linkup\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000bb0 = 8; |
| *(uint16_t*)0x20000bb2 = 3; |
| *(uint8_t*)0x20000bb4 = 6; |
| *(uint16_t*)0x20000bb8 = 4; |
| *(uint16_t*)0x20000bba = 4; |
| *(uint16_t*)0x20000bbc = 8; |
| *(uint16_t*)0x20000bbe = 6; |
| *(uint32_t*)0x20000bc0 = r[3]; |
| *(uint16_t*)0x20000bc4 = 0x44; |
| *(uint16_t*)0x20000bc6 = 1; |
| *(uint16_t*)0x20000bc8 = 0x24; |
| *(uint16_t*)0x20000bca = 1; |
| memcpy((void*)0x20000bcc, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000bec = 8; |
| *(uint16_t*)0x20000bee = 3; |
| *(uint8_t*)0x20000bf0 = 0xb; |
| *(uint16_t*)0x20000bf4 = 0x14; |
| *(uint16_t*)0x20000bf6 = 4; |
| *(uint16_t*)0x20000bf8 = 0x65e1; |
| *(uint8_t*)0x20000bfa = 0x49; |
| *(uint8_t*)0x20000bfb = 0xe3; |
| *(uint32_t*)0x20000bfc = 9; |
| *(uint16_t*)0x20000c00 = 0x100; |
| *(uint8_t*)0x20000c02 = -1; |
| *(uint8_t*)0x20000c03 = -1; |
| *(uint32_t*)0x20000c04 = 0xbc; |
| *(uint16_t*)0x20000c08 = 0x3c; |
| *(uint16_t*)0x20000c0a = 1; |
| *(uint16_t*)0x20000c0c = 0x24; |
| *(uint16_t*)0x20000c0e = 1; |
| memcpy((void*)0x20000c10, "user_" |
| "linkup\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000c30 = 8; |
| *(uint16_t*)0x20000c32 = 3; |
| *(uint8_t*)0x20000c34 = 6; |
| *(uint16_t*)0x20000c38 = 4; |
| *(uint16_t*)0x20000c3a = 4; |
| *(uint16_t*)0x20000c3c = 8; |
| *(uint16_t*)0x20000c3e = 6; |
| *(uint32_t*)0x20000c40 = r[3]; |
| *(uint16_t*)0x20000c44 = 0x4c; |
| *(uint16_t*)0x20000c46 = 1; |
| *(uint16_t*)0x20000c48 = 0x24; |
| *(uint16_t*)0x20000c4a = 1; |
| memcpy((void*)0x20000c4c, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000c6c = 8; |
| *(uint16_t*)0x20000c6e = 3; |
| *(uint8_t*)0x20000c70 = 0xb; |
| *(uint16_t*)0x20000c74 = 0x1c; |
| *(uint16_t*)0x20000c76 = 4; |
| *(uint16_t*)0x20000c78 = 4; |
| *(uint8_t*)0x20000c7a = 0x80; |
| *(uint8_t*)0x20000c7b = 1; |
| *(uint32_t*)0x20000c7c = 5; |
| *(uint16_t*)0x20000c80 = 3; |
| *(uint8_t*)0x20000c82 = 1; |
| *(uint8_t*)0x20000c83 = 0xdf; |
| *(uint32_t*)0x20000c84 = 3; |
| *(uint16_t*)0x20000c88 = 0x7b2c; |
| *(uint8_t*)0x20000c8a = 3; |
| *(uint8_t*)0x20000c8b = 8; |
| *(uint32_t*)0x20000c8c = 4; |
| *(uint16_t*)0x20000c90 = 0x38; |
| *(uint16_t*)0x20000c92 = 1; |
| *(uint16_t*)0x20000c94 = 0x24; |
| *(uint16_t*)0x20000c96 = 1; |
| memcpy((void*)0x20000c98, "mcast_rejoin_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000cb8 = 8; |
| *(uint16_t*)0x20000cba = 3; |
| *(uint8_t*)0x20000cbc = 3; |
| *(uint16_t*)0x20000cc0 = 8; |
| *(uint16_t*)0x20000cc2 = 4; |
| *(uint32_t*)0x20000cc4 = 0xac; |
| *(uint16_t*)0x20000cc8 = 0x84; |
| *(uint16_t*)0x20000cca = 1; |
| *(uint16_t*)0x20000ccc = 0x24; |
| *(uint16_t*)0x20000cce = 1; |
| memcpy((void*)0x20000cd0, "bpf_hash_" |
| "func\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000cf0 = 8; |
| *(uint16_t*)0x20000cf2 = 3; |
| *(uint8_t*)0x20000cf4 = 0xb; |
| *(uint16_t*)0x20000cf8 = 0x54; |
| *(uint16_t*)0x20000cfa = 4; |
| *(uint16_t*)0x20000cfc = 1; |
| *(uint8_t*)0x20000cfe = 0x20; |
| *(uint8_t*)0x20000cff = 0x61; |
| *(uint32_t*)0x20000d00 = 3; |
| *(uint16_t*)0x20000d04 = 6; |
| *(uint8_t*)0x20000d06 = 0xde; |
| *(uint8_t*)0x20000d07 = -1; |
| *(uint32_t*)0x20000d08 = 5; |
| *(uint16_t*)0x20000d0c = 9; |
| *(uint8_t*)0x20000d0e = -1; |
| *(uint8_t*)0x20000d0f = 3; |
| *(uint32_t*)0x20000d10 = 0x7fff; |
| *(uint16_t*)0x20000d14 = 5; |
| *(uint8_t*)0x20000d16 = 0xdb; |
| *(uint8_t*)0x20000d17 = 0x58; |
| *(uint32_t*)0x20000d18 = 0; |
| *(uint16_t*)0x20000d1c = 0; |
| *(uint8_t*)0x20000d1e = 0; |
| *(uint8_t*)0x20000d1f = 9; |
| *(uint32_t*)0x20000d20 = 0xa9; |
| *(uint16_t*)0x20000d24 = 0; |
| *(uint8_t*)0x20000d26 = 6; |
| *(uint8_t*)0x20000d27 = 0; |
| *(uint32_t*)0x20000d28 = 3; |
| *(uint16_t*)0x20000d2c = 0xf801; |
| *(uint8_t*)0x20000d2e = 1; |
| *(uint8_t*)0x20000d2f = 0x89; |
| *(uint32_t*)0x20000d30 = 0x7a16; |
| *(uint16_t*)0x20000d34 = 0x41; |
| *(uint8_t*)0x20000d36 = 0; |
| *(uint8_t*)0x20000d37 = 0x64; |
| *(uint32_t*)0x20000d38 = 0xd; |
| *(uint16_t*)0x20000d3c = 3; |
| *(uint8_t*)0x20000d3e = 0; |
| *(uint8_t*)0x20000d3f = 4; |
| *(uint32_t*)0x20000d40 = 3; |
| *(uint16_t*)0x20000d44 = 0x200; |
| *(uint8_t*)0x20000d46 = 0xf9; |
| *(uint8_t*)0x20000d47 = 0x8c; |
| *(uint32_t*)0x20000d48 = 0x16d; |
| *(uint16_t*)0x20000d4c = 8; |
| *(uint16_t*)0x20000d4e = 1; |
| *(uint32_t*)0x20000d50 = r[3]; |
| *(uint16_t*)0x20000d54 = 0x12c; |
| *(uint16_t*)0x20000d56 = 2; |
| *(uint16_t*)0x20000d58 = 0x38; |
| *(uint16_t*)0x20000d5a = 1; |
| *(uint16_t*)0x20000d5c = 0x24; |
| *(uint16_t*)0x20000d5e = 1; |
| memcpy((void*)0x20000d60, |
| "notify_peers_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000d80 = 8; |
| *(uint16_t*)0x20000d82 = 3; |
| *(uint8_t*)0x20000d84 = 3; |
| *(uint16_t*)0x20000d88 = 8; |
| *(uint16_t*)0x20000d8a = 4; |
| *(uint32_t*)0x20000d8c = 4; |
| *(uint16_t*)0x20000d90 = 0x38; |
| *(uint16_t*)0x20000d92 = 1; |
| *(uint16_t*)0x20000d94 = 0x24; |
| *(uint16_t*)0x20000d96 = 1; |
| memcpy((void*)0x20000d98, |
| "mcast_rejoin_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000db8 = 8; |
| *(uint16_t*)0x20000dba = 3; |
| *(uint8_t*)0x20000dbc = 3; |
| *(uint16_t*)0x20000dc0 = 8; |
| *(uint16_t*)0x20000dc2 = 4; |
| *(uint32_t*)0x20000dc4 = 0x20; |
| *(uint16_t*)0x20000dc8 = 0x38; |
| *(uint16_t*)0x20000dca = 1; |
| *(uint16_t*)0x20000dcc = 0x24; |
| *(uint16_t*)0x20000dce = 1; |
| memcpy((void*)0x20000dd0, |
| "notify_peers_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000df0 = 8; |
| *(uint16_t*)0x20000df2 = 3; |
| *(uint8_t*)0x20000df4 = 3; |
| *(uint16_t*)0x20000df8 = 8; |
| *(uint16_t*)0x20000dfa = 4; |
| *(uint32_t*)0x20000dfc = 0x13; |
| *(uint16_t*)0x20000e00 = 0x40; |
| *(uint16_t*)0x20000e02 = 1; |
| *(uint16_t*)0x20000e04 = 0x24; |
| *(uint16_t*)0x20000e06 = 1; |
| memcpy((void*)0x20000e08, "mode\x00\x00\x00\x00\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); |
| *(uint16_t*)0x20000e28 = 8; |
| *(uint16_t*)0x20000e2a = 3; |
| *(uint8_t*)0x20000e2c = 5; |
| *(uint16_t*)0x20000e30 = 0x10; |
| *(uint16_t*)0x20000e32 = 4; |
| memcpy((void*)0x20000e34, "loadbalance\x00", 12); |
| *(uint16_t*)0x20000e40 = 0x40; |
| *(uint16_t*)0x20000e42 = 1; |
| *(uint16_t*)0x20000e44 = 0x24; |
| *(uint16_t*)0x20000e46 = 1; |
| memcpy((void*)0x20000e48, "queue_" |
| "id\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); |
| *(uint16_t*)0x20000e68 = 8; |
| *(uint16_t*)0x20000e6a = 3; |
| *(uint8_t*)0x20000e6c = 3; |
| *(uint16_t*)0x20000e70 = 8; |
| *(uint16_t*)0x20000e72 = 4; |
| *(uint32_t*)0x20000e74 = 0xaa81; |
| *(uint16_t*)0x20000e78 = 8; |
| *(uint16_t*)0x20000e7a = 6; |
| *(uint32_t*)0x20000e7c = r[3]; |
| *(uint16_t*)0x20000e80 = 8; |
| *(uint16_t*)0x20000e82 = 1; |
| *(uint32_t*)0x20000e84 = r[3]; |
| *(uint16_t*)0x20000e88 = 0x1e4; |
| *(uint16_t*)0x20000e8a = 2; |
| *(uint16_t*)0x20000e8c = 0x38; |
| *(uint16_t*)0x20000e8e = 1; |
| *(uint16_t*)0x20000e90 = 0x24; |
| *(uint16_t*)0x20000e92 = 1; |
| memcpy((void*)0x20000e94, "mcast_rejoin_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000eb4 = 8; |
| *(uint16_t*)0x20000eb6 = 3; |
| *(uint8_t*)0x20000eb8 = 3; |
| *(uint16_t*)0x20000ebc = 8; |
| *(uint16_t*)0x20000ebe = 4; |
| *(uint32_t*)0x20000ec0 = 0xb4; |
| *(uint16_t*)0x20000ec4 = 0x38; |
| *(uint16_t*)0x20000ec6 = 1; |
| *(uint16_t*)0x20000ec8 = 0x24; |
| *(uint16_t*)0x20000eca = 1; |
| memcpy((void*)0x20000ecc, |
| "mcast_rejoin_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000eec = 8; |
| *(uint16_t*)0x20000eee = 3; |
| *(uint8_t*)0x20000ef0 = 3; |
| *(uint16_t*)0x20000ef4 = 8; |
| *(uint16_t*)0x20000ef6 = 4; |
| *(uint32_t*)0x20000ef8 = 0xfffffffa; |
| *(uint16_t*)0x20000efc = 0x38; |
| *(uint16_t*)0x20000efe = 1; |
| *(uint16_t*)0x20000f00 = 0x24; |
| *(uint16_t*)0x20000f02 = 1; |
| memcpy((void*)0x20000f04, |
| "mcast_rejoin_interval\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000f24 = 8; |
| *(uint16_t*)0x20000f26 = 3; |
| *(uint8_t*)0x20000f28 = 3; |
| *(uint16_t*)0x20000f2c = 8; |
| *(uint16_t*)0x20000f2e = 4; |
| *(uint32_t*)0x20000f30 = 0x3dd6fda5; |
| *(uint16_t*)0x20000f34 = 0x44; |
| *(uint16_t*)0x20000f36 = 1; |
| *(uint16_t*)0x20000f38 = 0x24; |
| *(uint16_t*)0x20000f3a = 1; |
| memcpy((void*)0x20000f3c, "mode\x00\x00\x00\x00\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); |
| *(uint16_t*)0x20000f5c = 8; |
| *(uint16_t*)0x20000f5e = 3; |
| *(uint8_t*)0x20000f60 = 5; |
| *(uint16_t*)0x20000f64 = 0x14; |
| *(uint16_t*)0x20000f66 = 4; |
| memcpy((void*)0x20000f68, "activebackup\x00", 13); |
| *(uint16_t*)0x20000f78 = 0x38; |
| *(uint16_t*)0x20000f7a = 1; |
| *(uint16_t*)0x20000f7c = 0x24; |
| *(uint16_t*)0x20000f7e = 1; |
| memcpy((void*)0x20000f80, "notify_peers_" |
| "count\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20000fa0 = 8; |
| *(uint16_t*)0x20000fa2 = 3; |
| *(uint8_t*)0x20000fa4 = 3; |
| *(uint16_t*)0x20000fa8 = 8; |
| *(uint16_t*)0x20000faa = 4; |
| *(uint32_t*)0x20000fac = 0xfffffff7; |
| *(uint16_t*)0x20000fb0 = 0x40; |
| *(uint16_t*)0x20000fb2 = 1; |
| *(uint16_t*)0x20000fb4 = 0x24; |
| *(uint16_t*)0x20000fb6 = 1; |
| memcpy((void*)0x20000fb8, "queue_" |
| "id\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); |
| *(uint16_t*)0x20000fd8 = 8; |
| *(uint16_t*)0x20000fda = 3; |
| *(uint8_t*)0x20000fdc = 3; |
| *(uint16_t*)0x20000fe0 = 8; |
| *(uint16_t*)0x20000fe2 = 4; |
| *(uint32_t*)0x20000fe4 = 8; |
| *(uint16_t*)0x20000fe8 = 8; |
| *(uint16_t*)0x20000fea = 6; |
| *(uint32_t*)0x20000fec = r[3]; |
| *(uint16_t*)0x20000ff0 = 0x3c; |
| *(uint16_t*)0x20000ff2 = 1; |
| *(uint16_t*)0x20000ff4 = 0x24; |
| *(uint16_t*)0x20000ff6 = 1; |
| memcpy((void*)0x20000ff8, "user_" |
| "linkup\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32); |
| *(uint16_t*)0x20001018 = 8; |
| *(uint16_t*)0x2000101a = 3; |
| *(uint8_t*)0x2000101c = 6; |
| *(uint16_t*)0x20001020 = 4; |
| *(uint16_t*)0x20001022 = 4; |
| *(uint16_t*)0x20001024 = 8; |
| *(uint16_t*)0x20001026 = 6; |
| *(uint32_t*)0x20001028 = r[3]; |
| *(uint16_t*)0x2000102c = 0x40; |
| *(uint16_t*)0x2000102e = 1; |
| *(uint16_t*)0x20001030 = 0x24; |
| *(uint16_t*)0x20001032 = 1; |
| memcpy((void*)0x20001034, "mode\x00\x00\x00\x00\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); |
| *(uint16_t*)0x20001054 = 8; |
| *(uint16_t*)0x20001056 = 3; |
| *(uint8_t*)0x20001058 = 5; |
| *(uint16_t*)0x2000105c = 0x10; |
| *(uint16_t*)0x2000105e = 4; |
| memcpy((void*)0x20001060, "broadcast\x00", 10); |
| *(uint64_t*)0x20000188 = 0xc2c; |
| *(uint64_t*)0x20000218 = 1; |
| *(uint64_t*)0x20000220 = 0; |
| *(uint64_t*)0x20000228 = 0; |
| *(uint32_t*)0x20000230 = 0x4040000; |
| syscall(__NR_sendmsg, r[1], 0x20000200, 0); |
| break; |
| } |
| } |
| int main(void) |
| { |
| syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| use_temporary_dir(); |
| do_sandbox_none(); |
| return 0; |
| } |