// 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 __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); } 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); } } #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); } long r[2]; void loop() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0x39a000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 2, 2, 0); *(uint32_t*)0x20213000 = htobe32(0x7f000001); *(uint8_t*)0x20213004 = 0xac; *(uint8_t*)0x20213005 = 0x14; *(uint8_t*)0x20213006 = 0; *(uint8_t*)0x20213007 = 0xbb; *(uint32_t*)0x20213008 = htobe32(0); syscall(__NR_setsockopt, r[0], 0, 0x27, 0x20213000, 0xc); r[1] = syscall(__NR_socket, 2, 3, 0x81); memcpy((void*)0x20397cd8, "\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*)0x20397cf8 = 0xe; *(uint32_t*)0x20397cfc = 4; *(uint32_t*)0x20397d00 = 0x2c8; *(uint32_t*)0x20397d04 = -1; *(uint32_t*)0x20397d08 = 0; *(uint32_t*)0x20397d0c = 0; *(uint32_t*)0x20397d10 = 0; *(uint32_t*)0x20397d14 = -1; *(uint32_t*)0x20397d18 = -1; *(uint32_t*)0x20397d1c = 0; *(uint32_t*)0x20397d20 = 0; *(uint32_t*)0x20397d24 = 0; *(uint32_t*)0x20397d28 = -1; *(uint32_t*)0x20397d2c = 4; *(uint64_t*)0x20397d30 = 0x20012fc0; *(uint8_t*)0x20397d38 = 0; *(uint8_t*)0x20397d39 = 0; *(uint8_t*)0x20397d3a = 0; *(uint8_t*)0x20397d3b = 0; *(uint8_t*)0x20397d3c = 0; *(uint8_t*)0x20397d3d = 0; *(uint8_t*)0x20397d3e = 0; *(uint8_t*)0x20397d3f = 0; *(uint8_t*)0x20397d40 = 0; *(uint8_t*)0x20397d41 = 0; *(uint8_t*)0x20397d42 = 0; *(uint8_t*)0x20397d43 = 0; *(uint8_t*)0x20397d44 = 0; *(uint8_t*)0x20397d45 = 0; *(uint8_t*)0x20397d46 = 0; *(uint8_t*)0x20397d47 = 0; *(uint8_t*)0x20397d48 = 0; *(uint8_t*)0x20397d49 = 0; *(uint8_t*)0x20397d4a = 0; *(uint8_t*)0x20397d4b = 0; *(uint8_t*)0x20397d4c = 0; *(uint8_t*)0x20397d4d = 0; *(uint8_t*)0x20397d4e = 0; *(uint8_t*)0x20397d4f = 0; *(uint8_t*)0x20397d50 = 0; *(uint8_t*)0x20397d51 = 0; *(uint8_t*)0x20397d52 = 0; *(uint8_t*)0x20397d53 = 0; *(uint8_t*)0x20397d54 = 0; *(uint8_t*)0x20397d55 = 0; *(uint8_t*)0x20397d56 = 0; *(uint8_t*)0x20397d57 = 0; *(uint8_t*)0x20397d58 = 0; *(uint8_t*)0x20397d59 = 0; *(uint8_t*)0x20397d5a = 0; *(uint8_t*)0x20397d5b = 0; *(uint8_t*)0x20397d5c = 0; *(uint8_t*)0x20397d5d = 0; *(uint8_t*)0x20397d5e = 0; *(uint8_t*)0x20397d5f = 0; *(uint8_t*)0x20397d60 = 0; *(uint8_t*)0x20397d61 = 0; *(uint8_t*)0x20397d62 = 0; *(uint8_t*)0x20397d63 = 0; *(uint8_t*)0x20397d64 = 0; *(uint8_t*)0x20397d65 = 0; *(uint8_t*)0x20397d66 = 0; *(uint8_t*)0x20397d67 = 0; *(uint8_t*)0x20397d68 = 0; *(uint8_t*)0x20397d69 = 0; *(uint8_t*)0x20397d6a = 0; *(uint8_t*)0x20397d6b = 0; *(uint8_t*)0x20397d6c = 0; *(uint8_t*)0x20397d6d = 0; *(uint8_t*)0x20397d6e = 0; *(uint8_t*)0x20397d6f = 0; *(uint8_t*)0x20397d70 = 0; *(uint8_t*)0x20397d71 = 0; *(uint8_t*)0x20397d72 = 0; *(uint8_t*)0x20397d73 = 0; *(uint8_t*)0x20397d74 = 0; *(uint8_t*)0x20397d75 = 0; *(uint8_t*)0x20397d76 = 0; *(uint8_t*)0x20397d77 = 0; *(uint8_t*)0x20397d78 = 0; *(uint8_t*)0x20397d79 = 0; *(uint8_t*)0x20397d7a = 0; *(uint8_t*)0x20397d7b = 0; *(uint8_t*)0x20397d7c = 0; *(uint8_t*)0x20397d7d = 0; *(uint8_t*)0x20397d7e = 0; *(uint8_t*)0x20397d7f = 0; *(uint8_t*)0x20397d80 = 0; *(uint8_t*)0x20397d81 = 0; *(uint8_t*)0x20397d82 = 0; *(uint8_t*)0x20397d83 = 0; *(uint8_t*)0x20397d84 = 0; *(uint8_t*)0x20397d85 = 0; *(uint8_t*)0x20397d86 = 0; *(uint8_t*)0x20397d87 = 0; *(uint8_t*)0x20397d88 = 0; *(uint8_t*)0x20397d89 = 0; *(uint8_t*)0x20397d8a = 0; *(uint8_t*)0x20397d8b = 0; *(uint32_t*)0x20397d8c = 0; *(uint16_t*)0x20397d90 = 0x70; *(uint16_t*)0x20397d92 = 0x98; *(uint32_t*)0x20397d94 = 0; *(uint64_t*)0x20397d98 = 0; *(uint64_t*)0x20397da0 = 0; *(uint16_t*)0x20397da8 = 0x28; memcpy((void*)0x20397daa, "\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*)0x20397dc7 = 0; *(uint32_t*)0x20397dc8 = 0xfffffffe; *(uint32_t*)0x20397dd0 = htobe32(0); *(uint8_t*)0x20397dd4 = 0xac; *(uint8_t*)0x20397dd5 = 0x14; *(uint8_t*)0x20397dd6 = 0; *(uint8_t*)0x20397dd7 = 0; *(uint32_t*)0x20397dd8 = htobe32(0); *(uint32_t*)0x20397ddc = htobe32(0); *(uint8_t*)0x20397de0 = 0x73; *(uint8_t*)0x20397de1 = 0x79; *(uint8_t*)0x20397de2 = 0x7a; *(uint8_t*)0x20397de3 = 0; *(uint8_t*)0x20397de4 = 0; *(uint8_t*)0x20397df0 = 0x73; *(uint8_t*)0x20397df1 = 0x79; *(uint8_t*)0x20397df2 = 0x7a; *(uint8_t*)0x20397df3 = 0; *(uint8_t*)0x20397df4 = 0; *(uint8_t*)0x20397e00 = 0; *(uint8_t*)0x20397e01 = 0; *(uint8_t*)0x20397e02 = 0; *(uint8_t*)0x20397e03 = 0; *(uint8_t*)0x20397e04 = 0; *(uint8_t*)0x20397e05 = 0; *(uint8_t*)0x20397e06 = 0; *(uint8_t*)0x20397e07 = 0; *(uint8_t*)0x20397e08 = 0; *(uint8_t*)0x20397e09 = 0; *(uint8_t*)0x20397e0a = 0; *(uint8_t*)0x20397e0b = 0; *(uint8_t*)0x20397e0c = 0; *(uint8_t*)0x20397e0d = 0; *(uint8_t*)0x20397e0e = 0; *(uint8_t*)0x20397e0f = 0; *(uint8_t*)0x20397e10 = 0; *(uint8_t*)0x20397e11 = 0; *(uint8_t*)0x20397e12 = 0; *(uint8_t*)0x20397e13 = 0; *(uint8_t*)0x20397e14 = 0; *(uint8_t*)0x20397e15 = 0; *(uint8_t*)0x20397e16 = 0; *(uint8_t*)0x20397e17 = 0; *(uint8_t*)0x20397e18 = 0; *(uint8_t*)0x20397e19 = 0; *(uint8_t*)0x20397e1a = 0; *(uint8_t*)0x20397e1b = 0; *(uint8_t*)0x20397e1c = 0; *(uint8_t*)0x20397e1d = 0; *(uint8_t*)0x20397e1e = 0; *(uint8_t*)0x20397e1f = 0; *(uint16_t*)0x20397e20 = 0; *(uint8_t*)0x20397e22 = 0; *(uint8_t*)0x20397e23 = 0; *(uint32_t*)0x20397e24 = 0; *(uint16_t*)0x20397e28 = 0x70; *(uint16_t*)0x20397e2a = 0x98; *(uint32_t*)0x20397e2c = 0; *(uint64_t*)0x20397e30 = 0; *(uint64_t*)0x20397e38 = 0; *(uint16_t*)0x20397e40 = 0x28; memcpy((void*)0x20397e42, "\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*)0x20397e5f = 0; *(uint32_t*)0x20397e60 = 0; *(uint32_t*)0x20397e68 = htobe32(0); *(uint32_t*)0x20397e6c = htobe32(0xe0000002); *(uint32_t*)0x20397e70 = htobe32(0); *(uint32_t*)0x20397e74 = htobe32(0); *(uint8_t*)0x20397e78 = 0x73; *(uint8_t*)0x20397e79 = 0x79; *(uint8_t*)0x20397e7a = 0x7a; *(uint8_t*)0x20397e7b = 0; *(uint8_t*)0x20397e7c = 0; memcpy((void*)0x20397e88, "\x6c\x6f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); *(uint8_t*)0x20397e98 = 0; *(uint8_t*)0x20397e99 = 0; *(uint8_t*)0x20397e9a = 0; *(uint8_t*)0x20397e9b = 0; *(uint8_t*)0x20397e9c = 0; *(uint8_t*)0x20397e9d = 0; *(uint8_t*)0x20397e9e = 0; *(uint8_t*)0x20397e9f = 0; *(uint8_t*)0x20397ea0 = 0; *(uint8_t*)0x20397ea1 = 0; *(uint8_t*)0x20397ea2 = 0; *(uint8_t*)0x20397ea3 = 0; *(uint8_t*)0x20397ea4 = 0; *(uint8_t*)0x20397ea5 = 0; *(uint8_t*)0x20397ea6 = 0; *(uint8_t*)0x20397ea7 = 0; *(uint8_t*)0x20397ea8 = 0; *(uint8_t*)0x20397ea9 = 0; *(uint8_t*)0x20397eaa = 0; *(uint8_t*)0x20397eab = 0; *(uint8_t*)0x20397eac = 0; *(uint8_t*)0x20397ead = 0; *(uint8_t*)0x20397eae = 0; *(uint8_t*)0x20397eaf = 0; *(uint8_t*)0x20397eb0 = 0; *(uint8_t*)0x20397eb1 = 0; *(uint8_t*)0x20397eb2 = 0; *(uint8_t*)0x20397eb3 = 0; *(uint8_t*)0x20397eb4 = 0; *(uint8_t*)0x20397eb5 = 0; *(uint8_t*)0x20397eb6 = 0; *(uint8_t*)0x20397eb7 = 0; *(uint16_t*)0x20397eb8 = 0; *(uint8_t*)0x20397eba = 0; *(uint8_t*)0x20397ebb = 0; *(uint32_t*)0x20397ebc = 0; *(uint16_t*)0x20397ec0 = 0xa0; *(uint16_t*)0x20397ec2 = 0xc8; *(uint32_t*)0x20397ec4 = 0; *(uint64_t*)0x20397ec8 = 0; *(uint64_t*)0x20397ed0 = 0; *(uint16_t*)0x20397ed8 = 0x30; memcpy((void*)0x20397eda, "\x63\x6f\x6e\x6e\x6d\x61\x72\x6b\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 29); *(uint8_t*)0x20397ef7 = 1; *(uint32_t*)0x20397ef8 = 0; *(uint32_t*)0x20397efc = 0; *(uint32_t*)0x20397f00 = 0; *(uint16_t*)0x20397f08 = 0x28; memcpy((void*)0x20397f0a, "\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*)0x20397f27 = 0; *(uint32_t*)0x20397f28 = 0; *(uint32_t*)0x20397f30 = htobe32(0); *(uint32_t*)0x20397f34 = htobe32(0xe0000002); *(uint32_t*)0x20397f38 = htobe32(0); *(uint32_t*)0x20397f3c = htobe32(-1); *(uint8_t*)0x20397f40 = 0x73; *(uint8_t*)0x20397f41 = 0x79; *(uint8_t*)0x20397f42 = 0x7a; *(uint8_t*)0x20397f43 = 0x30; *(uint8_t*)0x20397f44 = 0; memcpy((void*)0x20397f50, "\x86\xd3\xd6\x53\xc2\x5e\xa8\xd7\x4a\x86\xad\xd0\x35\xad\xfd\xcf", 16); *(uint8_t*)0x20397f60 = 0; *(uint8_t*)0x20397f61 = 0; *(uint8_t*)0x20397f62 = 0; *(uint8_t*)0x20397f63 = 0; *(uint8_t*)0x20397f64 = 0; *(uint8_t*)0x20397f65 = 0; *(uint8_t*)0x20397f66 = 0; *(uint8_t*)0x20397f67 = 0; *(uint8_t*)0x20397f68 = 0; *(uint8_t*)0x20397f69 = 0; *(uint8_t*)0x20397f6a = 0; *(uint8_t*)0x20397f6b = 0; *(uint8_t*)0x20397f6c = 0; *(uint8_t*)0x20397f6d = 0; *(uint8_t*)0x20397f6e = 0; *(uint8_t*)0x20397f6f = 0; *(uint8_t*)0x20397f70 = 0; *(uint8_t*)0x20397f71 = 0; *(uint8_t*)0x20397f72 = 0; *(uint8_t*)0x20397f73 = 0; *(uint8_t*)0x20397f74 = 0; *(uint8_t*)0x20397f75 = 0; *(uint8_t*)0x20397f76 = 0; *(uint8_t*)0x20397f77 = 0; *(uint8_t*)0x20397f78 = 0; *(uint8_t*)0x20397f79 = 0; *(uint8_t*)0x20397f7a = 0; *(uint8_t*)0x20397f7b = 0; *(uint8_t*)0x20397f7c = 0; *(uint8_t*)0x20397f7d = 0; *(uint8_t*)0x20397f7e = 0; *(uint8_t*)0x20397f7f = 0; *(uint16_t*)0x20397f80 = 0; *(uint8_t*)0x20397f82 = 0; *(uint8_t*)0x20397f83 = 0; *(uint32_t*)0x20397f84 = 0; *(uint16_t*)0x20397f88 = 0x70; *(uint16_t*)0x20397f8a = 0xd0; *(uint32_t*)0x20397f8c = 0; *(uint64_t*)0x20397f90 = 0; *(uint64_t*)0x20397f98 = 0; *(uint16_t*)0x20397fa0 = 0x60; memcpy((void*)0x20397fa2, "\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*)0x20397fbf = 0; *(uint32_t*)0x20397fc0 = 1; *(uint8_t*)0x20397fc4 = 0; *(uint8_t*)0x20397fc5 = 0; *(uint8_t*)0x20397fc6 = 0; *(uint8_t*)0x20397fc7 = 0; *(uint8_t*)0x20397fc8 = 0; *(uint8_t*)0x20397fc9 = 0; *(uint16_t*)0x20397fca = 0; *(uint16_t*)0x20397fcc = 0; *(uint16_t*)0x20397fce = 0; *(uint16_t*)0x20397fd0 = 0; *(uint16_t*)0x20397fd2 = 0; *(uint16_t*)0x20397fd4 = 0; *(uint16_t*)0x20397fd6 = 0; *(uint16_t*)0x20397fd8 = 0; *(uint16_t*)0x20397fda = 0; *(uint16_t*)0x20397fdc = 0; *(uint16_t*)0x20397fde = 0; *(uint16_t*)0x20397fe0 = 0; *(uint16_t*)0x20397fe2 = 0; *(uint16_t*)0x20397fe4 = 0; *(uint16_t*)0x20397fe6 = 0; *(uint16_t*)0x20397fe8 = 0; *(uint16_t*)0x20397fea = 0; *(uint16_t*)0x20397fec = 0; *(uint32_t*)0x20397ff0 = 0; *(uint32_t*)0x20397ff4 = 0; *(uint64_t*)0x20397ff8 = 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[1], 0, 0x40, 0x20397cd8, 0x328); memcpy((void*)0x20000efa, "\x71\x2a\xcb\x22\x97\x46", 6); *(uint8_t*)0x20000f00 = 1; *(uint8_t*)0x20000f01 = 0x80; *(uint8_t*)0x20000f02 = 0xc2; *(uint8_t*)0x20000f03 = 0; *(uint8_t*)0x20000f04 = 0; *(uint8_t*)0x20000f05 = 0; *(uint16_t*)0x20000f06 = htobe16(0x88ca); *(uint32_t*)0x2000b000 = 0; *(uint32_t*)0x2000b004 = 1; *(uint32_t*)0x2000b008 = 0x202; syz_emit_ethernet(0xe, 0x20000efa, 0x2000b000); } int main() { setup_tun(0, true); loop(); return 0; }