// https://syzkaller.appspot.com/bug?id=d5793839fb43edad7abb5ca9b6ee902453026ae7 // 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 static unsigned long long procid; 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; } #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)))) static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } #define MAX_FDS 30 #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 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; } 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; } 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, struct usb_qualifier_descriptor* qual, 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) { 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_data = (char*)qual; *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; } struct vusb_descriptor { uint8_t req_type; uint8_t desc_type; uint32_t len; char data[0]; } __attribute__((packed)); struct vusb_descriptors { uint32_t len; struct vusb_descriptor* generic; struct vusb_descriptor* descs[0]; } __attribute__((packed)); struct vusb_response { uint8_t type; uint8_t req; uint32_t len; char data[0]; } __attribute__((packed)); struct vusb_responses { uint32_t len; struct vusb_response* generic; struct vusb_response* resps[0]; } __attribute__((packed)); static bool lookup_control_response(const struct vusb_descriptors* descs, const struct vusb_responses* resps, struct usb_ctrlrequest* ctrl, char** response_data, uint32_t* response_length) { int descs_num = 0; int resps_num = 0; if (descs) descs_num = (descs->len - offsetof(struct vusb_descriptors, descs)) / sizeof(descs->descs[0]); if (resps) resps_num = (resps->len - offsetof(struct vusb_responses, resps)) / sizeof(resps->resps[0]); uint8_t req = ctrl->bRequest; uint8_t req_type = ctrl->bRequestType & USB_TYPE_MASK; uint8_t desc_type = ctrl->wValue >> 8; if (req == USB_REQ_GET_DESCRIPTOR) { int i; for (i = 0; i < descs_num; i++) { struct vusb_descriptor* desc = descs->descs[i]; if (!desc) continue; if (desc->req_type == req_type && desc->desc_type == desc_type) { *response_length = desc->len; if (*response_length != 0) *response_data = &desc->data[0]; else *response_data = NULL; return true; } } if (descs && descs->generic) { *response_data = &descs->generic->data[0]; *response_length = descs->generic->len; return true; } } else { int i; for (i = 0; i < resps_num; i++) { struct vusb_response* resp = resps->resps[i]; if (!resp) continue; if (resp->type == req_type && resp->req == req) { *response_length = resp->len; if (*response_length != 0) *response_data = &resp->data[0]; else *response_data = NULL; return true; } } if (resps && resps->generic) { *response_data = &resps->generic->data[0]; *response_length = resps->generic->len; return true; } } 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_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_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_event_fetch(int fd, struct usb_raw_event* event) { return ioctl(fd, USB_RAW_IOCTL_EVENT_FETCH, event); } 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_ep0_stall(int fd) { return ioctl(fd, USB_RAW_IOCTL_EP0_STALL, 0); } static int lookup_interface(int fd, uint8_t bInterfaceNumber, uint8_t bAlternateSetting) { struct usb_device_index* index = lookup_usb_index(fd); if (!index) return -1; for (int i = 0; i < index->ifaces_num; i++) { if (index->ifaces[i].bInterfaceNumber == bInterfaceNumber && index->ifaces[i].bAlternateSetting == bAlternateSetting) return i; } return -1; } #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 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; } 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; struct usb_qualifier_descriptor qual; if (event.ctrl.bRequestType & USB_DIR_IN) { if (!lookup_connect_response_in(fd, descs, &event.ctrl, &qual, &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 volatile long syz_usb_control_io(volatile long a0, volatile long a1, volatile long a2) { int fd = a0; const struct vusb_descriptors* descs = (const struct vusb_descriptors*)a1; const struct vusb_responses* resps = (const struct vusb_responses*)a2; struct usb_raw_control_event event; event.inner.type = 0; event.inner.length = USB_MAX_PACKET_SIZE; int rv = usb_raw_event_fetch(fd, (struct usb_raw_event*)&event); if (rv < 0) { return rv; } if (event.inner.type != USB_RAW_EVENT_CONTROL) { return -1; } char* response_data = NULL; uint32_t response_length = 0; if ((event.ctrl.bRequestType & USB_DIR_IN) && event.ctrl.wLength) { if (!lookup_control_response(descs, resps, &event.ctrl, &response_data, &response_length)) { usb_raw_ep0_stall(fd); return -1; } } else { if ((event.ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD || event.ctrl.bRequest == USB_REQ_SET_INTERFACE) { int iface_num = event.ctrl.wIndex; int alt_set = event.ctrl.wValue; int iface_index = lookup_interface(fd, iface_num, alt_set); if (iface_index < 0) { } else { set_interface(fd, iface_index); } } response_length = event.ctrl.wLength; } 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; if ((event.ctrl.bRequestType & USB_DIR_IN) && !event.ctrl.wLength) { response_length = USB_MAX_PACKET_SIZE; } 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) && event.ctrl.wLength) { 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 0; } 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); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); 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; } } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; memcpy((void*)0x20000000, "\x12\x01\x00\x00\x00\x00\x00\x40\x26\x09\x33\x33\x40\x00\x00\x00\x00" "\x01\x09\x02\x24\x00\x01\x00\x00\x00\x00\x09\x04\x00\x00\x01\x03\x01" "\x00\x00\x09\x21\x00\x00\x00\x01\x22\x01\x00\x09\x05\x81\x03\x08", 50); res = -1; res = syz_usb_connect(/*speed=*/0, /*dev_len=*/0x36, /*dev=*/0x20000000, /*conn_descs=*/0); if (res != -1) r[0] = res; *(uint32_t*)0x20000240 = 0x24; *(uint64_t*)0x20000244 = 0; *(uint64_t*)0x2000024c = 0; *(uint64_t*)0x20000254 = 0x200001c0; *(uint8_t*)0x200001c0 = 0; *(uint8_t*)0x200001c1 = 0x22; *(uint32_t*)0x200001c2 = 0x12; STORE_BY_BITMASK(uint8_t, , 0x200001c6, 3, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200001c6, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200001c6, 0xc, 4, 4); memcpy((void*)0x200001c7, "\x37\xbf\x8d\x9d", 4); STORE_BY_BITMASK(uint8_t, , 0x200001cb, 3, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200001cb, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200001cb, 9, 4, 4); memcpy((void*)0x200001cc, "\x2d\x99\xd4\x85", 4); STORE_BY_BITMASK(uint8_t, , 0x200001d0, 0, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d0, 0, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d0, 0xb, 4, 4); STORE_BY_BITMASK(uint8_t, , 0x200001d1, 3, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d1, 2, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d1, 7, 4, 4); memcpy((void*)0x200001d2, "\x40\x55\xda\x70", 4); STORE_BY_BITMASK(uint8_t, , 0x200001d6, 1, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d6, 1, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x200001d6, 6, 4, 4); memset((void*)0x200001d7, 2, 1); *(uint64_t*)0x2000025c = 0x20000200; *(uint8_t*)0x20000200 = 0; *(uint8_t*)0x20000201 = 0x21; *(uint32_t*)0x20000202 = 9; *(uint8_t*)0x20000206 = 9; *(uint8_t*)0x20000207 = 0x21; *(uint16_t*)0x20000208 = 0x1f; *(uint8_t*)0x2000020a = 0xc0; *(uint8_t*)0x2000020b = 1; *(uint8_t*)0x2000020c = 0x22; *(uint16_t*)0x2000020d = 0xb06; syz_usb_control_io(/*fd=*/r[0], /*descs=*/0x20000240, /*resps=*/0); *(uint32_t*)0x20002a00 = 0x24; *(uint64_t*)0x20002a04 = 0; *(uint64_t*)0x20002a0c = 0; *(uint64_t*)0x20002a14 = 0x20002980; *(uint8_t*)0x20002980 = 0; *(uint8_t*)0x20002981 = 0x22; *(uint32_t*)0x20002982 = 5; STORE_BY_BITMASK(uint8_t, , 0x20002986, 3, 0, 2); STORE_BY_BITMASK(uint8_t, , 0x20002986, 1, 2, 2); STORE_BY_BITMASK(uint8_t, , 0x20002986, 0, 4, 4); memcpy((void*)0x20002987, "\xae\xa3\x1a\xb3", 4); *(uint64_t*)0x20002a1c = 0; syz_usb_control_io(/*fd=*/r[0], /*descs=*/0x20002a00, /*resps=*/0); syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0x81044804, /*arg=*/0ul); *(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 = 0x200; *(uint32_t*)0x20000d60 = 0x80; *(uint32_t*)0x20000d64 = 0xa2; *(uint32_t*)0x20000d68 = 7; *(uint32_t*)0x20000d6c = 2; *(uint32_t*)0x20000d70 = 0x7ba9; *(uint32_t*)0x20000d74 = 9; *(uint32_t*)0x20000d78 = 0x292; *(uint32_t*)0x20000d7c = 0x1000; *(uint32_t*)0x20000d80 = 5; *(uint32_t*)0x20000d84 = 6; *(uint32_t*)0x20000d88 = 0x80; *(uint32_t*)0x20000d8c = 5; *(uint32_t*)0x20000d90 = 2; *(uint32_t*)0x20000d94 = 3; *(uint32_t*)0x20000d98 = 4; *(uint32_t*)0x20000d9c = 0x79ad; *(uint32_t*)0x20000da0 = 0x3ff; *(uint32_t*)0x20000da4 = 2; *(uint32_t*)0x20000da8 = 0xff; *(uint32_t*)0x20000dac = 2; *(uint32_t*)0x20000db0 = 6; *(uint32_t*)0x20000db4 = 0x81; *(uint32_t*)0x20000db8 = 3; *(uint32_t*)0x20000dbc = 0x837; *(uint32_t*)0x20000dc0 = 4; *(uint32_t*)0x20000dc4 = 0x1000; *(uint32_t*)0x20000dc8 = 0x53; *(uint32_t*)0x20000dcc = 9; *(uint32_t*)0x20000dd0 = 1; *(uint32_t*)0x20000dd4 = 0x6297; *(uint32_t*)0x20000dd8 = 1; *(uint32_t*)0x20000ddc = 8; *(uint32_t*)0x20000de0 = 0x100; *(uint32_t*)0x20000de4 = 0; *(uint32_t*)0x20000de8 = 4; *(uint32_t*)0x20000dec = 9; *(uint32_t*)0x20000df0 = 9; *(uint32_t*)0x20000df4 = 0; *(uint32_t*)0x20000df8 = 6; *(uint32_t*)0x20000dfc = 0x1d; *(uint32_t*)0x20000e00 = 0; *(uint32_t*)0x20000e04 = 6; *(uint32_t*)0x20000e08 = 0xff; *(uint32_t*)0x20000e0c = 7; *(uint32_t*)0x20000e10 = 5; *(uint32_t*)0x20000e14 = 7; *(uint32_t*)0x20000e18 = 1; *(uint32_t*)0x20000e1c = 6; *(uint32_t*)0x20000e20 = 0x100; *(uint32_t*)0x20000e24 = 1; *(uint32_t*)0x20000e28 = 0x7fff; *(uint32_t*)0x20000e2c = 0x20; *(uint32_t*)0x20000e30 = 9; *(uint32_t*)0x20000e34 = 2; *(uint32_t*)0x20000e38 = 4; *(uint32_t*)0x20000e3c = 0x4f00; *(uint32_t*)0x20000e40 = 0x10001; *(uint32_t*)0x20000e44 = 0x8c; *(uint32_t*)0x20000e48 = 7; *(uint32_t*)0x20000e4c = 0; *(uint32_t*)0x20000e50 = 1; *(uint32_t*)0x20000e54 = 0x1f; *(uint32_t*)0x20000e58 = 0; *(uint32_t*)0x20000e5c = 0x401; *(uint32_t*)0x20000e60 = 0x42b1; *(uint32_t*)0x20000e64 = 7; *(uint32_t*)0x20000e68 = 0xd08; *(uint32_t*)0x20000e6c = 0x28000000; *(uint32_t*)0x20000e70 = 1; *(uint32_t*)0x20000e74 = 0; *(uint32_t*)0x20000e78 = 0; *(uint32_t*)0x20000e7c = 1; *(uint32_t*)0x20000e80 = 0xdb; *(uint32_t*)0x20000e84 = 0x3067; *(uint32_t*)0x20000e88 = 4; *(uint32_t*)0x20000e8c = 0x9a58; *(uint32_t*)0x20000e90 = 0; *(uint32_t*)0x20000e94 = 0; *(uint32_t*)0x20000e98 = 6; *(uint32_t*)0x20000e9c = 1; *(uint32_t*)0x20000ea0 = 0xffff; *(uint32_t*)0x20000ea4 = 0x1ff; *(uint32_t*)0x20000ea8 = 0xfffffffb; *(uint32_t*)0x20000eac = 0x807e; *(uint32_t*)0x20000eb0 = 0x101; *(uint32_t*)0x20000eb4 = 1; *(uint32_t*)0x20000eb8 = 5; *(uint32_t*)0x20000ebc = 1; *(uint32_t*)0x20000ec0 = 0x11; *(uint32_t*)0x20000ec4 = 8; *(uint32_t*)0x20000ec8 = 0x5b; *(uint32_t*)0x20000ecc = 0x101; *(uint32_t*)0x20000ed0 = 0x3ff; *(uint32_t*)0x20000ed4 = 3; *(uint32_t*)0x20000ed8 = 8; *(uint32_t*)0x20000edc = 2; *(uint32_t*)0x20000ee0 = 7; *(uint32_t*)0x20000ee4 = 7; *(uint32_t*)0x20000ee8 = 0xb; *(uint32_t*)0x20000eec = 9; *(uint32_t*)0x20000ef0 = 0x7f; *(uint32_t*)0x20000ef4 = 6; *(uint32_t*)0x20000ef8 = 6; *(uint32_t*)0x20000efc = 7; *(uint32_t*)0x20000f00 = 4; *(uint32_t*)0x20000f04 = 7; *(uint32_t*)0x20000f08 = 0x7fffffff; *(uint32_t*)0x20000f0c = 0x25; *(uint32_t*)0x20000f10 = 0x7c; *(uint32_t*)0x20000f14 = 0; *(uint32_t*)0x20000f18 = 0xffff; *(uint32_t*)0x20000f1c = 0x400; *(uint32_t*)0x20000f20 = 0; *(uint32_t*)0x20000f24 = 0x618986d1; *(uint32_t*)0x20000f28 = 4; *(uint32_t*)0x20000f2c = 9; *(uint32_t*)0x20000f30 = 4; *(uint32_t*)0x20000f34 = 0x100; *(uint32_t*)0x20000f38 = 7; *(uint32_t*)0x20000f3c = 0x107a; *(uint32_t*)0x20000f40 = 4; *(uint32_t*)0x20000f44 = 0x65ff; *(uint32_t*)0x20000f48 = 0x523d; *(uint32_t*)0x20000f4c = 0; *(uint32_t*)0x20000f50 = 0xcc8; *(uint32_t*)0x20000f54 = 8; *(uint32_t*)0x20000f58 = 5; *(uint32_t*)0x20000f5c = 0xf3; *(uint32_t*)0x20000f60 = 4; *(uint32_t*)0x20000f64 = 0x7fffffff; *(uint32_t*)0x20000f68 = -1; *(uint32_t*)0x20000f6c = 0x400; *(uint32_t*)0x20000f70 = 5; *(uint32_t*)0x20000f74 = 5; *(uint32_t*)0x20000f78 = 2; *(uint32_t*)0x20000f7c = 0xaca; *(uint32_t*)0x20000f80 = 0x47ae; *(uint32_t*)0x20000f84 = 9; *(uint32_t*)0x20000f88 = 8; *(uint32_t*)0x20000f8c = 1; *(uint32_t*)0x20000f90 = 2; *(uint32_t*)0x20000f94 = 1; *(uint32_t*)0x20000f98 = 0x5b; *(uint32_t*)0x20000f9c = 0; *(uint32_t*)0x20000fa0 = 0xfff; *(uint32_t*)0x20000fa4 = 1; *(uint32_t*)0x20000fa8 = 0x10001; *(uint32_t*)0x20000fac = 4; *(uint32_t*)0x20000fb0 = 6; *(uint32_t*)0x20000fb4 = 1; *(uint32_t*)0x20000fb8 = 0x7f; *(uint32_t*)0x20000fbc = 2; *(uint32_t*)0x20000fc0 = 1; *(uint32_t*)0x20000fc4 = 0x80000000; *(uint32_t*)0x20000fc8 = 3; *(uint32_t*)0x20000fcc = 0xde7; *(uint32_t*)0x20000fd0 = 0xfffffaa5; *(uint32_t*)0x20000fd4 = 0x400; *(uint32_t*)0x20000fd8 = 0xfffffff7; *(uint32_t*)0x20000fdc = 0x6a8; *(uint32_t*)0x20000fe0 = 0x4f3; *(uint32_t*)0x20000fe4 = 0; *(uint32_t*)0x20000fe8 = 1; *(uint32_t*)0x20000fec = 7; *(uint32_t*)0x20000ff0 = 3; *(uint32_t*)0x20000ff4 = 7; *(uint32_t*)0x20000ff8 = 0xffff; *(uint32_t*)0x20000ffc = 3; *(uint32_t*)0x20001000 = 1; *(uint32_t*)0x20001004 = 0xfff; *(uint32_t*)0x20001008 = 2; *(uint32_t*)0x2000100c = 8; *(uint32_t*)0x20001010 = 0; *(uint32_t*)0x20001014 = 2; *(uint32_t*)0x20001018 = 0xffff; *(uint32_t*)0x2000101c = 0x3f87; *(uint32_t*)0x20001020 = 7; *(uint32_t*)0x20001024 = 0xd0; *(uint32_t*)0x20001028 = 3; *(uint32_t*)0x2000102c = 0x8503; *(uint32_t*)0x20001030 = 6; *(uint32_t*)0x20001034 = 9; *(uint32_t*)0x20001038 = 3; *(uint32_t*)0x2000103c = 0x5983ea2d; *(uint32_t*)0x20001040 = 8; *(uint32_t*)0x20001044 = 7; *(uint32_t*)0x20001048 = 0x200; *(uint32_t*)0x2000104c = 0x240c; *(uint32_t*)0x20001050 = 7; *(uint32_t*)0x20001054 = 8; *(uint32_t*)0x20001058 = 0xf0; *(uint32_t*)0x2000105c = 1; *(uint32_t*)0x20001060 = 0x81; *(uint32_t*)0x20001064 = 0; *(uint32_t*)0x20001068 = 4; *(uint32_t*)0x2000106c = 6; *(uint32_t*)0x20001070 = 0x101; *(uint32_t*)0x20001074 = 0x7fffffff; *(uint32_t*)0x20001078 = 0xd98e; *(uint32_t*)0x2000107c = 0xff; *(uint32_t*)0x20001080 = 8; *(uint32_t*)0x20001084 = 0x8000; *(uint32_t*)0x20001088 = 1; *(uint32_t*)0x2000108c = 6; *(uint32_t*)0x20001090 = 0xfffff768; *(uint32_t*)0x20001094 = 6; *(uint32_t*)0x20001098 = 0x400; *(uint32_t*)0x2000109c = 0x3a; *(uint32_t*)0x200010a0 = 0x7fffffff; *(uint32_t*)0x200010a4 = 4; *(uint32_t*)0x200010a8 = 4; *(uint32_t*)0x200010ac = 5; *(uint32_t*)0x200010b0 = 0x45cbe20c; *(uint32_t*)0x200010b4 = 2; *(uint32_t*)0x200010b8 = 0x100; *(uint32_t*)0x200010bc = 5; *(uint32_t*)0x200010c0 = 0x101; *(uint32_t*)0x200010c4 = 0x2d9; *(uint32_t*)0x200010c8 = 1; *(uint32_t*)0x200010cc = 0xffff; *(uint32_t*)0x200010d0 = 5; *(uint32_t*)0x200010d4 = 0x1bbe; *(uint32_t*)0x200010d8 = 0x8000; *(uint32_t*)0x200010dc = 7; *(uint32_t*)0x200010e0 = 0x2c; *(uint32_t*)0x200010e4 = 0x6593778f; *(uint32_t*)0x200010e8 = 0; *(uint32_t*)0x200010ec = 9; *(uint32_t*)0x200010f0 = 0x7ff; *(uint32_t*)0x200010f4 = 8; *(uint32_t*)0x200010f8 = 4; *(uint32_t*)0x200010fc = 0xf70; *(uint32_t*)0x20001100 = 0x10001; *(uint32_t*)0x20001104 = 8; *(uint32_t*)0x20001108 = 9; *(uint32_t*)0x2000110c = 0xaa8c; *(uint32_t*)0x20001110 = 0x89; *(uint32_t*)0x20001114 = 0x400; *(uint32_t*)0x20001118 = 0x400; *(uint32_t*)0x2000111c = 0x693; *(uint32_t*)0x20001120 = 3; *(uint32_t*)0x20001124 = 3; *(uint32_t*)0x20001128 = 0; *(uint32_t*)0x2000112c = 0x80; *(uint32_t*)0x20001130 = 9; *(uint32_t*)0x20001134 = 0x401; *(uint32_t*)0x20001138 = 0x11; *(uint32_t*)0x2000113c = 3; *(uint32_t*)0x20001140 = 4; *(uint32_t*)0x20001144 = 0x7f; *(uint32_t*)0x20001148 = 3; *(uint32_t*)0x2000114c = 3; *(uint32_t*)0x20001150 = 4; *(uint32_t*)0x20001154 = 0xfffff801; *(uint32_t*)0x20001158 = 0x100; *(uint32_t*)0x2000115c = 5; *(uint32_t*)0x20001160 = 0x981; *(uint32_t*)0x20001164 = 0xff; *(uint32_t*)0x20001168 = 3; *(uint32_t*)0x2000116c = 0xfffffff9; *(uint32_t*)0x20001170 = 8; *(uint32_t*)0x20001174 = 0x1000; *(uint32_t*)0x20001178 = 0xfffffffe; *(uint32_t*)0x2000117c = 0x101; *(uint32_t*)0x20001180 = 7; *(uint32_t*)0x20001184 = 5; *(uint32_t*)0x20001188 = 0xfffff801; *(uint32_t*)0x2000118c = 0x800; *(uint32_t*)0x20001190 = 0xfffffffa; *(uint32_t*)0x20001194 = 0xff; *(uint32_t*)0x20001198 = 4; *(uint32_t*)0x2000119c = 0x200; *(uint32_t*)0x200011a0 = 1; *(uint32_t*)0x200011a4 = 3; *(uint32_t*)0x200011a8 = 0xffffa95b; *(uint32_t*)0x200011ac = 7; *(uint32_t*)0x200011b0 = 0x3993; *(uint32_t*)0x200011b4 = 0x8001; *(uint32_t*)0x200011b8 = 0x8000; *(uint32_t*)0x200011bc = 2; *(uint32_t*)0x200011c0 = 2; *(uint32_t*)0x200011c4 = 0x3f; *(uint32_t*)0x200011c8 = 9; *(uint32_t*)0x200011cc = 9; *(uint32_t*)0x200011d0 = 0x1ff; *(uint32_t*)0x200011d4 = 9; *(uint32_t*)0x200011d8 = 0x101; *(uint32_t*)0x200011dc = 6; *(uint32_t*)0x200011e0 = 0xb96c; *(uint32_t*)0x200011e4 = 7; *(uint32_t*)0x200011e8 = 0xca; *(uint32_t*)0x200011ec = 0xfffffff7; *(uint32_t*)0x200011f0 = 2; *(uint32_t*)0x200011f4 = 4; *(uint32_t*)0x200011f8 = 5; *(uint32_t*)0x200011fc = 0x1ff; *(uint32_t*)0x20001200 = 7; *(uint32_t*)0x20001204 = 0; *(uint32_t*)0x20001208 = 4; *(uint32_t*)0x2000120c = 0x20; *(uint32_t*)0x20001210 = 4; *(uint32_t*)0x20001214 = 0x92; *(uint32_t*)0x20001218 = 1; *(uint32_t*)0x2000121c = 3; *(uint32_t*)0x20001220 = 0xeefa; *(uint32_t*)0x20001224 = 0xfffffffc; *(uint32_t*)0x20001228 = 0x11d6; *(uint32_t*)0x2000122c = 0xffff85bc; *(uint32_t*)0x20001230 = 0x4c2; *(uint32_t*)0x20001234 = 7; *(uint32_t*)0x20001238 = 0xfffffff9; *(uint32_t*)0x2000123c = 0; *(uint32_t*)0x20001240 = 3; *(uint32_t*)0x20001244 = 0xfffffffc; *(uint32_t*)0x20001248 = 0x7ff; *(uint32_t*)0x2000124c = 3; *(uint32_t*)0x20001250 = 0xc6; *(uint32_t*)0x20001254 = 0x8000; *(uint32_t*)0x20001258 = 0x8001; *(uint32_t*)0x2000125c = 5; *(uint32_t*)0x20001260 = 0x80000001; *(uint32_t*)0x20001264 = 0xe40; *(uint32_t*)0x20001268 = 2; *(uint32_t*)0x2000126c = 7; *(uint32_t*)0x20001270 = 0xa9b1; *(uint32_t*)0x20001274 = 3; *(uint32_t*)0x20001278 = 9; *(uint32_t*)0x2000127c = 0xffffff86; *(uint32_t*)0x20001280 = 8; *(uint32_t*)0x20001284 = 0; *(uint32_t*)0x20001288 = 6; *(uint32_t*)0x2000128c = 1; *(uint32_t*)0x20001290 = 7; *(uint32_t*)0x20001294 = 0x10000; *(uint32_t*)0x20001298 = 0x20; *(uint32_t*)0x2000129c = 4; *(uint32_t*)0x200012a0 = 0x401; *(uint32_t*)0x200012a4 = 2; *(uint32_t*)0x200012a8 = 6; *(uint32_t*)0x200012ac = 9; *(uint32_t*)0x200012b0 = 0x3f; *(uint32_t*)0x200012b4 = 0xa8c8; *(uint32_t*)0x200012b8 = 0x100; *(uint32_t*)0x200012bc = 1; *(uint32_t*)0x200012c0 = 0x3f; *(uint32_t*)0x200012c4 = 0xffff0000; *(uint32_t*)0x200012c8 = 7; *(uint32_t*)0x200012cc = 0x1f; *(uint32_t*)0x200012d0 = 0; *(uint32_t*)0x200012d4 = 0x95c; *(uint32_t*)0x200012d8 = 9; *(uint32_t*)0x200012dc = 0x200; *(uint32_t*)0x200012e0 = 1; *(uint32_t*)0x200012e4 = 0x200; *(uint32_t*)0x200012e8 = 0; *(uint32_t*)0x200012ec = 2; *(uint32_t*)0x200012f0 = 0x80000000; *(uint32_t*)0x200012f4 = 0xfffffc6e; *(uint32_t*)0x200012f8 = 0; *(uint32_t*)0x200012fc = 0x7ff; *(uint32_t*)0x20001300 = 5; *(uint32_t*)0x20001304 = 1; *(uint32_t*)0x20001308 = 3; *(uint32_t*)0x2000130c = 9; *(uint32_t*)0x20001310 = 8; *(uint32_t*)0x20001314 = 0x80000000; *(uint32_t*)0x20001318 = 1; *(uint32_t*)0x2000131c = 3; *(uint32_t*)0x20001320 = 3; *(uint32_t*)0x20001324 = 0x7f; *(uint32_t*)0x20001328 = 8; *(uint32_t*)0x2000132c = 0x81; *(uint32_t*)0x20001330 = 0xfffffffb; *(uint32_t*)0x20001334 = 3; *(uint32_t*)0x20001338 = 7; *(uint32_t*)0x2000133c = 6; *(uint32_t*)0x20001340 = 0xf0d6; *(uint32_t*)0x20001344 = 4; *(uint32_t*)0x20001348 = 0; *(uint32_t*)0x2000134c = 0xfffeffff; *(uint32_t*)0x20001350 = 0x100; *(uint32_t*)0x20001354 = 0xff; *(uint32_t*)0x20001358 = 5; *(uint32_t*)0x2000135c = 4; *(uint32_t*)0x20001360 = 0xfffff801; *(uint32_t*)0x20001364 = 1; *(uint32_t*)0x20001368 = 9; *(uint32_t*)0x2000136c = 0; *(uint32_t*)0x20001370 = 7; *(uint32_t*)0x20001374 = 2; *(uint32_t*)0x20001378 = 6; *(uint32_t*)0x2000137c = 7; *(uint32_t*)0x20001380 = 0x1000; *(uint32_t*)0x20001384 = 0x80000001; *(uint32_t*)0x20001388 = 0x669; *(uint32_t*)0x2000138c = 0xc005; *(uint32_t*)0x20001390 = 0; *(uint32_t*)0x20001394 = 6; *(uint32_t*)0x20001398 = 0x1ff; *(uint32_t*)0x2000139c = 6; *(uint32_t*)0x200013a0 = 4; *(uint32_t*)0x200013a4 = 7; *(uint32_t*)0x200013a8 = 4; *(uint32_t*)0x200013ac = 7; *(uint32_t*)0x200013b0 = 6; *(uint32_t*)0x200013b4 = 5; *(uint32_t*)0x200013b8 = 3; *(uint32_t*)0x200013bc = 3; *(uint32_t*)0x200013c0 = 0x79; *(uint32_t*)0x200013c4 = 0xe8; *(uint32_t*)0x200013c8 = 5; *(uint32_t*)0x200013cc = 0x406d55f2; *(uint32_t*)0x200013d0 = 0xf1; *(uint32_t*)0x200013d4 = 0x81; *(uint32_t*)0x200013d8 = 0x800; *(uint32_t*)0x200013dc = 0x3ff; *(uint32_t*)0x200013e0 = 0x100; *(uint32_t*)0x200013e4 = 0x800; *(uint32_t*)0x200013e8 = 0x2202; *(uint32_t*)0x200013ec = 3; *(uint32_t*)0x200013f0 = 2; *(uint32_t*)0x200013f4 = 0; *(uint32_t*)0x200013f8 = 7; *(uint32_t*)0x200013fc = 0x10000; *(uint32_t*)0x20001400 = 4; *(uint32_t*)0x20001404 = 0x61; *(uint32_t*)0x20001408 = 9; *(uint32_t*)0x2000140c = 0x3c; *(uint32_t*)0x20001410 = 0x2144; *(uint32_t*)0x20001414 = 0xfffffff7; *(uint32_t*)0x20001418 = 0x7f; *(uint32_t*)0x2000141c = 6; *(uint32_t*)0x20001420 = 0x30000; *(uint32_t*)0x20001424 = 0xff; *(uint32_t*)0x20001428 = 0x77; *(uint32_t*)0x2000142c = 0; *(uint32_t*)0x20001430 = 6; *(uint32_t*)0x20001434 = 0x200; *(uint32_t*)0x20001438 = 0x6dee; *(uint32_t*)0x2000143c = 0x400; *(uint32_t*)0x20001440 = 7; *(uint32_t*)0x20001444 = 7; *(uint32_t*)0x20001448 = 0x3f; *(uint32_t*)0x2000144c = 6; *(uint32_t*)0x20001450 = 8; *(uint32_t*)0x20001454 = 7; *(uint32_t*)0x20001458 = 1; *(uint32_t*)0x2000145c = 3; *(uint32_t*)0x20001460 = 0xfffffff9; *(uint32_t*)0x20001464 = 0xfffffffc; *(uint32_t*)0x20001468 = 0x80; *(uint32_t*)0x2000146c = 0; *(uint32_t*)0x20001470 = 0x3ff; *(uint32_t*)0x20001474 = 0xffffff81; *(uint32_t*)0x20001478 = 0xaa4; *(uint32_t*)0x2000147c = 7; *(uint32_t*)0x20001480 = 7; *(uint32_t*)0x20001484 = 0xdd34; *(uint32_t*)0x20001488 = -1; *(uint32_t*)0x2000148c = 4; *(uint32_t*)0x20001490 = 7; *(uint32_t*)0x20001494 = 6; *(uint32_t*)0x20001498 = 3; *(uint32_t*)0x2000149c = 0x7ff; *(uint32_t*)0x200014a0 = 8; *(uint32_t*)0x200014a4 = 1; *(uint32_t*)0x200014a8 = 7; *(uint32_t*)0x200014ac = 6; *(uint32_t*)0x200014b0 = 0x3f; *(uint32_t*)0x200014b4 = 0x54; *(uint32_t*)0x200014b8 = 0xfff; *(uint32_t*)0x200014bc = 0xfffffb7c; *(uint32_t*)0x200014c0 = 1; *(uint32_t*)0x200014c4 = 0xfffff5f6; *(uint32_t*)0x200014c8 = 8; *(uint32_t*)0x200014cc = 0xfff; *(uint32_t*)0x200014d0 = 0xc4; *(uint32_t*)0x200014d4 = 7; *(uint32_t*)0x200014d8 = 6; *(uint32_t*)0x200014dc = 8; *(uint32_t*)0x200014e0 = 0x4cd29480; *(uint32_t*)0x200014e4 = 0x7383; *(uint32_t*)0x200014e8 = 0x2000000; *(uint32_t*)0x200014ec = 0x2fbf; *(uint32_t*)0x200014f0 = 0xea; *(uint32_t*)0x200014f4 = 3; *(uint32_t*)0x200014f8 = 1; *(uint32_t*)0x200014fc = 0x20; *(uint32_t*)0x20001500 = 0x400; *(uint32_t*)0x20001504 = 4; *(uint32_t*)0x20001508 = 0xda4; *(uint32_t*)0x2000150c = 0xffffff14; *(uint32_t*)0x20001510 = 6; *(uint32_t*)0x20001514 = 4; *(uint32_t*)0x20001518 = 0x331; *(uint32_t*)0x2000151c = 0x3ff; *(uint32_t*)0x20001520 = 0x4c89; *(uint32_t*)0x20001524 = 0x400; *(uint32_t*)0x20001528 = 2; *(uint32_t*)0x2000152c = 9; *(uint32_t*)0x20001530 = 9; *(uint32_t*)0x20001534 = 3; *(uint32_t*)0x20001538 = 0xfffffff9; *(uint32_t*)0x2000153c = 0; *(uint32_t*)0x20001540 = 0; *(uint32_t*)0x20001544 = 1; *(uint32_t*)0x20001548 = -1; *(uint32_t*)0x2000154c = 5; *(uint32_t*)0x20001550 = 5; *(uint32_t*)0x20001554 = 8; *(uint32_t*)0x20001558 = 0x800; *(uint32_t*)0x2000155c = 0x8000; *(uint32_t*)0x20001560 = 6; *(uint32_t*)0x20001564 = 0x410; *(uint32_t*)0x20001568 = 1; *(uint32_t*)0x2000156c = 0xfffffffd; *(uint32_t*)0x20001570 = 0x48; *(uint32_t*)0x20001574 = 0x6bf; *(uint32_t*)0x20001578 = 9; *(uint32_t*)0x2000157c = 0; *(uint32_t*)0x20001580 = 0x100; *(uint32_t*)0x20001584 = 0x100; *(uint32_t*)0x20001588 = 0x1f; *(uint32_t*)0x2000158c = 6; *(uint32_t*)0x20001590 = 8; *(uint32_t*)0x20001594 = 5; *(uint32_t*)0x20001598 = 0xcfc1; *(uint32_t*)0x2000159c = 9; *(uint32_t*)0x200015a0 = 1; *(uint32_t*)0x200015a4 = 2; *(uint32_t*)0x200015a8 = 0x1000; *(uint32_t*)0x200015ac = 0x1000; *(uint32_t*)0x200015b0 = 0; *(uint32_t*)0x200015b4 = 0x20; *(uint32_t*)0x200015b8 = 0x3ff; *(uint32_t*)0x200015bc = 1; *(uint32_t*)0x200015c0 = 0x10000; *(uint32_t*)0x200015c4 = 1; *(uint32_t*)0x200015c8 = 0; *(uint32_t*)0x200015cc = -1; *(uint32_t*)0x200015d0 = 1; *(uint32_t*)0x200015d4 = 0x10001; *(uint32_t*)0x200015d8 = 3; *(uint32_t*)0x200015dc = 4; *(uint32_t*)0x200015e0 = 5; *(uint32_t*)0x200015e4 = 0xffff; *(uint32_t*)0x200015e8 = 0x80000001; *(uint32_t*)0x200015ec = 2; *(uint32_t*)0x200015f0 = 9; *(uint32_t*)0x200015f4 = 1; *(uint32_t*)0x200015f8 = 5; *(uint32_t*)0x200015fc = 1; *(uint32_t*)0x20001600 = 0x3ff; *(uint32_t*)0x20001604 = 0; *(uint32_t*)0x20001608 = 0xbc; *(uint32_t*)0x2000160c = 0x100; *(uint32_t*)0x20001610 = 0xfffff001; *(uint32_t*)0x20001614 = 4; *(uint32_t*)0x20001618 = 0; *(uint32_t*)0x2000161c = 6; *(uint32_t*)0x20001620 = 0x80000000; *(uint32_t*)0x20001624 = 9; *(uint32_t*)0x20001628 = 1; *(uint32_t*)0x2000162c = 7; *(uint32_t*)0x20001630 = 0x1f; *(uint32_t*)0x20001634 = 0x9f2; *(uint32_t*)0x20001638 = 9; *(uint32_t*)0x2000163c = 1; *(uint32_t*)0x20001640 = 7; *(uint32_t*)0x20001644 = 8; *(uint32_t*)0x20001648 = 0; *(uint32_t*)0x2000164c = 0; *(uint32_t*)0x20001650 = 0xff; *(uint32_t*)0x20001654 = 7; *(uint32_t*)0x20001658 = 7; *(uint32_t*)0x2000165c = 0xfffff999; *(uint32_t*)0x20001660 = 0; *(uint32_t*)0x20001664 = 0; *(uint32_t*)0x20001668 = 8; *(uint32_t*)0x2000166c = 4; *(uint32_t*)0x20001670 = 8; *(uint32_t*)0x20001674 = 6; *(uint32_t*)0x20001678 = 0xfffffffd; *(uint32_t*)0x2000167c = 0x10001; *(uint32_t*)0x20001680 = 7; *(uint32_t*)0x20001684 = 1; *(uint32_t*)0x20001688 = 5; *(uint32_t*)0x2000168c = 7; *(uint32_t*)0x20001690 = 0x7f; *(uint32_t*)0x20001694 = 4; *(uint32_t*)0x20001698 = 8; *(uint32_t*)0x2000169c = 0x89; *(uint32_t*)0x200016a0 = 1; *(uint32_t*)0x200016a4 = 4; *(uint32_t*)0x200016a8 = 1; *(uint32_t*)0x200016ac = 0xfffffff9; *(uint32_t*)0x200016b0 = 0x3f; *(uint32_t*)0x200016b4 = 7; *(uint32_t*)0x200016b8 = 0x401; *(uint32_t*)0x200016bc = 7; *(uint32_t*)0x200016c0 = 0x80000000; *(uint32_t*)0x200016c4 = 7; *(uint32_t*)0x200016c8 = 8; *(uint32_t*)0x200016cc = 0x20; *(uint32_t*)0x200016d0 = 0x350; *(uint32_t*)0x200016d4 = 3; *(uint32_t*)0x200016d8 = 1; *(uint32_t*)0x200016dc = 0x808; *(uint32_t*)0x200016e0 = 1; *(uint32_t*)0x200016e4 = 9; *(uint32_t*)0x200016e8 = 0x40; *(uint32_t*)0x200016ec = 0; *(uint32_t*)0x200016f0 = 9; *(uint32_t*)0x200016f4 = 4; *(uint32_t*)0x200016f8 = 0x3ff; *(uint32_t*)0x200016fc = 0xbf; *(uint32_t*)0x20001700 = 1; *(uint32_t*)0x20001704 = 7; *(uint32_t*)0x20001708 = 3; *(uint32_t*)0x2000170c = 5; *(uint32_t*)0x20001710 = 0x373f; *(uint32_t*)0x20001714 = 0x7ff; *(uint32_t*)0x20001718 = 0x80000000; *(uint32_t*)0x2000171c = 2; *(uint32_t*)0x20001720 = 4; *(uint32_t*)0x20001724 = 6; *(uint32_t*)0x20001728 = 6; *(uint32_t*)0x2000172c = 0xfffff000; *(uint32_t*)0x20001730 = 0x8d; *(uint32_t*)0x20001734 = 7; *(uint32_t*)0x20001738 = 1; *(uint32_t*)0x2000173c = 4; *(uint32_t*)0x20001740 = 0x81; *(uint32_t*)0x20001744 = 5; *(uint32_t*)0x20001748 = 9; *(uint32_t*)0x2000174c = 8; *(uint32_t*)0x20001750 = 0x40; *(uint32_t*)0x20001754 = 8; *(uint32_t*)0x20001758 = 0x100; *(uint32_t*)0x2000175c = 7; *(uint32_t*)0x20001760 = 9; *(uint32_t*)0x20001764 = 5; *(uint32_t*)0x20001768 = 1; *(uint32_t*)0x2000176c = 1; *(uint32_t*)0x20001770 = 1; *(uint32_t*)0x20001774 = 0x80000; *(uint32_t*)0x20001778 = 4; *(uint32_t*)0x2000177c = 1; *(uint32_t*)0x20001780 = 0xdc; *(uint32_t*)0x20001784 = 1; *(uint32_t*)0x20001788 = 8; *(uint32_t*)0x2000178c = 0x209; *(uint32_t*)0x20001790 = 3; *(uint32_t*)0x20001794 = 0x40; *(uint32_t*)0x20001798 = 0x7ff; *(uint32_t*)0x2000179c = 0x10000; *(uint32_t*)0x200017a0 = 2; *(uint32_t*)0x200017a4 = 0x7f; *(uint32_t*)0x200017a8 = 0x401; *(uint32_t*)0x200017ac = 1; *(uint32_t*)0x200017b0 = 0xfffffffa; *(uint32_t*)0x200017b4 = 0x80000001; *(uint32_t*)0x200017b8 = 6; *(uint32_t*)0x200017bc = 5; *(uint32_t*)0x200017c0 = 1; *(uint32_t*)0x200017c4 = 4; *(uint32_t*)0x200017c8 = 0x4da0; *(uint32_t*)0x200017cc = 0xb1d; *(uint32_t*)0x200017d0 = 0; *(uint32_t*)0x200017d4 = 9; *(uint32_t*)0x200017d8 = 0x214; *(uint32_t*)0x200017dc = 6; *(uint32_t*)0x200017e0 = 4; *(uint32_t*)0x200017e4 = 0x3f; *(uint32_t*)0x200017e8 = 0x200; *(uint32_t*)0x200017ec = 4; *(uint32_t*)0x200017f0 = 6; *(uint32_t*)0x200017f4 = 0xfff; *(uint32_t*)0x200017f8 = 0x400; *(uint32_t*)0x200017fc = 0xde06; *(uint32_t*)0x20001800 = 0x40000; *(uint32_t*)0x20001804 = 0x980; *(uint32_t*)0x20001808 = 7; *(uint32_t*)0x2000180c = 0x81; *(uint32_t*)0x20001810 = 0x800; *(uint32_t*)0x20001814 = 0x3ff; *(uint32_t*)0x20001818 = 3; *(uint32_t*)0x2000181c = 0x800; *(uint32_t*)0x20001820 = 0x8001; *(uint32_t*)0x20001824 = 3; *(uint32_t*)0x20001828 = 0x46; *(uint32_t*)0x2000182c = 0x80000000; *(uint32_t*)0x20001830 = 0; *(uint32_t*)0x20001834 = 6; *(uint32_t*)0x20001838 = 0; *(uint32_t*)0x2000183c = 0xa907; *(uint32_t*)0x20001840 = 0xf86f; *(uint32_t*)0x20001844 = 0x1000000; *(uint32_t*)0x20001848 = 0xe5; *(uint32_t*)0x2000184c = 0x3d; *(uint32_t*)0x20001850 = 1; *(uint32_t*)0x20001854 = 0x7ff; *(uint32_t*)0x20001858 = 1; *(uint32_t*)0x2000185c = 1; *(uint32_t*)0x20001860 = 0x10001; *(uint32_t*)0x20001864 = 0x111; *(uint32_t*)0x20001868 = 7; *(uint32_t*)0x2000186c = 0; *(uint32_t*)0x20001870 = 4; *(uint32_t*)0x20001874 = 0x1ff; *(uint32_t*)0x20001878 = 7; *(uint32_t*)0x2000187c = 3; *(uint32_t*)0x20001880 = 0x200; *(uint32_t*)0x20001884 = 8; *(uint32_t*)0x20001888 = 0x101; *(uint32_t*)0x2000188c = 0x3f; *(uint32_t*)0x20001890 = 4; *(uint32_t*)0x20001894 = 0x19402efa; *(uint32_t*)0x20001898 = 9; *(uint32_t*)0x2000189c = 0xffffff7e; *(uint32_t*)0x200018a0 = 0x81e1; *(uint32_t*)0x200018a4 = 0x81; *(uint32_t*)0x200018a8 = 3; *(uint32_t*)0x200018ac = 3; *(uint32_t*)0x200018b0 = 4; *(uint32_t*)0x200018b4 = 4; *(uint32_t*)0x200018b8 = 3; *(uint32_t*)0x200018bc = 0xfff; *(uint32_t*)0x200018c0 = 0xfff; *(uint32_t*)0x200018c4 = 6; *(uint32_t*)0x200018c8 = 3; *(uint32_t*)0x200018cc = 1; *(uint32_t*)0x200018d0 = 9; *(uint32_t*)0x200018d4 = 0; *(uint32_t*)0x200018d8 = 0x800; *(uint32_t*)0x200018dc = 6; *(uint32_t*)0x200018e0 = 0x100; *(uint32_t*)0x200018e4 = 6; *(uint32_t*)0x200018e8 = 0; *(uint32_t*)0x200018ec = 0x7f; *(uint32_t*)0x200018f0 = 0x642a; *(uint32_t*)0x200018f4 = 9; *(uint32_t*)0x200018f8 = 0xffff0000; *(uint32_t*)0x200018fc = 4; *(uint32_t*)0x20001900 = 0x67a; *(uint32_t*)0x20001904 = 0x10001; *(uint32_t*)0x20001908 = 0x20; *(uint32_t*)0x2000190c = 8; *(uint32_t*)0x20001910 = 0x401; *(uint32_t*)0x20001914 = 0x7fffffff; *(uint32_t*)0x20001918 = 0x717a6e86; *(uint32_t*)0x2000191c = 0x3f; *(uint32_t*)0x20001920 = 0; *(uint32_t*)0x20001924 = 0; *(uint32_t*)0x20001928 = 0x51f; *(uint32_t*)0x2000192c = 7; *(uint32_t*)0x20001930 = 0x200; *(uint32_t*)0x20001934 = 0xd82; *(uint32_t*)0x20001938 = 0x7ff; *(uint32_t*)0x2000193c = 0x9d4a; *(uint32_t*)0x20001940 = 2; *(uint32_t*)0x20001944 = 0; *(uint32_t*)0x20001948 = 7; *(uint32_t*)0x2000194c = 0x80000000; *(uint32_t*)0x20001950 = 1; *(uint32_t*)0x20001954 = 1; *(uint32_t*)0x20001958 = 1; *(uint32_t*)0x2000195c = 0x6f; *(uint32_t*)0x20001960 = 6; *(uint32_t*)0x20001964 = 4; *(uint32_t*)0x20001968 = 0x80; *(uint32_t*)0x2000196c = 0x800; *(uint32_t*)0x20001970 = 0xa06; *(uint32_t*)0x20001974 = 0x7ff; *(uint32_t*)0x20001978 = 8; *(uint32_t*)0x2000197c = 9; *(uint32_t*)0x20001980 = 7; *(uint32_t*)0x20001984 = 7; *(uint32_t*)0x20001988 = 5; *(uint32_t*)0x2000198c = 0xfff; *(uint32_t*)0x20001990 = 0x7f; *(uint32_t*)0x20001994 = 9; *(uint32_t*)0x20001998 = 0x8000; *(uint32_t*)0x2000199c = 2; *(uint32_t*)0x200019a0 = 5; *(uint32_t*)0x200019a4 = 0xff; *(uint32_t*)0x200019a8 = 5; *(uint32_t*)0x200019ac = 0x7f; *(uint32_t*)0x200019b0 = 4; *(uint32_t*)0x200019b4 = 4; *(uint32_t*)0x200019b8 = 9; *(uint32_t*)0x200019bc = 7; *(uint32_t*)0x200019c0 = 5; *(uint32_t*)0x200019c4 = 0; *(uint32_t*)0x200019c8 = -1; *(uint32_t*)0x200019cc = 0x80; *(uint32_t*)0x200019d0 = 0; *(uint32_t*)0x200019d4 = 0xfff; *(uint32_t*)0x200019d8 = 0x7ff; *(uint32_t*)0x200019dc = 3; *(uint32_t*)0x200019e0 = 0x80000001; *(uint32_t*)0x200019e4 = 7; *(uint32_t*)0x200019e8 = 0x80000000; *(uint32_t*)0x200019ec = 0x3ff; *(uint32_t*)0x200019f0 = 2; *(uint32_t*)0x200019f4 = 3; *(uint32_t*)0x200019f8 = 1; *(uint32_t*)0x200019fc = 0x8000; *(uint32_t*)0x20001a00 = 0x100; *(uint32_t*)0x20001a04 = 8; *(uint32_t*)0x20001a08 = 2; *(uint32_t*)0x20001a0c = 0xfff; *(uint32_t*)0x20001a10 = 0x401; *(uint32_t*)0x20001a14 = 0xfffffff8; *(uint32_t*)0x20001a18 = 0xff; *(uint32_t*)0x20001a1c = 0xfffffff9; *(uint32_t*)0x20001a20 = 5; *(uint32_t*)0x20001a24 = 6; *(uint32_t*)0x20001a28 = 0x80000000; *(uint32_t*)0x20001a2c = 9; *(uint32_t*)0x20001a30 = 0; *(uint32_t*)0x20001a34 = 0; *(uint32_t*)0x20001a38 = 0; *(uint32_t*)0x20001a3c = 0x57; *(uint32_t*)0x20001a40 = 0; *(uint32_t*)0x20001a44 = 2; *(uint32_t*)0x20001a48 = 6; *(uint32_t*)0x20001a4c = 0x8000; *(uint32_t*)0x20001a50 = 4; *(uint32_t*)0x20001a54 = 0xf59e; *(uint32_t*)0x20001a58 = 8; *(uint32_t*)0x20001a5c = 8; *(uint32_t*)0x20001a60 = 9; *(uint32_t*)0x20001a64 = 2; *(uint32_t*)0x20001a68 = 6; *(uint32_t*)0x20001a6c = 0x400; *(uint32_t*)0x20001a70 = -1; *(uint32_t*)0x20001a74 = 3; *(uint32_t*)0x20001a78 = -1; *(uint32_t*)0x20001a7c = 0x7ff; *(uint32_t*)0x20001a80 = 9; *(uint32_t*)0x20001a84 = 1; *(uint32_t*)0x20001a88 = 1; *(uint32_t*)0x20001a8c = -1; *(uint32_t*)0x20001a90 = 4; *(uint32_t*)0x20001a94 = 6; *(uint32_t*)0x20001a98 = 0x7fff; *(uint32_t*)0x20001a9c = 5; *(uint32_t*)0x20001aa0 = 0xffffff05; *(uint32_t*)0x20001aa4 = 6; *(uint32_t*)0x20001aa8 = 0; *(uint32_t*)0x20001aac = 0x80000001; *(uint32_t*)0x20001ab0 = 7; *(uint32_t*)0x20001ab4 = 0xffffffa2; *(uint32_t*)0x20001ab8 = 0xfffffffb; *(uint32_t*)0x20001abc = 0x1000; *(uint32_t*)0x20001ac0 = 1; *(uint32_t*)0x20001ac4 = 6; *(uint32_t*)0x20001ac8 = 0x1f; *(uint32_t*)0x20001acc = 7; *(uint32_t*)0x20001ad0 = 0x1cf; *(uint32_t*)0x20001ad4 = 0; *(uint32_t*)0x20001ad8 = 0x9c1; *(uint32_t*)0x20001adc = 4; *(uint32_t*)0x20001ae0 = 7; *(uint32_t*)0x20001ae4 = 9; *(uint32_t*)0x20001ae8 = 5; *(uint32_t*)0x20001aec = 0x20; *(uint32_t*)0x20001af0 = 0; *(uint32_t*)0x20001af4 = 0x7ff; *(uint32_t*)0x20001af8 = 0; *(uint32_t*)0x20001afc = 2; *(uint32_t*)0x20001b00 = 0xffff; *(uint32_t*)0x20001b04 = 7; *(uint32_t*)0x20001b08 = 8; *(uint32_t*)0x20001b0c = 0x20; *(uint32_t*)0x20001b10 = 4; *(uint32_t*)0x20001b14 = 0x101; *(uint32_t*)0x20001b18 = 0x401; *(uint32_t*)0x20001b1c = 0x80000001; *(uint32_t*)0x20001b20 = 4; *(uint32_t*)0x20001b24 = 2; *(uint32_t*)0x20001b28 = 8; *(uint32_t*)0x20001b2c = 0; *(uint32_t*)0x20001b30 = 0x100; *(uint32_t*)0x20001b34 = 1; *(uint32_t*)0x20001b38 = 1; *(uint32_t*)0x20001b3c = 0; *(uint32_t*)0x20001b40 = 7; *(uint32_t*)0x20001b44 = 0x7ff; *(uint32_t*)0x20001b48 = 0x41bd; *(uint32_t*)0x20001b4c = 0x7f; *(uint32_t*)0x20001b50 = 9; *(uint32_t*)0x20001b54 = 8; *(uint32_t*)0x20001b58 = 0xfffffffa; *(uint32_t*)0x20001b5c = 0x100; *(uint32_t*)0x20001b60 = 0; *(uint32_t*)0x20001b64 = 0xffffffc1; *(uint32_t*)0x20001b68 = 0x40; *(uint32_t*)0x20001b6c = 3; *(uint32_t*)0x20001b70 = 7; *(uint32_t*)0x20001b74 = 0x4b6; *(uint32_t*)0x20001b78 = 8; *(uint32_t*)0x20001b7c = 0xefb; *(uint32_t*)0x20001b80 = 0x200; *(uint32_t*)0x20001b84 = 0x101; *(uint32_t*)0x20001b88 = 5; *(uint32_t*)0x20001b8c = 6; *(uint32_t*)0x20001b90 = 6; *(uint32_t*)0x20001b94 = 0; *(uint32_t*)0x20001b98 = 0xb99c; *(uint32_t*)0x20001b9c = 3; *(uint32_t*)0x20001ba0 = 0xe0f; *(uint32_t*)0x20001ba4 = 0; *(uint32_t*)0x20001ba8 = 0x401; *(uint32_t*)0x20001bac = 5; *(uint32_t*)0x20001bb0 = 8; *(uint32_t*)0x20001bb4 = 0; *(uint32_t*)0x20001bb8 = 0xa2a; *(uint32_t*)0x20001bbc = 6; *(uint32_t*)0x20001bc0 = 0x5fa8456; *(uint32_t*)0x20001bc4 = 0x8b; *(uint32_t*)0x20001bc8 = 1; *(uint32_t*)0x20001bcc = 6; *(uint32_t*)0x20001bd0 = 0x3f; *(uint32_t*)0x20001bd4 = 0x100; *(uint32_t*)0x20001bd8 = 0x46ee; *(uint32_t*)0x20001bdc = 0; *(uint32_t*)0x20001be0 = 0x300; *(uint32_t*)0x20001be4 = 0x800000; *(uint32_t*)0x20001be8 = 9; *(uint32_t*)0x20001bec = 0x7f; *(uint32_t*)0x20001bf0 = 0x71; *(uint32_t*)0x20001bf4 = 0x3f; *(uint32_t*)0x20001bf8 = 0x80; *(uint32_t*)0x20001bfc = 1; *(uint32_t*)0x20001c00 = 3; *(uint32_t*)0x20001c04 = 7; *(uint32_t*)0x20001c08 = 0x7fff; *(uint32_t*)0x20001c0c = 5; *(uint32_t*)0x20001c10 = 0x8001; *(uint32_t*)0x20001c14 = 5; *(uint32_t*)0x20001c18 = 6; *(uint32_t*)0x20001c1c = 0x7fffffff; *(uint32_t*)0x20001c20 = 2; *(uint32_t*)0x20001c24 = 0xf826; *(uint32_t*)0x20001c28 = 0x185f; *(uint32_t*)0x20001c2c = 6; *(uint32_t*)0x20001c30 = 9; *(uint32_t*)0x20001c34 = 0; *(uint32_t*)0x20001c38 = 0x31; *(uint32_t*)0x20001c3c = 4; *(uint32_t*)0x20001c40 = 0x200; *(uint32_t*)0x20001c44 = 0xbb8; *(uint32_t*)0x20001c48 = 6; *(uint32_t*)0x20001c4c = 8; *(uint32_t*)0x20001c50 = 8; *(uint32_t*)0x20001c54 = 0; *(uint32_t*)0x20001c58 = 0x401; *(uint32_t*)0x20001c5c = 6; *(uint32_t*)0x20001c60 = 5; *(uint32_t*)0x20001c64 = 0x40; *(uint32_t*)0x20001c68 = 0x50000; *(uint32_t*)0x20001c6c = 0x7ade; *(uint32_t*)0x20001c70 = 0xa31; *(uint32_t*)0x20001c74 = 0x3f; *(uint32_t*)0x20001c78 = 9; *(uint32_t*)0x20001c7c = 0x20; *(uint32_t*)0x20001c80 = 0; *(uint32_t*)0x20001c84 = 0x10000; *(uint32_t*)0x20001c88 = 0x401; *(uint32_t*)0x20001c8c = 0x80000000; *(uint32_t*)0x20001c90 = 3; *(uint32_t*)0x20001c94 = 4; *(uint32_t*)0x20001c98 = 0x80; *(uint32_t*)0x20001c9c = 2; *(uint32_t*)0x20001ca0 = 6; *(uint32_t*)0x20001ca4 = 9; *(uint32_t*)0x20001ca8 = 5; *(uint32_t*)0x20001cac = 2; *(uint32_t*)0x20001cb0 = 5; *(uint32_t*)0x20001cb4 = 6; *(uint32_t*)0x20001cb8 = 2; *(uint32_t*)0x20001cbc = 0x8000000; *(uint32_t*)0x20001cc0 = 7; *(uint32_t*)0x20001cc4 = 4; *(uint32_t*)0x20001cc8 = 0x1ff; *(uint32_t*)0x20001ccc = 0x18000000; *(uint32_t*)0x20001cd0 = 9; *(uint32_t*)0x20001cd4 = 1; *(uint32_t*)0x20001cd8 = 6; *(uint32_t*)0x20001cdc = 7; *(uint32_t*)0x20001ce0 = 9; *(uint32_t*)0x20001ce4 = 0x20fb; *(uint32_t*)0x20001ce8 = 0xab6; *(uint32_t*)0x20001cec = 5; *(uint32_t*)0x20001cf0 = 0; *(uint32_t*)0x20001cf4 = 0xff; *(uint32_t*)0x20001cf8 = 9; *(uint32_t*)0x20001cfc = 0xa39; *(uint32_t*)0x20001d00 = 1; *(uint32_t*)0x20001d04 = 4; *(uint32_t*)0x20001d08 = 0xff; *(uint32_t*)0x20001d0c = 0x7fff; *(uint32_t*)0x20001d10 = 0x8c; *(uint32_t*)0x20001d14 = 9; *(uint32_t*)0x20001d18 = 0x8000; *(uint32_t*)0x20001d1c = 0x200; *(uint32_t*)0x20001d20 = 0xfffffff8; *(uint32_t*)0x20001d24 = 0x10e00; *(uint32_t*)0x20001d28 = 0; *(uint32_t*)0x20001d2c = 0; *(uint32_t*)0x20001d30 = 0; *(uint32_t*)0x20001d34 = 0; *(uint32_t*)0x20001d38 = 0; *(uint32_t*)0x20001d3c = 0; *(uint32_t*)0x20001d40 = 0; *(uint32_t*)0x20001d44 = 0; *(uint32_t*)0x20001d48 = 0; *(uint32_t*)0x20001d4c = 0; *(uint32_t*)0x20001d50 = 0; *(uint32_t*)0x20001d54 = 0; *(uint32_t*)0x20001d58 = 0; syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0xd01c4813, /*arg=*/0x20000d40ul); *(uint32_t*)0x20000040 = 0x24; *(uint64_t*)0x20000044 = 0; *(uint64_t*)0x2000004c = 0; *(uint64_t*)0x20000054 = 0; *(uint64_t*)0x2000005c = 0x200001c0; *(uint8_t*)0x200001c0 = 0; *(uint8_t*)0x200001c1 = 0x22; *(uint32_t*)0x200001c2 = 0x371; *(uint8_t*)0x200001c6 = 9; *(uint8_t*)0x200001c7 = 0x21; *(uint16_t*)0x200001c8 = 0; *(uint8_t*)0x200001ca = 0; *(uint8_t*)0x200001cb = 1; *(uint8_t*)0x200001cc = 0x22; *(uint16_t*)0x200001cd = 0; *(uint32_t*)0x20000080 = 0xffffffeb; *(uint64_t*)0x20000084 = 0; *(uint64_t*)0x2000008c = 0; *(uint64_t*)0x20000094 = 0; *(uint64_t*)0x2000009c = 0; *(uint64_t*)0x200000a4 = 0; syz_usb_control_io(/*fd=*/-1, /*descs=*/0x20000040, /*resps=*/0x20000080); memcpy((void*)0x200000c0, "/dev/input/event#\000", 18); res = -1; res = syz_open_dev(/*dev=*/0x200000c0, /*id=*/4, /*flags=*/0x822b01); if (res != -1) r[1] = res; memset((void*)0x20000040, 226, 1); syscall(__NR_write, /*fd=*/r[1], /*buf=*/0x20000040ul, /*count=*/0x35000ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); loop(); return 0; }