// https://syzkaller.appspot.com/bug?id=cabffad18eb74197f84871802fd2c5117b61febf // 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 static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } #define MAX_FDS 30 #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) { int i; for (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); #define ATH9K_FIRMWARE_DOWNLOAD 0x30 #define ATH9K_FIRMWARE_DOWNLOAD_COMP 0x31 static bool lookup_connect_response_out_ath9k( 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: return true; default: break; } break; case USB_TYPE_VENDOR: switch (ctrl->bRequest) { case ATH9K_FIRMWARE_DOWNLOAD: return true; case ATH9K_FIRMWARE_DOWNLOAD_COMP: *done = true; return true; default: break; } break; } return false; } #define UDC_NAME_LENGTH_MAX 128 struct usb_raw_init { __u8 driver_name[UDC_NAME_LENGTH_MAX]; __u8 device_name[UDC_NAME_LENGTH_MAX]; __u8 speed; }; enum usb_raw_event_type { USB_RAW_EVENT_INVALID = 0, USB_RAW_EVENT_CONNECT = 1, USB_RAW_EVENT_CONTROL = 2, }; struct usb_raw_event { __u32 type; __u32 length; __u8 data[0]; }; struct usb_raw_ep_io { __u16 ep; __u16 flags; __u32 length; __u8 data[0]; }; #define USB_RAW_EPS_NUM_MAX 30 #define USB_RAW_EP_NAME_MAX 16 #define USB_RAW_EP_ADDR_ANY 0xff struct usb_raw_ep_caps { __u32 type_control : 1; __u32 type_iso : 1; __u32 type_bulk : 1; __u32 type_int : 1; __u32 dir_in : 1; __u32 dir_out : 1; }; struct usb_raw_ep_limits { __u16 maxpacket_limit; __u16 max_streams; __u32 reserved; }; struct usb_raw_ep_info { __u8 name[USB_RAW_EP_NAME_MAX]; __u32 addr; struct usb_raw_ep_caps caps; struct usb_raw_ep_limits limits; }; struct usb_raw_eps_info { struct usb_raw_ep_info eps[USB_RAW_EPS_NUM_MAX]; }; #define USB_RAW_IOCTL_INIT _IOW('U', 0, struct usb_raw_init) #define USB_RAW_IOCTL_RUN _IO('U', 1) #define USB_RAW_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_raw_event) #define USB_RAW_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_raw_ep_io) #define USB_RAW_IOCTL_EP0_READ _IOWR('U', 4, struct usb_raw_ep_io) #define USB_RAW_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor) #define USB_RAW_IOCTL_EP_DISABLE _IOW('U', 6, __u32) #define USB_RAW_IOCTL_EP_WRITE _IOW('U', 7, struct usb_raw_ep_io) #define USB_RAW_IOCTL_EP_READ _IOWR('U', 8, struct usb_raw_ep_io) #define USB_RAW_IOCTL_CONFIGURE _IO('U', 9) #define USB_RAW_IOCTL_VBUS_DRAW _IOW('U', 10, __u32) #define USB_RAW_IOCTL_EPS_INFO _IOR('U', 11, struct usb_raw_eps_info) #define USB_RAW_IOCTL_EP0_STALL _IO('U', 12) #define USB_RAW_IOCTL_EP_SET_HALT _IOW('U', 13, __u32) #define USB_RAW_IOCTL_EP_CLEAR_HALT _IOW('U', 14, __u32) #define USB_RAW_IOCTL_EP_SET_WEDGE _IOW('U', 15, __u32) static int usb_raw_open() { return open("/dev/raw-gadget", O_RDWR); } static int usb_raw_init(int fd, uint32_t speed, const char* driver, const char* device) { struct usb_raw_init arg; strncpy((char*)&arg.driver_name[0], driver, sizeof(arg.driver_name)); strncpy((char*)&arg.device_name[0], device, sizeof(arg.device_name)); arg.speed = speed; return ioctl(fd, USB_RAW_IOCTL_INIT, &arg); } static int usb_raw_run(int fd) { return ioctl(fd, USB_RAW_IOCTL_RUN, 0); } static int usb_raw_event_fetch(int fd, struct usb_raw_event* event) { return ioctl(fd, USB_RAW_IOCTL_EVENT_FETCH, event); } static int usb_raw_ep0_write(int fd, struct usb_raw_ep_io* io) { return ioctl(fd, USB_RAW_IOCTL_EP0_WRITE, io); } static int usb_raw_ep0_read(int fd, struct usb_raw_ep_io* io) { return ioctl(fd, USB_RAW_IOCTL_EP0_READ, io); } static int usb_raw_ep_write(int fd, struct usb_raw_ep_io* io) { return ioctl(fd, USB_RAW_IOCTL_EP_WRITE, io); } static int usb_raw_ep_enable(int fd, struct usb_endpoint_descriptor* desc) { return ioctl(fd, USB_RAW_IOCTL_EP_ENABLE, desc); } static int usb_raw_ep_disable(int fd, int ep) { return ioctl(fd, USB_RAW_IOCTL_EP_DISABLE, ep); } static int usb_raw_configure(int fd) { return ioctl(fd, USB_RAW_IOCTL_CONFIGURE, 0); } static int usb_raw_vbus_draw(int fd, uint32_t power) { return ioctl(fd, USB_RAW_IOCTL_VBUS_DRAW, power); } static int usb_raw_ep0_stall(int fd) { return ioctl(fd, USB_RAW_IOCTL_EP0_STALL, 0); } static int lookup_endpoint(int fd, uint8_t bEndpointAddress) { struct usb_device_index* index = lookup_usb_index(fd); int ep; if (!index) return -1; if (index->iface_cur < 0) return -1; for (ep = 0; index->ifaces[index->iface_cur].eps_num; ep++) if (index->ifaces[index->iface_cur].eps[ep].desc.bEndpointAddress == bEndpointAddress) return index->ifaces[index->iface_cur].eps[ep].handle; return -1; } static void set_interface(int fd, int n) { struct usb_device_index* index = lookup_usb_index(fd); int ep; if (!index) return; if (index->iface_cur >= 0 && index->iface_cur < index->ifaces_num) { for (ep = 0; ep < index->ifaces[index->iface_cur].eps_num; ep++) { int rv = usb_raw_ep_disable( fd, index->ifaces[index->iface_cur].eps[ep].handle); if (rv < 0) { } else { } } } if (n >= 0 && n < index->ifaces_num) { for (ep = 0; ep < index->ifaces[n].eps_num; ep++) { int rv = usb_raw_ep_enable(fd, &index->ifaces[n].eps[ep].desc); if (rv < 0) { } else { index->ifaces[n].eps[ep].handle = rv; } } index->iface_cur = n; } } static int configure_device(int fd) { struct usb_device_index* index = lookup_usb_index(fd); if (!index) return -1; int rv = usb_raw_vbus_draw(fd, index->bMaxPower); if (rv < 0) { return rv; } rv = usb_raw_configure(fd); if (rv < 0) { return rv; } set_interface(fd, 0); return 0; } #define USB_MAX_PACKET_SIZE 4096 struct usb_raw_control_event { struct usb_raw_event inner; struct usb_ctrlrequest ctrl; char data[USB_MAX_PACKET_SIZE]; }; struct usb_raw_ep_io_data { struct usb_raw_ep_io inner; char data[USB_MAX_PACKET_SIZE]; }; static volatile long syz_usb_connect_impl(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) { if (!dev) { return -1; } int fd = usb_raw_open(); if (fd < 0) { return fd; } if (fd >= MAX_FDS) { close(fd); return -1; } struct usb_device_index* index = add_usb_index(fd, dev, dev_len); if (!index) { return -1; } char device[32]; sprintf(&device[0], "dummy_udc.%llu", procid); int rv = usb_raw_init(fd, speed, "dummy_udc", &device[0]); if (rv < 0) { return rv; } rv = usb_raw_run(fd); if (rv < 0) { return rv; } bool done = false; while (!done) { struct usb_raw_control_event event; event.inner.type = 0; event.inner.length = sizeof(event.ctrl); rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event); if (rv < 0) { return rv; } if (event.inner.type != USB_RAW_EVENT_CONTROL) continue; char* response_data = NULL; uint32_t response_length = 0; if (event.ctrl.bRequestType & USB_DIR_IN) { if (!lookup_connect_response_in(fd, descs, &event.ctrl, &response_data, &response_length)) { usb_raw_ep0_stall(fd); continue; } } else { if (!lookup_connect_response_out(fd, descs, &event.ctrl, &done)) { usb_raw_ep0_stall(fd); continue; } response_data = NULL; response_length = event.ctrl.wLength; } if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD && event.ctrl.bRequest == USB_REQ_SET_CONFIGURATION) { rv = configure_device(fd); if (rv < 0) { return rv; } } struct usb_raw_ep_io_data response; response.inner.ep = 0; response.inner.flags = 0; if (response_length > sizeof(response.data)) response_length = 0; if (event.ctrl.wLength < response_length) response_length = event.ctrl.wLength; response.inner.length = response_length; if (response_data) memcpy(&response.data[0], response_data, response_length); else memset(&response.data[0], 0, response_length); if (event.ctrl.bRequestType & USB_DIR_IN) { rv = usb_raw_ep0_write(fd, (struct usb_raw_ep_io*)&response); } else { rv = usb_raw_ep0_read(fd, (struct usb_raw_ep_io*)&response); } if (rv < 0) { return rv; } } sleep_ms(200); return fd; } static volatile long syz_usb_connect_ath9k(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; return syz_usb_connect_impl(speed, dev_len, dev, descs, &lookup_connect_response_out_ath9k); } static volatile long syz_usb_ep_write(volatile long a0, volatile long a1, volatile long a2, volatile long a3) { int fd = a0; uint8_t ep = a1; uint32_t len = a2; char* data = (char*)a3; int ep_handle = lookup_endpoint(fd, ep); if (ep_handle < 0) { return -1; } struct usb_raw_ep_io_data io_data; io_data.inner.ep = ep_handle; io_data.inner.flags = 0; if (len > sizeof(io_data.data)) len = sizeof(io_data.data); io_data.inner.length = len; memcpy(&io_data.data[0], data, len); int rv = usb_raw_ep_write(fd, (struct usb_raw_ep_io*)&io_data); if (rv < 0) { return rv; } sleep_ms(200); return 0; } uint64_t r[1] = {0xffffffffffffffff}; 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); intptr_t res = 0; *(uint8_t*)0x20000000 = 0x12; *(uint8_t*)0x20000001 = 1; *(uint16_t*)0x20000002 = 0x200; *(uint8_t*)0x20000004 = -1; *(uint8_t*)0x20000005 = -1; *(uint8_t*)0x20000006 = -1; *(uint8_t*)0x20000007 = 0x40; *(uint16_t*)0x20000008 = 0xcf3; *(uint16_t*)0x2000000a = 0x9271; *(uint16_t*)0x2000000c = 0x108; *(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 = 0x48; *(uint8_t*)0x20000016 = 1; *(uint8_t*)0x20000017 = 1; *(uint8_t*)0x20000018 = 0; *(uint8_t*)0x20000019 = 0x80; *(uint8_t*)0x2000001a = 0xfa; *(uint8_t*)0x2000001b = 9; *(uint8_t*)0x2000001c = 4; *(uint8_t*)0x2000001d = 0; *(uint8_t*)0x2000001e = 0; *(uint8_t*)0x2000001f = 6; *(uint8_t*)0x20000020 = -1; *(uint8_t*)0x20000021 = 0; *(uint8_t*)0x20000022 = 0; *(uint8_t*)0x20000023 = 0; *(uint8_t*)0x20000024 = 9; *(uint8_t*)0x20000025 = 5; *(uint8_t*)0x20000026 = 1; *(uint8_t*)0x20000027 = 2; *(uint16_t*)0x20000028 = 0x200; *(uint8_t*)0x2000002a = 0; *(uint8_t*)0x2000002b = 0; *(uint8_t*)0x2000002c = 0; *(uint8_t*)0x2000002d = 9; *(uint8_t*)0x2000002e = 5; *(uint8_t*)0x2000002f = 0x82; *(uint8_t*)0x20000030 = 2; *(uint16_t*)0x20000031 = 0x200; *(uint8_t*)0x20000033 = 0; *(uint8_t*)0x20000034 = 0; *(uint8_t*)0x20000035 = 0; *(uint8_t*)0x20000036 = 9; *(uint8_t*)0x20000037 = 5; *(uint8_t*)0x20000038 = 0x83; *(uint8_t*)0x20000039 = 3; *(uint16_t*)0x2000003a = 0x40; *(uint8_t*)0x2000003c = 1; *(uint8_t*)0x2000003d = 0; *(uint8_t*)0x2000003e = 0; *(uint8_t*)0x2000003f = 9; *(uint8_t*)0x20000040 = 5; *(uint8_t*)0x20000041 = 4; *(uint8_t*)0x20000042 = 3; *(uint16_t*)0x20000043 = 0x40; *(uint8_t*)0x20000045 = 1; *(uint8_t*)0x20000046 = 0; *(uint8_t*)0x20000047 = 0; *(uint8_t*)0x20000048 = 9; *(uint8_t*)0x20000049 = 5; *(uint8_t*)0x2000004a = 5; *(uint8_t*)0x2000004b = 2; *(uint16_t*)0x2000004c = 0x200; *(uint8_t*)0x2000004e = 0; *(uint8_t*)0x2000004f = 0; *(uint8_t*)0x20000050 = 0; *(uint8_t*)0x20000051 = 9; *(uint8_t*)0x20000052 = 5; *(uint8_t*)0x20000053 = 6; *(uint8_t*)0x20000054 = 2; *(uint16_t*)0x20000055 = 0x200; *(uint8_t*)0x20000057 = 0; *(uint8_t*)0x20000058 = 0; *(uint8_t*)0x20000059 = 0; res = -1; res = syz_usb_connect_ath9k(3, 0x5a, 0x20000000, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000780 = 0xb5; *(uint16_t*)0x20000782 = 0x4e00; memcpy((void*)0x20000784, "\x79\xbd\x88\x2d\x58\x53\xcb\x1e\x9e\xb8\x6a\xc7\x05\xa0\x10\xac\x69" "\x20\x47\xfa\x51\x2a\xec\x86\xf6\x1c\x86\x23\x0b\x0d\xd2\xbb\x4b\x80" "\x32\xe2\x94\x66\x6f\x90\xd3\x8f\x5a\x75\x79\xea\xa7\xff\x20\xb3\x39" "\x4a\xc0\x2a\x52\x40\xa6\x0f\xa1\x6e\x7c\x9a\xa7\xa2\x17\xf6\x65\x2a" "\x14\x9f\xff\x19\xc0\x85\x43\x57\x19\x77\xd3\x8b\x88\x3f\xff\x03\x1f" "\xc1\x86\x92\x19\xda\x9c\xda\xe8\xc7\x88\x6f\x95\x08\x84\x1e\x8e\x8b" "\x4f\xd7\x96\x3d\xcf\xd3\x26\x91\x14\xd5\x2d\xcd\x13\x14\x6c\xa4\x80" "\x5f\x5d\x43\x89\x3c\xd0\x53\x5a\x1c\x9b\xd1\xd7\x65\x28\x1f\xa4\xa4" "\x36\x3f\xe1\x62\x61\x0e\xf5\xa4\x90\x33\xf5\x2f\x48\x8a\x4f\xca\x4e" "\x35\xfe\x62\x18\x0e\x0f\xd0\x70\x08\xcb\x50\x3c\x0a\x40\x6e\xc7\x63" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 181); *(uint16_t*)0x2000083c = 0xff96; *(uint16_t*)0x2000083e = 0x4e00; memcpy((void*)0x20000840, "\x63\xcb\x61\xd1\x5e\xc0\x44\xfe\x90\x1b\x87\x39\xe6\x6c\x77\xdb\x77" "\x5b\xb6\xec\xf0\xa6\xd7\x6c\x34\x9a\x8a\x95\xb3\x13\xba\xd2\x4a\xc3" "\x6e\xd2\xc2\x43\x25\x79\x17\xbd\xa2\xfe\x08\xde\x2f\x30\x17\x9b\x6e" "\xa5\x75\xa9\xc2\x1a\x06\xf1\x8f\x00\x40\x72\xfc\xf5\x0c\x7a\x58\x32" "\xfd\xb4\x48\x22\xf5\xfa\x5c\xb5\xf3\x7f\x03\x07\x0f\x6c\x34\x22\x87" "\xb8\x82\xd5\x32\xa2\x58\x43\xab\x42\x48\xf4", 96); *(uint16_t*)0x200008a0 = 0xb0; *(uint16_t*)0x200008a2 = 0x4e00; memcpy((void*)0x200008a4, "\xa0\xab\xc6\x28\x1d\x2e\xd2\xb1\x74\xd1\xde\x16\x34\x11\x32\xae\x74" "\xf8\x1c\x5d\x9b\x6a\x46\xf7\x97\x07\x31\x67\xf6\x7f\xcb\x99\x2c\xb5" "\x6d\x6e\x8e\xb8\x2d\x17\xf9\x1c\x74\x1d\xf7\xe5\x84\x49\xaa\x1a\x37" "\xf5\x33\xbc\xfb\xaa\xfa\x4b\x9c\x67\xda\xa4\xc1\x81\xe0\x89\xda\xf1" "\x86\x37\xb4\xef\x1f\x14\xe5\x6a\x04\x09\xf7\xc8\xcc\x30\xe1\x95\x43" "\x81\x1e\xd6\x46\x34\xe8\x55\xe7\x32\x59\x5c\xb5\x47\xb2\xcd\xfd\xe3" "\xbb\xb3\x8b\xd4\xa9\x8c\xf7\x23\x08\x75\xa0\x56\x2f\xad\xa3\x6f\x53" "\xae\xf7\x03\xee\x05\xe8\x2d\x64\x4b\xfe\xd4\xc4\x6f\xf6\xe4\x17\x43" "\xde\xe0\x67\x20\x7c\xb0\xc4\x5e\xd1\xd3\x75\x6d\x19\x58\x4b\xba\xf3" "\xc4\x7d\x54\x39\x3e\x11\x06\x18\xa5\xf5\x15\x3f\x78\xba\x09\x86\x47" "\x89\x37\x51\x74\xae\x09", 176); *(uint16_t*)0x20000954 = 0x132; *(uint16_t*)0x20000956 = 0x4e00; memcpy((void*)0x20000958, "\x6d\x03\x67\xc6\x97\x18\xa8\xb9\x48\x1e\xae\xce\xca\x3d\xe7\xf8\x72" "\x44\xea\xd2\x64\x2f\xc8\xd6\xe6\xbd\x20\xe4\x5a\xe0\x23\x7d\xc0\xc1" "\xc5\x53\x27\xf8\x2c\xb5\x2d\xd4\x57\x3c\x62\x00\x48\x3a\xde\x3b\xf8" "\x97\x42\x25\x50\x0b\x2b\xc4\x81\xaf\x32\x51\x6a\xeb\x5a\x82\x36\x0d" "\x97\x85\x17\x2d\x0d\x3c\x9a\xb9\x3f\x5b\xc0\x8b\x18\x23\x4e\xc7\x00" "\x12\xfd\x4c\x71\x65\x74\x0c\x46\x52\xba\xe9\x7d\x34\xdc\x6d\xcf\xf2" "\xa3\x68\x71\xc7\xea\xf5\x2f\x56\x83\x3d\x91\xb0\x2e\x04\xf1\x51\xce" "\x05\x8b\x54\xe8\x36\xb8\x32\x27\xa3\xef\x32\xf9\x43\x7a\xec\xa7\x8f" "\x7b\x01\x32\xa0\xd5\x37\x1a\x65\x0f\x57\x8a\xff\x13\x4e\xf0\x37\xdd" "\x15\x30\x06\xf2\x66\x88\x3f\x0b\x27\xa2\x7e\xda\x8e\x97\xdc\x19\x3c" "\x8e\xb6\x4a\x0e\x01\x4d\x94\x33\xf7\x44\xbc\xae\xea\x17\x59\x00\xe3" "\x15\x62\x50\x66\x80\x88\xac\x8b\x44\x5b\xb1\x1b\xd7\x37\x5d\x10\x0f" "\xa7\xf9\xf5\xfa\x27\xa5\xc0\x08\xde\xd5\xa4\x5f\xfd\xac\x18\x53\x6a" "\x7b\x7a\x57\x96\x2e\xd5\x19\xf9\xce\xa0\x14\x8b\x1e\xc4\x97\x49\x94" "\xd6\x1e\x20\x75\x20\x48\xd4\x9a\x1a\x49\x9b\xd0\x60\xfa\x03\xbd\x28" "\x18\xa5\x62\x38\x0b\x9a\x90\x41\x31\xef\x8f\x83\x61\x8b\xa7\xb1\x5f" "\xa9\x44\x85\x36\x24\xc8\x1f\x2d\x7a\xdb\x43\x2f\x07\x73\x14\x24\x82" "\xea\x01\x18\xa3\x81\xe3\x78\xb5\xbd\x6f\x9b\xb3\xf3\xdc\xbd\x03\x4b", 306); syz_usb_ep_write(r[0], 0x82, 0x30c, 0x20000780); *(uint16_t*)0x200001c0 = 0; *(uint16_t*)0x200001c2 = 0x4e00; syz_usb_ep_write(r[0], 0x82, 4, 0x200001c0); return 0; }