// https://syzkaller.appspot.com/bug?id=47ca2ff42f9c5d5d353149ecc97f29de7828bbfd // 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 #ifndef SYS_mmap #define SYS_mmap 197 #endif static unsigned long long procid; static void kill_and_wait(int pid, int* status) { kill(pid, SIGKILL); while (waitpid(-1, status, 0) != pid) { } } 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 thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { pthread_mutex_t mu; pthread_cond_t cv; int state; } event_t; static void event_init(event_t* ev) { if (pthread_mutex_init(&ev->mu, 0)) exit(1); if (pthread_cond_init(&ev->cv, 0)) exit(1); ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { pthread_mutex_lock(&ev->mu); if (ev->state) exit(1); ev->state = 1; pthread_mutex_unlock(&ev->mu); pthread_cond_broadcast(&ev->cv); } static void event_wait(event_t* ev) { pthread_mutex_lock(&ev->mu); while (!ev->state) pthread_cond_wait(&ev->cv, &ev->mu); pthread_mutex_unlock(&ev->mu); } static int event_isset(event_t* ev) { pthread_mutex_lock(&ev->mu); int res = ev->state; pthread_mutex_unlock(&ev->mu); return res; } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; pthread_mutex_lock(&ev->mu); for (;;) { if (ev->state) break; uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; pthread_cond_timedwait(&ev->cv, &ev->mu, &ts); now = current_time_ms(); if (now - start > timeout) break; } int res = ev->state; pthread_mutex_unlock(&ev->mu); return res; } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) struct usb_endpoint_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bEndpointAddress; uint8_t bmAttributes; uint16_t wMaxPacketSize; uint8_t bInterval; uint8_t bRefresh; uint8_t bSynchAddress; } __attribute__((packed)); struct usb_device_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint16_t bcdUSB; uint8_t bDeviceClass; uint8_t bDeviceSubClass; uint8_t bDeviceProtocol; uint8_t bMaxPacketSize0; uint16_t idVendor; uint16_t idProduct; uint16_t bcdDevice; uint8_t iManufacturer; uint8_t iProduct; uint8_t iSerialNumber; uint8_t bNumConfigurations; } __attribute__((packed)); struct usb_config_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint16_t wTotalLength; uint8_t bNumInterfaces; uint8_t bConfigurationValue; uint8_t iConfiguration; uint8_t bmAttributes; uint8_t bMaxPower; } __attribute__((packed)); struct usb_interface_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint8_t bInterfaceNumber; uint8_t bAlternateSetting; uint8_t bNumEndpoints; uint8_t bInterfaceClass; uint8_t bInterfaceSubClass; uint8_t bInterfaceProtocol; uint8_t iInterface; } __attribute__((packed)); struct usb_ctrlrequest { uint8_t bRequestType; uint8_t bRequest; uint16_t wValue; uint16_t wIndex; uint16_t wLength; } __attribute__((packed)); struct usb_qualifier_descriptor { uint8_t bLength; uint8_t bDescriptorType; uint16_t bcdUSB; uint8_t bDeviceClass; uint8_t bDeviceSubClass; uint8_t bDeviceProtocol; uint8_t bMaxPacketSize0; uint8_t bNumConfigurations; uint8_t bRESERVED; } __attribute__((packed)); #define USB_TYPE_MASK (0x03 << 5) #define USB_TYPE_STANDARD (0x00 << 5) #define USB_TYPE_CLASS (0x01 << 5) #define USB_TYPE_VENDOR (0x02 << 5) #define USB_TYPE_RESERVED (0x03 << 5) #define USB_DT_DEVICE 0x01 #define USB_DT_CONFIG 0x02 #define USB_DT_STRING 0x03 #define USB_DT_INTERFACE 0x04 #define USB_DT_ENDPOINT 0x05 #define USB_DT_DEVICE_QUALIFIER 0x06 #define USB_DT_OTHER_SPEED_CONFIG 0x07 #define USB_DT_INTERFACE_POWER 0x08 #define USB_DT_OTG 0x09 #define USB_DT_DEBUG 0x0a #define USB_DT_INTERFACE_ASSOCIATION 0x0b #define USB_DT_SECURITY 0x0c #define USB_DT_KEY 0x0d #define USB_DT_ENCRYPTION_TYPE 0x0e #define USB_DT_BOS 0x0f #define USB_DT_DEVICE_CAPABILITY 0x10 #define USB_DT_WIRELESS_ENDPOINT_COMP 0x11 #define USB_DT_WIRE_ADAPTER 0x21 #define USB_DT_RPIPE 0x22 #define USB_DT_CS_RADIO_CONTROL 0x23 #define USB_DT_PIPE_USAGE 0x24 #define USB_DT_SS_ENDPOINT_COMP 0x30 #define USB_DT_SSP_ISOC_ENDPOINT_COMP 0x31 #define USB_REQ_GET_STATUS 0x00 #define USB_REQ_CLEAR_FEATURE 0x01 #define USB_REQ_SET_FEATURE 0x03 #define USB_REQ_SET_ADDRESS 0x05 #define USB_REQ_GET_DESCRIPTOR 0x06 #define USB_REQ_SET_DESCRIPTOR 0x07 #define USB_REQ_GET_CONFIGURATION 0x08 #define USB_REQ_SET_CONFIGURATION 0x09 #define USB_REQ_GET_INTERFACE 0x0A #define USB_REQ_SET_INTERFACE 0x0B #define USB_REQ_SYNCH_FRAME 0x0C #define USB_REQ_SET_SEL 0x30 #define USB_REQ_SET_ISOCH_DELAY 0x31 #define USB_REQ_SET_ENCRYPTION 0x0D #define USB_REQ_GET_ENCRYPTION 0x0E #define USB_REQ_RPIPE_ABORT 0x0E #define USB_REQ_SET_HANDSHAKE 0x0F #define USB_REQ_RPIPE_RESET 0x0F #define USB_REQ_GET_HANDSHAKE 0x10 #define USB_REQ_SET_CONNECTION 0x11 #define USB_REQ_SET_SECURITY_DATA 0x12 #define USB_REQ_GET_SECURITY_DATA 0x13 #define USB_REQ_SET_WUSB_DATA 0x14 #define USB_REQ_LOOPBACK_DATA_WRITE 0x15 #define USB_REQ_LOOPBACK_DATA_READ 0x16 #define USB_REQ_SET_INTERFACE_DS 0x17 #define USB_REQ_GET_PARTNER_PDO 20 #define USB_REQ_GET_BATTERY_STATUS 21 #define USB_REQ_SET_PDO 22 #define USB_REQ_GET_VDM 23 #define USB_REQ_SEND_VDM 24 #define USB_MAX_IFACE_NUM 4 #define USB_MAX_EP_NUM 32 #define USB_MAX_FDS 6 struct usb_endpoint_index { struct usb_endpoint_descriptor desc; int handle; }; struct usb_iface_index { struct usb_interface_descriptor* iface; uint8_t bInterfaceNumber; uint8_t bAlternateSetting; uint8_t bInterfaceClass; struct usb_endpoint_index eps[USB_MAX_EP_NUM]; int eps_num; }; struct usb_device_index { struct usb_device_descriptor* dev; struct usb_config_descriptor* config; uint8_t bDeviceClass; uint8_t bMaxPower; int config_length; struct usb_iface_index ifaces[USB_MAX_IFACE_NUM]; int ifaces_num; int iface_cur; }; struct usb_info { int fd; struct usb_device_index index; }; static struct usb_info usb_devices[USB_MAX_FDS]; static int usb_devices_num; static bool parse_usb_descriptor(const char* buffer, size_t length, struct usb_device_index* index) { if (length < sizeof(*index->dev) + sizeof(*index->config)) return false; memset(index, 0, sizeof(*index)); index->dev = (struct usb_device_descriptor*)buffer; index->config = (struct usb_config_descriptor*)(buffer + sizeof(*index->dev)); index->bDeviceClass = index->dev->bDeviceClass; index->bMaxPower = index->config->bMaxPower; index->config_length = length - sizeof(*index->dev); index->iface_cur = -1; size_t offset = 0; while (true) { if (offset + 1 >= length) break; uint8_t desc_length = buffer[offset]; uint8_t desc_type = buffer[offset + 1]; if (desc_length <= 2) break; if (offset + desc_length > length) break; if (desc_type == USB_DT_INTERFACE && index->ifaces_num < USB_MAX_IFACE_NUM) { struct usb_interface_descriptor* iface = (struct usb_interface_descriptor*)(buffer + offset); index->ifaces[index->ifaces_num].iface = iface; index->ifaces[index->ifaces_num].bInterfaceNumber = iface->bInterfaceNumber; index->ifaces[index->ifaces_num].bAlternateSetting = iface->bAlternateSetting; index->ifaces[index->ifaces_num].bInterfaceClass = iface->bInterfaceClass; index->ifaces_num++; } if (desc_type == USB_DT_ENDPOINT && index->ifaces_num > 0) { struct usb_iface_index* iface = &index->ifaces[index->ifaces_num - 1]; if (iface->eps_num < USB_MAX_EP_NUM) { memcpy(&iface->eps[iface->eps_num].desc, buffer + offset, sizeof(iface->eps[iface->eps_num].desc)); iface->eps_num++; } } offset += desc_length; } return true; } static struct usb_device_index* add_usb_index(int fd, const char* dev, size_t dev_len) { int i = __atomic_fetch_add(&usb_devices_num, 1, __ATOMIC_RELAXED); if (i >= USB_MAX_FDS) return NULL; if (!parse_usb_descriptor(dev, dev_len, &usb_devices[i].index)) return NULL; __atomic_store_n(&usb_devices[i].fd, fd, __ATOMIC_RELEASE); return &usb_devices[i].index; } static struct usb_device_index* lookup_usb_index(int fd) { for (int i = 0; i < USB_MAX_FDS; i++) { if (__atomic_load_n(&usb_devices[i].fd, __ATOMIC_ACQUIRE) == fd) return &usb_devices[i].index; } return NULL; } struct vusb_connect_string_descriptor { uint32_t len; char* str; } __attribute__((packed)); struct vusb_connect_descriptors { uint32_t qual_len; char* qual; uint32_t bos_len; char* bos; uint32_t strs_len; struct vusb_connect_string_descriptor strs[0]; } __attribute__((packed)); static const char default_string[] = {8, USB_DT_STRING, 's', 0, 'y', 0, 'z', 0}; static const char default_lang_id[] = {4, USB_DT_STRING, 0x09, 0x04}; static bool lookup_connect_response_in(int fd, const struct vusb_connect_descriptors* descs, const struct usb_ctrlrequest* ctrl, char** response_data, uint32_t* response_length) { struct usb_device_index* index = lookup_usb_index(fd); uint8_t str_idx; if (!index) return false; switch (ctrl->bRequestType & USB_TYPE_MASK) { case USB_TYPE_STANDARD: switch (ctrl->bRequest) { case USB_REQ_GET_DESCRIPTOR: switch (ctrl->wValue >> 8) { case USB_DT_DEVICE: *response_data = (char*)index->dev; *response_length = sizeof(*index->dev); return true; case USB_DT_CONFIG: *response_data = (char*)index->config; *response_length = index->config_length; return true; case USB_DT_STRING: str_idx = (uint8_t)ctrl->wValue; if (descs && str_idx < descs->strs_len) { *response_data = descs->strs[str_idx].str; *response_length = descs->strs[str_idx].len; return true; } if (str_idx == 0) { *response_data = (char*)&default_lang_id[0]; *response_length = default_lang_id[0]; return true; } *response_data = (char*)&default_string[0]; *response_length = default_string[0]; return true; case USB_DT_BOS: *response_data = descs->bos; *response_length = descs->bos_len; return true; case USB_DT_DEVICE_QUALIFIER: if (!descs->qual) { struct usb_qualifier_descriptor* qual = (struct usb_qualifier_descriptor*)response_data; qual->bLength = sizeof(*qual); qual->bDescriptorType = USB_DT_DEVICE_QUALIFIER; qual->bcdUSB = index->dev->bcdUSB; qual->bDeviceClass = index->dev->bDeviceClass; qual->bDeviceSubClass = index->dev->bDeviceSubClass; qual->bDeviceProtocol = index->dev->bDeviceProtocol; qual->bMaxPacketSize0 = index->dev->bMaxPacketSize0; qual->bNumConfigurations = index->dev->bNumConfigurations; qual->bRESERVED = 0; *response_length = sizeof(*qual); return true; } *response_data = descs->qual; *response_length = descs->qual_len; return true; default: break; } break; default: break; } break; default: break; } return false; } typedef bool (*lookup_connect_out_response_t)( int fd, const struct vusb_connect_descriptors* descs, const struct usb_ctrlrequest* ctrl, bool* done); static bool lookup_connect_response_out_generic( int fd, const struct vusb_connect_descriptors* descs, const struct usb_ctrlrequest* ctrl, bool* done) { switch (ctrl->bRequestType & USB_TYPE_MASK) { case USB_TYPE_STANDARD: switch (ctrl->bRequest) { case USB_REQ_SET_CONFIGURATION: *done = true; return true; default: break; } break; } return false; } static int vhci_open(void) { char path[1024]; snprintf(path, sizeof(path), "/dev/vhci%llu", procid); return open(path, O_RDWR); } static int vhci_setport(int fd, u_int port) { struct vhci_ioc_set_port args; args.port = port; return ioctl(fd, VHCI_IOC_SET_PORT, &args); } static int vhci_usb_attach(int fd) { return ioctl(fd, VHCI_IOC_USB_ATTACH, NULL); } static int vhci_usb_recv(int fd, void* buf, size_t size) { uint8_t* ptr = (uint8_t*)buf; while (1) { ssize_t done = read(fd, ptr, size); if (done < 0) return -1; if ((size_t)done == size) return 0; size -= done; ptr += done; } } static int vhci_usb_send(int fd, void* buf, size_t size) { uint8_t* ptr = (uint8_t*)buf; while (1) { ssize_t done = write(fd, ptr, size); if (done <= 0) return -1; if ((size_t)done == size) return 0; size -= done; ptr += done; } } static volatile long syz_usb_connect_impl(int fd, uint64_t speed, uint64_t dev_len, const char* dev, const struct vusb_connect_descriptors* descs, lookup_connect_out_response_t lookup_connect_response_out) { struct usb_device_index* index = add_usb_index(fd, dev, dev_len); if (!index) { return -1; } if (vhci_setport(fd, 1)) exit(1); if (vhci_usb_attach(fd)) { return -1; } bool done = false; while (!done) { vhci_request_t req; if (vhci_usb_recv(fd, &req, sizeof(req))) { return -1; } if (req.type != VHCI_REQ_CTRL) { return -1; } char* response_data = NULL; uint32_t response_length = 0; char data[4096]; if (req.u.ctrl.bmRequestType & UE_DIR_IN) { if (!lookup_connect_response_in( fd, descs, (const struct usb_ctrlrequest*)&req.u.ctrl, &response_data, &response_length)) { return -1; } } else { if (!lookup_connect_response_out( fd, descs, (const struct usb_ctrlrequest*)&req.u.ctrl, &done)) { return -1; } response_data = NULL; response_length = UGETW(req.u.ctrl.wLength); } if ((req.u.ctrl.bmRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD && req.u.ctrl.bRequest == USB_REQ_SET_CONFIGURATION) { } if (response_length > sizeof(data)) response_length = 0; if ((uint32_t)UGETW(req.u.ctrl.wLength) < response_length) response_length = UGETW(req.u.ctrl.wLength); if (response_data) memcpy(data, response_data, response_length); else memset(data, 0, response_length); int rv = 0; if (req.u.ctrl.bmRequestType & UE_DIR_IN) { if (response_length > 0) { vhci_response_t res; res.size = response_length; rv = vhci_usb_send(fd, &res, sizeof(res)); if (rv == 0) rv = vhci_usb_send(fd, data, response_length); } } else { rv = vhci_usb_recv(fd, data, response_length); } if (rv < 0) { return -1; } } sleep_ms(200); return fd; } static volatile long syz_usb_connect(volatile long a0, volatile long a1, volatile long a2, volatile long a3) { uint64_t speed = a0; uint64_t dev_len = a1; const char* dev = (const char*)a2; const struct vusb_connect_descriptors* descs = (const struct vusb_connect_descriptors*)a3; if (!dev) { return -1; } int fd = vhci_open(); if (fd < 0) exit(1); long res = syz_usb_connect_impl(fd, speed, dev_len, dev, descs, &lookup_connect_response_out_generic); close(fd); return res; } 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 < 7; 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); if (call == 4 || call == 5 || call == 6) break; event_timedwait(&th->done, 50 + (call == 0 ? 3000 : 0) + (call == 1 ? 3000 : 0) + (call == 2 ? 3000 : 0) + (call == 3 ? 3000 : 0) + (call == 4 ? 3000 : 0) + (call == 5 ? 3000 : 0) + (call == 6 ? 3000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } static void execute_one(void); #define WAIT_FLAGS 0 static void loop(void) { int iter = 0; for (;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { execute_one(); 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 < 5000) continue; kill_and_wait(pid, &status); break; } } } void execute_call(int call) { switch (call) { case 0: *(uint8_t*)0x20000000 = 0x12; *(uint8_t*)0x20000001 = 1; *(uint16_t*)0x20000002 = 0; *(uint8_t*)0x20000004 = 2; *(uint8_t*)0x20000005 = 0; *(uint8_t*)0x20000006 = 0; *(uint8_t*)0x20000007 = 0; *(uint16_t*)0x20000008 = 0x525; *(uint16_t*)0x2000000a = 0xa4a1; *(uint16_t*)0x2000000c = 0x40; *(uint8_t*)0x2000000e = 1; *(uint8_t*)0x2000000f = 2; *(uint8_t*)0x20000010 = 3; *(uint8_t*)0x20000011 = 1; *(uint8_t*)0x20000012 = 9; *(uint8_t*)0x20000013 = 2; *(uint16_t*)0x20000014 = 0x3b; *(uint8_t*)0x20000016 = 1; *(uint8_t*)0x20000017 = 1; *(uint8_t*)0x20000018 = 0; *(uint8_t*)0x20000019 = 0; *(uint8_t*)0x2000001a = 0; *(uint8_t*)0x2000001b = 9; *(uint8_t*)0x2000001c = 4; *(uint8_t*)0x2000001d = 0; *(uint8_t*)0x2000001e = 0; *(uint8_t*)0x2000001f = 0; *(uint8_t*)0x20000020 = 2; *(uint8_t*)0x20000021 = 6; *(uint8_t*)0x20000022 = 0; *(uint8_t*)0x20000023 = 0; *(uint8_t*)0x20000024 = 5; *(uint8_t*)0x20000025 = 0x24; *(uint8_t*)0x20000026 = 6; *(uint8_t*)0x20000027 = 0; *(uint8_t*)0x20000028 = 0; *(uint8_t*)0x20000029 = 5; *(uint8_t*)0x2000002a = 0x24; *(uint8_t*)0x2000002b = 0; *(uint16_t*)0x2000002c = 0; *(uint8_t*)0x2000002e = 0xd; *(uint8_t*)0x2000002f = 0x24; *(uint8_t*)0x20000030 = 0xf; *(uint8_t*)0x20000031 = 1; *(uint32_t*)0x20000032 = 0; *(uint16_t*)0x20000036 = 0; *(uint16_t*)0x20000038 = 0; *(uint8_t*)0x2000003a = 0; *(uint8_t*)0x2000003b = 9; *(uint8_t*)0x2000003c = 5; *(uint8_t*)0x2000003d = 0x82; *(uint8_t*)0x2000003e = 2; *(uint16_t*)0x2000003f = 0; *(uint8_t*)0x20000041 = 0; *(uint8_t*)0x20000042 = 0; *(uint8_t*)0x20000043 = 0; *(uint8_t*)0x20000044 = 9; *(uint8_t*)0x20000045 = 5; *(uint8_t*)0x20000046 = 3; *(uint8_t*)0x20000047 = 2; *(uint16_t*)0x20000048 = 0; *(uint8_t*)0x2000004a = 5; *(uint8_t*)0x2000004b = 2; *(uint8_t*)0x2000004c = 0x10; *(uint32_t*)0x20000340 = 0xa; *(uint64_t*)0x20000344 = 0x20000140; *(uint8_t*)0x20000140 = 0xa; *(uint8_t*)0x20000141 = 6; *(uint16_t*)0x20000142 = 0x250; *(uint8_t*)0x20000144 = 0x3f; *(uint8_t*)0x20000145 = 0x20; *(uint8_t*)0x20000146 = 0x80; *(uint8_t*)0x20000147 = 0x20; *(uint8_t*)0x20000148 = 0x81; *(uint8_t*)0x20000149 = 0; *(uint32_t*)0x2000034c = 0x32; *(uint64_t*)0x20000350 = 0x20000180; *(uint8_t*)0x20000180 = 5; *(uint8_t*)0x20000181 = 0xf; *(uint16_t*)0x20000182 = 0x32; *(uint8_t*)0x20000184 = 4; *(uint8_t*)0x20000185 = 0x14; *(uint8_t*)0x20000186 = 0x10; *(uint8_t*)0x20000187 = 4; *(uint8_t*)0x20000188 = 0x2e; memcpy((void*)0x20000189, "\xb6\x7a\x00\x02\xa1\x88\xe5\x27\xb4\x7c\x77\x35\xf1\xb8\x16\xec", 16); *(uint8_t*)0x20000199 = 0xb; *(uint8_t*)0x2000019a = 0x10; *(uint8_t*)0x2000019b = 1; *(uint8_t*)0x2000019c = 0xc; *(uint16_t*)0x2000019d = 0x89; *(uint8_t*)0x2000019f = 0; *(uint8_t*)0x200001a0 = 8; *(uint16_t*)0x200001a1 = 3; *(uint8_t*)0x200001a3 = 0x40; *(uint8_t*)0x200001a4 = 3; *(uint8_t*)0x200001a5 = 0x10; *(uint8_t*)0x200001a6 = 0xb; *(uint8_t*)0x200001a7 = 0xb; *(uint8_t*)0x200001a8 = 0x10; *(uint8_t*)0x200001a9 = 1; *(uint8_t*)0x200001aa = 8; *(uint16_t*)0x200001ab = 0; *(uint8_t*)0x200001ad = 1; *(uint8_t*)0x200001ae = 5; *(uint16_t*)0x200001af = 0xfff7; *(uint8_t*)0x200001b1 = 8; *(uint32_t*)0x20000358 = 3; *(uint32_t*)0x2000035c = 0; *(uint64_t*)0x20000360 = 0; *(uint32_t*)0x20000368 = 0; *(uint64_t*)0x2000036c = 0; *(uint32_t*)0x20000374 = 0; *(uint64_t*)0x20000378 = 0; syz_usb_connect(4, 0x4d, 0x20000000, 0x20000340); break; case 1: *(uint8_t*)0x20000a00 = 0x12; *(uint8_t*)0x20000a01 = 1; *(uint16_t*)0x20000a02 = 0x110; *(uint8_t*)0x20000a04 = 0; *(uint8_t*)0x20000a05 = 0; *(uint8_t*)0x20000a06 = 0; *(uint8_t*)0x20000a07 = 8; *(uint16_t*)0x20000a08 = 0x1d6b; *(uint16_t*)0x20000a0a = 0x101; *(uint16_t*)0x20000a0c = 0x40; *(uint8_t*)0x20000a0e = 1; *(uint8_t*)0x20000a0f = 2; *(uint8_t*)0x20000a10 = 3; *(uint8_t*)0x20000a11 = 1; *(uint8_t*)0x20000a12 = 9; *(uint8_t*)0x20000a13 = 2; *(uint16_t*)0x20000a14 = 0xaf; *(uint8_t*)0x20000a16 = 3; *(uint8_t*)0x20000a17 = 1; *(uint8_t*)0x20000a18 = 9; *(uint8_t*)0x20000a19 = 0x60; *(uint8_t*)0x20000a1a = 7; *(uint8_t*)0x20000a1b = 9; *(uint8_t*)0x20000a1c = 4; *(uint8_t*)0x20000a1d = 0; *(uint8_t*)0x20000a1e = 0; *(uint8_t*)0x20000a1f = 0; *(uint8_t*)0x20000a20 = 1; *(uint8_t*)0x20000a21 = 1; *(uint8_t*)0x20000a22 = 0; *(uint8_t*)0x20000a23 = 0; *(uint8_t*)0x20000a24 = 0xa; *(uint8_t*)0x20000a25 = 0x24; *(uint8_t*)0x20000a26 = 1; *(uint16_t*)0x20000a27 = 6; *(uint8_t*)0x20000a29 = 4; *(uint8_t*)0x20000a2a = 2; *(uint8_t*)0x20000a2b = 1; *(uint8_t*)0x20000a2c = 2; *(uint8_t*)0x20000a2d = 0xc; *(uint8_t*)0x20000a2e = 0x24; *(uint8_t*)0x20000a2f = 2; *(uint8_t*)0x20000a30 = 4; *(uint16_t*)0x20000a31 = 0x100; *(uint8_t*)0x20000a33 = 2; *(uint8_t*)0x20000a34 = 0x7f; *(uint16_t*)0x20000a35 = 0x81; *(uint8_t*)0x20000a37 = 0x80; *(uint8_t*)0x20000a38 = 6; *(uint8_t*)0x20000a39 = 0xf; *(uint8_t*)0x20000a3a = 0x24; *(uint8_t*)0x20000a3b = 6; *(uint8_t*)0x20000a3c = 6; *(uint8_t*)0x20000a3d = 3; *(uint8_t*)0x20000a3e = 4; *(uint16_t*)0x20000a3f = 6; *(uint16_t*)0x20000a41 = 2; *(uint16_t*)0x20000a43 = 9; *(uint16_t*)0x20000a45 = 0; *(uint8_t*)0x20000a47 = 0; *(uint8_t*)0x20000a48 = 8; *(uint8_t*)0x20000a49 = 0x24; *(uint8_t*)0x20000a4a = 7; *(uint8_t*)0x20000a4b = 2; *(uint16_t*)0x20000a4c = 5; *(uint8_t*)0x20000a4e = 0x81; memset((void*)0x20000a4f, 226, 1); *(uint8_t*)0x20000a50 = 9; *(uint8_t*)0x20000a51 = 4; *(uint8_t*)0x20000a52 = 1; *(uint8_t*)0x20000a53 = 0; *(uint8_t*)0x20000a54 = 0; *(uint8_t*)0x20000a55 = 1; *(uint8_t*)0x20000a56 = 2; *(uint8_t*)0x20000a57 = 0; *(uint8_t*)0x20000a58 = 0; *(uint8_t*)0x20000a59 = 9; *(uint8_t*)0x20000a5a = 4; *(uint8_t*)0x20000a5b = 1; *(uint8_t*)0x20000a5c = 1; *(uint8_t*)0x20000a5d = 1; *(uint8_t*)0x20000a5e = 1; *(uint8_t*)0x20000a5f = 2; *(uint8_t*)0x20000a60 = 0; *(uint8_t*)0x20000a61 = 0; *(uint8_t*)0x20000a62 = 9; *(uint8_t*)0x20000a63 = 0x24; *(uint8_t*)0x20000a64 = 2; *(uint8_t*)0x20000a65 = 2; *(uint16_t*)0x20000a66 = 0x40; *(uint16_t*)0x20000a68 = 8; *(uint8_t*)0x20000a6a = 9; *(uint8_t*)0x20000a6b = 9; *(uint8_t*)0x20000a6c = 0x24; *(uint8_t*)0x20000a6d = 2; *(uint8_t*)0x20000a6e = 2; *(uint16_t*)0x20000a6f = 0xfffc; *(uint16_t*)0x20000a71 = 6; *(uint8_t*)0x20000a73 = 4; *(uint8_t*)0x20000a74 = 9; *(uint8_t*)0x20000a75 = 0x24; *(uint8_t*)0x20000a76 = 2; *(uint8_t*)0x20000a77 = 2; *(uint16_t*)0x20000a78 = 1; *(uint16_t*)0x20000a7a = 2; *(uint8_t*)0x20000a7c = 3; *(uint8_t*)0x20000a7d = 9; *(uint8_t*)0x20000a7e = 5; *(uint8_t*)0x20000a7f = 1; *(uint8_t*)0x20000a80 = 9; *(uint16_t*)0x20000a81 = 0x400; *(uint8_t*)0x20000a83 = 3; *(uint8_t*)0x20000a84 = 5; *(uint8_t*)0x20000a85 = 0x80; *(uint8_t*)0x20000a86 = 7; *(uint8_t*)0x20000a87 = 0x25; *(uint8_t*)0x20000a88 = 1; *(uint8_t*)0x20000a89 = 2; *(uint8_t*)0x20000a8a = 0; *(uint16_t*)0x20000a8b = 5; *(uint8_t*)0x20000a8d = 9; *(uint8_t*)0x20000a8e = 4; *(uint8_t*)0x20000a8f = 2; *(uint8_t*)0x20000a90 = 0; *(uint8_t*)0x20000a91 = 0; *(uint8_t*)0x20000a92 = 1; *(uint8_t*)0x20000a93 = 2; *(uint8_t*)0x20000a94 = 0; *(uint8_t*)0x20000a95 = 0; *(uint8_t*)0x20000a96 = 9; *(uint8_t*)0x20000a97 = 4; *(uint8_t*)0x20000a98 = 2; *(uint8_t*)0x20000a99 = 1; *(uint8_t*)0x20000a9a = 1; *(uint8_t*)0x20000a9b = 1; *(uint8_t*)0x20000a9c = 2; *(uint8_t*)0x20000a9d = 0; *(uint8_t*)0x20000a9e = 0; *(uint8_t*)0x20000a9f = 7; *(uint8_t*)0x20000aa0 = 0x24; *(uint8_t*)0x20000aa1 = 1; *(uint8_t*)0x20000aa2 = 0x7f; *(uint8_t*)0x20000aa3 = 0xf0; *(uint16_t*)0x20000aa4 = 4; *(uint8_t*)0x20000aa6 = 0xb; *(uint8_t*)0x20000aa7 = 0x24; *(uint8_t*)0x20000aa8 = 2; *(uint8_t*)0x20000aa9 = 1; *(uint8_t*)0x20000aaa = 9; *(uint8_t*)0x20000aab = 3; *(uint8_t*)0x20000aac = 1; *(uint8_t*)0x20000aad = 0x20; memcpy((void*)0x20000aae, "\x16\xa6\xfe", 3); *(uint8_t*)0x20000ab1 = 9; *(uint8_t*)0x20000ab2 = 5; *(uint8_t*)0x20000ab3 = 0x82; *(uint8_t*)0x20000ab4 = 9; *(uint16_t*)0x20000ab5 = 8; *(uint8_t*)0x20000ab7 = 0x40; *(uint8_t*)0x20000ab8 = 0x3f; *(uint8_t*)0x20000ab9 = 7; *(uint8_t*)0x20000aba = 7; *(uint8_t*)0x20000abb = 0x25; *(uint8_t*)0x20000abc = 1; *(uint8_t*)0x20000abd = 0; *(uint8_t*)0x20000abe = 0xd6; *(uint16_t*)0x20000abf = 0x200; *(uint32_t*)0x20000f40 = 0xa; *(uint64_t*)0x20000f44 = 0x20000b00; *(uint8_t*)0x20000b00 = 0xa; *(uint8_t*)0x20000b01 = 6; *(uint16_t*)0x20000b02 = 0x310; *(uint8_t*)0x20000b04 = -1; *(uint8_t*)0x20000b05 = 0; *(uint8_t*)0x20000b06 = 2; *(uint8_t*)0x20000b07 = 0x10; *(uint8_t*)0x20000b08 = 4; *(uint8_t*)0x20000b09 = 0; *(uint32_t*)0x20000f4c = 0x2e; *(uint64_t*)0x20000f50 = 0x20000b40; *(uint8_t*)0x20000b40 = 5; *(uint8_t*)0x20000b41 = 0xf; *(uint16_t*)0x20000b42 = 0x2e; *(uint8_t*)0x20000b44 = 4; *(uint8_t*)0x20000b45 = 7; *(uint8_t*)0x20000b46 = 0x10; *(uint8_t*)0x20000b47 = 2; STORE_BY_BITMASK(uint32_t, , 0x20000b48, 0, 0, 8); STORE_BY_BITMASK(uint32_t, , 0x20000b49, 0xe, 0, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b49, 6, 4, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b4a, 0x54d9, 0, 16); *(uint8_t*)0x20000b4c = 3; *(uint8_t*)0x20000b4d = 0x10; *(uint8_t*)0x20000b4e = 0xb; *(uint8_t*)0x20000b4f = 0x18; *(uint8_t*)0x20000b50 = 0x10; *(uint8_t*)0x20000b51 = 0xa; *(uint8_t*)0x20000b52 = 0x48; STORE_BY_BITMASK(uint32_t, , 0x20000b53, 3, 0, 5); STORE_BY_BITMASK(uint32_t, , 0x20000b53, 1, 5, 27); *(uint16_t*)0x20000b57 = 0xf; *(uint16_t*)0x20000b59 = 0x40; *(uint32_t*)0x20000b5b = 0xff000f; *(uint32_t*)0x20000b5f = 0x3fc0; *(uint32_t*)0x20000b63 = 0; *(uint8_t*)0x20000b67 = 7; *(uint8_t*)0x20000b68 = 0x10; *(uint8_t*)0x20000b69 = 2; STORE_BY_BITMASK(uint32_t, , 0x20000b6a, 4, 0, 8); STORE_BY_BITMASK(uint32_t, , 0x20000b6b, 7, 0, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b6b, 4, 4, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b6c, 5, 0, 16); *(uint32_t*)0x20000f58 = 6; *(uint32_t*)0x20000f5c = 0; *(uint64_t*)0x20000f60 = 0; *(uint32_t*)0x20000f68 = 0; *(uint64_t*)0x20000f6c = 0; *(uint32_t*)0x20000f74 = 2; *(uint64_t*)0x20000f78 = 0x20000c80; *(uint8_t*)0x20000c80 = 2; *(uint8_t*)0x20000c81 = 3; *(uint32_t*)0x20000f80 = 0; *(uint64_t*)0x20000f84 = 0; *(uint32_t*)0x20000f8c = 4; *(uint64_t*)0x20000f90 = 0x20000e00; *(uint8_t*)0x20000e00 = 4; *(uint8_t*)0x20000e01 = 3; *(uint16_t*)0x20000e02 = 0xc04; *(uint32_t*)0x20000f98 = 2; *(uint64_t*)0x20000f9c = 0x20000e40; *(uint8_t*)0x20000e40 = 2; *(uint8_t*)0x20000e41 = 3; syz_usb_connect(5, 0xc1, 0x20000a00, 0x20000f40); break; case 2: *(uint8_t*)0x20000fc0 = 0x12; *(uint8_t*)0x20000fc1 = 1; *(uint16_t*)0x20000fc2 = 0x250; *(uint8_t*)0x20000fc4 = 2; *(uint8_t*)0x20000fc5 = 0; *(uint8_t*)0x20000fc6 = 0; *(uint8_t*)0x20000fc7 = 0xd9; *(uint16_t*)0x20000fc8 = 0x525; *(uint16_t*)0x20000fca = 0xa4a1; *(uint16_t*)0x20000fcc = 0x40; *(uint8_t*)0x20000fce = 1; *(uint8_t*)0x20000fcf = 2; *(uint8_t*)0x20000fd0 = 3; *(uint8_t*)0x20000fd1 = 1; *(uint8_t*)0x20000fd2 = 9; *(uint8_t*)0x20000fd3 = 2; *(uint16_t*)0x20000fd4 = 0x64; *(uint8_t*)0x20000fd6 = 2; *(uint8_t*)0x20000fd7 = 1; *(uint8_t*)0x20000fd8 = 8; *(uint8_t*)0x20000fd9 = 0; *(uint8_t*)0x20000fda = 0x80; *(uint8_t*)0x20000fdb = 9; *(uint8_t*)0x20000fdc = 4; *(uint8_t*)0x20000fdd = 0; *(uint8_t*)0x20000fde = 0; *(uint8_t*)0x20000fdf = 1; *(uint8_t*)0x20000fe0 = 2; *(uint8_t*)0x20000fe1 = 0xd; *(uint8_t*)0x20000fe2 = 0; *(uint8_t*)0x20000fe3 = 0; *(uint8_t*)0x20000fe4 = 5; *(uint8_t*)0x20000fe5 = 0x24; *(uint8_t*)0x20000fe6 = 6; *(uint8_t*)0x20000fe7 = 0; *(uint8_t*)0x20000fe8 = 1; *(uint8_t*)0x20000fe9 = 5; *(uint8_t*)0x20000fea = 0x24; *(uint8_t*)0x20000feb = 0; *(uint16_t*)0x20000fec = 0x7ff; *(uint8_t*)0x20000fee = 0xd; *(uint8_t*)0x20000fef = 0x24; *(uint8_t*)0x20000ff0 = 0xf; *(uint8_t*)0x20000ff1 = 1; *(uint32_t*)0x20000ff2 = 3; *(uint16_t*)0x20000ff6 = 0x81; *(uint16_t*)0x20000ff8 = 1; *(uint8_t*)0x20000ffa = 3; *(uint8_t*)0x20000ffb = 6; *(uint8_t*)0x20000ffc = 0x24; *(uint8_t*)0x20000ffd = 0x1a; *(uint16_t*)0x20000ffe = 8; *(uint8_t*)0x20001000 = 0; *(uint8_t*)0x20001001 = 8; *(uint8_t*)0x20001002 = 0x24; *(uint8_t*)0x20001003 = 7; *(uint8_t*)0x20001004 = 3; *(uint16_t*)0x20001005 = 0x1000; *(uint16_t*)0x20001007 = 0xbbb2; *(uint8_t*)0x20001009 = 9; *(uint8_t*)0x2000100a = 5; *(uint8_t*)0x2000100b = 0x81; *(uint8_t*)0x2000100c = 3; *(uint16_t*)0x2000100d = 0x40; *(uint8_t*)0x2000100f = 0; *(uint8_t*)0x20001010 = 9; *(uint8_t*)0x20001011 = 0x7f; *(uint8_t*)0x20001012 = 9; *(uint8_t*)0x20001013 = 4; *(uint8_t*)0x20001014 = 1; *(uint8_t*)0x20001015 = 0; *(uint8_t*)0x20001016 = 0; *(uint8_t*)0x20001017 = 2; *(uint8_t*)0x20001018 = 0xd; *(uint8_t*)0x20001019 = 0; *(uint8_t*)0x2000101a = 0; *(uint8_t*)0x2000101b = 9; *(uint8_t*)0x2000101c = 4; *(uint8_t*)0x2000101d = 1; *(uint8_t*)0x2000101e = 1; *(uint8_t*)0x2000101f = 2; *(uint8_t*)0x20001020 = 2; *(uint8_t*)0x20001021 = 0xd; *(uint8_t*)0x20001022 = 0; *(uint8_t*)0x20001023 = 0; *(uint8_t*)0x20001024 = 9; *(uint8_t*)0x20001025 = 5; *(uint8_t*)0x20001026 = 0x82; *(uint8_t*)0x20001027 = 2; *(uint16_t*)0x20001028 = 0x20; *(uint8_t*)0x2000102a = 9; *(uint8_t*)0x2000102b = 0x37; *(uint8_t*)0x2000102c = 0xd0; *(uint8_t*)0x2000102d = 9; *(uint8_t*)0x2000102e = 5; *(uint8_t*)0x2000102f = 3; *(uint8_t*)0x20001030 = 2; *(uint16_t*)0x20001031 = 8; *(uint8_t*)0x20001033 = 7; *(uint8_t*)0x20001034 = 0xc0; *(uint8_t*)0x20001035 = 1; syz_usb_connect(4, 0x76, 0x20000fc0, 0); break; case 3: *(uint8_t*)0x20002100 = 0x12; *(uint8_t*)0x20002101 = 1; *(uint16_t*)0x20002102 = 0x310; *(uint8_t*)0x20002104 = 0; *(uint8_t*)0x20002105 = 0; *(uint8_t*)0x20002106 = 0; *(uint8_t*)0x20002107 = 8; *(uint16_t*)0x20002108 = 0x1d6b; *(uint16_t*)0x2000210a = 0x101; *(uint16_t*)0x2000210c = 0x40; *(uint8_t*)0x2000210e = 1; *(uint8_t*)0x2000210f = 2; *(uint8_t*)0x20002110 = 3; *(uint8_t*)0x20002111 = 1; *(uint8_t*)0x20002112 = 9; *(uint8_t*)0x20002113 = 2; *(uint16_t*)0x20002114 = 0x9b; *(uint8_t*)0x20002116 = 3; *(uint8_t*)0x20002117 = 1; *(uint8_t*)0x20002118 = 0x3c; *(uint8_t*)0x20002119 = 0xe0; *(uint8_t*)0x2000211a = 0x3f; *(uint8_t*)0x2000211b = 9; *(uint8_t*)0x2000211c = 4; *(uint8_t*)0x2000211d = 0; *(uint8_t*)0x2000211e = 0; *(uint8_t*)0x2000211f = 0; *(uint8_t*)0x20002120 = 1; *(uint8_t*)0x20002121 = 1; *(uint8_t*)0x20002122 = 0; *(uint8_t*)0x20002123 = 0; *(uint8_t*)0x20002124 = 0xa; *(uint8_t*)0x20002125 = 0x24; *(uint8_t*)0x20002126 = 1; *(uint16_t*)0x20002127 = 0x100; *(uint8_t*)0x20002129 = 0x3f; *(uint8_t*)0x2000212a = 2; *(uint8_t*)0x2000212b = 1; *(uint8_t*)0x2000212c = 2; *(uint8_t*)0x2000212d = 9; *(uint8_t*)0x2000212e = 0x24; *(uint8_t*)0x2000212f = 3; *(uint8_t*)0x20002130 = 3; *(uint16_t*)0x20002131 = 0x100; *(uint8_t*)0x20002133 = 5; *(uint8_t*)0x20002134 = 5; *(uint8_t*)0x20002135 = 1; *(uint8_t*)0x20002136 = 9; *(uint8_t*)0x20002137 = 0x24; *(uint8_t*)0x20002138 = 6; *(uint8_t*)0x20002139 = 1; *(uint8_t*)0x2000213a = 3; *(uint8_t*)0x2000213b = 1; *(uint16_t*)0x2000213c = 5; *(uint8_t*)0x2000213e = 7; *(uint8_t*)0x2000213f = 9; *(uint8_t*)0x20002140 = 4; *(uint8_t*)0x20002141 = 1; *(uint8_t*)0x20002142 = 0; *(uint8_t*)0x20002143 = 0; *(uint8_t*)0x20002144 = 1; *(uint8_t*)0x20002145 = 2; *(uint8_t*)0x20002146 = 0; *(uint8_t*)0x20002147 = 0; *(uint8_t*)0x20002148 = 9; *(uint8_t*)0x20002149 = 4; *(uint8_t*)0x2000214a = 1; *(uint8_t*)0x2000214b = 1; *(uint8_t*)0x2000214c = 1; *(uint8_t*)0x2000214d = 1; *(uint8_t*)0x2000214e = 2; *(uint8_t*)0x2000214f = 0; *(uint8_t*)0x20002150 = 0; *(uint8_t*)0x20002151 = 0xa; *(uint8_t*)0x20002152 = 0x24; *(uint8_t*)0x20002153 = 2; *(uint8_t*)0x20002154 = 1; *(uint8_t*)0x20002155 = 0x1c; *(uint8_t*)0x20002156 = 2; *(uint8_t*)0x20002157 = 9; *(uint8_t*)0x20002158 = 4; memcpy((void*)0x20002159, "\xc1\xf5", 2); *(uint8_t*)0x2000215b = 7; *(uint8_t*)0x2000215c = 0x24; *(uint8_t*)0x2000215d = 1; *(uint8_t*)0x2000215e = 0x40; *(uint8_t*)0x2000215f = 0x5e; *(uint16_t*)0x20002160 = 0x1002; *(uint8_t*)0x20002162 = 9; *(uint8_t*)0x20002163 = 0x24; *(uint8_t*)0x20002164 = 2; *(uint8_t*)0x20002165 = 2; *(uint16_t*)0x20002166 = 6; *(uint16_t*)0x20002168 = 3; *(uint8_t*)0x2000216a = 3; *(uint8_t*)0x2000216b = 8; *(uint8_t*)0x2000216c = 0x24; *(uint8_t*)0x2000216d = 2; *(uint8_t*)0x2000216e = 1; *(uint8_t*)0x2000216f = 4; *(uint8_t*)0x20002170 = 4; *(uint8_t*)0x20002171 = 0x81; *(uint8_t*)0x20002172 = 5; *(uint8_t*)0x20002173 = 8; *(uint8_t*)0x20002174 = 0x24; *(uint8_t*)0x20002175 = 2; *(uint8_t*)0x20002176 = 1; *(uint8_t*)0x20002177 = 0x1f; *(uint8_t*)0x20002178 = 3; *(uint8_t*)0x20002179 = 0x72; *(uint8_t*)0x2000217a = 0xec; *(uint8_t*)0x2000217b = 9; *(uint8_t*)0x2000217c = 5; *(uint8_t*)0x2000217d = 1; *(uint8_t*)0x2000217e = 9; *(uint16_t*)0x2000217f = 0x39f; *(uint8_t*)0x20002181 = 1; *(uint8_t*)0x20002182 = 0x40; *(uint8_t*)0x20002183 = 0x1f; *(uint8_t*)0x20002184 = 7; *(uint8_t*)0x20002185 = 0x25; *(uint8_t*)0x20002186 = 1; *(uint8_t*)0x20002187 = 0x80; *(uint8_t*)0x20002188 = 5; *(uint16_t*)0x20002189 = 2; *(uint8_t*)0x2000218b = 9; *(uint8_t*)0x2000218c = 4; *(uint8_t*)0x2000218d = 2; *(uint8_t*)0x2000218e = 0; *(uint8_t*)0x2000218f = 0; *(uint8_t*)0x20002190 = 1; *(uint8_t*)0x20002191 = 2; *(uint8_t*)0x20002192 = 0; *(uint8_t*)0x20002193 = 0; *(uint8_t*)0x20002194 = 9; *(uint8_t*)0x20002195 = 4; *(uint8_t*)0x20002196 = 2; *(uint8_t*)0x20002197 = 1; *(uint8_t*)0x20002198 = 1; *(uint8_t*)0x20002199 = 1; *(uint8_t*)0x2000219a = 2; *(uint8_t*)0x2000219b = 0; *(uint8_t*)0x2000219c = 0; *(uint8_t*)0x2000219d = 9; *(uint8_t*)0x2000219e = 5; *(uint8_t*)0x2000219f = 0x82; *(uint8_t*)0x200021a0 = 9; *(uint16_t*)0x200021a1 = 0x40; *(uint8_t*)0x200021a3 = 2; *(uint8_t*)0x200021a4 = 0x1f; *(uint8_t*)0x200021a5 = 0x80; *(uint8_t*)0x200021a6 = 7; *(uint8_t*)0x200021a7 = 0x25; *(uint8_t*)0x200021a8 = 1; *(uint8_t*)0x200021a9 = 0; *(uint8_t*)0x200021aa = 1; *(uint16_t*)0x200021ab = 0x40; *(uint32_t*)0x20002440 = 0xa; *(uint64_t*)0x20002444 = 0x200021c0; *(uint8_t*)0x200021c0 = 0xa; *(uint8_t*)0x200021c1 = 6; *(uint16_t*)0x200021c2 = 0x310; *(uint8_t*)0x200021c4 = 2; *(uint8_t*)0x200021c5 = 0x3f; *(uint8_t*)0x200021c6 = 0x7c; *(uint8_t*)0x200021c7 = 0x40; *(uint8_t*)0x200021c8 = 9; *(uint8_t*)0x200021c9 = 0; *(uint32_t*)0x2000244c = 0; *(uint64_t*)0x20002450 = 0; *(uint32_t*)0x20002458 = 4; *(uint32_t*)0x2000245c = 0; *(uint64_t*)0x20002460 = 0; *(uint32_t*)0x20002468 = 2; *(uint64_t*)0x2000246c = 0x20002280; *(uint8_t*)0x20002280 = 2; *(uint8_t*)0x20002281 = 3; *(uint32_t*)0x20002474 = 4; *(uint64_t*)0x20002478 = 0x20002300; *(uint8_t*)0x20002300 = 4; *(uint8_t*)0x20002301 = 3; *(uint16_t*)0x20002302 = 0x424; *(uint32_t*)0x20002480 = 2; *(uint64_t*)0x20002484 = 0x20002340; *(uint8_t*)0x20002340 = 2; *(uint8_t*)0x20002341 = 3; syz_usb_connect(1, 0xad, 0x20002100, 0x20002440); break; case 4: *(uint8_t*)0x20000000 = 0x12; *(uint8_t*)0x20000001 = 1; *(uint16_t*)0x20000002 = 0; *(uint8_t*)0x20000004 = 2; *(uint8_t*)0x20000005 = 0; *(uint8_t*)0x20000006 = 0; *(uint8_t*)0x20000007 = 0; *(uint16_t*)0x20000008 = 0x525; *(uint16_t*)0x2000000a = 0xa4a1; *(uint16_t*)0x2000000c = 0x40; *(uint8_t*)0x2000000e = 1; *(uint8_t*)0x2000000f = 2; *(uint8_t*)0x20000010 = 3; *(uint8_t*)0x20000011 = 1; *(uint8_t*)0x20000012 = 9; *(uint8_t*)0x20000013 = 2; *(uint16_t*)0x20000014 = 0x3b; *(uint8_t*)0x20000016 = 1; *(uint8_t*)0x20000017 = 1; *(uint8_t*)0x20000018 = 0; *(uint8_t*)0x20000019 = 0; *(uint8_t*)0x2000001a = 0; *(uint8_t*)0x2000001b = 9; *(uint8_t*)0x2000001c = 4; *(uint8_t*)0x2000001d = 0; *(uint8_t*)0x2000001e = 0; *(uint8_t*)0x2000001f = 0; *(uint8_t*)0x20000020 = 2; *(uint8_t*)0x20000021 = 6; *(uint8_t*)0x20000022 = 0; *(uint8_t*)0x20000023 = 0; *(uint8_t*)0x20000024 = 5; *(uint8_t*)0x20000025 = 0x24; *(uint8_t*)0x20000026 = 6; *(uint8_t*)0x20000027 = 0; *(uint8_t*)0x20000028 = 0; *(uint8_t*)0x20000029 = 5; *(uint8_t*)0x2000002a = 0x24; *(uint8_t*)0x2000002b = 0; *(uint16_t*)0x2000002c = 0; *(uint8_t*)0x2000002e = 0xd; *(uint8_t*)0x2000002f = 0x24; *(uint8_t*)0x20000030 = 0xf; *(uint8_t*)0x20000031 = 1; *(uint32_t*)0x20000032 = 0; *(uint16_t*)0x20000036 = 0; *(uint16_t*)0x20000038 = 0; *(uint8_t*)0x2000003a = 0; *(uint8_t*)0x2000003b = 9; *(uint8_t*)0x2000003c = 5; *(uint8_t*)0x2000003d = 0x82; *(uint8_t*)0x2000003e = 2; *(uint16_t*)0x2000003f = 0; *(uint8_t*)0x20000041 = 0; *(uint8_t*)0x20000042 = 0; *(uint8_t*)0x20000043 = 0; *(uint8_t*)0x20000044 = 9; *(uint8_t*)0x20000045 = 5; *(uint8_t*)0x20000046 = 3; *(uint8_t*)0x20000047 = 2; *(uint16_t*)0x20000048 = 0; *(uint8_t*)0x2000004a = 5; *(uint8_t*)0x2000004b = 2; *(uint8_t*)0x2000004c = 0x10; syz_usb_connect(4, 0x4d, 0x20000000, 0); break; case 5: *(uint8_t*)0x20000a00 = 0x12; *(uint8_t*)0x20000a01 = 1; *(uint16_t*)0x20000a02 = 0x110; *(uint8_t*)0x20000a04 = 0; *(uint8_t*)0x20000a05 = 0; *(uint8_t*)0x20000a06 = 0; *(uint8_t*)0x20000a07 = 8; *(uint16_t*)0x20000a08 = 0x1d6b; *(uint16_t*)0x20000a0a = 0x101; *(uint16_t*)0x20000a0c = 0x40; *(uint8_t*)0x20000a0e = 1; *(uint8_t*)0x20000a0f = 2; *(uint8_t*)0x20000a10 = 3; *(uint8_t*)0x20000a11 = 1; *(uint8_t*)0x20000a12 = 9; *(uint8_t*)0x20000a13 = 2; *(uint16_t*)0x20000a14 = 0xaf; *(uint8_t*)0x20000a16 = 3; *(uint8_t*)0x20000a17 = 1; *(uint8_t*)0x20000a18 = 9; *(uint8_t*)0x20000a19 = 0x60; *(uint8_t*)0x20000a1a = 7; *(uint8_t*)0x20000a1b = 9; *(uint8_t*)0x20000a1c = 4; *(uint8_t*)0x20000a1d = 0; *(uint8_t*)0x20000a1e = 0; *(uint8_t*)0x20000a1f = 0; *(uint8_t*)0x20000a20 = 1; *(uint8_t*)0x20000a21 = 1; *(uint8_t*)0x20000a22 = 0; *(uint8_t*)0x20000a23 = 0; *(uint8_t*)0x20000a24 = 0xa; *(uint8_t*)0x20000a25 = 0x24; *(uint8_t*)0x20000a26 = 1; *(uint16_t*)0x20000a27 = 6; *(uint8_t*)0x20000a29 = 4; *(uint8_t*)0x20000a2a = 2; *(uint8_t*)0x20000a2b = 1; *(uint8_t*)0x20000a2c = 2; *(uint8_t*)0x20000a2d = 0xc; *(uint8_t*)0x20000a2e = 0x24; *(uint8_t*)0x20000a2f = 2; *(uint8_t*)0x20000a30 = 4; *(uint16_t*)0x20000a31 = 0x100; *(uint8_t*)0x20000a33 = 2; *(uint8_t*)0x20000a34 = 0x7f; *(uint16_t*)0x20000a35 = 0x81; *(uint8_t*)0x20000a37 = 0x80; *(uint8_t*)0x20000a38 = 6; *(uint8_t*)0x20000a39 = 0xf; *(uint8_t*)0x20000a3a = 0x24; *(uint8_t*)0x20000a3b = 6; *(uint8_t*)0x20000a3c = 6; *(uint8_t*)0x20000a3d = 3; *(uint8_t*)0x20000a3e = 4; *(uint16_t*)0x20000a3f = 6; *(uint16_t*)0x20000a41 = 2; *(uint16_t*)0x20000a43 = 9; *(uint16_t*)0x20000a45 = 0; *(uint8_t*)0x20000a47 = 0; *(uint8_t*)0x20000a48 = 8; *(uint8_t*)0x20000a49 = 0x24; *(uint8_t*)0x20000a4a = 7; *(uint8_t*)0x20000a4b = 2; *(uint16_t*)0x20000a4c = 5; *(uint8_t*)0x20000a4e = 0x81; memset((void*)0x20000a4f, 226, 1); *(uint8_t*)0x20000a50 = 9; *(uint8_t*)0x20000a51 = 4; *(uint8_t*)0x20000a52 = 1; *(uint8_t*)0x20000a53 = 0; *(uint8_t*)0x20000a54 = 0; *(uint8_t*)0x20000a55 = 1; *(uint8_t*)0x20000a56 = 2; *(uint8_t*)0x20000a57 = 0; *(uint8_t*)0x20000a58 = 0; *(uint8_t*)0x20000a59 = 9; *(uint8_t*)0x20000a5a = 4; *(uint8_t*)0x20000a5b = 1; *(uint8_t*)0x20000a5c = 1; *(uint8_t*)0x20000a5d = 1; *(uint8_t*)0x20000a5e = 1; *(uint8_t*)0x20000a5f = 2; *(uint8_t*)0x20000a60 = 0; *(uint8_t*)0x20000a61 = 0; *(uint8_t*)0x20000a62 = 9; *(uint8_t*)0x20000a63 = 0x24; *(uint8_t*)0x20000a64 = 2; *(uint8_t*)0x20000a65 = 2; *(uint16_t*)0x20000a66 = 0x40; *(uint16_t*)0x20000a68 = 8; *(uint8_t*)0x20000a6a = 9; *(uint8_t*)0x20000a6b = 9; *(uint8_t*)0x20000a6c = 0x24; *(uint8_t*)0x20000a6d = 2; *(uint8_t*)0x20000a6e = 2; *(uint16_t*)0x20000a6f = 0xfffc; *(uint16_t*)0x20000a71 = 6; *(uint8_t*)0x20000a73 = 4; *(uint8_t*)0x20000a74 = 9; *(uint8_t*)0x20000a75 = 0x24; *(uint8_t*)0x20000a76 = 2; *(uint8_t*)0x20000a77 = 2; *(uint16_t*)0x20000a78 = 1; *(uint16_t*)0x20000a7a = 2; *(uint8_t*)0x20000a7c = 3; *(uint8_t*)0x20000a7d = 9; *(uint8_t*)0x20000a7e = 5; *(uint8_t*)0x20000a7f = 1; *(uint8_t*)0x20000a80 = 9; *(uint16_t*)0x20000a81 = 0x400; *(uint8_t*)0x20000a83 = 3; *(uint8_t*)0x20000a84 = 5; *(uint8_t*)0x20000a85 = 0x80; *(uint8_t*)0x20000a86 = 7; *(uint8_t*)0x20000a87 = 0x25; *(uint8_t*)0x20000a88 = 1; *(uint8_t*)0x20000a89 = 2; *(uint8_t*)0x20000a8a = 0; *(uint16_t*)0x20000a8b = 5; *(uint8_t*)0x20000a8d = 9; *(uint8_t*)0x20000a8e = 4; *(uint8_t*)0x20000a8f = 2; *(uint8_t*)0x20000a90 = 0; *(uint8_t*)0x20000a91 = 0; *(uint8_t*)0x20000a92 = 1; *(uint8_t*)0x20000a93 = 2; *(uint8_t*)0x20000a94 = 0; *(uint8_t*)0x20000a95 = 0; *(uint8_t*)0x20000a96 = 9; *(uint8_t*)0x20000a97 = 4; *(uint8_t*)0x20000a98 = 2; *(uint8_t*)0x20000a99 = 1; *(uint8_t*)0x20000a9a = 1; *(uint8_t*)0x20000a9b = 1; *(uint8_t*)0x20000a9c = 2; *(uint8_t*)0x20000a9d = 0; *(uint8_t*)0x20000a9e = 0; *(uint8_t*)0x20000a9f = 7; *(uint8_t*)0x20000aa0 = 0x24; *(uint8_t*)0x20000aa1 = 1; *(uint8_t*)0x20000aa2 = 0x7f; *(uint8_t*)0x20000aa3 = 0xf0; *(uint16_t*)0x20000aa4 = 4; *(uint8_t*)0x20000aa6 = 0xb; *(uint8_t*)0x20000aa7 = 0x24; *(uint8_t*)0x20000aa8 = 2; *(uint8_t*)0x20000aa9 = 1; *(uint8_t*)0x20000aaa = 9; *(uint8_t*)0x20000aab = 3; *(uint8_t*)0x20000aac = 1; *(uint8_t*)0x20000aad = 0x20; memcpy((void*)0x20000aae, "\x16\xa6\xfe", 3); *(uint8_t*)0x20000ab1 = 9; *(uint8_t*)0x20000ab2 = 5; *(uint8_t*)0x20000ab3 = 0x82; *(uint8_t*)0x20000ab4 = 9; *(uint16_t*)0x20000ab5 = 8; *(uint8_t*)0x20000ab7 = 0x40; *(uint8_t*)0x20000ab8 = 0x3f; *(uint8_t*)0x20000ab9 = 7; *(uint8_t*)0x20000aba = 7; *(uint8_t*)0x20000abb = 0x25; *(uint8_t*)0x20000abc = 1; *(uint8_t*)0x20000abd = 0; *(uint8_t*)0x20000abe = 0xd6; *(uint16_t*)0x20000abf = 0x200; *(uint32_t*)0x20000f40 = 0xa; *(uint64_t*)0x20000f44 = 0x20000b00; *(uint8_t*)0x20000b00 = 0xa; *(uint8_t*)0x20000b01 = 6; *(uint16_t*)0x20000b02 = 0x310; *(uint8_t*)0x20000b04 = -1; *(uint8_t*)0x20000b05 = 0; *(uint8_t*)0x20000b06 = 2; *(uint8_t*)0x20000b07 = 0x10; *(uint8_t*)0x20000b08 = 4; *(uint8_t*)0x20000b09 = 0; *(uint32_t*)0x20000f4c = 0x2e; *(uint64_t*)0x20000f50 = 0x20000b40; *(uint8_t*)0x20000b40 = 5; *(uint8_t*)0x20000b41 = 0xf; *(uint16_t*)0x20000b42 = 0x2e; *(uint8_t*)0x20000b44 = 4; *(uint8_t*)0x20000b45 = 7; *(uint8_t*)0x20000b46 = 0x10; *(uint8_t*)0x20000b47 = 2; STORE_BY_BITMASK(uint32_t, , 0x20000b48, 0, 0, 8); STORE_BY_BITMASK(uint32_t, , 0x20000b49, 0xe, 0, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b49, 6, 4, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b4a, 0x54d9, 0, 16); *(uint8_t*)0x20000b4c = 3; *(uint8_t*)0x20000b4d = 0x10; *(uint8_t*)0x20000b4e = 0xb; *(uint8_t*)0x20000b4f = 0x18; *(uint8_t*)0x20000b50 = 0x10; *(uint8_t*)0x20000b51 = 0xa; *(uint8_t*)0x20000b52 = 0x48; STORE_BY_BITMASK(uint32_t, , 0x20000b53, 3, 0, 5); STORE_BY_BITMASK(uint32_t, , 0x20000b53, 1, 5, 27); *(uint16_t*)0x20000b57 = 0xf; *(uint16_t*)0x20000b59 = 0x40; *(uint32_t*)0x20000b5b = 0xff000f; *(uint32_t*)0x20000b5f = 0x3fc0; *(uint32_t*)0x20000b63 = 0; *(uint8_t*)0x20000b67 = 7; *(uint8_t*)0x20000b68 = 0x10; *(uint8_t*)0x20000b69 = 2; STORE_BY_BITMASK(uint32_t, , 0x20000b6a, 4, 0, 8); STORE_BY_BITMASK(uint32_t, , 0x20000b6b, 7, 0, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b6b, 4, 4, 4); STORE_BY_BITMASK(uint32_t, , 0x20000b6c, 5, 0, 16); *(uint32_t*)0x20000f58 = 6; *(uint32_t*)0x20000f5c = 0; *(uint64_t*)0x20000f60 = 0; *(uint32_t*)0x20000f68 = 2; *(uint64_t*)0x20000f6c = 0x20000c40; *(uint8_t*)0x20000c40 = 2; *(uint8_t*)0x20000c41 = 3; *(uint32_t*)0x20000f74 = 2; *(uint64_t*)0x20000f78 = 0x20000c80; *(uint8_t*)0x20000c80 = 2; *(uint8_t*)0x20000c81 = 3; *(uint32_t*)0x20000f80 = 0; *(uint64_t*)0x20000f84 = 0; *(uint32_t*)0x20000f8c = 0; *(uint64_t*)0x20000f90 = 0; *(uint32_t*)0x20000f98 = 0xd9; *(uint64_t*)0x20000f9c = 0x20000e40; *(uint8_t*)0x20000e40 = 0xd9; *(uint8_t*)0x20000e41 = 3; memcpy( (void*)0x20000e42, "\x5d\x62\xbe\x0b\xca\x66\x4f\x5a\x2f\x49\xcc\x49\x1a\xa1\x83\xa3\x0d" "\xc1\x33\x1f\xfd\x80\x07\xef\xb3\x20\x94\x9d\x46\xea\x0c\x7e\x35\x47" "\x63\x64\x3a\x17\x73\x9a\xfc\x07\xe1\x5e\xbd\xbc\xe9\xf7\xcc\xef\x56" "\x1f\x19\x43\xa2\x3d\x15\x2c\x45\x19\xca\x7f\x01\x34\x0f\x2f\x04\x64" "\x3c\x5b\x04\xa2\x29\x55\x95\xfe\xca\xa3\xfc\xe9\x49\xc1\x3f\xbe\x7f" "\x50\xfd\xa2\xf1\x5e\xd0\x2b\xfe\x69\xbd\xcc\xdc\x47\x3e\xe8\x05\x25" "\xd6\xba\x48\xf3\xc9\x5e\x49\x13\xd3\xe7\xe3\xf2\xce\x03\xe6\x74\xb1" "\x19\x37\x0f\xe8\x9f\xa3\x5c\xfd\x45\xa2\xbb\x07\x5d\x12\xcf\x30\x4e" "\xff\xec\x30\xec\xc7\x5c\xa8\x09\xa4\x0c\xbe\x84\x8a\x98\x9e\xc4\x86" "\xb8\x93\xb0\x93\xbb\x1e\xad\xc4\x56\x98\xa5\xbe\x66\x19\x01\xe6\xd8" "\x7a\xc5\x46\x00\xe1\xfd\xff\x7a\x41\x2e\x6b\x8d\xef\xd4\xac\xc5\xf9" "\x21\xbb\x70\x34\x84\x54\xdc\xce\x46\xf6\x3c\x81\xc3\xd1\x25\xbf\xfe" "\x21\xf1\x73\x84\x4d\x24\x07\x64\x25\x50\x55", 215); syz_usb_connect(5, 0xc1, 0x20000a00, 0x20000f40); break; case 6: *(uint8_t*)0x20002100 = 0x12; *(uint8_t*)0x20002101 = 1; *(uint16_t*)0x20002102 = 0x310; *(uint8_t*)0x20002104 = 0; *(uint8_t*)0x20002105 = 0; *(uint8_t*)0x20002106 = 0; *(uint8_t*)0x20002107 = 8; *(uint16_t*)0x20002108 = 0x1d6b; *(uint16_t*)0x2000210a = 0x101; *(uint16_t*)0x2000210c = 0x40; *(uint8_t*)0x2000210e = 1; *(uint8_t*)0x2000210f = 2; *(uint8_t*)0x20002110 = 3; *(uint8_t*)0x20002111 = 1; *(uint8_t*)0x20002112 = 9; *(uint8_t*)0x20002113 = 2; *(uint16_t*)0x20002114 = 0x9c; *(uint8_t*)0x20002116 = 3; *(uint8_t*)0x20002117 = 1; *(uint8_t*)0x20002118 = 0x3c; *(uint8_t*)0x20002119 = 0xe0; *(uint8_t*)0x2000211a = 0x3f; *(uint8_t*)0x2000211b = 9; *(uint8_t*)0x2000211c = 4; *(uint8_t*)0x2000211d = 0; *(uint8_t*)0x2000211e = 0; *(uint8_t*)0x2000211f = 0; *(uint8_t*)0x20002120 = 1; *(uint8_t*)0x20002121 = 1; *(uint8_t*)0x20002122 = 0; *(uint8_t*)0x20002123 = 0; *(uint8_t*)0x20002124 = 0xa; *(uint8_t*)0x20002125 = 0x24; *(uint8_t*)0x20002126 = 1; *(uint16_t*)0x20002127 = 0x100; *(uint8_t*)0x20002129 = 0x3f; *(uint8_t*)0x2000212a = 2; *(uint8_t*)0x2000212b = 1; *(uint8_t*)0x2000212c = 2; *(uint8_t*)0x2000212d = 9; *(uint8_t*)0x2000212e = 0x24; *(uint8_t*)0x2000212f = 3; *(uint8_t*)0x20002130 = 3; *(uint16_t*)0x20002131 = 0x100; *(uint8_t*)0x20002133 = 5; *(uint8_t*)0x20002134 = 5; *(uint8_t*)0x20002135 = 1; *(uint8_t*)0x20002136 = 9; *(uint8_t*)0x20002137 = 0x24; *(uint8_t*)0x20002138 = 6; *(uint8_t*)0x20002139 = 1; *(uint8_t*)0x2000213a = 3; *(uint8_t*)0x2000213b = 1; *(uint16_t*)0x2000213c = 5; *(uint8_t*)0x2000213e = 7; *(uint8_t*)0x2000213f = 9; *(uint8_t*)0x20002140 = 4; *(uint8_t*)0x20002141 = 1; *(uint8_t*)0x20002142 = 0; *(uint8_t*)0x20002143 = 0; *(uint8_t*)0x20002144 = 1; *(uint8_t*)0x20002145 = 2; *(uint8_t*)0x20002146 = 0; *(uint8_t*)0x20002147 = 0; *(uint8_t*)0x20002148 = 9; *(uint8_t*)0x20002149 = 4; *(uint8_t*)0x2000214a = 1; *(uint8_t*)0x2000214b = 1; *(uint8_t*)0x2000214c = 1; *(uint8_t*)0x2000214d = 1; *(uint8_t*)0x2000214e = 2; *(uint8_t*)0x2000214f = 0; *(uint8_t*)0x20002150 = 0; *(uint8_t*)0x20002151 = 8; *(uint8_t*)0x20002152 = 0x24; *(uint8_t*)0x20002153 = 2; *(uint8_t*)0x20002154 = 1; *(uint8_t*)0x20002155 = 0x1c; *(uint8_t*)0x20002156 = 2; *(uint8_t*)0x20002157 = 9; *(uint8_t*)0x20002158 = 4; *(uint8_t*)0x20002159 = 7; *(uint8_t*)0x2000215a = 0x24; *(uint8_t*)0x2000215b = 1; *(uint8_t*)0x2000215c = 0x40; *(uint8_t*)0x2000215d = 0x5e; *(uint16_t*)0x2000215e = 0x1002; *(uint8_t*)0x20002160 = 9; *(uint8_t*)0x20002161 = 0x24; *(uint8_t*)0x20002162 = 2; *(uint8_t*)0x20002163 = 2; *(uint16_t*)0x20002164 = 6; *(uint16_t*)0x20002166 = 3; *(uint8_t*)0x20002168 = 3; *(uint8_t*)0x20002169 = 0xb; *(uint8_t*)0x2000216a = 0x24; *(uint8_t*)0x2000216b = 2; *(uint8_t*)0x2000216c = 1; *(uint8_t*)0x2000216d = 4; *(uint8_t*)0x2000216e = 4; *(uint8_t*)0x2000216f = 0x81; *(uint8_t*)0x20002170 = 5; memcpy((void*)0x20002171, "\x16\x0a\xec", 3); *(uint8_t*)0x20002174 = 8; *(uint8_t*)0x20002175 = 0x24; *(uint8_t*)0x20002176 = 2; *(uint8_t*)0x20002177 = 1; *(uint8_t*)0x20002178 = 0x1f; *(uint8_t*)0x20002179 = 3; *(uint8_t*)0x2000217a = 0x72; *(uint8_t*)0x2000217b = 0xec; *(uint8_t*)0x2000217c = 9; *(uint8_t*)0x2000217d = 5; *(uint8_t*)0x2000217e = 1; *(uint8_t*)0x2000217f = 9; *(uint16_t*)0x20002180 = 0x39f; *(uint8_t*)0x20002182 = 1; *(uint8_t*)0x20002183 = 0x40; *(uint8_t*)0x20002184 = 0x1f; *(uint8_t*)0x20002185 = 7; *(uint8_t*)0x20002186 = 0x25; *(uint8_t*)0x20002187 = 1; *(uint8_t*)0x20002188 = 0x80; *(uint8_t*)0x20002189 = 5; *(uint16_t*)0x2000218a = 2; *(uint8_t*)0x2000218c = 9; *(uint8_t*)0x2000218d = 4; *(uint8_t*)0x2000218e = 2; *(uint8_t*)0x2000218f = 0; *(uint8_t*)0x20002190 = 0; *(uint8_t*)0x20002191 = 1; *(uint8_t*)0x20002192 = 2; *(uint8_t*)0x20002193 = 0; *(uint8_t*)0x20002194 = 0; *(uint8_t*)0x20002195 = 9; *(uint8_t*)0x20002196 = 4; *(uint8_t*)0x20002197 = 2; *(uint8_t*)0x20002198 = 1; *(uint8_t*)0x20002199 = 1; *(uint8_t*)0x2000219a = 1; *(uint8_t*)0x2000219b = 2; *(uint8_t*)0x2000219c = 0; *(uint8_t*)0x2000219d = 0; *(uint8_t*)0x2000219e = 9; *(uint8_t*)0x2000219f = 5; *(uint8_t*)0x200021a0 = 0x82; *(uint8_t*)0x200021a1 = 9; *(uint16_t*)0x200021a2 = 0x40; *(uint8_t*)0x200021a4 = 2; *(uint8_t*)0x200021a5 = 0x1f; *(uint8_t*)0x200021a6 = 0x80; *(uint8_t*)0x200021a7 = 7; *(uint8_t*)0x200021a8 = 0x25; *(uint8_t*)0x200021a9 = 1; *(uint8_t*)0x200021aa = 0; *(uint8_t*)0x200021ab = 1; *(uint16_t*)0x200021ac = 0x40; syz_usb_connect(1, 0xae, 0x20002100, 0); break; } } int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul, 0ul); for (procid = 0; procid < 6; procid++) { if (fork() == 0) { loop(); } } sleep(1000000); return 0; }