// https://syzkaller.appspot.com/bug?id=1f538a5242cb43fa3e58a5c55b9663bf78fba7f3 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static unsigned long long procid; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } #define MAX_FDS 30 static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) { if (a0 == 0xc || a0 == 0xb) { char buf[128]; sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2); return open(buf, O_RDWR, 0); } else { char buf[1024]; char* hash; strncpy(buf, (char*)a0, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; while ((hash = strchr(buf, '#'))) { *hash = '0' + (char)(a1 % 10); a1 /= 10; } return open(buf, a2, 0); } } #define XT_TABLE_SIZE 1536 #define XT_MAX_ENTRIES 10 struct xt_counters { uint64_t pcnt, bcnt; }; 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; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; 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; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct ipt_table_desc { const char* name; struct ipt_getinfo info; struct ipt_replace replace; }; static struct ipt_table_desc ipv4_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "mangle"}, {.name = "raw"}, {.name = "security"}, }; static struct ipt_table_desc ipv6_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) struct arpt_getinfo { char name[32]; unsigned int valid_hooks; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_entries; unsigned int size; }; struct arpt_get_entries { char name[32]; unsigned int size; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_replace { char name[32]; unsigned int valid_hooks; unsigned int num_entries; unsigned int size; unsigned int hook_entry[3]; unsigned int underflow[3]; unsigned int num_counters; struct xt_counters* counters; uint64_t entrytable[XT_TABLE_SIZE / sizeof(uint64_t)]; }; struct arpt_table_desc { const char* name; struct arpt_getinfo info; struct arpt_replace replace; }; static struct arpt_table_desc arpt_tables[] = { {.name = "filter"}, }; #define ARPT_BASE_CTL 96 #define ARPT_SO_SET_REPLACE (ARPT_BASE_CTL) #define ARPT_SO_GET_INFO (ARPT_BASE_CTL) #define ARPT_SO_GET_ENTRIES (ARPT_BASE_CTL + 1) static void checkpoint_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; 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, entries.entrytable, table->info.size); } close(fd); } static void reset_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) { int fd = socket(family, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (int i = 0; i < num_tables; i++) { struct ipt_table_desc* table = &tables[i]; if (table->info.valid_hooks == 0) continue; struct ipt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, level, IPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct ipt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, level, IPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, level, IPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_arptables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; strcpy(table->info.name, table->name); strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &table->info, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->info.size > sizeof(table->replace.entrytable)) exit(1); if (table->info.num_entries > XT_MAX_ENTRIES) exit(1); struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + table->info.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); table->replace.valid_hooks = table->info.valid_hooks; table->replace.num_entries = table->info.num_entries; 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, entries.entrytable, table->info.size); } close(fd); } static void reset_arptables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(arpt_tables) / sizeof(arpt_tables[0]); i++) { struct arpt_table_desc* table = &arpt_tables[i]; if (table->info.valid_hooks == 0) continue; struct arpt_getinfo info; memset(&info, 0, sizeof(info)); strcpy(info.name, table->name); socklen_t optlen = sizeof(info); if (getsockopt(fd, SOL_IP, ARPT_SO_GET_INFO, &info, &optlen)) exit(1); if (memcmp(&table->info, &info, sizeof(table->info)) == 0) { struct arpt_get_entries entries; memset(&entries, 0, sizeof(entries)); strcpy(entries.name, table->name); entries.size = table->info.size; optlen = sizeof(entries) - sizeof(entries.entrytable) + entries.size; if (getsockopt(fd, SOL_IP, ARPT_SO_GET_ENTRIES, &entries, &optlen)) exit(1); if (memcmp(table->replace.entrytable, entries.entrytable, table->info.size) == 0) continue; } else { } struct xt_counters counters[XT_MAX_ENTRIES]; table->replace.num_counters = info.num_entries; table->replace.counters = counters; optlen = sizeof(table->replace) - sizeof(table->replace.entrytable) + table->replace.size; if (setsockopt(fd, SOL_IP, ARPT_SO_SET_REPLACE, &table->replace, optlen)) exit(1); } close(fd); } #define NF_BR_NUMHOOKS 6 #define EBT_TABLE_MAXNAMELEN 32 #define EBT_CHAIN_MAXNAMELEN 32 #define EBT_BASE_CTL 128 #define EBT_SO_SET_ENTRIES (EBT_BASE_CTL) #define EBT_SO_GET_INFO (EBT_BASE_CTL) #define EBT_SO_GET_ENTRIES (EBT_SO_GET_INFO + 1) #define EBT_SO_GET_INIT_INFO (EBT_SO_GET_ENTRIES + 1) #define EBT_SO_GET_INIT_ENTRIES (EBT_SO_GET_INIT_INFO + 1) struct ebt_replace { char name[EBT_TABLE_MAXNAMELEN]; unsigned int valid_hooks; unsigned int nentries; unsigned int entries_size; struct ebt_entries* hook_entry[NF_BR_NUMHOOKS]; unsigned int num_counters; struct ebt_counter* counters; char* entries; }; struct ebt_entries { unsigned int distinguisher; char name[EBT_CHAIN_MAXNAMELEN]; unsigned int counter_offset; int policy; unsigned int nentries; char data[0] __attribute__((aligned(__alignof__(struct ebt_replace)))); }; struct ebt_table_desc { const char* name; struct ebt_replace replace; char entrytable[XT_TABLE_SIZE]; }; static struct ebt_table_desc ebt_tables[] = { {.name = "filter"}, {.name = "nat"}, {.name = "broute"}, }; static void checkpoint_ebtables(void) { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (size_t i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; strcpy(table->replace.name, table->name); socklen_t optlen = sizeof(table->replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_INFO, &table->replace, &optlen)) { switch (errno) { case EPERM: case ENOENT: case ENOPROTOOPT: continue; } exit(1); } if (table->replace.entries_size > sizeof(table->entrytable)) exit(1); table->replace.num_counters = 0; table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_INIT_ENTRIES, &table->replace, &optlen)) exit(1); } close(fd); } static void reset_ebtables() { int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (fd == -1) { switch (errno) { case EAFNOSUPPORT: case ENOPROTOOPT: return; } exit(1); } for (unsigned i = 0; i < sizeof(ebt_tables) / sizeof(ebt_tables[0]); i++) { struct ebt_table_desc* table = &ebt_tables[i]; if (table->replace.valid_hooks == 0) continue; struct ebt_replace replace; memset(&replace, 0, sizeof(replace)); strcpy(replace.name, table->name); socklen_t optlen = sizeof(replace); if (getsockopt(fd, SOL_IP, EBT_SO_GET_INFO, &replace, &optlen)) exit(1); replace.num_counters = 0; table->replace.entries = 0; for (unsigned h = 0; h < NF_BR_NUMHOOKS; h++) table->replace.hook_entry[h] = 0; if (memcmp(&table->replace, &replace, sizeof(table->replace)) == 0) { char entrytable[XT_TABLE_SIZE]; memset(&entrytable, 0, sizeof(entrytable)); replace.entries = entrytable; optlen = sizeof(replace) + replace.entries_size; if (getsockopt(fd, SOL_IP, EBT_SO_GET_ENTRIES, &replace, &optlen)) exit(1); if (memcmp(table->entrytable, entrytable, replace.entries_size) == 0) continue; } for (unsigned j = 0, h = 0; h < NF_BR_NUMHOOKS; h++) { if (table->replace.valid_hooks & (1 << h)) { table->replace.hook_entry[h] = (struct ebt_entries*)table->entrytable + j; j++; } } table->replace.entries = table->entrytable; optlen = sizeof(table->replace) + table->replace.entries_size; if (setsockopt(fd, SOL_IP, EBT_SO_SET_ENTRIES, &table->replace, optlen)) exit(1); } close(fd); } static void checkpoint_net_namespace(void) { checkpoint_ebtables(); checkpoint_arptables(); checkpoint_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); checkpoint_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } static void reset_net_namespace(void) { reset_ebtables(); reset_arptables(); reset_iptables(ipv4_tables, sizeof(ipv4_tables) / sizeof(ipv4_tables[0]), AF_INET, SOL_IP); reset_iptables(ipv6_tables, sizeof(ipv6_tables) / sizeof(ipv6_tables[0]), AF_INET6, SOL_IPV6); } static void setup_common() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setsid(); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 0; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); setup_common(); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } loop(); exit(1); } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_loop() { checkpoint_net_namespace(); } static void reset_loop() { reset_net_namespace(); } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } static void setup_binfmt_misc() { if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0)) { } write_file("/proc/sys/fs/binfmt_misc/register", ":syz0:M:0:\x01::./file0:"); write_file("/proc/sys/fs/binfmt_misc/register", ":syz1:M:1:\x02::./file0:POC"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { setup_loop(); int iter = 0; for (;; iter++) { reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); close_fds(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5 * 1000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; NONFAILING(memcpy((void*)0x200002c0, "/dev/fb0\000", 9)); res = syscall(__NR_openat, 0xffffffffffffff9cul, 0x200002c0ul, 0ul, 0ul); if (res != -1) r[0] = res; NONFAILING(*(uint32_t*)0x20000340 = 0x3c0); NONFAILING(*(uint32_t*)0x20000344 = 0); NONFAILING(*(uint32_t*)0x20000348 = 0); NONFAILING(*(uint32_t*)0x2000034c = 0x640); NONFAILING(*(uint32_t*)0x20000350 = 0); NONFAILING(*(uint32_t*)0x20000354 = 0x8d4); NONFAILING(*(uint32_t*)0x20000358 = 4); NONFAILING(*(uint32_t*)0x2000035c = 0); NONFAILING(*(uint32_t*)0x20000360 = 0); NONFAILING(*(uint32_t*)0x20000364 = 0); NONFAILING(*(uint32_t*)0x20000368 = 0); NONFAILING(*(uint32_t*)0x2000036c = 0); NONFAILING(*(uint32_t*)0x20000370 = 0); NONFAILING(*(uint32_t*)0x20000374 = 0); NONFAILING(*(uint32_t*)0x20000378 = 0); NONFAILING(*(uint32_t*)0x2000037c = 0); NONFAILING(*(uint32_t*)0x20000380 = 0); NONFAILING(*(uint32_t*)0x20000384 = 0); NONFAILING(*(uint32_t*)0x20000388 = 0); NONFAILING(*(uint32_t*)0x2000038c = 0); NONFAILING(*(uint32_t*)0x20000390 = 2); NONFAILING(*(uint32_t*)0x20000394 = 0); NONFAILING(*(uint32_t*)0x20000398 = 0); NONFAILING(*(uint32_t*)0x2000039c = 0); NONFAILING(*(uint32_t*)0x200003a0 = 0); NONFAILING(*(uint32_t*)0x200003a4 = 0); NONFAILING(*(uint32_t*)0x200003a8 = 0); NONFAILING(*(uint32_t*)0x200003ac = 0); NONFAILING(*(uint32_t*)0x200003b0 = 0); NONFAILING(*(uint32_t*)0x200003b4 = 0); NONFAILING(*(uint32_t*)0x200003b8 = 0); NONFAILING(*(uint32_t*)0x200003bc = 0); NONFAILING(*(uint32_t*)0x200003c0 = 0); NONFAILING(*(uint32_t*)0x200003c4 = 0); NONFAILING(*(uint32_t*)0x200003c8 = 0); NONFAILING(*(uint32_t*)0x200003cc = 0); NONFAILING(*(uint32_t*)0x200003d0 = 0); NONFAILING(*(uint32_t*)0x200003d4 = 0); NONFAILING(*(uint32_t*)0x200003d8 = 0); NONFAILING(*(uint32_t*)0x200003dc = 0); syscall(__NR_ioctl, r[0], 0x4601, 0x20000340ul); syscall(__NR_socketpair, 0x28ul, 1ul, 0, 0ul); syscall(__NR_socket, 0x10ul, 3ul, 0x10); res = -1; NONFAILING(res = syz_open_dev(0xc, 4, 1)); if (res != -1) r[1] = res; NONFAILING(*(uint8_t*)0x20000000 = 2); NONFAILING(*(uint8_t*)0x20000001 = 3); NONFAILING(*(uint16_t*)0x20000002 = 0); NONFAILING(*(uint16_t*)0x20000004 = 0); NONFAILING(*(uint16_t*)0x20000006 = 0x400); NONFAILING(*(uint16_t*)0x20000008 = 0x100); NONFAILING(*(uint16_t*)0x2000000a = 0); syscall(__NR_ioctl, r[1], 0x541c, 0x20000000ul); NONFAILING(*(uint8_t*)0x200000c0 = 3); syscall(__NR_ioctl, r[1], 0x541c, 0x200000c0ul); syscall(__NR_perf_event_open, 0ul, 0, 0ul, -1, 0ul); syscall(__NR_clone, 0x3a3dd4008400a701ul, 0ul, 0x9999999999999999ul, 0ul, -1ul); NONFAILING(memcpy((void*)0x20000340, "raw\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000", 32)); NONFAILING(*(uint32_t*)0x20000360 = 0x4001); NONFAILING(*(uint32_t*)0x20000364 = 3); NONFAILING(*(uint32_t*)0x20000368 = 0x2e8); NONFAILING(*(uint32_t*)0x2000036c = 0); NONFAILING(*(uint32_t*)0x20000370 = 0); NONFAILING(*(uint32_t*)0x20000374 = 0x148); NONFAILING(*(uint32_t*)0x20000378 = 0); NONFAILING(*(uint32_t*)0x2000037c = 0x148); NONFAILING(*(uint32_t*)0x20000380 = 0x250); NONFAILING(*(uint32_t*)0x20000384 = 0x240); NONFAILING(*(uint32_t*)0x20000388 = 0x240); NONFAILING(*(uint32_t*)0x2000038c = 0x250); NONFAILING(*(uint32_t*)0x20000390 = 0x240); NONFAILING(*(uint32_t*)0x20000394 = 3); NONFAILING(*(uint64_t*)0x20000398 = 0); NONFAILING(*(uint8_t*)0x200003a0 = 0); NONFAILING(*(uint8_t*)0x200003a1 = 0); NONFAILING(*(uint8_t*)0x200003a2 = 0); NONFAILING(*(uint8_t*)0x200003a3 = 0); NONFAILING(*(uint8_t*)0x200003a4 = 0); NONFAILING(*(uint8_t*)0x200003a5 = 0); NONFAILING(*(uint8_t*)0x200003a6 = 0); NONFAILING(*(uint8_t*)0x200003a7 = 0); NONFAILING(*(uint8_t*)0x200003a8 = 0); NONFAILING(*(uint8_t*)0x200003a9 = 0); NONFAILING(*(uint8_t*)0x200003aa = 0); NONFAILING(*(uint8_t*)0x200003ab = 0); NONFAILING(*(uint8_t*)0x200003ac = 0); NONFAILING(*(uint8_t*)0x200003ad = 0); NONFAILING(*(uint8_t*)0x200003ae = 0); NONFAILING(*(uint8_t*)0x200003af = 0); NONFAILING(*(uint8_t*)0x200003b0 = 0); NONFAILING(*(uint8_t*)0x200003b1 = 0); NONFAILING(*(uint8_t*)0x200003b2 = 0); NONFAILING(*(uint8_t*)0x200003b3 = 0); NONFAILING(*(uint8_t*)0x200003b4 = 0); NONFAILING(*(uint8_t*)0x200003b5 = 0); NONFAILING(*(uint8_t*)0x200003b6 = 0); NONFAILING(*(uint8_t*)0x200003b7 = 0); NONFAILING(*(uint8_t*)0x200003b8 = 0); NONFAILING(*(uint8_t*)0x200003b9 = 0); NONFAILING(*(uint8_t*)0x200003ba = 0); NONFAILING(*(uint8_t*)0x200003bb = 0); NONFAILING(*(uint8_t*)0x200003bc = 0); NONFAILING(*(uint8_t*)0x200003bd = 0); NONFAILING(*(uint8_t*)0x200003be = 0); NONFAILING(*(uint8_t*)0x200003bf = 0); NONFAILING(*(uint8_t*)0x200003c0 = 0); NONFAILING(*(uint8_t*)0x200003c1 = 0); NONFAILING(*(uint8_t*)0x200003c2 = 0); NONFAILING(*(uint8_t*)0x200003c3 = 0); NONFAILING(*(uint8_t*)0x200003c4 = 0); NONFAILING(*(uint8_t*)0x200003c5 = 0); NONFAILING(*(uint8_t*)0x200003c6 = 0); NONFAILING(*(uint8_t*)0x200003c7 = 0); NONFAILING(*(uint8_t*)0x200003c8 = 0); NONFAILING(*(uint8_t*)0x200003c9 = 0); NONFAILING(*(uint8_t*)0x200003ca = 0); NONFAILING(*(uint8_t*)0x200003cb = 0); NONFAILING(*(uint8_t*)0x200003cc = 0); NONFAILING(*(uint8_t*)0x200003cd = 0); NONFAILING(*(uint8_t*)0x200003ce = 0); NONFAILING(*(uint8_t*)0x200003cf = 0); NONFAILING(*(uint8_t*)0x200003d0 = 0); NONFAILING(*(uint8_t*)0x200003d1 = 0); NONFAILING(*(uint8_t*)0x200003d2 = 0); NONFAILING(*(uint8_t*)0x200003d3 = 0); NONFAILING(*(uint8_t*)0x200003d4 = 0); NONFAILING(*(uint8_t*)0x200003d5 = 0); NONFAILING(*(uint8_t*)0x200003d6 = 0); NONFAILING(*(uint8_t*)0x200003d7 = 0); NONFAILING(*(uint8_t*)0x200003d8 = 0); NONFAILING(*(uint8_t*)0x200003d9 = 0); NONFAILING(*(uint8_t*)0x200003da = 0); NONFAILING(*(uint8_t*)0x200003db = 0); NONFAILING(*(uint8_t*)0x200003dc = 0); NONFAILING(*(uint8_t*)0x200003dd = 0); NONFAILING(*(uint8_t*)0x200003de = 0); NONFAILING(*(uint8_t*)0x200003df = 0); NONFAILING(*(uint8_t*)0x200003e0 = 0); NONFAILING(*(uint8_t*)0x200003e1 = 0); NONFAILING(*(uint8_t*)0x200003e2 = 0); NONFAILING(*(uint8_t*)0x200003e3 = 0); NONFAILING(*(uint8_t*)0x200003e4 = 0); NONFAILING(*(uint8_t*)0x200003e5 = 0); NONFAILING(*(uint8_t*)0x200003e6 = 0); NONFAILING(*(uint8_t*)0x200003e7 = 0); NONFAILING(*(uint8_t*)0x200003e8 = 0); NONFAILING(*(uint8_t*)0x200003e9 = 0); NONFAILING(*(uint8_t*)0x200003ea = 0); NONFAILING(*(uint8_t*)0x200003eb = 0); NONFAILING(*(uint8_t*)0x200003ec = 0); NONFAILING(*(uint8_t*)0x200003ed = 0); NONFAILING(*(uint8_t*)0x200003ee = 0); NONFAILING(*(uint8_t*)0x200003ef = 0); NONFAILING(*(uint8_t*)0x200003f0 = 0); NONFAILING(*(uint8_t*)0x200003f1 = 0); NONFAILING(*(uint8_t*)0x200003f2 = 0); NONFAILING(*(uint8_t*)0x200003f3 = 0); NONFAILING(*(uint32_t*)0x200003f4 = 0); NONFAILING(*(uint16_t*)0x200003f8 = 0x130); NONFAILING(*(uint16_t*)0x200003fa = 0x150); NONFAILING(*(uint32_t*)0x200003fc = 0); NONFAILING(*(uint64_t*)0x20000400 = 0); NONFAILING(*(uint64_t*)0x20000408 = 0); NONFAILING(*(uint16_t*)0x20000410 = 0x58); NONFAILING(memcpy((void*)0x20000412, "hashlimit\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000", 29)); NONFAILING(*(uint8_t*)0x2000042f = 1); NONFAILING(memcpy((void*)0x20000430, "bond_slave_1\000\000\000\000", 16)); NONFAILING(*(uint32_t*)0x20000440 = 0); NONFAILING(*(uint32_t*)0x20000444 = 0); NONFAILING(*(uint32_t*)0x20000448 = 3); NONFAILING(*(uint32_t*)0x2000044c = 0); NONFAILING(*(uint32_t*)0x20000450 = 0); NONFAILING(*(uint32_t*)0x20000454 = 0x800); NONFAILING(*(uint32_t*)0x20000458 = 7); NONFAILING(*(uint8_t*)0x2000045c = 0); NONFAILING(*(uint8_t*)0x2000045d = 0); NONFAILING(*(uint64_t*)0x20000460 = 0); NONFAILING(*(uint16_t*)0x20000468 = 0x68); NONFAILING(memcpy((void*)0x2000046a, "rateest\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000", 29)); NONFAILING(*(uint8_t*)0x20000487 = 0); NONFAILING(memcpy((void*)0x20000488, "geneve0\000\000\000\000\000\000\000\000\000", 16)); NONFAILING(memcpy((void*)0x20000498, "ip6tnl0\000\000\000\000\000\000\000\000\000", 16)); NONFAILING(*(uint16_t*)0x200004a8 = 0x24); NONFAILING(*(uint16_t*)0x200004aa = 3); NONFAILING(*(uint32_t*)0x200004ac = 0); NONFAILING(*(uint32_t*)0x200004b0 = 0); NONFAILING(*(uint32_t*)0x200004b4 = 0); NONFAILING(*(uint32_t*)0x200004b8 = 0); NONFAILING(*(uint64_t*)0x200004c0 = 0); NONFAILING(*(uint64_t*)0x200004c8 = 0); NONFAILING(*(uint16_t*)0x200004d0 = 0x20); NONFAILING(memcpy((void*)0x200004d2, "NOTRACK\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000", 29)); NONFAILING(*(uint8_t*)0x200004ef = 0); NONFAILING(*(uint8_t*)0x200004f0 = 0); NONFAILING(*(uint8_t*)0x200004f1 = 0); NONFAILING(*(uint8_t*)0x200004f2 = 0); NONFAILING(*(uint8_t*)0x200004f3 = 0); NONFAILING(*(uint8_t*)0x200004f4 = 0); NONFAILING(*(uint8_t*)0x200004f5 = 0); NONFAILING(*(uint8_t*)0x200004f6 = 0); NONFAILING(*(uint8_t*)0x200004f7 = 0); NONFAILING(*(uint8_t*)0x200004f8 = 0); NONFAILING(*(uint8_t*)0x200004f9 = 0); NONFAILING(*(uint8_t*)0x200004fa = 0); NONFAILING(*(uint8_t*)0x200004fb = 0); NONFAILING(*(uint8_t*)0x200004fc = 0); NONFAILING(*(uint8_t*)0x200004fd = 0); NONFAILING(*(uint8_t*)0x200004fe = 0); NONFAILING(*(uint8_t*)0x200004ff = 0); NONFAILING(*(uint8_t*)0x20000500 = 0); NONFAILING(*(uint8_t*)0x20000501 = 0); NONFAILING(*(uint8_t*)0x20000502 = 0); NONFAILING(*(uint8_t*)0x20000503 = 0); NONFAILING(*(uint8_t*)0x20000504 = 0); NONFAILING(*(uint8_t*)0x20000505 = 0); NONFAILING(*(uint8_t*)0x20000506 = 0); NONFAILING(*(uint8_t*)0x20000507 = 0); NONFAILING(*(uint8_t*)0x20000508 = 0); NONFAILING(*(uint8_t*)0x20000509 = 0); NONFAILING(*(uint8_t*)0x2000050a = 0); NONFAILING(*(uint8_t*)0x2000050b = 0); NONFAILING(*(uint8_t*)0x2000050c = 0); NONFAILING(*(uint8_t*)0x2000050d = 0); NONFAILING(*(uint8_t*)0x2000050e = 0); NONFAILING(*(uint8_t*)0x2000050f = 0); NONFAILING(*(uint8_t*)0x20000510 = 0); NONFAILING(*(uint8_t*)0x20000511 = 0); NONFAILING(*(uint8_t*)0x20000512 = 0); NONFAILING(*(uint8_t*)0x20000513 = 0); NONFAILING(*(uint8_t*)0x20000514 = 0); NONFAILING(*(uint8_t*)0x20000515 = 0); NONFAILING(*(uint8_t*)0x20000516 = 0); NONFAILING(*(uint8_t*)0x20000517 = 0); NONFAILING(*(uint8_t*)0x20000518 = 0); NONFAILING(*(uint8_t*)0x20000519 = 0); NONFAILING(*(uint8_t*)0x2000051a = 0); NONFAILING(*(uint8_t*)0x2000051b = 0); NONFAILING(*(uint8_t*)0x2000051c = 0); NONFAILING(*(uint8_t*)0x2000051d = 0); NONFAILING(*(uint8_t*)0x2000051e = 0); NONFAILING(*(uint8_t*)0x2000051f = 0); NONFAILING(*(uint8_t*)0x20000520 = 0); NONFAILING(*(uint8_t*)0x20000521 = 0); NONFAILING(*(uint8_t*)0x20000522 = 0); NONFAILING(*(uint8_t*)0x20000523 = 0); NONFAILING(*(uint8_t*)0x20000524 = 0); NONFAILING(*(uint8_t*)0x20000525 = 0); NONFAILING(*(uint8_t*)0x20000526 = 0); NONFAILING(*(uint8_t*)0x20000527 = 0); NONFAILING(*(uint8_t*)0x20000528 = 0); NONFAILING(*(uint8_t*)0x20000529 = 0); NONFAILING(*(uint8_t*)0x2000052a = 0); NONFAILING(*(uint8_t*)0x2000052b = 0); NONFAILING(*(uint8_t*)0x2000052c = 0); NONFAILING(*(uint8_t*)0x2000052d = 0); NONFAILING(*(uint8_t*)0x2000052e = 0); NONFAILING(*(uint8_t*)0x2000052f = 0); NONFAILING(*(uint8_t*)0x20000530 = 0); NONFAILING(*(uint8_t*)0x20000531 = 0); NONFAILING(*(uint8_t*)0x20000532 = 0); NONFAILING(*(uint8_t*)0x20000533 = 0); NONFAILING(*(uint8_t*)0x20000534 = 0); NONFAILING(*(uint8_t*)0x20000535 = 0); NONFAILING(*(uint8_t*)0x20000536 = 0); NONFAILING(*(uint8_t*)0x20000537 = 0); NONFAILING(*(uint8_t*)0x20000538 = 0); NONFAILING(*(uint8_t*)0x20000539 = 0); NONFAILING(*(uint8_t*)0x2000053a = 0); NONFAILING(*(uint8_t*)0x2000053b = 0); NONFAILING(*(uint8_t*)0x2000053c = 0); NONFAILING(*(uint8_t*)0x2000053d = 0); NONFAILING(*(uint8_t*)0x2000053e = 0); NONFAILING(*(uint8_t*)0x2000053f = 0); NONFAILING(*(uint8_t*)0x20000540 = 0); NONFAILING(*(uint8_t*)0x20000541 = 0); NONFAILING(*(uint8_t*)0x20000542 = 0); NONFAILING(*(uint8_t*)0x20000543 = 0); NONFAILING(*(uint32_t*)0x20000544 = 0); NONFAILING(*(uint16_t*)0x20000548 = 0xa0); NONFAILING(*(uint16_t*)0x2000054a = 0x100); NONFAILING(*(uint32_t*)0x2000054c = 0); NONFAILING(*(uint64_t*)0x20000550 = 0); NONFAILING(*(uint64_t*)0x20000558 = 0); NONFAILING(*(uint16_t*)0x20000560 = 0x30); NONFAILING(memcpy((void*)0x20000562, "connmark\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000", 29)); NONFAILING(*(uint8_t*)0x2000057f = 1); NONFAILING(*(uint32_t*)0x20000580 = 0); NONFAILING(*(uint32_t*)0x20000584 = 0); NONFAILING(*(uint8_t*)0x20000588 = 0); NONFAILING(*(uint16_t*)0x20000590 = 0x60); NONFAILING(memcpy((void*)0x20000592, "SET\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000", 29)); NONFAILING(*(uint8_t*)0x200005af = 0); NONFAILING(*(uint16_t*)0x200005b0 = 0); NONFAILING(*(uint32_t*)0x200005b4 = 0); NONFAILING(*(uint32_t*)0x200005b8 = 0); NONFAILING(*(uint32_t*)0x200005bc = 0); NONFAILING(*(uint32_t*)0x200005c0 = 0); NONFAILING(*(uint32_t*)0x200005c4 = 0); NONFAILING(*(uint32_t*)0x200005c8 = 0); NONFAILING(*(uint8_t*)0x200005cc = 0); NONFAILING(*(uint8_t*)0x200005cd = 0); NONFAILING(*(uint16_t*)0x200005d0 = 0); NONFAILING(*(uint32_t*)0x200005d4 = 0); NONFAILING(*(uint32_t*)0x200005d8 = 0); NONFAILING(*(uint32_t*)0x200005dc = 0); NONFAILING(*(uint32_t*)0x200005e0 = 0); NONFAILING(*(uint32_t*)0x200005e4 = 0); NONFAILING(*(uint32_t*)0x200005e8 = 0); NONFAILING(*(uint8_t*)0x200005ec = 0); NONFAILING(*(uint8_t*)0x200005ed = 0); NONFAILING(*(uint8_t*)0x200005f0 = 0); NONFAILING(*(uint8_t*)0x200005f1 = 0); NONFAILING(*(uint8_t*)0x200005f2 = 0); NONFAILING(*(uint8_t*)0x200005f3 = 0); NONFAILING(*(uint8_t*)0x200005f4 = 0); NONFAILING(*(uint8_t*)0x200005f5 = 0); NONFAILING(*(uint8_t*)0x200005f6 = 0); NONFAILING(*(uint8_t*)0x200005f7 = 0); NONFAILING(*(uint8_t*)0x200005f8 = 0); NONFAILING(*(uint8_t*)0x200005f9 = 0); NONFAILING(*(uint8_t*)0x200005fa = 0); NONFAILING(*(uint8_t*)0x200005fb = 0); NONFAILING(*(uint8_t*)0x200005fc = 0); NONFAILING(*(uint8_t*)0x200005fd = 0); NONFAILING(*(uint8_t*)0x200005fe = 0); NONFAILING(*(uint8_t*)0x200005ff = 0); NONFAILING(*(uint8_t*)0x20000600 = 0); NONFAILING(*(uint8_t*)0x20000601 = 0); NONFAILING(*(uint8_t*)0x20000602 = 0); NONFAILING(*(uint8_t*)0x20000603 = 0); NONFAILING(*(uint8_t*)0x20000604 = 0); NONFAILING(*(uint8_t*)0x20000605 = 0); NONFAILING(*(uint8_t*)0x20000606 = 0); NONFAILING(*(uint8_t*)0x20000607 = 0); NONFAILING(*(uint8_t*)0x20000608 = 0); NONFAILING(*(uint8_t*)0x20000609 = 0); NONFAILING(*(uint8_t*)0x2000060a = 0); NONFAILING(*(uint8_t*)0x2000060b = 0); NONFAILING(*(uint8_t*)0x2000060c = 0); NONFAILING(*(uint8_t*)0x2000060d = 0); NONFAILING(*(uint8_t*)0x2000060e = 0); NONFAILING(*(uint8_t*)0x2000060f = 0); NONFAILING(*(uint8_t*)0x20000610 = 0); NONFAILING(*(uint8_t*)0x20000611 = 0); NONFAILING(*(uint8_t*)0x20000612 = 0); NONFAILING(*(uint8_t*)0x20000613 = 0); NONFAILING(*(uint8_t*)0x20000614 = 0); NONFAILING(*(uint8_t*)0x20000615 = 0); NONFAILING(*(uint8_t*)0x20000616 = 0); NONFAILING(*(uint8_t*)0x20000617 = 0); NONFAILING(*(uint8_t*)0x20000618 = 0); NONFAILING(*(uint8_t*)0x20000619 = 0); NONFAILING(*(uint8_t*)0x2000061a = 0); NONFAILING(*(uint8_t*)0x2000061b = 0); NONFAILING(*(uint8_t*)0x2000061c = 0); NONFAILING(*(uint8_t*)0x2000061d = 0); NONFAILING(*(uint8_t*)0x2000061e = 0); NONFAILING(*(uint8_t*)0x2000061f = 0); NONFAILING(*(uint8_t*)0x20000620 = 0); NONFAILING(*(uint8_t*)0x20000621 = 0); NONFAILING(*(uint8_t*)0x20000622 = 0); NONFAILING(*(uint8_t*)0x20000623 = 0); NONFAILING(*(uint8_t*)0x20000624 = 0); NONFAILING(*(uint8_t*)0x20000625 = 0); NONFAILING(*(uint8_t*)0x20000626 = 0); NONFAILING(*(uint8_t*)0x20000627 = 0); NONFAILING(*(uint8_t*)0x20000628 = 0); NONFAILING(*(uint8_t*)0x20000629 = 0); NONFAILING(*(uint8_t*)0x2000062a = 0); NONFAILING(*(uint8_t*)0x2000062b = 0); NONFAILING(*(uint8_t*)0x2000062c = 0); NONFAILING(*(uint8_t*)0x2000062d = 0); NONFAILING(*(uint8_t*)0x2000062e = 0); NONFAILING(*(uint8_t*)0x2000062f = 0); NONFAILING(*(uint8_t*)0x20000630 = 0); NONFAILING(*(uint8_t*)0x20000631 = 0); NONFAILING(*(uint8_t*)0x20000632 = 0); NONFAILING(*(uint8_t*)0x20000633 = 0); NONFAILING(*(uint8_t*)0x20000634 = 0); NONFAILING(*(uint8_t*)0x20000635 = 0); NONFAILING(*(uint8_t*)0x20000636 = 0); NONFAILING(*(uint8_t*)0x20000637 = 0); NONFAILING(*(uint8_t*)0x20000638 = 0); NONFAILING(*(uint8_t*)0x20000639 = 0); NONFAILING(*(uint8_t*)0x2000063a = 0); NONFAILING(*(uint8_t*)0x2000063b = 0); NONFAILING(*(uint8_t*)0x2000063c = 0); NONFAILING(*(uint8_t*)0x2000063d = 0); NONFAILING(*(uint8_t*)0x2000063e = 0); NONFAILING(*(uint8_t*)0x2000063f = 0); NONFAILING(*(uint8_t*)0x20000640 = 0); NONFAILING(*(uint8_t*)0x20000641 = 0); NONFAILING(*(uint8_t*)0x20000642 = 0); NONFAILING(*(uint8_t*)0x20000643 = 0); NONFAILING(*(uint32_t*)0x20000644 = 0); NONFAILING(*(uint16_t*)0x20000648 = 0x70); NONFAILING(*(uint16_t*)0x2000064a = 0x98); NONFAILING(*(uint32_t*)0x2000064c = 0); NONFAILING(*(uint64_t*)0x20000650 = 0); NONFAILING(*(uint64_t*)0x20000658 = 0); NONFAILING(*(uint16_t*)0x20000660 = 0x28); NONFAILING(memcpy((void*)0x20000662, "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000" "\000\000", 29)); NONFAILING(*(uint8_t*)0x2000067f = 0); NONFAILING(*(uint32_t*)0x20000680 = 0xfffffffe); syscall(__NR_setsockopt, -1, 0, 0x40, 0x20000340ul, 0x348ul); } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); setup_binfmt_misc(); install_segv_handler(); for (procid = 0; procid < 6; procid++) { if (fork() == 0) { do_sandbox_none(); } } sleep(1000000); return 0; }