// https://syzkaller.appspot.com/bug?id=531a744660b6e3c4949e68851d679e035082b85c // 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; } 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 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 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; } } } void execute_one(void) { *(uint8_t*)0x20000840 = 0x12; *(uint8_t*)0x20000841 = 1; *(uint16_t*)0x20000842 = 0; *(uint8_t*)0x20000844 = 0x3e; *(uint8_t*)0x20000845 = 1; *(uint8_t*)0x20000846 = 0xb1; *(uint8_t*)0x20000847 = 0x40; *(uint16_t*)0x20000848 = 0xccd; *(uint16_t*)0x2000084a = 0x39; *(uint16_t*)0x2000084c = 0x8fd4; *(uint8_t*)0x2000084e = 1; *(uint8_t*)0x2000084f = 2; *(uint8_t*)0x20000850 = 3; *(uint8_t*)0x20000851 = 1; *(uint8_t*)0x20000852 = 9; *(uint8_t*)0x20000853 = 2; *(uint16_t*)0x20000854 = 0x370; *(uint8_t*)0x20000856 = 4; *(uint8_t*)0x20000857 = 0; *(uint8_t*)0x20000858 = 0; *(uint8_t*)0x20000859 = 0; *(uint8_t*)0x2000085a = 0; *(uint8_t*)0x2000085b = 9; *(uint8_t*)0x2000085c = 4; *(uint8_t*)0x2000085d = 0x91; *(uint8_t*)0x2000085e = 0; *(uint8_t*)0x2000085f = 0xe; *(uint8_t*)0x20000860 = 0x24; *(uint8_t*)0x20000861 = 0x7b; *(uint8_t*)0x20000862 = 0x68; *(uint8_t*)0x20000863 = 1; *(uint8_t*)0x20000864 = 5; *(uint8_t*)0x20000865 = 0x24; *(uint8_t*)0x20000866 = 6; *(uint8_t*)0x20000867 = 0; *(uint8_t*)0x20000868 = 0; *(uint8_t*)0x20000869 = 5; *(uint8_t*)0x2000086a = 0x24; *(uint8_t*)0x2000086b = 0; *(uint16_t*)0x2000086c = 9; *(uint8_t*)0x2000086e = 0xd; *(uint8_t*)0x2000086f = 0x24; *(uint8_t*)0x20000870 = 0xf; *(uint8_t*)0x20000871 = 1; *(uint32_t*)0x20000872 = 0xd5a7; *(uint16_t*)0x20000876 = 0x7f; *(uint16_t*)0x20000878 = 6; *(uint8_t*)0x2000087a = 0x80; *(uint8_t*)0x2000087b = 4; *(uint8_t*)0x2000087c = 0x24; *(uint8_t*)0x2000087d = 2; *(uint8_t*)0x2000087e = 0; *(uint8_t*)0x2000087f = 7; *(uint8_t*)0x20000880 = 0x24; *(uint8_t*)0x20000881 = 0xa; *(uint8_t*)0x20000882 = 1; *(uint8_t*)0x20000883 = 0x24; *(uint8_t*)0x20000884 = 8; *(uint8_t*)0x20000885 = 0x80; *(uint8_t*)0x20000886 = 0xe; *(uint8_t*)0x20000887 = 0x24; *(uint8_t*)0x20000888 = 7; *(uint8_t*)0x20000889 = 4; *(uint16_t*)0x2000088a = 9; *(uint16_t*)0x2000088c = 8; *(uint16_t*)0x2000088e = 0; *(uint16_t*)0x20000890 = 2; *(uint16_t*)0x20000892 = 0xcf2; *(uint8_t*)0x20000894 = 7; *(uint8_t*)0x20000895 = 0x24; *(uint8_t*)0x20000896 = 0xa; *(uint8_t*)0x20000897 = 0x40; *(uint8_t*)0x20000898 = 7; *(uint8_t*)0x20000899 = 1; *(uint8_t*)0x2000089a = 0x20; *(uint8_t*)0x2000089b = 4; *(uint8_t*)0x2000089c = 0x24; *(uint8_t*)0x2000089d = 0x13; *(uint8_t*)0x2000089e = 6; *(uint8_t*)0x2000089f = 4; *(uint8_t*)0x200008a0 = 0x24; *(uint8_t*)0x200008a1 = 2; *(uint8_t*)0x200008a2 = 4; *(uint8_t*)0x200008a3 = 9; *(uint8_t*)0x200008a4 = 5; *(uint8_t*)0x200008a5 = 4; *(uint8_t*)0x200008a6 = 2; *(uint16_t*)0x200008a7 = 8; *(uint8_t*)0x200008a9 = 0xce; *(uint8_t*)0x200008aa = 0xf0; *(uint8_t*)0x200008ab = 0x8c; *(uint8_t*)0x200008ac = 7; *(uint8_t*)0x200008ad = 0x25; *(uint8_t*)0x200008ae = 1; *(uint8_t*)0x200008af = 2; *(uint8_t*)0x200008b0 = 0xfe; *(uint16_t*)0x200008b1 = 0; *(uint8_t*)0x200008b3 = 9; *(uint8_t*)0x200008b4 = 5; *(uint8_t*)0x200008b5 = 8; *(uint8_t*)0x200008b6 = 0; *(uint16_t*)0x200008b7 = 0x400; *(uint8_t*)0x200008b9 = 0x33; *(uint8_t*)0x200008ba = 0xc0; *(uint8_t*)0x200008bb = 0x1f; *(uint8_t*)0x200008bc = 9; *(uint8_t*)0x200008bd = 5; *(uint8_t*)0x200008be = 0xb; *(uint8_t*)0x200008bf = 0; *(uint16_t*)0x200008c0 = 0x20; *(uint8_t*)0x200008c2 = 0xb4; *(uint8_t*)0x200008c3 = 9; *(uint8_t*)0x200008c4 = 4; *(uint8_t*)0x200008c5 = 2; *(uint8_t*)0x200008c6 = 2; *(uint8_t*)0x200008c7 = 2; *(uint8_t*)0x200008c8 = 0x23; *(uint8_t*)0x200008c9 = 9; *(uint8_t*)0x200008ca = 5; *(uint8_t*)0x200008cb = 0xe; *(uint8_t*)0x200008cc = 2; *(uint16_t*)0x200008cd = 8; *(uint8_t*)0x200008cf = 0x7f; *(uint8_t*)0x200008d0 = 0x80; *(uint8_t*)0x200008d1 = 0xc5; *(uint8_t*)0x200008d2 = 9; *(uint8_t*)0x200008d3 = 5; *(uint8_t*)0x200008d4 = 5; *(uint8_t*)0x200008d5 = 0; *(uint16_t*)0x200008d6 = 0x40; *(uint8_t*)0x200008d8 = 0; *(uint8_t*)0x200008d9 = 0x7f; *(uint8_t*)0x200008da = 0x7f; *(uint8_t*)0x200008db = 7; *(uint8_t*)0x200008dc = 0x25; *(uint8_t*)0x200008dd = 1; *(uint8_t*)0x200008de = 0x82; *(uint8_t*)0x200008df = 0x40; *(uint16_t*)0x200008e0 = 0x401; *(uint8_t*)0x200008e2 = 9; *(uint8_t*)0x200008e3 = 5; *(uint8_t*)0x200008e4 = 0xc; *(uint8_t*)0x200008e5 = 4; *(uint16_t*)0x200008e6 = 0x40; *(uint8_t*)0x200008e8 = 6; *(uint8_t*)0x200008e9 = 4; *(uint8_t*)0x200008ea = 5; *(uint8_t*)0x200008eb = 9; *(uint8_t*)0x200008ec = 5; *(uint8_t*)0x200008ed = 2; *(uint8_t*)0x200008ee = 0xc; *(uint16_t*)0x200008ef = 8; *(uint8_t*)0x200008f1 = 0x86; *(uint8_t*)0x200008f2 = 0xd6; *(uint8_t*)0x200008f3 = 4; *(uint8_t*)0x200008f4 = 2; *(uint8_t*)0x200008f5 = 0x23; *(uint8_t*)0x200008f6 = 9; *(uint8_t*)0x200008f7 = 5; *(uint8_t*)0x200008f8 = 6; *(uint8_t*)0x200008f9 = 0; *(uint16_t*)0x200008fa = 0x10; *(uint8_t*)0x200008fc = 0x5e; *(uint8_t*)0x200008fd = 0; *(uint8_t*)0x200008fe = 4; *(uint8_t*)0x200008ff = 7; *(uint8_t*)0x20000900 = 0x25; *(uint8_t*)0x20000901 = 1; *(uint8_t*)0x20000902 = 0x80; *(uint8_t*)0x20000903 = 0x40; *(uint16_t*)0x20000904 = 6; *(uint8_t*)0x20000906 = 9; *(uint8_t*)0x20000907 = 5; *(uint8_t*)0x20000908 = 0; *(uint8_t*)0x20000909 = 0; *(uint16_t*)0x2000090a = 0; *(uint8_t*)0x2000090c = 0; *(uint8_t*)0x2000090d = 2; *(uint8_t*)0x2000090e = 3; *(uint8_t*)0x2000090f = 2; *(uint8_t*)0x20000910 = 0x10; *(uint8_t*)0x20000911 = 2; *(uint8_t*)0x20000912 = 0x23; *(uint8_t*)0x20000913 = 9; *(uint8_t*)0x20000914 = 5; *(uint8_t*)0x20000915 = 0xa; *(uint8_t*)0x20000916 = 0x10; *(uint16_t*)0x20000917 = 0x10; *(uint8_t*)0x20000919 = 1; *(uint8_t*)0x2000091a = 0; *(uint8_t*)0x2000091b = 7; *(uint8_t*)0x2000091c = 9; *(uint8_t*)0x2000091d = 5; *(uint8_t*)0x2000091e = 0xa; *(uint8_t*)0x2000091f = 0x10; *(uint16_t*)0x20000920 = 0x40; *(uint8_t*)0x20000922 = 8; *(uint8_t*)0x20000923 = 6; *(uint8_t*)0x20000924 = 0x40; *(uint8_t*)0x20000925 = 7; *(uint8_t*)0x20000926 = 0x25; *(uint8_t*)0x20000927 = 1; *(uint8_t*)0x20000928 = 2; *(uint8_t*)0x20000929 = 0x5c; *(uint16_t*)0x2000092a = 0; *(uint8_t*)0x2000092c = 7; *(uint8_t*)0x2000092d = 0x25; *(uint8_t*)0x2000092e = 1; *(uint8_t*)0x2000092f = 0x81; *(uint8_t*)0x20000930 = 0; *(uint16_t*)0x20000931 = 0; *(uint8_t*)0x20000933 = 9; *(uint8_t*)0x20000934 = 5; *(uint8_t*)0x20000935 = 0xf; *(uint8_t*)0x20000936 = 0; *(uint16_t*)0x20000937 = 0x10; *(uint8_t*)0x20000939 = 0x20; *(uint8_t*)0x2000093a = 0x40; *(uint8_t*)0x2000093b = 6; *(uint8_t*)0x2000093c = 9; *(uint8_t*)0x2000093d = 5; *(uint8_t*)0x2000093e = 0xc; *(uint8_t*)0x2000093f = 1; *(uint16_t*)0x20000940 = 0x10; *(uint8_t*)0x20000942 = 7; *(uint8_t*)0x20000943 = 0x3f; *(uint8_t*)0x20000944 = 1; *(uint8_t*)0x20000945 = 2; *(uint8_t*)0x20000946 = 0x22; *(uint8_t*)0x20000947 = 7; *(uint8_t*)0x20000948 = 0x25; *(uint8_t*)0x20000949 = 1; *(uint8_t*)0x2000094a = 0x80; *(uint8_t*)0x2000094b = 6; *(uint16_t*)0x2000094c = 9; *(uint8_t*)0x2000094e = 9; *(uint8_t*)0x2000094f = 5; *(uint8_t*)0x20000950 = 0xc; *(uint8_t*)0x20000951 = 0; *(uint16_t*)0x20000952 = 0x20; *(uint8_t*)0x20000954 = 0x20; *(uint8_t*)0x20000955 = -1; *(uint8_t*)0x20000956 = -1; *(uint8_t*)0x20000957 = 9; *(uint8_t*)0x20000958 = 4; *(uint8_t*)0x20000959 = 0xcd; *(uint8_t*)0x2000095a = 6; *(uint8_t*)0x2000095b = 0xd; *(uint8_t*)0x2000095c = 0x98; *(uint8_t*)0x2000095d = 0xf7; *(uint8_t*)0x2000095e = 0x26; *(uint8_t*)0x2000095f = 9; *(uint8_t*)0x20000960 = 5; *(uint8_t*)0x20000961 = 0x24; *(uint8_t*)0x20000962 = 6; *(uint8_t*)0x20000963 = 0; *(uint8_t*)0x20000964 = 0; *(uint8_t*)0x20000965 = 5; *(uint8_t*)0x20000966 = 0x24; *(uint8_t*)0x20000967 = 0; *(uint16_t*)0x20000968 = 1; *(uint8_t*)0x2000096a = 0xd; *(uint8_t*)0x2000096b = 0x24; *(uint8_t*)0x2000096c = 0xf; *(uint8_t*)0x2000096d = 1; *(uint32_t*)0x2000096e = 0x3ff; *(uint16_t*)0x20000972 = 0xa1; *(uint16_t*)0x20000974 = 0x3ff; *(uint8_t*)0x20000976 = 6; *(uint8_t*)0x20000977 = 5; *(uint8_t*)0x20000978 = 0x24; *(uint8_t*)0x20000979 = 0x15; *(uint16_t*)0x2000097a = 6; *(uint8_t*)0x2000097c = 0x12; *(uint8_t*)0x2000097d = 0x24; *(uint8_t*)0x2000097e = 7; *(uint8_t*)0x2000097f = 8; *(uint16_t*)0x20000980 = 2; *(uint16_t*)0x20000982 = 0x401; *(uint16_t*)0x20000984 = 0x100; *(uint16_t*)0x20000986 = 1; *(uint16_t*)0x20000988 = 0xfc01; *(uint16_t*)0x2000098a = 0x549; *(uint16_t*)0x2000098c = 8; *(uint8_t*)0x2000098e = 5; *(uint8_t*)0x2000098f = 0x24; *(uint8_t*)0x20000990 = 1; *(uint8_t*)0x20000991 = 2; *(uint8_t*)0x20000992 = 0x6a; *(uint8_t*)0x20000993 = 9; *(uint8_t*)0x20000994 = 0x21; *(uint16_t*)0x20000995 = 3; *(uint8_t*)0x20000997 = -1; *(uint8_t*)0x20000998 = 1; *(uint8_t*)0x20000999 = 0x22; *(uint16_t*)0x2000099a = 0xe2; *(uint8_t*)0x2000099c = 9; *(uint8_t*)0x2000099d = 5; *(uint8_t*)0x2000099e = 0xf; *(uint8_t*)0x2000099f = 0x10; *(uint16_t*)0x200009a0 = 0x40; *(uint8_t*)0x200009a2 = 0x80; *(uint8_t*)0x200009a3 = 4; *(uint8_t*)0x200009a4 = 1; *(uint8_t*)0x200009a5 = 2; *(uint8_t*)0x200009a6 = 0xf; *(uint8_t*)0x200009a7 = 7; *(uint8_t*)0x200009a8 = 0x25; *(uint8_t*)0x200009a9 = 1; *(uint8_t*)0x200009aa = 0x80; *(uint8_t*)0x200009ab = 0; *(uint16_t*)0x200009ac = 0xa993; *(uint8_t*)0x200009ae = 9; *(uint8_t*)0x200009af = 5; *(uint8_t*)0x200009b0 = 0; *(uint8_t*)0x200009b1 = 0; *(uint16_t*)0x200009b2 = 0x3ff; *(uint8_t*)0x200009b4 = 5; *(uint8_t*)0x200009b5 = 7; *(uint8_t*)0x200009b6 = 0; *(uint8_t*)0x200009b7 = 7; *(uint8_t*)0x200009b8 = 0x25; *(uint8_t*)0x200009b9 = 1; *(uint8_t*)0x200009ba = 0x82; *(uint8_t*)0x200009bb = 0xd9; *(uint16_t*)0x200009bc = 0xa2; *(uint8_t*)0x200009be = 7; *(uint8_t*)0x200009bf = 0x25; *(uint8_t*)0x200009c0 = 1; *(uint8_t*)0x200009c1 = 0x80; *(uint8_t*)0x200009c2 = 8; *(uint16_t*)0x200009c3 = 6; *(uint8_t*)0x200009c5 = 9; *(uint8_t*)0x200009c6 = 5; *(uint8_t*)0x200009c7 = 0xa; *(uint8_t*)0x200009c8 = 4; *(uint16_t*)0x200009c9 = 0x200; *(uint8_t*)0x200009cb = 2; *(uint8_t*)0x200009cc = 0x7f; *(uint8_t*)0x200009cd = 0x20; *(uint8_t*)0x200009ce = 9; *(uint8_t*)0x200009cf = 5; *(uint8_t*)0x200009d0 = 0xa; *(uint8_t*)0x200009d1 = 1; *(uint16_t*)0x200009d2 = 0x3ff; *(uint8_t*)0x200009d4 = 0x91; *(uint8_t*)0x200009d5 = 0xe9; *(uint8_t*)0x200009d6 = 0xf7; *(uint8_t*)0x200009d7 = 7; *(uint8_t*)0x200009d8 = 0x25; *(uint8_t*)0x200009d9 = 1; *(uint8_t*)0x200009da = 3; *(uint8_t*)0x200009db = 9; *(uint16_t*)0x200009dc = 0xfff; *(uint8_t*)0x200009de = 7; *(uint8_t*)0x200009df = 0x25; *(uint8_t*)0x200009e0 = 1; *(uint8_t*)0x200009e1 = 2; *(uint8_t*)0x200009e2 = 9; *(uint16_t*)0x200009e3 = 6; *(uint8_t*)0x200009e5 = 9; *(uint8_t*)0x200009e6 = 5; *(uint8_t*)0x200009e7 = 4; *(uint8_t*)0x200009e8 = 0x10; *(uint16_t*)0x200009e9 = 0x40; *(uint8_t*)0x200009eb = 0x24; *(uint8_t*)0x200009ec = 2; *(uint8_t*)0x200009ed = 2; *(uint8_t*)0x200009ee = 2; *(uint8_t*)0x200009ef = 0xd; *(uint8_t*)0x200009f0 = 7; *(uint8_t*)0x200009f1 = 0x25; *(uint8_t*)0x200009f2 = 1; *(uint8_t*)0x200009f3 = 0; *(uint8_t*)0x200009f4 = 4; *(uint16_t*)0x200009f5 = 0xc0d1; *(uint8_t*)0x200009f7 = 9; *(uint8_t*)0x200009f8 = 5; *(uint8_t*)0x200009f9 = 0xc; *(uint8_t*)0x200009fa = 0; *(uint16_t*)0x200009fb = 8; *(uint8_t*)0x200009fd = 2; *(uint8_t*)0x200009fe = 0x40; *(uint8_t*)0x200009ff = 5; *(uint8_t*)0x20000a00 = 7; *(uint8_t*)0x20000a01 = 0x25; *(uint8_t*)0x20000a02 = 1; *(uint8_t*)0x20000a03 = 0x81; *(uint8_t*)0x20000a04 = 0xf9; *(uint16_t*)0x20000a05 = 0x400; *(uint8_t*)0x20000a07 = 9; *(uint8_t*)0x20000a08 = 5; *(uint8_t*)0x20000a09 = 0xa; *(uint8_t*)0x20000a0a = 0; *(uint16_t*)0x20000a0b = 0x400; *(uint8_t*)0x20000a0d = 1; *(uint8_t*)0x20000a0e = 8; *(uint8_t*)0x20000a0f = 0x1f; *(uint8_t*)0x20000a10 = 9; *(uint8_t*)0x20000a11 = 5; *(uint8_t*)0x20000a12 = 0xd; *(uint8_t*)0x20000a13 = 3; *(uint16_t*)0x20000a14 = 0x200; *(uint8_t*)0x20000a16 = 4; *(uint8_t*)0x20000a17 = 0x3f; *(uint8_t*)0x20000a18 = 0x33; *(uint8_t*)0x20000a19 = 9; *(uint8_t*)0x20000a1a = 5; *(uint8_t*)0x20000a1b = 5; *(uint8_t*)0x20000a1c = 3; *(uint16_t*)0x20000a1d = 8; *(uint8_t*)0x20000a1f = 6; *(uint8_t*)0x20000a20 = 8; *(uint8_t*)0x20000a21 = 0; *(uint8_t*)0x20000a22 = 9; *(uint8_t*)0x20000a23 = 5; *(uint8_t*)0x20000a24 = 9; *(uint8_t*)0x20000a25 = 3; *(uint16_t*)0x20000a26 = 0x400; *(uint8_t*)0x20000a28 = 0x84; *(uint8_t*)0x20000a29 = 1; *(uint8_t*)0x20000a2a = 0x81; *(uint8_t*)0x20000a2b = 2; *(uint8_t*)0x20000a2c = 4; *(uint8_t*)0x20000a2d = 9; *(uint8_t*)0x20000a2e = 5; *(uint8_t*)0x20000a2f = 0xf; *(uint8_t*)0x20000a30 = 0xc; *(uint16_t*)0x20000a31 = 0x3ff; *(uint8_t*)0x20000a33 = 9; *(uint8_t*)0x20000a34 = 0x90; *(uint8_t*)0x20000a35 = -1; *(uint8_t*)0x20000a36 = 9; *(uint8_t*)0x20000a37 = 5; *(uint8_t*)0x20000a38 = 7; *(uint8_t*)0x20000a39 = 6; *(uint16_t*)0x20000a3a = 0x400; *(uint8_t*)0x20000a3c = 3; *(uint8_t*)0x20000a3d = 0xfe; *(uint8_t*)0x20000a3e = 7; *(uint8_t*)0x20000a3f = 7; *(uint8_t*)0x20000a40 = 0x25; *(uint8_t*)0x20000a41 = 1; *(uint8_t*)0x20000a42 = 1; *(uint8_t*)0x20000a43 = 0x40; *(uint16_t*)0x20000a44 = 1; *(uint8_t*)0x20000a46 = 9; *(uint8_t*)0x20000a47 = 5; *(uint8_t*)0x20000a48 = 1; *(uint8_t*)0x20000a49 = 0; *(uint16_t*)0x20000a4a = 0x40; *(uint8_t*)0x20000a4c = -1; *(uint8_t*)0x20000a4d = 0; *(uint8_t*)0x20000a4e = 0xb0; *(uint8_t*)0x20000a4f = 7; *(uint8_t*)0x20000a50 = 0x25; *(uint8_t*)0x20000a51 = 1; *(uint8_t*)0x20000a52 = 3; *(uint8_t*)0x20000a53 = 9; *(uint16_t*)0x20000a54 = 0xfd; *(uint8_t*)0x20000a56 = 9; *(uint8_t*)0x20000a57 = 4; *(uint8_t*)0x20000a58 = 0x4c; *(uint8_t*)0x20000a59 = 0; *(uint8_t*)0x20000a5a = 3; *(uint8_t*)0x20000a5b = 0x1b; *(uint8_t*)0x20000a5c = 0xe6; *(uint8_t*)0x20000a5d = 0x5c; *(uint8_t*)0x20000a5e = 3; *(uint8_t*)0x20000a5f = 2; *(uint8_t*)0x20000a60 = 8; *(uint8_t*)0x20000a61 = 5; *(uint8_t*)0x20000a62 = 0x24; *(uint8_t*)0x20000a63 = 6; *(uint8_t*)0x20000a64 = 0; *(uint8_t*)0x20000a65 = 0; *(uint8_t*)0x20000a66 = 5; *(uint8_t*)0x20000a67 = 0x24; *(uint8_t*)0x20000a68 = 0; *(uint16_t*)0x20000a69 = 2; *(uint8_t*)0x20000a6b = 0xd; *(uint8_t*)0x20000a6c = 0x24; *(uint8_t*)0x20000a6d = 0xf; *(uint8_t*)0x20000a6e = 1; *(uint32_t*)0x20000a6f = 3; *(uint16_t*)0x20000a73 = 0x1ff; *(uint16_t*)0x20000a75 = 8; *(uint8_t*)0x20000a77 = 0; *(uint8_t*)0x20000a78 = 0xe; *(uint8_t*)0x20000a79 = 0x24; *(uint8_t*)0x20000a7a = 7; *(uint8_t*)0x20000a7b = 1; *(uint16_t*)0x20000a7c = 8; *(uint16_t*)0x20000a7e = 4; *(uint16_t*)0x20000a80 = 5; *(uint16_t*)0x20000a82 = 0x2221; *(uint16_t*)0x20000a84 = 3; *(uint8_t*)0x20000a86 = 9; *(uint8_t*)0x20000a87 = 5; *(uint8_t*)0x20000a88 = 0xc; *(uint8_t*)0x20000a89 = 0; *(uint16_t*)0x20000a8a = 0x10; *(uint8_t*)0x20000a8c = 1; *(uint8_t*)0x20000a8d = 0x91; *(uint8_t*)0x20000a8e = 7; *(uint8_t*)0x20000a8f = 7; *(uint8_t*)0x20000a90 = 0x25; *(uint8_t*)0x20000a91 = 1; *(uint8_t*)0x20000a92 = 0x80; *(uint8_t*)0x20000a93 = 3; *(uint16_t*)0x20000a94 = 0x25; *(uint8_t*)0x20000a96 = 9; *(uint8_t*)0x20000a97 = 5; *(uint8_t*)0x20000a98 = 5; *(uint8_t*)0x20000a99 = 0x10; *(uint16_t*)0x20000a9a = 0x40; *(uint8_t*)0x20000a9c = 0x7f; *(uint8_t*)0x20000a9d = 0x1f; *(uint8_t*)0x20000a9e = 0x1f; *(uint8_t*)0x20000a9f = 9; *(uint8_t*)0x20000aa0 = 5; *(uint8_t*)0x20000aa1 = 0x80; *(uint8_t*)0x20000aa2 = 0x11; *(uint16_t*)0x20000aa3 = 0x40; *(uint8_t*)0x20000aa5 = 3; *(uint8_t*)0x20000aa6 = 4; *(uint8_t*)0x20000aa7 = 0x7f; *(uint8_t*)0x20000aa8 = 2; *(uint8_t*)0x20000aa9 = 5; *(uint8_t*)0x20000aaa = 7; *(uint8_t*)0x20000aab = 0x25; *(uint8_t*)0x20000aac = 1; *(uint8_t*)0x20000aad = 0x81; *(uint8_t*)0x20000aae = 0x7f; *(uint16_t*)0x20000aaf = 0x649a; *(uint8_t*)0x20000ab1 = 9; *(uint8_t*)0x20000ab2 = 4; *(uint8_t*)0x20000ab3 = 0xce; *(uint8_t*)0x20000ab4 = 0xf9; *(uint8_t*)0x20000ab5 = 0xd; *(uint8_t*)0x20000ab6 = 0x82; *(uint8_t*)0x20000ab7 = 0x33; *(uint8_t*)0x20000ab8 = 0x3d; *(uint8_t*)0x20000ab9 = 0x51; *(uint8_t*)0x20000aba = 5; *(uint8_t*)0x20000abb = 0x24; *(uint8_t*)0x20000abc = 6; *(uint8_t*)0x20000abd = 0; *(uint8_t*)0x20000abe = 1; *(uint8_t*)0x20000abf = 5; *(uint8_t*)0x20000ac0 = 0x24; *(uint8_t*)0x20000ac1 = 0; *(uint16_t*)0x20000ac2 = 0x8001; *(uint8_t*)0x20000ac4 = 0xd; *(uint8_t*)0x20000ac5 = 0x24; *(uint8_t*)0x20000ac6 = 0xf; *(uint8_t*)0x20000ac7 = 1; *(uint32_t*)0x20000ac8 = 8; *(uint16_t*)0x20000acc = 0x20; *(uint16_t*)0x20000ace = 0; *(uint8_t*)0x20000ad0 = 9; *(uint8_t*)0x20000ad1 = 6; *(uint8_t*)0x20000ad2 = 0x24; *(uint8_t*)0x20000ad3 = 0x1a; *(uint16_t*)0x20000ad4 = 0xcf49; *(uint8_t*)0x20000ad6 = 0; *(uint8_t*)0x20000ad7 = 7; *(uint8_t*)0x20000ad8 = 0x24; *(uint8_t*)0x20000ad9 = 0x14; *(uint16_t*)0x20000ada = 6; *(uint16_t*)0x20000adc = 0x57d1; *(uint8_t*)0x20000ade = 0xc; *(uint8_t*)0x20000adf = 0x24; *(uint8_t*)0x20000ae0 = 0x1b; *(uint16_t*)0x20000ae1 = 0x5f; *(uint16_t*)0x20000ae3 = 7; *(uint8_t*)0x20000ae5 = -1; *(uint8_t*)0x20000ae6 = 0x3c; *(uint16_t*)0x20000ae7 = 0x6000; *(uint8_t*)0x20000ae9 = 3; *(uint8_t*)0x20000aea = 5; *(uint8_t*)0x20000aeb = 0x24; *(uint8_t*)0x20000aec = 1; *(uint8_t*)0x20000aed = 0; *(uint8_t*)0x20000aee = 8; *(uint8_t*)0x20000aef = 0x15; *(uint8_t*)0x20000af0 = 0x24; *(uint8_t*)0x20000af1 = 0x12; *(uint16_t*)0x20000af2 = 8; *(uint64_t*)0x20000af4 = 0x14f5e048ba817a3; *(uint64_t*)0x20000afc = 0x2a397ecbffc007a6; *(uint8_t*)0x20000b04 = 7; *(uint8_t*)0x20000b05 = 0x24; *(uint8_t*)0x20000b06 = 0xa; *(uint8_t*)0x20000b07 = 7; *(uint8_t*)0x20000b08 = 6; *(uint8_t*)0x20000b09 = 0x3f; *(uint8_t*)0x20000b0a = 8; *(uint8_t*)0x20000b0b = 4; *(uint8_t*)0x20000b0c = 0x24; *(uint8_t*)0x20000b0d = 0x13; *(uint8_t*)0x20000b0e = 8; *(uint8_t*)0x20000b0f = 9; *(uint8_t*)0x20000b10 = 5; *(uint8_t*)0x20000b11 = 2; *(uint8_t*)0x20000b12 = 8; *(uint16_t*)0x20000b13 = 0; *(uint8_t*)0x20000b15 = 7; *(uint8_t*)0x20000b16 = 9; *(uint8_t*)0x20000b17 = 9; *(uint8_t*)0x20000b18 = 9; *(uint8_t*)0x20000b19 = 5; *(uint8_t*)0x20000b1a = 0xd; *(uint8_t*)0x20000b1b = 0x12; *(uint16_t*)0x20000b1c = 0x20; *(uint8_t*)0x20000b1e = 2; *(uint8_t*)0x20000b1f = 0xb7; *(uint8_t*)0x20000b20 = 1; *(uint8_t*)0x20000b21 = 9; *(uint8_t*)0x20000b22 = 5; *(uint8_t*)0x20000b23 = 0xa; *(uint8_t*)0x20000b24 = 8; *(uint16_t*)0x20000b25 = 0; *(uint8_t*)0x20000b27 = 9; *(uint8_t*)0x20000b28 = 0x78; *(uint8_t*)0x20000b29 = 5; *(uint8_t*)0x20000b2a = 2; *(uint8_t*)0x20000b2b = 0x24; *(uint8_t*)0x20000b2c = 9; *(uint8_t*)0x20000b2d = 5; *(uint8_t*)0x20000b2e = 3; *(uint8_t*)0x20000b2f = 3; *(uint16_t*)0x20000b30 = 0x200; *(uint8_t*)0x20000b32 = 0x22; *(uint8_t*)0x20000b33 = 9; *(uint8_t*)0x20000b34 = 0x57; *(uint8_t*)0x20000b35 = 7; *(uint8_t*)0x20000b36 = 0x25; *(uint8_t*)0x20000b37 = 1; *(uint8_t*)0x20000b38 = 0x81; *(uint8_t*)0x20000b39 = 0xf8; *(uint16_t*)0x20000b3a = 2; *(uint8_t*)0x20000b3c = 2; *(uint8_t*)0x20000b3d = 0; *(uint8_t*)0x20000b3e = 9; *(uint8_t*)0x20000b3f = 5; *(uint8_t*)0x20000b40 = 7; *(uint8_t*)0x20000b41 = 3; *(uint16_t*)0x20000b42 = 0x40; *(uint8_t*)0x20000b44 = 2; *(uint8_t*)0x20000b45 = 0xd3; *(uint8_t*)0x20000b46 = 2; *(uint8_t*)0x20000b47 = 2; *(uint8_t*)0x20000b48 = 6; *(uint8_t*)0x20000b49 = 9; *(uint8_t*)0x20000b4a = 5; *(uint8_t*)0x20000b4b = 9; *(uint8_t*)0x20000b4c = 0x10; *(uint16_t*)0x20000b4d = 0x40; *(uint8_t*)0x20000b4f = 1; *(uint8_t*)0x20000b50 = 0x7f; *(uint8_t*)0x20000b51 = 8; *(uint8_t*)0x20000b52 = 2; *(uint8_t*)0x20000b53 = 0x11; *(uint8_t*)0x20000b54 = 7; *(uint8_t*)0x20000b55 = 0x25; *(uint8_t*)0x20000b56 = 1; *(uint8_t*)0x20000b57 = 2; *(uint8_t*)0x20000b58 = 0x7f; *(uint16_t*)0x20000b59 = 8; *(uint8_t*)0x20000b5b = 9; *(uint8_t*)0x20000b5c = 5; *(uint8_t*)0x20000b5d = 3; *(uint8_t*)0x20000b5e = 8; *(uint16_t*)0x20000b5f = 8; *(uint8_t*)0x20000b61 = 4; *(uint8_t*)0x20000b62 = 0; *(uint8_t*)0x20000b63 = 0x80; *(uint8_t*)0x20000b64 = 2; *(uint8_t*)0x20000b65 = 0x10; *(uint8_t*)0x20000b66 = 7; *(uint8_t*)0x20000b67 = 0x25; *(uint8_t*)0x20000b68 = 1; *(uint8_t*)0x20000b69 = 2; *(uint8_t*)0x20000b6a = 0; *(uint16_t*)0x20000b6b = 0xe8a; *(uint8_t*)0x20000b6d = 9; *(uint8_t*)0x20000b6e = 5; *(uint8_t*)0x20000b6f = 0; *(uint8_t*)0x20000b70 = 0x98; *(uint16_t*)0x20000b71 = 0x20; *(uint8_t*)0x20000b73 = 1; *(uint8_t*)0x20000b74 = 1; *(uint8_t*)0x20000b75 = 4; *(uint8_t*)0x20000b76 = 2; *(uint8_t*)0x20000b77 = 0x23; *(uint8_t*)0x20000b78 = 2; *(uint8_t*)0x20000b79 = 0x21; *(uint8_t*)0x20000b7a = 9; *(uint8_t*)0x20000b7b = 5; *(uint8_t*)0x20000b7c = 9; *(uint8_t*)0x20000b7d = 0; *(uint16_t*)0x20000b7e = 8; *(uint8_t*)0x20000b80 = 0x7f; *(uint8_t*)0x20000b81 = 0x57; *(uint8_t*)0x20000b82 = 5; *(uint8_t*)0x20000b83 = 9; *(uint8_t*)0x20000b84 = 5; *(uint8_t*)0x20000b85 = 0xa; *(uint8_t*)0x20000b86 = 4; *(uint16_t*)0x20000b87 = 0x20; *(uint8_t*)0x20000b89 = 0; *(uint8_t*)0x20000b8a = 0xa9; *(uint8_t*)0x20000b8b = 4; *(uint8_t*)0x20000b8c = 7; *(uint8_t*)0x20000b8d = 0x25; *(uint8_t*)0x20000b8e = 1; *(uint8_t*)0x20000b8f = 2; *(uint8_t*)0x20000b90 = 0x1f; *(uint16_t*)0x20000b91 = 3; *(uint8_t*)0x20000b93 = 9; *(uint8_t*)0x20000b94 = 5; *(uint8_t*)0x20000b95 = 2; *(uint8_t*)0x20000b96 = 0x10; *(uint16_t*)0x20000b97 = 0x3ff; *(uint8_t*)0x20000b99 = 6; *(uint8_t*)0x20000b9a = 8; *(uint8_t*)0x20000b9b = 0x7f; *(uint8_t*)0x20000b9c = 7; *(uint8_t*)0x20000b9d = 0x25; *(uint8_t*)0x20000b9e = 1; *(uint8_t*)0x20000b9f = 0x83; *(uint8_t*)0x20000ba0 = 9; *(uint16_t*)0x20000ba1 = 8; *(uint8_t*)0x20000ba3 = 2; *(uint8_t*)0x20000ba4 = 5; *(uint8_t*)0x20000ba5 = 9; *(uint8_t*)0x20000ba6 = 5; *(uint8_t*)0x20000ba7 = 2; *(uint8_t*)0x20000ba8 = 1; *(uint16_t*)0x20000ba9 = 0x400; *(uint8_t*)0x20000bab = 5; *(uint8_t*)0x20000bac = 1; *(uint8_t*)0x20000bad = 2; *(uint8_t*)0x20000bae = 7; *(uint8_t*)0x20000baf = 0x25; *(uint8_t*)0x20000bb0 = 1; *(uint8_t*)0x20000bb1 = 0x80; *(uint8_t*)0x20000bb2 = 0x80; *(uint16_t*)0x20000bb3 = 0x81; *(uint8_t*)0x20000bb5 = 2; *(uint8_t*)0x20000bb6 = 0x23; *(uint8_t*)0x20000bb7 = 9; *(uint8_t*)0x20000bb8 = 5; *(uint8_t*)0x20000bb9 = 7; *(uint8_t*)0x20000bba = 1; *(uint16_t*)0x20000bbb = 0x10; *(uint8_t*)0x20000bbd = 0x3f; *(uint8_t*)0x20000bbe = 5; *(uint8_t*)0x20000bbf = -1; *(uint8_t*)0x20000bc0 = 2; *(uint8_t*)0x20000bc1 = 4; syz_usb_connect(3, 0x382, 0x20000840, 0); } 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); loop(); return 0; }