// https://syzkaller.appspot.com/bug?id=5a30a0945259f4e6431592894e78d927f1fbf813 // 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) { 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; } #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_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 void set_interface(int fd, int n) { struct usb_device_index* index = lookup_usb_index(fd); if (!index) return; if (index->iface_cur >= 0 && index->iface_cur < index->ifaces_num) { for (int 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 (int 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(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_generic); } 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); } } uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 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; res = syscall(__NR_socket, 0x29ul, 2ul, 0); if (res != -1) r[0] = res; syscall(__NR_ioctl, r[0], 0x8903, 0ul); *(uint32_t*)0x20000200 = 0; *(uint32_t*)0x20000204 = 0; *(uint32_t*)0x20000208 = 0; *(uint32_t*)0x2000020c = 0; *(uint32_t*)0x20000210 = 0; *(uint32_t*)0x20000214 = 0; *(uint32_t*)0x20000218 = 0; *(uint32_t*)0x2000021c = 0; *(uint32_t*)0x20000220 = 0; *(uint32_t*)0x20000224 = 0; *(uint32_t*)0x20000228 = 0; *(uint32_t*)0x2000022c = 0; *(uint32_t*)0x20000230 = 0; *(uint32_t*)0x20000234 = 0; *(uint32_t*)0x20000238 = 0; *(uint32_t*)0x2000023c = 0; *(uint32_t*)0x20000240 = 0; *(uint32_t*)0x20000244 = 0; *(uint32_t*)0x20000248 = 0; *(uint32_t*)0x2000024c = 0; *(uint32_t*)0x20000250 = 0; *(uint32_t*)0x20000254 = 0; *(uint32_t*)0x20000258 = 0; *(uint32_t*)0x2000025c = 0; *(uint32_t*)0x20000260 = 0; *(uint32_t*)0x20000264 = 0; *(uint32_t*)0x20000268 = 0; *(uint32_t*)0x2000026c = 0; *(uint32_t*)0x20000270 = 0; *(uint32_t*)0x20000274 = 0; *(uint32_t*)0x20000278 = 0; *(uint32_t*)0x2000027c = 0; *(uint32_t*)0x20000280 = 0; *(uint32_t*)0x20000284 = 0; *(uint32_t*)0x20000288 = 0; *(uint32_t*)0x2000028c = 0; *(uint32_t*)0x20000290 = 0; *(uint32_t*)0x20000294 = 0; *(uint32_t*)0x20000298 = 0; *(uint32_t*)0x2000029c = 0; *(uint32_t*)0x200002a0 = 0; *(uint32_t*)0x200002a4 = 0; *(uint32_t*)0x200002a8 = 0; *(uint32_t*)0x200002ac = 0; *(uint32_t*)0x200002b0 = 0; *(uint32_t*)0x200002b4 = 0; *(uint32_t*)0x200002b8 = 0; *(uint32_t*)0x200002bc = 0; *(uint32_t*)0x200002c0 = 0; *(uint32_t*)0x200002c4 = 0; *(uint32_t*)0x200002c8 = 0; *(uint32_t*)0x200002cc = 0; *(uint32_t*)0x200002d0 = 0; *(uint32_t*)0x200002d4 = 0; *(uint32_t*)0x200002d8 = 0; *(uint32_t*)0x200002dc = 0; *(uint32_t*)0x200002e0 = 0; *(uint32_t*)0x200002e4 = 0; *(uint32_t*)0x200002e8 = 0; *(uint32_t*)0x200002ec = 0; *(uint32_t*)0x200002f0 = 0; *(uint32_t*)0x200002f4 = 0; *(uint32_t*)0x200002f8 = 0; *(uint32_t*)0x200002fc = 0; *(uint32_t*)0x20000300 = 0; *(uint32_t*)0x20000304 = 0; *(uint32_t*)0x20000308 = 0; *(uint32_t*)0x2000030c = 0; *(uint32_t*)0x20000310 = 0; *(uint32_t*)0x20000314 = 0; *(uint32_t*)0x20000318 = 0; *(uint32_t*)0x2000031c = 0; *(uint32_t*)0x20000320 = 0; *(uint32_t*)0x20000324 = 0; *(uint32_t*)0x20000328 = 0; *(uint32_t*)0x2000032c = 0; *(uint32_t*)0x20000330 = 0; *(uint32_t*)0x20000334 = 0; *(uint32_t*)0x20000338 = 0; *(uint32_t*)0x2000033c = 0; *(uint32_t*)0x20000340 = 0; *(uint32_t*)0x20000344 = 0; *(uint32_t*)0x20000348 = 0; *(uint32_t*)0x2000034c = 0; *(uint32_t*)0x20000350 = 0; *(uint32_t*)0x20000354 = 0; *(uint32_t*)0x20000358 = 0; *(uint32_t*)0x2000035c = 0; *(uint32_t*)0x20000360 = 0; *(uint32_t*)0x20000364 = 0; *(uint32_t*)0x20000368 = 0; *(uint32_t*)0x2000036c = 0; *(uint32_t*)0x20000370 = 0; *(uint32_t*)0x20000374 = 0; *(uint32_t*)0x20000378 = 0; *(uint32_t*)0x2000037c = 0; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 0; *(uint32_t*)0x20000388 = 0; *(uint32_t*)0x2000038c = 0; *(uint32_t*)0x20000390 = 0; *(uint32_t*)0x20000394 = 0; *(uint32_t*)0x20000398 = 0; *(uint32_t*)0x2000039c = 0; *(uint32_t*)0x200003a0 = 0; *(uint32_t*)0x200003a4 = 0; *(uint32_t*)0x200003a8 = 0; *(uint32_t*)0x200003ac = 0; *(uint32_t*)0x200003b0 = 0; *(uint32_t*)0x200003b4 = 0; *(uint32_t*)0x200003b8 = 0; *(uint32_t*)0x200003bc = 0; *(uint32_t*)0x200003c0 = 0; *(uint32_t*)0x200003c4 = 0; *(uint32_t*)0x200003c8 = 0; *(uint32_t*)0x200003cc = 0; *(uint32_t*)0x200003d0 = 0; *(uint32_t*)0x200003d4 = 0; *(uint32_t*)0x200003d8 = 0; *(uint32_t*)0x200003dc = 0; *(uint32_t*)0x200003e0 = 0; *(uint32_t*)0x200003e4 = 0; *(uint32_t*)0x200003e8 = 0; *(uint32_t*)0x200003ec = 0; *(uint32_t*)0x200003f0 = 0; *(uint32_t*)0x200003f4 = 0; *(uint32_t*)0x200003f8 = 0; *(uint32_t*)0x200003fc = 0; *(uint32_t*)0x20000400 = 0; *(uint32_t*)0x20000404 = 0; *(uint32_t*)0x20000408 = 0; *(uint32_t*)0x2000040c = 0; *(uint32_t*)0x20000410 = 0; *(uint32_t*)0x20000414 = 0; *(uint32_t*)0x20000418 = 0; *(uint32_t*)0x2000041c = 0; *(uint32_t*)0x20000420 = 0; *(uint32_t*)0x20000424 = 0; *(uint32_t*)0x20000428 = 0; *(uint32_t*)0x2000042c = 0; *(uint32_t*)0x20000430 = 0; *(uint32_t*)0x20000434 = 0; *(uint32_t*)0x20000438 = 0; *(uint32_t*)0x2000043c = 0; *(uint32_t*)0x20000440 = 0; *(uint32_t*)0x20000444 = 0; *(uint32_t*)0x20000448 = 0; *(uint32_t*)0x2000044c = 0; *(uint32_t*)0x20000450 = 0; *(uint32_t*)0x20000454 = 0; *(uint32_t*)0x20000458 = 0; *(uint32_t*)0x2000045c = 0; *(uint32_t*)0x20000460 = 0; *(uint32_t*)0x20000464 = 0; *(uint32_t*)0x20000468 = 0; *(uint32_t*)0x2000046c = 0; *(uint32_t*)0x20000470 = 0; *(uint32_t*)0x20000474 = 0; *(uint32_t*)0x20000478 = 0; *(uint32_t*)0x2000047c = 0; *(uint32_t*)0x20000480 = 0; *(uint32_t*)0x20000484 = 0; *(uint32_t*)0x20000488 = 0; *(uint32_t*)0x2000048c = 0; *(uint32_t*)0x20000490 = 0; *(uint32_t*)0x20000494 = 0; *(uint32_t*)0x20000498 = 0; *(uint32_t*)0x2000049c = 0; *(uint32_t*)0x200004a0 = 0; *(uint32_t*)0x200004a4 = 0; *(uint32_t*)0x200004a8 = 0; *(uint32_t*)0x200004ac = 0; *(uint32_t*)0x200004b0 = 0; *(uint32_t*)0x200004b4 = 0; *(uint32_t*)0x200004b8 = 0; *(uint32_t*)0x200004bc = 0; *(uint32_t*)0x200004c0 = 0; *(uint32_t*)0x200004c4 = 0; *(uint32_t*)0x200004c8 = 0; *(uint32_t*)0x200004cc = 0; *(uint32_t*)0x200004d0 = 0; *(uint32_t*)0x200004d4 = 0; *(uint32_t*)0x200004d8 = 0; *(uint32_t*)0x200004dc = 0; *(uint32_t*)0x200004e0 = 0; *(uint32_t*)0x200004e4 = 0; *(uint32_t*)0x200004e8 = 0; *(uint32_t*)0x200004ec = 0; *(uint32_t*)0x200004f0 = 0; *(uint32_t*)0x200004f4 = 0; *(uint32_t*)0x200004f8 = 0; *(uint32_t*)0x200004fc = 0; *(uint32_t*)0x20000500 = 0; *(uint32_t*)0x20000504 = 0; *(uint32_t*)0x20000508 = 0; *(uint32_t*)0x2000050c = 0; *(uint32_t*)0x20000510 = 0; *(uint32_t*)0x20000514 = 0; *(uint32_t*)0x20000518 = 0; *(uint32_t*)0x2000051c = 0; *(uint32_t*)0x20000520 = 0; *(uint32_t*)0x20000524 = 0; *(uint32_t*)0x20000528 = 0; *(uint32_t*)0x2000052c = 0; *(uint32_t*)0x20000530 = 0; *(uint32_t*)0x20000534 = 0; *(uint32_t*)0x20000538 = 0; *(uint32_t*)0x2000053c = 0; *(uint32_t*)0x20000540 = 0; *(uint32_t*)0x20000544 = 0; *(uint32_t*)0x20000548 = 0; *(uint32_t*)0x2000054c = 0; *(uint32_t*)0x20000550 = 0; *(uint32_t*)0x20000554 = 0; *(uint32_t*)0x20000558 = 0; *(uint32_t*)0x2000055c = 0; *(uint32_t*)0x20000560 = 0; *(uint32_t*)0x20000564 = 0; *(uint32_t*)0x20000568 = 0; *(uint32_t*)0x2000056c = 0; *(uint32_t*)0x20000570 = 0; *(uint32_t*)0x20000574 = 0; *(uint32_t*)0x20000578 = 0; *(uint32_t*)0x2000057c = 0; *(uint32_t*)0x20000580 = 0; *(uint32_t*)0x20000584 = 0; *(uint32_t*)0x20000588 = 0; *(uint32_t*)0x2000058c = 0; *(uint32_t*)0x20000590 = 0; *(uint32_t*)0x20000594 = 0; *(uint32_t*)0x20000598 = 0; *(uint32_t*)0x2000059c = 0; *(uint32_t*)0x200005a0 = 0; *(uint32_t*)0x200005a4 = 0; *(uint32_t*)0x200005a8 = 0; *(uint32_t*)0x200005ac = 0; *(uint32_t*)0x200005b0 = 0; *(uint32_t*)0x200005b4 = 0; *(uint32_t*)0x200005b8 = 0; *(uint32_t*)0x200005bc = 0; *(uint32_t*)0x200005c0 = 0; *(uint32_t*)0x200005c4 = 0; *(uint32_t*)0x200005c8 = 0; *(uint32_t*)0x200005cc = 0; *(uint32_t*)0x200005d0 = 0; *(uint32_t*)0x200005d4 = 0; *(uint32_t*)0x200005d8 = 0; *(uint32_t*)0x200005dc = 0; *(uint32_t*)0x200005e0 = 0; *(uint32_t*)0x200005e4 = 0; *(uint32_t*)0x200005e8 = 0; *(uint32_t*)0x200005ec = 0; *(uint32_t*)0x200005f0 = 0; *(uint32_t*)0x200005f4 = 0; *(uint32_t*)0x200005f8 = 0; *(uint32_t*)0x200005fc = 0; *(uint32_t*)0x20000600 = 0; *(uint32_t*)0x20000604 = 0; *(uint32_t*)0x20000608 = 0; *(uint32_t*)0x2000060c = 0; *(uint32_t*)0x20000610 = 0; *(uint32_t*)0x20000614 = 0; *(uint32_t*)0x20000618 = 0; *(uint32_t*)0x2000061c = 0; *(uint32_t*)0x20000620 = 0; *(uint32_t*)0x20000624 = 0; *(uint32_t*)0x20000628 = 0; *(uint32_t*)0x2000062c = 0; *(uint32_t*)0x20000630 = 0; *(uint32_t*)0x20000634 = 0; *(uint32_t*)0x20000638 = 0; *(uint32_t*)0x2000063c = 0; *(uint32_t*)0x20000640 = 0; *(uint32_t*)0x20000644 = 0; *(uint32_t*)0x20000648 = 0; *(uint32_t*)0x2000064c = 0; *(uint32_t*)0x20000650 = 0; *(uint32_t*)0x20000654 = 0; *(uint32_t*)0x20000658 = 0; *(uint32_t*)0x2000065c = 0; *(uint32_t*)0x20000660 = 0; *(uint32_t*)0x20000664 = 0; *(uint32_t*)0x20000668 = 0; *(uint32_t*)0x2000066c = 0; *(uint32_t*)0x20000670 = 0; *(uint32_t*)0x20000674 = 0; *(uint32_t*)0x20000678 = 0; *(uint32_t*)0x2000067c = 0; *(uint32_t*)0x20000680 = 0; *(uint32_t*)0x20000684 = 0; *(uint32_t*)0x20000688 = 0; *(uint32_t*)0x2000068c = 0; *(uint32_t*)0x20000690 = 0; *(uint32_t*)0x20000694 = 0; *(uint32_t*)0x20000698 = 0; *(uint32_t*)0x2000069c = 0; *(uint32_t*)0x200006a0 = 0; *(uint32_t*)0x200006a4 = 0; *(uint32_t*)0x200006a8 = 0; *(uint32_t*)0x200006ac = 0; *(uint32_t*)0x200006b0 = 0; *(uint32_t*)0x200006b4 = 0; *(uint32_t*)0x200006b8 = 0; *(uint32_t*)0x200006bc = 0; *(uint32_t*)0x200006c0 = 0; *(uint32_t*)0x200006c4 = 0; *(uint32_t*)0x200006c8 = 0; *(uint32_t*)0x200006cc = 0; *(uint32_t*)0x200006d0 = 0; *(uint32_t*)0x200006d4 = 0; *(uint32_t*)0x200006d8 = 0; *(uint32_t*)0x200006dc = 0; *(uint32_t*)0x200006e0 = 2; *(uint32_t*)0x200006e4 = 0x40; *(uint32_t*)0x200006e8 = 0; *(uint32_t*)0x200006ec = 0; *(uint32_t*)0x200006f0 = 0; *(uint32_t*)0x200006f4 = 0; *(uint32_t*)0x200006f8 = 0; *(uint32_t*)0x200006fc = 0; *(uint32_t*)0x20000700 = 0; *(uint32_t*)0x20000704 = 0; *(uint32_t*)0x20000708 = 0; *(uint32_t*)0x2000070c = 0; *(uint32_t*)0x20000710 = 0; *(uint32_t*)0x20000714 = 0; *(uint32_t*)0x20000718 = 0; *(uint32_t*)0x2000071c = 0; *(uint32_t*)0x20000720 = 0; *(uint32_t*)0x20000724 = 0; *(uint32_t*)0x20000728 = 0; *(uint32_t*)0x2000072c = 0; *(uint32_t*)0x20000730 = 0; *(uint32_t*)0x20000734 = 0; *(uint32_t*)0x20000738 = 0; *(uint32_t*)0x2000073c = 0; *(uint32_t*)0x20000740 = 0; *(uint32_t*)0x20000744 = 0; *(uint32_t*)0x20000748 = 0; *(uint32_t*)0x2000074c = 0; *(uint32_t*)0x20000750 = 0; *(uint32_t*)0x20000754 = 0; *(uint32_t*)0x20000758 = 0; *(uint32_t*)0x2000075c = 0; *(uint32_t*)0x20000760 = 0; *(uint32_t*)0x20000764 = 0; *(uint32_t*)0x20000768 = 0; *(uint32_t*)0x2000076c = 0; *(uint32_t*)0x20000770 = 0; *(uint32_t*)0x20000774 = 0; *(uint32_t*)0x20000778 = 0; *(uint32_t*)0x2000077c = 0; *(uint32_t*)0x20000780 = 0; *(uint32_t*)0x20000784 = 0; *(uint32_t*)0x20000788 = 0; *(uint32_t*)0x2000078c = 0; *(uint32_t*)0x20000790 = 0; *(uint32_t*)0x20000794 = 0; *(uint32_t*)0x20000798 = 0; *(uint32_t*)0x2000079c = 0; *(uint32_t*)0x200007a0 = 0; *(uint32_t*)0x200007a4 = 0; *(uint32_t*)0x200007a8 = 0; *(uint32_t*)0x200007ac = 0; *(uint32_t*)0x200007b0 = 0; *(uint32_t*)0x200007b4 = 0; *(uint32_t*)0x200007b8 = 0; *(uint32_t*)0x200007bc = 0; *(uint32_t*)0x200007c0 = 0; *(uint32_t*)0x200007c4 = 0; *(uint32_t*)0x200007c8 = 0; *(uint32_t*)0x200007cc = 0; *(uint32_t*)0x200007d0 = 0; *(uint32_t*)0x200007d4 = 0; *(uint32_t*)0x200007d8 = 0; *(uint32_t*)0x200007dc = 0; *(uint32_t*)0x200007e0 = 0; *(uint32_t*)0x200007e4 = 0; *(uint32_t*)0x200007e8 = 0; *(uint32_t*)0x200007ec = 0; *(uint32_t*)0x200007f0 = 0; *(uint32_t*)0x200007f4 = 0; *(uint32_t*)0x200007f8 = 0; *(uint32_t*)0x200007fc = 0; *(uint32_t*)0x20000800 = 0; *(uint32_t*)0x20000804 = 0; *(uint32_t*)0x20000808 = 0; *(uint32_t*)0x2000080c = 0; *(uint32_t*)0x20000810 = 0; *(uint32_t*)0x20000814 = 0; *(uint32_t*)0x20000818 = 0; *(uint32_t*)0x2000081c = 0; *(uint32_t*)0x20000820 = 0; *(uint32_t*)0x20000824 = 0; *(uint32_t*)0x20000828 = 0; *(uint32_t*)0x2000082c = 0; *(uint32_t*)0x20000830 = 0; *(uint32_t*)0x20000834 = 0; *(uint32_t*)0x20000838 = 0; *(uint32_t*)0x2000083c = 0; *(uint32_t*)0x20000840 = 0; *(uint32_t*)0x20000844 = 0; *(uint32_t*)0x20000848 = 0; *(uint32_t*)0x2000084c = 0; *(uint32_t*)0x20000850 = 0; *(uint32_t*)0x20000854 = 0; *(uint32_t*)0x20000858 = 0; *(uint32_t*)0x2000085c = 0; *(uint32_t*)0x20000860 = 0; *(uint32_t*)0x20000864 = 0; *(uint32_t*)0x20000868 = 0; *(uint32_t*)0x2000086c = 0; *(uint32_t*)0x20000870 = 0; *(uint32_t*)0x20000874 = 0; *(uint32_t*)0x20000878 = 0; *(uint32_t*)0x2000087c = 0; *(uint32_t*)0x20000880 = 0; *(uint32_t*)0x20000884 = 0; *(uint32_t*)0x20000888 = 0; *(uint32_t*)0x2000088c = 0; *(uint32_t*)0x20000890 = 0; *(uint32_t*)0x20000894 = 0; *(uint32_t*)0x20000898 = 0; *(uint32_t*)0x2000089c = 0; *(uint32_t*)0x200008a0 = 0; *(uint32_t*)0x200008a4 = 0; *(uint32_t*)0x200008a8 = 0; *(uint32_t*)0x200008ac = 0; *(uint32_t*)0x200008b0 = 0; *(uint32_t*)0x200008b4 = 0; *(uint32_t*)0x200008b8 = 0; *(uint32_t*)0x200008bc = 0; *(uint32_t*)0x200008c0 = 0; *(uint32_t*)0x200008c4 = 0; *(uint32_t*)0x200008c8 = 0; *(uint32_t*)0x200008cc = 0; *(uint32_t*)0x200008d0 = 0; *(uint32_t*)0x200008d4 = 0; *(uint32_t*)0x200008d8 = 0; *(uint32_t*)0x200008dc = 0; *(uint32_t*)0x200008e0 = 0; *(uint32_t*)0x200008e4 = 0; *(uint32_t*)0x200008e8 = 0; *(uint32_t*)0x200008ec = 0; *(uint32_t*)0x200008f0 = 0; *(uint32_t*)0x200008f4 = 0; *(uint32_t*)0x200008f8 = 0; *(uint32_t*)0x200008fc = 0; *(uint32_t*)0x20000900 = 0; *(uint32_t*)0x20000904 = 0; *(uint32_t*)0x20000908 = 0; *(uint32_t*)0x2000090c = 0; *(uint32_t*)0x20000910 = 0; *(uint32_t*)0x20000914 = 0; *(uint32_t*)0x20000918 = 0; *(uint32_t*)0x2000091c = 0; *(uint32_t*)0x20000920 = 0; *(uint32_t*)0x20000924 = 0; *(uint32_t*)0x20000928 = 0; *(uint32_t*)0x2000092c = 0; *(uint32_t*)0x20000930 = 0; *(uint32_t*)0x20000934 = 0; *(uint32_t*)0x20000938 = 0; *(uint32_t*)0x2000093c = 0; *(uint32_t*)0x20000940 = 0; *(uint32_t*)0x20000944 = 0; *(uint32_t*)0x20000948 = 0; *(uint32_t*)0x2000094c = 0; *(uint32_t*)0x20000950 = 0; *(uint32_t*)0x20000954 = 0; *(uint32_t*)0x20000958 = 0; *(uint32_t*)0x2000095c = 0; *(uint32_t*)0x20000960 = 0; *(uint32_t*)0x20000964 = 0; *(uint32_t*)0x20000968 = 0; *(uint32_t*)0x2000096c = 0; *(uint32_t*)0x20000970 = 0; *(uint32_t*)0x20000974 = 0; *(uint32_t*)0x20000978 = 0; *(uint32_t*)0x2000097c = 0; *(uint32_t*)0x20000980 = 0; *(uint32_t*)0x20000984 = 0; *(uint32_t*)0x20000988 = 0; *(uint32_t*)0x2000098c = 0; *(uint32_t*)0x20000990 = 0; *(uint32_t*)0x20000994 = 0; *(uint32_t*)0x20000998 = 0; *(uint32_t*)0x2000099c = 0; *(uint32_t*)0x200009a0 = 0; *(uint32_t*)0x200009a4 = 0; *(uint32_t*)0x200009a8 = 0; *(uint32_t*)0x200009ac = 0; *(uint32_t*)0x200009b0 = 0; *(uint32_t*)0x200009b4 = 0; *(uint32_t*)0x200009b8 = 0; *(uint32_t*)0x200009bc = 0; *(uint32_t*)0x200009c0 = 0; *(uint32_t*)0x200009c4 = 0; *(uint32_t*)0x200009c8 = 0; *(uint32_t*)0x200009cc = 0; *(uint32_t*)0x200009d0 = 0; *(uint32_t*)0x200009d4 = 0; *(uint32_t*)0x200009d8 = 0; *(uint32_t*)0x200009dc = 0; *(uint32_t*)0x200009e0 = 0; *(uint32_t*)0x200009e4 = 0; *(uint32_t*)0x200009e8 = 0; *(uint32_t*)0x200009ec = 0; *(uint32_t*)0x200009f0 = 0; *(uint32_t*)0x200009f4 = 0; *(uint32_t*)0x200009f8 = 0; *(uint32_t*)0x200009fc = 0; *(uint32_t*)0x20000a00 = 0; *(uint32_t*)0x20000a04 = 0; *(uint32_t*)0x20000a08 = 0; *(uint32_t*)0x20000a0c = 0; *(uint32_t*)0x20000a10 = 0; *(uint32_t*)0x20000a14 = 0; *(uint32_t*)0x20000a18 = 0; *(uint32_t*)0x20000a1c = 0; *(uint32_t*)0x20000a20 = 0; *(uint32_t*)0x20000a24 = 0; *(uint32_t*)0x20000a28 = 0; *(uint32_t*)0x20000a2c = 0; *(uint32_t*)0x20000a30 = 0; *(uint32_t*)0x20000a34 = 0; *(uint32_t*)0x20000a38 = 0; *(uint32_t*)0x20000a3c = 0; *(uint32_t*)0x20000a40 = 0; *(uint32_t*)0x20000a44 = 0; *(uint32_t*)0x20000a48 = 0; *(uint32_t*)0x20000a4c = 0; *(uint32_t*)0x20000a50 = 0; *(uint32_t*)0x20000a54 = 0; *(uint32_t*)0x20000a58 = 0; *(uint32_t*)0x20000a5c = 0; *(uint32_t*)0x20000a60 = 0; *(uint32_t*)0x20000a64 = 0; *(uint32_t*)0x20000a68 = 0; *(uint32_t*)0x20000a6c = 0; *(uint32_t*)0x20000a70 = 0; *(uint32_t*)0x20000a74 = 0; *(uint32_t*)0x20000a78 = 0; *(uint32_t*)0x20000a7c = 0; *(uint32_t*)0x20000a80 = 0; *(uint32_t*)0x20000a84 = 0; *(uint32_t*)0x20000a88 = 0; *(uint32_t*)0x20000a8c = 0; *(uint32_t*)0x20000a90 = 0; *(uint32_t*)0x20000a94 = 0; *(uint32_t*)0x20000a98 = 0; *(uint32_t*)0x20000a9c = 0; *(uint32_t*)0x20000aa0 = 0; *(uint32_t*)0x20000aa4 = 0; *(uint32_t*)0x20000aa8 = 0; *(uint32_t*)0x20000aac = 0; *(uint32_t*)0x20000ab0 = 0; *(uint32_t*)0x20000ab4 = 0; *(uint32_t*)0x20000ab8 = 0; *(uint32_t*)0x20000abc = 0; *(uint32_t*)0x20000ac0 = 0; *(uint32_t*)0x20000ac4 = 0; *(uint32_t*)0x20000ac8 = 0; *(uint32_t*)0x20000acc = 0; *(uint32_t*)0x20000ad0 = 0; *(uint32_t*)0x20000ad4 = 0; *(uint32_t*)0x20000ad8 = 0; *(uint32_t*)0x20000adc = 0; *(uint32_t*)0x20000ae0 = 0; *(uint32_t*)0x20000ae4 = 0; *(uint32_t*)0x20000ae8 = 0; *(uint32_t*)0x20000aec = 0; *(uint32_t*)0x20000af0 = 0; *(uint32_t*)0x20000af4 = 0; *(uint32_t*)0x20000af8 = 0; *(uint32_t*)0x20000afc = 0; *(uint32_t*)0x20000b00 = 0; *(uint32_t*)0x20000b04 = 0; *(uint32_t*)0x20000b08 = 0; *(uint32_t*)0x20000b0c = 0; *(uint32_t*)0x20000b10 = 0; *(uint32_t*)0x20000b14 = 0; *(uint32_t*)0x20000b18 = 0; *(uint32_t*)0x20000b1c = 0; *(uint32_t*)0x20000b20 = 0; *(uint32_t*)0x20000b24 = 0; *(uint32_t*)0x20000b28 = 0; *(uint32_t*)0x20000b2c = 0; *(uint32_t*)0x20000b30 = 0; *(uint32_t*)0x20000b34 = 0; *(uint32_t*)0x20000b38 = 0; *(uint32_t*)0x20000b3c = 0; *(uint32_t*)0x20000b40 = 0; *(uint32_t*)0x20000b44 = 0; *(uint32_t*)0x20000b48 = 0; *(uint32_t*)0x20000b4c = 0; *(uint32_t*)0x20000b50 = 0; *(uint32_t*)0x20000b54 = 0; *(uint32_t*)0x20000b58 = 0; *(uint32_t*)0x20000b5c = 0; *(uint32_t*)0x20000b60 = 0; *(uint32_t*)0x20000b64 = 0; *(uint32_t*)0x20000b68 = 0; *(uint32_t*)0x20000b6c = 0; *(uint32_t*)0x20000b70 = 0; *(uint32_t*)0x20000b74 = 0; *(uint32_t*)0x20000b78 = 0; *(uint32_t*)0x20000b7c = 0; *(uint32_t*)0x20000b80 = 0; *(uint32_t*)0x20000b84 = 0; *(uint32_t*)0x20000b88 = 0; *(uint32_t*)0x20000b8c = 0; *(uint32_t*)0x20000b90 = 0; *(uint32_t*)0x20000b94 = 0; *(uint32_t*)0x20000b98 = 0; *(uint32_t*)0x20000b9c = 0; *(uint32_t*)0x20000ba0 = 0; *(uint32_t*)0x20000ba4 = 0; *(uint32_t*)0x20000ba8 = 0; *(uint32_t*)0x20000bac = 0; *(uint32_t*)0x20000bb0 = 0; *(uint32_t*)0x20000bb4 = 0; *(uint32_t*)0x20000bb8 = 0; *(uint32_t*)0x20000bbc = 0; *(uint32_t*)0x20000bc0 = 0; *(uint32_t*)0x20000bc4 = 0; *(uint32_t*)0x20000bc8 = 0; *(uint32_t*)0x20000bcc = 0; *(uint32_t*)0x20000bd0 = 0; *(uint32_t*)0x20000bd4 = 0; *(uint32_t*)0x20000bd8 = 0; *(uint32_t*)0x20000bdc = 0; *(uint32_t*)0x20000be0 = 0; *(uint32_t*)0x20000be4 = 0; *(uint32_t*)0x20000be8 = 0; *(uint32_t*)0x20000bec = 0; *(uint32_t*)0x20000bf0 = 0; *(uint32_t*)0x20000bf4 = 0; *(uint32_t*)0x20000bf8 = 0; *(uint32_t*)0x20000bfc = 0; *(uint32_t*)0x20000c00 = 0; *(uint32_t*)0x20000c04 = 0; *(uint32_t*)0x20000c08 = 0; *(uint32_t*)0x20000c0c = 0; *(uint32_t*)0x20000c10 = 0; *(uint32_t*)0x20000c14 = 0; *(uint32_t*)0x20000c18 = 0; *(uint32_t*)0x20000c1c = 0; *(uint32_t*)0x20000c20 = 0; *(uint32_t*)0x20000c24 = 0; *(uint32_t*)0x20000c28 = 0; *(uint32_t*)0x20000c2c = 0; *(uint32_t*)0x20000c30 = 0; *(uint32_t*)0x20000c34 = 0; *(uint32_t*)0x20000c38 = 0; *(uint32_t*)0x20000c3c = 0; *(uint32_t*)0x20000c40 = 0; *(uint32_t*)0x20000c44 = 0; *(uint32_t*)0x20000c48 = 0; *(uint32_t*)0x20000c4c = 0; *(uint32_t*)0x20000c50 = 0; *(uint32_t*)0x20000c54 = 0; *(uint32_t*)0x20000c58 = 0; *(uint32_t*)0x20000c5c = 0; *(uint32_t*)0x20000c60 = 0; *(uint32_t*)0x20000c64 = 0; *(uint32_t*)0x20000c68 = 0; *(uint32_t*)0x20000c6c = 0; *(uint32_t*)0x20000c70 = 0; *(uint32_t*)0x20000c74 = 0; *(uint32_t*)0x20000c78 = 0; *(uint32_t*)0x20000c7c = 0; *(uint32_t*)0x20000c80 = 0; *(uint32_t*)0x20000c84 = 0; *(uint32_t*)0x20000c88 = 0; *(uint32_t*)0x20000c8c = 0; *(uint32_t*)0x20000c90 = 0; *(uint32_t*)0x20000c94 = 0; *(uint32_t*)0x20000c98 = 0; *(uint32_t*)0x20000c9c = 0; *(uint32_t*)0x20000ca0 = 0; *(uint32_t*)0x20000ca4 = 0; *(uint32_t*)0x20000ca8 = 0; *(uint32_t*)0x20000cac = 0; *(uint32_t*)0x20000cb0 = 0; *(uint32_t*)0x20000cb4 = 0; *(uint32_t*)0x20000cb8 = 0; *(uint32_t*)0x20000cbc = 0; *(uint32_t*)0x20000cc0 = 0; *(uint32_t*)0x20000cc4 = 0; *(uint32_t*)0x20000cc8 = 0; *(uint32_t*)0x20000ccc = 0; *(uint32_t*)0x20000cd0 = 0; *(uint32_t*)0x20000cd4 = 0; *(uint32_t*)0x20000cd8 = 0; *(uint32_t*)0x20000cdc = 0; *(uint32_t*)0x20000ce0 = 0; *(uint32_t*)0x20000ce4 = 0; *(uint32_t*)0x20000ce8 = 0; *(uint32_t*)0x20000cec = 0; *(uint32_t*)0x20000cf0 = 0; *(uint32_t*)0x20000cf4 = 0; *(uint32_t*)0x20000cf8 = 0; *(uint32_t*)0x20000cfc = 0; *(uint32_t*)0x20000d00 = 0; *(uint32_t*)0x20000d04 = 0; *(uint32_t*)0x20000d08 = 0; *(uint32_t*)0x20000d0c = 0; *(uint32_t*)0x20000d10 = 0; *(uint32_t*)0x20000d14 = 0; *(uint32_t*)0x20000d18 = 0; *(uint32_t*)0x20000d1c = 0; *(uint32_t*)0x20000d20 = 0; *(uint32_t*)0x20000d24 = 0; *(uint32_t*)0x20000d28 = 0; *(uint32_t*)0x20000d2c = 0; *(uint32_t*)0x20000d30 = 0; *(uint32_t*)0x20000d34 = 0; *(uint32_t*)0x20000d38 = 0; *(uint32_t*)0x20000d3c = 0; *(uint32_t*)0x20000d40 = 0; *(uint32_t*)0x20000d44 = 0; *(uint32_t*)0x20000d48 = 0; *(uint32_t*)0x20000d4c = 0; *(uint32_t*)0x20000d50 = 0; *(uint32_t*)0x20000d54 = 0; *(uint32_t*)0x20000d58 = 0; *(uint32_t*)0x20000d5c = 0; *(uint32_t*)0x20000d60 = 0; *(uint32_t*)0x20000d64 = 0; *(uint32_t*)0x20000d68 = 0; *(uint32_t*)0x20000d6c = 0; *(uint32_t*)0x20000d70 = 0; *(uint32_t*)0x20000d74 = 0; *(uint32_t*)0x20000d78 = 0; *(uint32_t*)0x20000d7c = 0; *(uint32_t*)0x20000d80 = 0; *(uint32_t*)0x20000d84 = 0; *(uint32_t*)0x20000d88 = 0; *(uint32_t*)0x20000d8c = 0; *(uint32_t*)0x20000d90 = 0; *(uint32_t*)0x20000d94 = 0; *(uint32_t*)0x20000d98 = 0; *(uint32_t*)0x20000d9c = 0; *(uint32_t*)0x20000da0 = 0; *(uint32_t*)0x20000da4 = 0; *(uint32_t*)0x20000da8 = 0; *(uint32_t*)0x20000dac = 0; *(uint32_t*)0x20000db0 = 0; *(uint32_t*)0x20000db4 = 0; *(uint32_t*)0x20000db8 = 0; *(uint32_t*)0x20000dbc = 0; *(uint32_t*)0x20000dc0 = 0; *(uint32_t*)0x20000dc4 = 0; *(uint32_t*)0x20000dc8 = 0; *(uint32_t*)0x20000dcc = 0; *(uint32_t*)0x20000dd0 = 0; *(uint32_t*)0x20000dd4 = 0; *(uint32_t*)0x20000dd8 = 0; *(uint32_t*)0x20000ddc = 0; *(uint32_t*)0x20000de0 = 0; *(uint32_t*)0x20000de4 = 0; *(uint32_t*)0x20000de8 = 0; *(uint32_t*)0x20000dec = 0; *(uint32_t*)0x20000df0 = 0; *(uint32_t*)0x20000df4 = 0; *(uint32_t*)0x20000df8 = 0; *(uint32_t*)0x20000dfc = 0; *(uint32_t*)0x20000e00 = 0; *(uint32_t*)0x20000e04 = 0; *(uint32_t*)0x20000e08 = 0; *(uint32_t*)0x20000e0c = 0; *(uint32_t*)0x20000e10 = 0; *(uint32_t*)0x20000e14 = 0; *(uint32_t*)0x20000e18 = 0; *(uint32_t*)0x20000e1c = 0; *(uint32_t*)0x20000e20 = 0; *(uint32_t*)0x20000e24 = 0; *(uint32_t*)0x20000e28 = 0; *(uint32_t*)0x20000e2c = 0; *(uint32_t*)0x20000e30 = 0; *(uint32_t*)0x20000e34 = 0; *(uint32_t*)0x20000e38 = 0; *(uint32_t*)0x20000e3c = 0; *(uint32_t*)0x20000e40 = 0; *(uint32_t*)0x20000e44 = 0; *(uint32_t*)0x20000e48 = 0; *(uint32_t*)0x20000e4c = 0; *(uint32_t*)0x20000e50 = 0; *(uint32_t*)0x20000e54 = 0; *(uint32_t*)0x20000e58 = 0; *(uint32_t*)0x20000e5c = 0; *(uint32_t*)0x20000e60 = 0; *(uint32_t*)0x20000e64 = 0; *(uint32_t*)0x20000e68 = 0; *(uint32_t*)0x20000e6c = 0; *(uint32_t*)0x20000e70 = 0; *(uint32_t*)0x20000e74 = 0; *(uint32_t*)0x20000e78 = 0; *(uint32_t*)0x20000e7c = 0; *(uint32_t*)0x20000e80 = 0; *(uint32_t*)0x20000e84 = 0; *(uint32_t*)0x20000e88 = 0; *(uint32_t*)0x20000e8c = 0; *(uint32_t*)0x20000e90 = 0; *(uint32_t*)0x20000e94 = 0; *(uint32_t*)0x20000e98 = 0; *(uint32_t*)0x20000e9c = 0; *(uint32_t*)0x20000ea0 = 0; *(uint32_t*)0x20000ea4 = 0; *(uint32_t*)0x20000ea8 = 0; *(uint32_t*)0x20000eac = 0; *(uint32_t*)0x20000eb0 = 0; *(uint32_t*)0x20000eb4 = 0; *(uint32_t*)0x20000eb8 = 0; *(uint32_t*)0x20000ebc = 0; *(uint32_t*)0x20000ec0 = 0; *(uint32_t*)0x20000ec4 = 0; *(uint32_t*)0x20000ec8 = 0; *(uint32_t*)0x20000ecc = 0; *(uint32_t*)0x20000ed0 = 0; *(uint32_t*)0x20000ed4 = 0; *(uint32_t*)0x20000ed8 = 0; *(uint32_t*)0x20000edc = 0; *(uint32_t*)0x20000ee0 = 0; *(uint32_t*)0x20000ee4 = 0; *(uint32_t*)0x20000ee8 = 0; *(uint32_t*)0x20000eec = 0; *(uint32_t*)0x20000ef0 = 0; *(uint32_t*)0x20000ef4 = 0; *(uint32_t*)0x20000ef8 = 0; *(uint32_t*)0x20000efc = 0; *(uint32_t*)0x20000f00 = 0; *(uint32_t*)0x20000f04 = 0; *(uint32_t*)0x20000f08 = 0; *(uint32_t*)0x20000f0c = 0; *(uint32_t*)0x20000f10 = 0; *(uint32_t*)0x20000f14 = 0; *(uint32_t*)0x20000f18 = 0; *(uint32_t*)0x20000f1c = 0; *(uint32_t*)0x20000f20 = 0; *(uint32_t*)0x20000f24 = 0; *(uint32_t*)0x20000f28 = 0; *(uint32_t*)0x20000f2c = 0; *(uint32_t*)0x20000f30 = 0; *(uint32_t*)0x20000f34 = 0; *(uint32_t*)0x20000f38 = 0; *(uint32_t*)0x20000f3c = 0; *(uint32_t*)0x20000f40 = 0; *(uint32_t*)0x20000f44 = 0; *(uint32_t*)0x20000f48 = 0; *(uint32_t*)0x20000f4c = 0; *(uint32_t*)0x20000f50 = 0; *(uint32_t*)0x20000f54 = 0; *(uint32_t*)0x20000f58 = 0; *(uint32_t*)0x20000f5c = 0; *(uint32_t*)0x20000f60 = 0; *(uint32_t*)0x20000f64 = 0; *(uint32_t*)0x20000f68 = 0; *(uint32_t*)0x20000f6c = 0; *(uint32_t*)0x20000f70 = 0; *(uint32_t*)0x20000f74 = 0; *(uint32_t*)0x20000f78 = 0; *(uint32_t*)0x20000f7c = 0; *(uint32_t*)0x20000f80 = 0; *(uint32_t*)0x20000f84 = 0; *(uint32_t*)0x20000f88 = 0; *(uint32_t*)0x20000f8c = 0; *(uint32_t*)0x20000f90 = 0; *(uint32_t*)0x20000f94 = 0; *(uint32_t*)0x20000f98 = 0; *(uint32_t*)0x20000f9c = 0; *(uint32_t*)0x20000fa0 = 0; *(uint32_t*)0x20000fa4 = 0; *(uint32_t*)0x20000fa8 = 0; *(uint32_t*)0x20000fac = 0; *(uint32_t*)0x20000fb0 = 0; *(uint32_t*)0x20000fb4 = 0; *(uint32_t*)0x20000fb8 = 0; *(uint32_t*)0x20000fbc = 0; *(uint32_t*)0x20000fc0 = 0; *(uint32_t*)0x20000fc4 = 0; *(uint32_t*)0x20000fc8 = 0; *(uint32_t*)0x20000fcc = 0; *(uint32_t*)0x20000fd0 = 0; *(uint32_t*)0x20000fd4 = 0; *(uint32_t*)0x20000fd8 = 0; *(uint32_t*)0x20000fdc = 0; *(uint32_t*)0x20000fe0 = 0; *(uint32_t*)0x20000fe4 = 0; *(uint32_t*)0x20000fe8 = 0; *(uint32_t*)0x20000fec = 0; *(uint32_t*)0x20000ff0 = 0; *(uint32_t*)0x20000ff4 = 0; *(uint32_t*)0x20000ff8 = 0; *(uint32_t*)0x20000ffc = 0; *(uint32_t*)0x20001000 = 0; *(uint32_t*)0x20001004 = 0; *(uint32_t*)0x20001008 = 0; *(uint32_t*)0x2000100c = 0; *(uint32_t*)0x20001010 = 0; *(uint32_t*)0x20001014 = 0; *(uint32_t*)0x20001018 = 0; *(uint32_t*)0x2000101c = 0; *(uint32_t*)0x20001020 = 0; *(uint32_t*)0x20001024 = 0; *(uint32_t*)0x20001028 = 0; *(uint32_t*)0x2000102c = 0; *(uint32_t*)0x20001030 = 0; *(uint32_t*)0x20001034 = 0; *(uint32_t*)0x20001038 = 0; *(uint32_t*)0x2000103c = 0; *(uint32_t*)0x20001040 = 0; *(uint32_t*)0x20001044 = 0; *(uint32_t*)0x20001048 = 0; *(uint32_t*)0x2000104c = 0; *(uint32_t*)0x20001050 = 0; *(uint32_t*)0x20001054 = 0; *(uint32_t*)0x20001058 = 0; *(uint32_t*)0x2000105c = 0; *(uint32_t*)0x20001060 = 0; *(uint32_t*)0x20001064 = 0; *(uint32_t*)0x20001068 = 0; *(uint32_t*)0x2000106c = 0; *(uint32_t*)0x20001070 = 0; *(uint32_t*)0x20001074 = 0; *(uint32_t*)0x20001078 = 0; *(uint32_t*)0x2000107c = 0; *(uint32_t*)0x20001080 = 0; *(uint32_t*)0x20001084 = 0; *(uint32_t*)0x20001088 = 0; *(uint32_t*)0x2000108c = 0; *(uint32_t*)0x20001090 = 0; *(uint32_t*)0x20001094 = 0; *(uint32_t*)0x20001098 = 0; *(uint32_t*)0x2000109c = 0; *(uint32_t*)0x200010a0 = 0; *(uint32_t*)0x200010a4 = 0; *(uint32_t*)0x200010a8 = 0; *(uint32_t*)0x200010ac = 0; *(uint32_t*)0x200010b0 = 0; *(uint32_t*)0x200010b4 = 0; *(uint32_t*)0x200010b8 = 0; *(uint32_t*)0x200010bc = 0; *(uint32_t*)0x200010c0 = 0; *(uint32_t*)0x200010c4 = 0; *(uint32_t*)0x200010c8 = 0; *(uint32_t*)0x200010cc = 0; *(uint32_t*)0x200010d0 = 0; *(uint32_t*)0x200010d4 = 0; *(uint32_t*)0x200010d8 = 0; *(uint32_t*)0x200010dc = 0; *(uint32_t*)0x200010e0 = 0; *(uint32_t*)0x200010e4 = 0; *(uint32_t*)0x200010e8 = 0; *(uint32_t*)0x200010ec = 0; *(uint32_t*)0x200010f0 = 0; *(uint32_t*)0x200010f4 = 0; *(uint32_t*)0x200010f8 = 0; *(uint32_t*)0x200010fc = 0; *(uint32_t*)0x20001100 = 0; *(uint32_t*)0x20001104 = 0; *(uint32_t*)0x20001108 = 0; *(uint32_t*)0x2000110c = 0; *(uint32_t*)0x20001110 = 0; *(uint32_t*)0x20001114 = 0; *(uint32_t*)0x20001118 = 0; *(uint32_t*)0x2000111c = 0; *(uint32_t*)0x20001120 = 0; *(uint32_t*)0x20001124 = 0; *(uint32_t*)0x20001128 = 0; *(uint32_t*)0x2000112c = 0; *(uint32_t*)0x20001130 = 0; *(uint32_t*)0x20001134 = 0; *(uint32_t*)0x20001138 = 0; *(uint32_t*)0x2000113c = 0; *(uint32_t*)0x20001140 = 0; *(uint32_t*)0x20001144 = 0; *(uint32_t*)0x20001148 = 0; *(uint32_t*)0x2000114c = 0; *(uint32_t*)0x20001150 = 0; *(uint32_t*)0x20001154 = 0; *(uint32_t*)0x20001158 = 0; *(uint32_t*)0x2000115c = 0; *(uint32_t*)0x20001160 = 0; *(uint32_t*)0x20001164 = 0; *(uint32_t*)0x20001168 = 0; *(uint32_t*)0x2000116c = 0; *(uint32_t*)0x20001170 = 0; *(uint32_t*)0x20001174 = 0; *(uint32_t*)0x20001178 = 0; *(uint32_t*)0x2000117c = 0; *(uint32_t*)0x20001180 = 0; *(uint32_t*)0x20001184 = 0; *(uint32_t*)0x20001188 = 0; *(uint32_t*)0x2000118c = 0; *(uint32_t*)0x20001190 = 0; *(uint32_t*)0x20001194 = 0; *(uint32_t*)0x20001198 = 0; *(uint32_t*)0x2000119c = 0; *(uint32_t*)0x200011a0 = 0; *(uint32_t*)0x200011a4 = 0; *(uint32_t*)0x200011a8 = 0; *(uint32_t*)0x200011ac = 0; *(uint32_t*)0x200011b0 = 0; *(uint32_t*)0x200011b4 = 0; *(uint32_t*)0x200011b8 = 0; *(uint32_t*)0x200011bc = 0; *(uint32_t*)0x200011c0 = 0; *(uint32_t*)0x200011c4 = 0; *(uint32_t*)0x200011c8 = 0; *(uint32_t*)0x200011cc = 0; *(uint32_t*)0x200011d0 = 0; *(uint32_t*)0x200011d4 = 0; *(uint32_t*)0x200011d8 = 0; *(uint32_t*)0x200011dc = 0; *(uint32_t*)0x200011e0 = 0; *(uint32_t*)0x200011e4 = 0; *(uint32_t*)0x200011e8 = 0; *(uint32_t*)0x200011ec = 0; *(uint32_t*)0x200011f0 = 0; *(uint32_t*)0x200011f4 = 0; *(uint32_t*)0x200011f8 = 0; *(uint32_t*)0x200011fc = 0; *(uint32_t*)0x20001200 = 0; *(uint32_t*)0x20001204 = 0; *(uint32_t*)0x20001208 = 0; *(uint32_t*)0x2000120c = 0; *(uint32_t*)0x20001210 = 0; *(uint32_t*)0x20001214 = 0; *(uint32_t*)0x20001218 = 0; syscall(__NR_ioctl, -1, 0xd01c4813, 0x20000200ul); memcpy((void*)0x20000100, "\x12\x01\x00\x00\x8f\x9a\xb0\x40\x09\x00\x00\x00\x00\x01\x01\x02\x03" "\x01\x09\x02\xba\x03\x01\x00\x00\x00\x00\x09\x04\x7b\x00\x0f\x5c\x87" "\x9b\x7f\xff\xff\xff\xff\xff\xff\xff\x08\x60\x09\x05\x00\x00\x10\x08" "\x01\x81\x03\x21\x05\x0a\x10\x08\x00\x08\x1c\x01\x09\x05", 65); syz_usb_connect(0, 0x3cc, 0x20000100, 0); memcpy((void*)0x20001140, "/dev/input/event#\000", 18); res = -1; res = syz_open_dev(0x20001140, 3, 0); if (res != -1) r[1] = res; syscall(__NR_ioctl, r[1], 0x5452, 0x20000140ul); memcpy((void*)0x20001140, "/dev/input/event#\000", 18); res = -1; res = syz_open_dev(0x20001140, 3, 0x949301); if (res != -1) r[2] = res; memset((void*)0x20000040, 226, 1); syscall(__NR_write, r[2], 0x20000040ul, 0x35000ul); return 0; }