// https://syzkaller.appspot.com/bug?id=35acc31cfe715b32b649129f286c960dba2d49c5 // 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 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 USB_DEBUG 0 #define USB_MAX_IFACE_NUM 4 #define USB_MAX_EP_NUM 32 struct usb_iface_index { struct usb_interface_descriptor* iface; struct usb_endpoint_descriptor* eps[USB_MAX_EP_NUM]; unsigned eps_num; }; struct usb_device_index { struct usb_device_descriptor* dev; struct usb_config_descriptor* config; unsigned config_length; struct usb_iface_index ifaces[USB_MAX_IFACE_NUM]; unsigned ifaces_num; }; static bool parse_usb_descriptor(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->config_length = length - sizeof(*index->dev); 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; } 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) iface->eps[iface->eps_num++] = (struct usb_endpoint_descriptor*)(buffer + offset); } offset += desc_length; } return true; } enum usb_fuzzer_event_type { USB_FUZZER_EVENT_INVALID, USB_FUZZER_EVENT_CONNECT, USB_FUZZER_EVENT_DISCONNECT, USB_FUZZER_EVENT_SUSPEND, USB_FUZZER_EVENT_RESUME, USB_FUZZER_EVENT_CONTROL, }; struct usb_fuzzer_event { uint32_t type; uint32_t length; char data[0]; }; struct usb_fuzzer_init { uint64_t speed; const char* driver_name; const char* device_name; }; struct usb_fuzzer_ep_io { uint16_t ep; uint16_t flags; uint32_t length; char data[0]; }; #define USB_FUZZER_IOCTL_INIT _IOW('U', 0, struct usb_fuzzer_init) #define USB_FUZZER_IOCTL_RUN _IO('U', 1) #define USB_FUZZER_IOCTL_EVENT_FETCH _IOR('U', 2, struct usb_fuzzer_event) #define USB_FUZZER_IOCTL_EP0_WRITE _IOW('U', 3, struct usb_fuzzer_ep_io) #define USB_FUZZER_IOCTL_EP0_READ _IOWR('U', 4, struct usb_fuzzer_ep_io) #define USB_FUZZER_IOCTL_EP_ENABLE _IOW('U', 5, struct usb_endpoint_descriptor) #define USB_FUZZER_IOCTL_EP_WRITE _IOW('U', 7, struct usb_fuzzer_ep_io) #define USB_FUZZER_IOCTL_EP_READ _IOWR('U', 8, struct usb_fuzzer_ep_io) #define USB_FUZZER_IOCTL_CONFIGURE _IO('U', 9) #define USB_FUZZER_IOCTL_VBUS_DRAW _IOW('U', 10, uint32_t) int usb_fuzzer_open() { return open("/sys/kernel/debug/usb-fuzzer", O_RDWR); } int usb_fuzzer_init(int fd, uint32_t speed, const char* driver, const char* device) { struct usb_fuzzer_init arg; arg.speed = speed; arg.driver_name = driver; arg.device_name = device; return ioctl(fd, USB_FUZZER_IOCTL_INIT, &arg); } int usb_fuzzer_run(int fd) { return ioctl(fd, USB_FUZZER_IOCTL_RUN, 0); } int usb_fuzzer_event_fetch(int fd, struct usb_fuzzer_event* event) { return ioctl(fd, USB_FUZZER_IOCTL_EVENT_FETCH, event); } int usb_fuzzer_ep0_write(int fd, struct usb_fuzzer_ep_io* io) { return ioctl(fd, USB_FUZZER_IOCTL_EP0_WRITE, io); } int usb_fuzzer_ep0_read(int fd, struct usb_fuzzer_ep_io* io) { return ioctl(fd, USB_FUZZER_IOCTL_EP0_READ, io); } int usb_fuzzer_ep_write(int fd, struct usb_fuzzer_ep_io* io) { return ioctl(fd, USB_FUZZER_IOCTL_EP_WRITE, io); } int usb_fuzzer_ep_read(int fd, struct usb_fuzzer_ep_io* io) { return ioctl(fd, USB_FUZZER_IOCTL_EP_READ, io); } int usb_fuzzer_ep_enable(int fd, struct usb_endpoint_descriptor* desc) { return ioctl(fd, USB_FUZZER_IOCTL_EP_ENABLE, desc); } int usb_fuzzer_configure(int fd) { return ioctl(fd, USB_FUZZER_IOCTL_CONFIGURE, 0); } int usb_fuzzer_vbus_draw(int fd, uint32_t power) { return ioctl(fd, USB_FUZZER_IOCTL_VBUS_DRAW, power); } #define USB_MAX_PACKET_SIZE 1024 struct usb_fuzzer_control_event { struct usb_fuzzer_event inner; struct usb_ctrlrequest ctrl; char data[USB_MAX_PACKET_SIZE]; }; struct usb_fuzzer_ep_io_data { struct usb_fuzzer_ep_io inner; char data[USB_MAX_PACKET_SIZE]; }; 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(struct vusb_connect_descriptors* descs, struct usb_device_index* index, struct usb_ctrlrequest* ctrl, char** response_data, uint32_t* response_length) { uint8_t str_idx; 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: exit(1); return false; } break; default: exit(1); return false; } break; default: exit(1); return false; } return false; } 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; char* dev = (char*)a2; struct vusb_connect_descriptors* descs = (struct vusb_connect_descriptors*)a3; if (!dev) { return -1; } struct usb_device_index index; memset(&index, 0, sizeof(index)); int rv = 0; rv = parse_usb_descriptor(dev, dev_len, &index); if (!rv) { return rv; } int fd = usb_fuzzer_open(); if (fd < 0) { return fd; } char device[32]; sprintf(&device[0], "dummy_udc.%llu", procid); rv = usb_fuzzer_init(fd, speed, "dummy_udc", &device[0]); if (rv < 0) { return rv; } rv = usb_fuzzer_run(fd); if (rv < 0) { return rv; } bool done = false; while (!done) { struct usb_fuzzer_control_event event; event.inner.type = 0; event.inner.length = sizeof(event.ctrl); rv = usb_fuzzer_event_fetch(fd, (struct usb_fuzzer_event*)&event); if (rv < 0) { return rv; } if (event.inner.type != USB_FUZZER_EVENT_CONTROL) continue; bool response_found = false; char* response_data = NULL; uint32_t response_length = 0; if (event.ctrl.bRequestType & USB_DIR_IN) { response_found = lookup_connect_response( descs, &index, &event.ctrl, &response_data, &response_length); if (!response_found) { return -1; } } else { if ((event.ctrl.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD || event.ctrl.bRequest != USB_REQ_SET_CONFIGURATION) { exit(1); return -1; } done = true; } if (done) { rv = usb_fuzzer_vbus_draw(fd, index.config->bMaxPower); if (rv < 0) { return rv; } rv = usb_fuzzer_configure(fd); if (rv < 0) { return rv; } unsigned ep; for (ep = 0; ep < index.ifaces[0].eps_num; ep++) { rv = usb_fuzzer_ep_enable(fd, index.ifaces[0].eps[ep]); if (rv < 0) { } else { } } } struct usb_fuzzer_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_fuzzer_ep0_write(fd, (struct usb_fuzzer_ep_io*)&response); } else { rv = usb_fuzzer_ep0_read(fd, (struct usb_fuzzer_ep_io*)&response); } if (rv < 0) { return rv; } } sleep_ms(200); return fd; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); int i; for (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; for (iter = 0;; 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 < 5 * 1000) continue; kill_and_wait(pid, &status); break; } } } void execute_one(void) { *(uint32_t*)0x200000c0 = 1; *(uint32_t*)0x200000c4 = 0; *(uint32_t*)0x200000c8 = 0; *(uint32_t*)0x200000cc = 0x7b5a; *(uint32_t*)0x200000d0 = 8; *(uint32_t*)0x200000d4 = 0x2b5e75e4; *(uint32_t*)0x200000d8 = 0x2cf; *(uint32_t*)0x200000dc = 9; *(uint32_t*)0x200000e0 = 4; *(uint32_t*)0x200000e4 = 9; *(uint32_t*)0x200000e8 = 4; *(uint32_t*)0x200000ec = 0x800; *(uint32_t*)0x200000f0 = 4; *(uint32_t*)0x200000f4 = 0xfffffffd; *(uint32_t*)0x200000f8 = 0x200; *(uint32_t*)0x200000fc = 3; *(uint32_t*)0x20000100 = 4; *(uint32_t*)0x20000104 = 3; *(uint32_t*)0x20000108 = 0; *(uint32_t*)0x2000010c = 6; *(uint32_t*)0x20000110 = 2; *(uint32_t*)0x20000114 = 1; *(uint32_t*)0x20000118 = 0xcc1; *(uint32_t*)0x2000011c = 0xb0aa; *(uint32_t*)0x20000120 = 0x61; *(uint32_t*)0x20000124 = 9; *(uint32_t*)0x20000128 = 3; *(uint32_t*)0x2000012c = 9; *(uint32_t*)0x20000130 = 6; *(uint32_t*)0x20000134 = 0x400; *(uint32_t*)0x20000138 = 0x800; *(uint32_t*)0x2000013c = 2; *(uint32_t*)0x20000140 = 0; *(uint32_t*)0x20000144 = 7; *(uint32_t*)0x20000148 = 0x10001; *(uint32_t*)0x2000014c = 0x40; *(uint32_t*)0x20000150 = 0xff; *(uint32_t*)0x20000154 = 5; *(uint32_t*)0x20000158 = 0x20; *(uint32_t*)0x2000015c = 9; *(uint32_t*)0x20000160 = 0xfff; *(uint32_t*)0x20000164 = 7; *(uint32_t*)0x20000168 = 0x3f; *(uint32_t*)0x2000016c = 0x80000001; *(uint32_t*)0x20000170 = 0x101; *(uint32_t*)0x20000174 = 5; *(uint32_t*)0x20000178 = 6; *(uint32_t*)0x2000017c = 0x10000; *(uint32_t*)0x20000180 = 7; *(uint32_t*)0x20000184 = 0x7fffffff; *(uint32_t*)0x20000188 = 0xfffffffb; *(uint32_t*)0x2000018c = 0; *(uint32_t*)0x20000190 = 0x3ff; *(uint32_t*)0x20000194 = 0; *(uint32_t*)0x20000198 = 2; *(uint32_t*)0x2000019c = 0x1000; *(uint32_t*)0x200001a0 = 0x10000; *(uint32_t*)0x200001a4 = 0x3ff; *(uint32_t*)0x200001a8 = 0x2a3f; *(uint32_t*)0x200001ac = 3; *(uint32_t*)0x200001b0 = 8; *(uint32_t*)0x200001b4 = 0x10001; *(uint32_t*)0x200001b8 = 5; *(uint32_t*)0x200001bc = 0x2d7; *(uint32_t*)0x200001c0 = 3; *(uint32_t*)0x200001c4 = 5; *(uint32_t*)0x200001c8 = 0xff; *(uint32_t*)0x200001cc = 1; *(uint32_t*)0x200001d0 = 5; *(uint32_t*)0x200001d4 = 7; *(uint32_t*)0x200001d8 = 5; *(uint32_t*)0x200001dc = 0xfffffff8; *(uint32_t*)0x200001e0 = 0x20; *(uint32_t*)0x200001e4 = 0x401; *(uint32_t*)0x200001e8 = 3; *(uint32_t*)0x200001ec = 0x1ff; *(uint32_t*)0x200001f0 = 8; *(uint32_t*)0x200001f4 = 5; *(uint32_t*)0x200001f8 = 0xb1a; *(uint32_t*)0x200001fc = 8; *(uint32_t*)0x20000200 = 0x6c9; *(uint32_t*)0x20000204 = 8; *(uint32_t*)0x20000208 = 1; *(uint32_t*)0x2000020c = 8; *(uint32_t*)0x20000210 = 0x3000000; *(uint32_t*)0x20000214 = 1; *(uint32_t*)0x20000218 = 6; *(uint32_t*)0x2000021c = 8; *(uint32_t*)0x20000220 = 0x10001; *(uint32_t*)0x20000224 = 0x40; *(uint32_t*)0x20000228 = 1; *(uint32_t*)0x2000022c = 3; *(uint32_t*)0x20000230 = 0x610; *(uint32_t*)0x20000234 = 3; *(uint32_t*)0x20000238 = 9; *(uint32_t*)0x2000023c = 0; *(uint32_t*)0x20000240 = 9; *(uint32_t*)0x20000244 = 0xd136; *(uint32_t*)0x20000248 = 0; *(uint32_t*)0x2000024c = 6; *(uint32_t*)0x20000250 = 0x3554; *(uint32_t*)0x20000254 = 0; *(uint32_t*)0x20000258 = 0x1ff; *(uint32_t*)0x2000025c = 0; *(uint32_t*)0x20000260 = 2; *(uint32_t*)0x20000264 = 7; *(uint32_t*)0x20000268 = 7; *(uint32_t*)0x2000026c = 3; *(uint32_t*)0x20000270 = 0; *(uint32_t*)0x20000274 = 0x3976; *(uint32_t*)0x20000278 = 0; *(uint32_t*)0x2000027c = 0; *(uint32_t*)0x20000280 = 0xaaa; *(uint32_t*)0x20000284 = 0x1643; *(uint32_t*)0x20000288 = 0xfffffbff; *(uint32_t*)0x2000028c = 9; *(uint32_t*)0x20000290 = 1; *(uint32_t*)0x20000294 = 8; *(uint32_t*)0x20000298 = 4; *(uint32_t*)0x2000029c = 7; *(uint32_t*)0x200002a0 = 0x800; *(uint32_t*)0x200002a4 = 9; *(uint32_t*)0x200002a8 = 2; *(uint32_t*)0x200002ac = 1; *(uint32_t*)0x200002b0 = 0xffff8001; *(uint32_t*)0x200002b4 = 0xfff; *(uint32_t*)0x200002b8 = 0x248; *(uint32_t*)0x200002bc = 0xfffffffb; *(uint32_t*)0x200002c0 = 0xfffffff9; *(uint32_t*)0x200002c4 = 0x101; *(uint32_t*)0x200002c8 = 7; *(uint32_t*)0x200002cc = 0xaf2; *(uint32_t*)0x200002d0 = 0x6000000; *(uint32_t*)0x200002d4 = 0x101; *(uint32_t*)0x200002d8 = 4; *(uint32_t*)0x200002dc = 8; *(uint32_t*)0x200002e0 = -1; *(uint32_t*)0x200002e4 = 6; *(uint32_t*)0x200002e8 = 9; *(uint32_t*)0x200002ec = 0xdf5; *(uint32_t*)0x200002f0 = 0xb1; *(uint32_t*)0x200002f4 = 1; *(uint32_t*)0x200002f8 = 5; *(uint32_t*)0x200002fc = 0x813; *(uint32_t*)0x20000300 = 1; *(uint32_t*)0x20000304 = 2; *(uint32_t*)0x20000308 = 0x647; *(uint32_t*)0x2000030c = 2; *(uint32_t*)0x20000310 = 0; *(uint32_t*)0x20000314 = 0xfffff800; *(uint32_t*)0x20000318 = 4; *(uint32_t*)0x2000031c = 0x100; *(uint32_t*)0x20000320 = 8; *(uint32_t*)0x20000324 = 0x1000; *(uint32_t*)0x20000328 = 0xfd; *(uint32_t*)0x2000032c = 0xafb; *(uint32_t*)0x20000330 = 6; *(uint32_t*)0x20000334 = 4; *(uint32_t*)0x20000338 = 0xfffffff8; *(uint32_t*)0x2000033c = 0xc67a; *(uint32_t*)0x20000340 = 3; *(uint32_t*)0x20000344 = 0x10001; *(uint32_t*)0x20000348 = 4; *(uint32_t*)0x2000034c = 0x1ff; *(uint32_t*)0x20000350 = 7; *(uint32_t*)0x20000354 = 0xba88; *(uint32_t*)0x20000358 = 0xe0; *(uint32_t*)0x2000035c = 0x1f; *(uint32_t*)0x20000360 = 9; *(uint32_t*)0x20000364 = 1; *(uint32_t*)0x20000368 = 0x1fbf; *(uint32_t*)0x2000036c = 2; *(uint32_t*)0x20000370 = 0x7fffffff; *(uint32_t*)0x20000374 = 4; *(uint32_t*)0x20000378 = 0; *(uint32_t*)0x2000037c = 0xffffffc1; *(uint32_t*)0x20000380 = 5; *(uint32_t*)0x20000384 = 4; *(uint32_t*)0x20000388 = 0x5223; *(uint32_t*)0x2000038c = 6; *(uint32_t*)0x20000390 = 6; *(uint32_t*)0x20000394 = 0xfffeffff; *(uint32_t*)0x20000398 = 1; *(uint32_t*)0x2000039c = 0; *(uint32_t*)0x200003a0 = 0xfe8b; *(uint32_t*)0x200003a4 = 6; *(uint32_t*)0x200003a8 = 0x2ca2; *(uint32_t*)0x200003ac = 0; *(uint32_t*)0x200003b0 = 0x80; *(uint32_t*)0x200003b4 = 6; *(uint32_t*)0x200003b8 = 0x80; *(uint32_t*)0x200003bc = 0xd4ca; *(uint32_t*)0x200003c0 = 5; *(uint32_t*)0x200003c4 = 1; *(uint32_t*)0x200003c8 = 0x80; *(uint32_t*)0x200003cc = 0x7ff; *(uint32_t*)0x200003d0 = 0x5a7; *(uint32_t*)0x200003d4 = 0; *(uint32_t*)0x200003d8 = 0xfffff001; *(uint32_t*)0x200003dc = 0xfffffffa; *(uint32_t*)0x200003e0 = 0x10001; *(uint32_t*)0x200003e4 = 0x200; *(uint32_t*)0x200003e8 = 2; *(uint32_t*)0x200003ec = 0xdbc; *(uint32_t*)0x200003f0 = 0x20; *(uint32_t*)0x200003f4 = 4; *(uint32_t*)0x200003f8 = 0x5d; *(uint32_t*)0x200003fc = 0x200; *(uint32_t*)0x20000400 = 0x80000001; *(uint32_t*)0x20000404 = 0xf9; *(uint32_t*)0x20000408 = 5; *(uint32_t*)0x2000040c = 0x401; *(uint32_t*)0x20000410 = 0x80000001; *(uint32_t*)0x20000414 = 0x80; *(uint32_t*)0x20000418 = 0x8000; *(uint32_t*)0x2000041c = 0x8001; *(uint32_t*)0x20000420 = 0x74ee; *(uint32_t*)0x20000424 = 7; *(uint32_t*)0x20000428 = 0x7f; *(uint32_t*)0x2000042c = 0; *(uint32_t*)0x20000430 = 2; *(uint32_t*)0x20000434 = 0; *(uint32_t*)0x20000438 = 1; *(uint32_t*)0x2000043c = 0x81; *(uint32_t*)0x20000440 = 0x101; *(uint32_t*)0x20000444 = 3; *(uint32_t*)0x20000448 = 0x6d; *(uint32_t*)0x2000044c = 0x400; *(uint32_t*)0x20000450 = 7; *(uint32_t*)0x20000454 = 7; *(uint32_t*)0x20000458 = 8; *(uint32_t*)0x2000045c = 2; *(uint32_t*)0x20000460 = 6; *(uint32_t*)0x20000464 = 0xfffffffd; *(uint32_t*)0x20000468 = 4; *(uint32_t*)0x2000046c = 8; *(uint32_t*)0x20000470 = 6; *(uint32_t*)0x20000474 = 8; *(uint32_t*)0x20000478 = 0x3f; *(uint32_t*)0x2000047c = 7; *(uint32_t*)0x20000480 = 0xd010; *(uint32_t*)0x20000484 = 3; *(uint32_t*)0x20000488 = 0; *(uint32_t*)0x2000048c = 0xff; *(uint32_t*)0x20000490 = 0x3ff; *(uint32_t*)0x20000494 = 5; *(uint32_t*)0x20000498 = 6; *(uint32_t*)0x2000049c = 0x400; *(uint32_t*)0x200004a0 = 5; *(uint32_t*)0x200004a4 = 0x180; *(uint32_t*)0x200004a8 = 0xe5e; *(uint32_t*)0x200004ac = 0x87; *(uint32_t*)0x200004b0 = 0xfffffffe; *(uint32_t*)0x200004b4 = 0x10000; *(uint32_t*)0x200004b8 = 0xd831; *(uint32_t*)0x200004bc = 0xae; *(uint32_t*)0x200004c0 = 0x200; *(uint32_t*)0x200004c4 = 0x77e; *(uint32_t*)0x200004c8 = 0; *(uint32_t*)0x200004cc = 0x20; *(uint32_t*)0x200004d0 = 0x1000; *(uint32_t*)0x200004d4 = 0x1e6e; *(uint32_t*)0x200004d8 = 7; *(uint32_t*)0x200004dc = 0x7fffffff; *(uint32_t*)0x200004e0 = 0x100; *(uint32_t*)0x200004e4 = 0x3ff; *(uint32_t*)0x200004e8 = 0; *(uint32_t*)0x200004ec = 3; *(uint32_t*)0x200004f0 = 0x80000001; *(uint32_t*)0x200004f4 = 6; *(uint32_t*)0x200004f8 = 0; *(uint32_t*)0x200004fc = 2; *(uint32_t*)0x20000500 = 5; *(uint32_t*)0x20000504 = 3; *(uint32_t*)0x20000508 = 8; *(uint32_t*)0x2000050c = 0xf35e; *(uint32_t*)0x20000510 = 0xd9c; *(uint32_t*)0x20000514 = 0x10001; *(uint32_t*)0x20000518 = 8; *(uint32_t*)0x2000051c = 0x80; *(uint32_t*)0x20000520 = 4; *(uint32_t*)0x20000524 = 0xffff; *(uint32_t*)0x20000528 = 1; *(uint32_t*)0x2000052c = 6; *(uint32_t*)0x20000530 = 4; *(uint32_t*)0x20000534 = 0x4e45e55b; *(uint32_t*)0x20000538 = 6; *(uint32_t*)0x2000053c = 1; *(uint32_t*)0x20000540 = 4; *(uint32_t*)0x20000544 = 6; *(uint32_t*)0x20000548 = 4; *(uint32_t*)0x2000054c = 5; *(uint32_t*)0x20000550 = 0x1f42; *(uint32_t*)0x20000554 = 0x80000000; *(uint32_t*)0x20000558 = 0x5d86; *(uint32_t*)0x2000055c = 7; *(uint32_t*)0x20000560 = 0xffff; *(uint32_t*)0x20000564 = 0x853; *(uint32_t*)0x20000568 = 0x9ab5; *(uint32_t*)0x2000056c = 0x2dbb; *(uint32_t*)0x20000570 = 0; *(uint32_t*)0x20000574 = 7; *(uint32_t*)0x20000578 = 0xfffffffd; *(uint32_t*)0x2000057c = 2; *(uint32_t*)0x20000580 = 0x4ec; *(uint32_t*)0x20000584 = 0x7f; *(uint32_t*)0x20000588 = 0x948e; *(uint32_t*)0x2000058c = 0x76; *(uint32_t*)0x20000590 = 0x8000; *(uint32_t*)0x20000594 = 0xff; *(uint32_t*)0x20000598 = 0x3f; *(uint32_t*)0x2000059c = 0; *(uint32_t*)0x200005a0 = 3; *(uint32_t*)0x200005a4 = 0x10000; *(uint32_t*)0x200005a8 = 7; *(uint32_t*)0x200005ac = 0xffffffe6; *(uint32_t*)0x200005b0 = 0x80000000; *(uint32_t*)0x200005b4 = 1; *(uint32_t*)0x200005b8 = 0xbc92; *(uint32_t*)0x200005bc = 3; *(uint32_t*)0x200005c0 = 4; *(uint32_t*)0x200005c4 = 8; *(uint32_t*)0x200005c8 = 6; *(uint32_t*)0x200005cc = 7; *(uint32_t*)0x200005d0 = 6; *(uint32_t*)0x200005d4 = 0x80; *(uint32_t*)0x200005d8 = 3; *(uint32_t*)0x200005dc = 0x9c; *(uint32_t*)0x200005e0 = 9; *(uint32_t*)0x200005e4 = 7; *(uint32_t*)0x200005e8 = 0; *(uint32_t*)0x200005ec = 9; *(uint32_t*)0x200005f0 = 9; *(uint32_t*)0x200005f4 = 0; *(uint32_t*)0x200005f8 = 5; *(uint32_t*)0x200005fc = 0x81; *(uint32_t*)0x20000600 = 9; *(uint32_t*)0x20000604 = 0xbc1; *(uint32_t*)0x20000608 = 8; *(uint32_t*)0x2000060c = 4; *(uint32_t*)0x20000610 = 0x8001; *(uint32_t*)0x20000614 = 0xfffff800; *(uint32_t*)0x20000618 = 0x20; *(uint32_t*)0x2000061c = 0x34c0; *(uint32_t*)0x20000620 = 0x1fe; *(uint32_t*)0x20000624 = 6; *(uint32_t*)0x20000628 = 0x80000000; *(uint32_t*)0x2000062c = 0; *(uint32_t*)0x20000630 = 6; *(uint32_t*)0x20000634 = 2; *(uint32_t*)0x20000638 = 0x7f; *(uint32_t*)0x2000063c = 7; *(uint32_t*)0x20000640 = 3; *(uint32_t*)0x20000644 = 1; *(uint32_t*)0x20000648 = 9; *(uint32_t*)0x2000064c = 0x10000; *(uint32_t*)0x20000650 = 0xab2e; *(uint32_t*)0x20000654 = 7; *(uint32_t*)0x20000658 = 8; *(uint32_t*)0x2000065c = 2; *(uint32_t*)0x20000660 = 0x80000001; *(uint32_t*)0x20000664 = 0x80000000; *(uint32_t*)0x20000668 = 5; *(uint32_t*)0x2000066c = 0x3075; *(uint32_t*)0x20000670 = 0xfffffffe; *(uint32_t*)0x20000674 = 0x7f; *(uint32_t*)0x20000678 = 0x40; *(uint32_t*)0x2000067c = 0x40; *(uint32_t*)0x20000680 = 0x319037c9; *(uint32_t*)0x20000684 = 5; *(uint32_t*)0x20000688 = 0x7ff; *(uint32_t*)0x2000068c = 5; *(uint32_t*)0x20000690 = 4; *(uint32_t*)0x20000694 = 2; *(uint32_t*)0x20000698 = 0x10001; *(uint32_t*)0x2000069c = 0x237; *(uint32_t*)0x200006a0 = 5; *(uint32_t*)0x200006a4 = 0x7ff; *(uint32_t*)0x200006a8 = 8; *(uint32_t*)0x200006ac = 0x4da; *(uint32_t*)0x200006b0 = 6; *(uint32_t*)0x200006b4 = 6; *(uint32_t*)0x200006b8 = 2; *(uint32_t*)0x200006bc = 0; *(uint32_t*)0x200006c0 = 4; *(uint32_t*)0x200006c4 = 8; *(uint32_t*)0x200006c8 = 3; *(uint32_t*)0x200006cc = 4; *(uint32_t*)0x200006d0 = 1; *(uint32_t*)0x200006d4 = 8; *(uint32_t*)0x200006d8 = 0x80; *(uint32_t*)0x200006dc = 0x80000000; *(uint32_t*)0x200006e0 = 0x8000; *(uint32_t*)0x200006e4 = 6; *(uint32_t*)0x200006e8 = 8; *(uint32_t*)0x200006ec = 1; *(uint32_t*)0x200006f0 = 2; *(uint32_t*)0x200006f4 = 0x3ff; *(uint32_t*)0x200006f8 = 4; *(uint32_t*)0x200006fc = 0xffff; *(uint32_t*)0x20000700 = 0xffff; *(uint32_t*)0x20000704 = 3; *(uint32_t*)0x20000708 = -1; *(uint32_t*)0x2000070c = 0x100; *(uint32_t*)0x20000710 = 0x3ff; *(uint32_t*)0x20000714 = 0x7fff; *(uint32_t*)0x20000718 = -1; *(uint32_t*)0x2000071c = 0x9d4b; *(uint32_t*)0x20000720 = 4; *(uint32_t*)0x20000724 = 0x1f; *(uint32_t*)0x20000728 = 2; *(uint32_t*)0x2000072c = 0x1f75; *(uint32_t*)0x20000730 = 0; *(uint32_t*)0x20000734 = 7; *(uint32_t*)0x20000738 = 6; *(uint32_t*)0x2000073c = 0; *(uint32_t*)0x20000740 = 0; *(uint32_t*)0x20000744 = 0xf885; *(uint32_t*)0x20000748 = 4; *(uint32_t*)0x2000074c = 1; *(uint32_t*)0x20000750 = 1; *(uint32_t*)0x20000754 = 0x74959115; *(uint32_t*)0x20000758 = 0; *(uint32_t*)0x2000075c = 4; *(uint32_t*)0x20000760 = 7; *(uint32_t*)0x20000764 = 6; *(uint32_t*)0x20000768 = 0x200; *(uint32_t*)0x2000076c = 0x63b; *(uint32_t*)0x20000770 = 2; *(uint32_t*)0x20000774 = 7; *(uint32_t*)0x20000778 = 6; *(uint32_t*)0x2000077c = 2; *(uint32_t*)0x20000780 = 2; *(uint32_t*)0x20000784 = 0x1000; *(uint32_t*)0x20000788 = 0x177; *(uint32_t*)0x2000078c = 0x20; *(uint32_t*)0x20000790 = 0x7df6ed75; *(uint32_t*)0x20000794 = 5; *(uint32_t*)0x20000798 = 0x7fffffff; *(uint32_t*)0x2000079c = 6; *(uint32_t*)0x200007a0 = 1; *(uint32_t*)0x200007a4 = 0xed; *(uint32_t*)0x200007a8 = 5; *(uint32_t*)0x200007ac = 0xfffffffe; *(uint32_t*)0x200007b0 = 0x10001; *(uint32_t*)0x200007b4 = 4; *(uint32_t*)0x200007b8 = 5; *(uint32_t*)0x200007bc = 5; *(uint32_t*)0x200007c0 = 0xccde; *(uint32_t*)0x200007c4 = 0x3ff; *(uint32_t*)0x200007c8 = 0x5411; *(uint32_t*)0x200007cc = 0xffff; *(uint32_t*)0x200007d0 = 9; *(uint32_t*)0x200007d4 = 0x3ab; *(uint32_t*)0x200007d8 = 7; *(uint32_t*)0x200007dc = 1; *(uint32_t*)0x200007e0 = 0; *(uint32_t*)0x200007e4 = 1; *(uint32_t*)0x200007e8 = 0; *(uint32_t*)0x200007ec = 8; *(uint32_t*)0x200007f0 = 4; *(uint32_t*)0x200007f4 = -1; *(uint32_t*)0x200007f8 = 4; *(uint32_t*)0x200007fc = 8; *(uint32_t*)0x20000800 = 2; *(uint32_t*)0x20000804 = 8; *(uint32_t*)0x20000808 = 0xf7; *(uint32_t*)0x2000080c = 0; *(uint32_t*)0x20000810 = 4; *(uint32_t*)0x20000814 = 0; *(uint32_t*)0x20000818 = 0x81; *(uint32_t*)0x2000081c = 1; *(uint32_t*)0x20000820 = 0x81; *(uint32_t*)0x20000824 = 6; *(uint32_t*)0x20000828 = 0x200; *(uint32_t*)0x2000082c = 2; *(uint32_t*)0x20000830 = 0; *(uint32_t*)0x20000834 = 0xffff; *(uint32_t*)0x20000838 = 3; *(uint32_t*)0x2000083c = 0x38e; *(uint32_t*)0x20000840 = 0x7fff; *(uint32_t*)0x20000844 = 0xd97; *(uint32_t*)0x20000848 = 0x400; *(uint32_t*)0x2000084c = 7; *(uint32_t*)0x20000850 = 0x46; *(uint32_t*)0x20000854 = 7; *(uint32_t*)0x20000858 = 0x7f; *(uint32_t*)0x2000085c = 8; *(uint32_t*)0x20000860 = 6; *(uint32_t*)0x20000864 = 0x29e; *(uint32_t*)0x20000868 = 0xb4; *(uint32_t*)0x2000086c = 0x64a1; *(uint32_t*)0x20000870 = 7; *(uint32_t*)0x20000874 = 9; *(uint32_t*)0x20000878 = 4; *(uint32_t*)0x2000087c = 0; *(uint32_t*)0x20000880 = 0xeb62; *(uint32_t*)0x20000884 = 0xcc; *(uint32_t*)0x20000888 = 0xfffffffb; *(uint32_t*)0x2000088c = 3; *(uint32_t*)0x20000890 = 6; *(uint32_t*)0x20000894 = 4; *(uint32_t*)0x20000898 = 3; *(uint32_t*)0x2000089c = 9; *(uint32_t*)0x200008a0 = 5; *(uint32_t*)0x200008a4 = 0x3ff; *(uint32_t*)0x200008a8 = 0x80; *(uint32_t*)0x200008ac = 8; *(uint32_t*)0x200008b0 = 0x2116; *(uint32_t*)0x200008b4 = 0x8000; *(uint32_t*)0x200008b8 = 0xfffffffa; *(uint32_t*)0x200008bc = 0x80000000; *(uint32_t*)0x200008c0 = 4; *(uint32_t*)0x200008c4 = 4; *(uint32_t*)0x200008c8 = 9; *(uint32_t*)0x200008cc = 0x20; *(uint32_t*)0x200008d0 = 7; *(uint32_t*)0x200008d4 = 0xfffffffd; *(uint32_t*)0x200008d8 = 8; *(uint32_t*)0x200008dc = 0xc3; *(uint32_t*)0x200008e0 = 2; *(uint32_t*)0x200008e4 = 0; *(uint32_t*)0x200008e8 = 0x24; *(uint32_t*)0x200008ec = 2; *(uint32_t*)0x200008f0 = 0x20; *(uint32_t*)0x200008f4 = 1; *(uint32_t*)0x200008f8 = 0x79d90ad6; *(uint32_t*)0x200008fc = 0x100; *(uint32_t*)0x20000900 = 0x6a8f; *(uint32_t*)0x20000904 = 0x10001; *(uint32_t*)0x20000908 = 0x7ff; *(uint32_t*)0x2000090c = 0x20; *(uint32_t*)0x20000910 = 9; *(uint32_t*)0x20000914 = 0x1ff; *(uint32_t*)0x20000918 = 6; *(uint32_t*)0x2000091c = 4; *(uint32_t*)0x20000920 = 0; *(uint32_t*)0x20000924 = 0xb7b89956; *(uint32_t*)0x20000928 = 0; *(uint32_t*)0x2000092c = 1; *(uint32_t*)0x20000930 = 0xfffffffe; *(uint32_t*)0x20000934 = 0xe0; *(uint32_t*)0x20000938 = 7; *(uint32_t*)0x2000093c = 4; *(uint32_t*)0x20000940 = 0xffff; *(uint32_t*)0x20000944 = 0; *(uint32_t*)0x20000948 = 0x7fffffff; *(uint32_t*)0x2000094c = 0xfffffffc; *(uint32_t*)0x20000950 = 0; *(uint32_t*)0x20000954 = 7; *(uint32_t*)0x20000958 = 3; *(uint32_t*)0x2000095c = 9; *(uint32_t*)0x20000960 = 6; *(uint32_t*)0x20000964 = 9; *(uint32_t*)0x20000968 = 0x9090; *(uint32_t*)0x2000096c = 5; *(uint32_t*)0x20000970 = 0x81; *(uint32_t*)0x20000974 = 0x200; *(uint32_t*)0x20000978 = 0; *(uint32_t*)0x2000097c = 0x21; *(uint32_t*)0x20000980 = 0x101; *(uint32_t*)0x20000984 = 0x7fff; *(uint32_t*)0x20000988 = 3; *(uint32_t*)0x2000098c = -1; *(uint32_t*)0x20000990 = 3; *(uint32_t*)0x20000994 = 0; *(uint32_t*)0x20000998 = 0x80; *(uint32_t*)0x2000099c = 9; *(uint32_t*)0x200009a0 = 8; *(uint32_t*)0x200009a4 = 0xd6; *(uint32_t*)0x200009a8 = 0x1ff; *(uint32_t*)0x200009ac = 5; *(uint32_t*)0x200009b0 = 4; *(uint32_t*)0x200009b4 = 0x43; *(uint32_t*)0x200009b8 = 0xffffffe1; *(uint32_t*)0x200009bc = 7; *(uint32_t*)0x200009c0 = 0x10001; *(uint32_t*)0x200009c4 = 1; *(uint32_t*)0x200009c8 = 6; *(uint32_t*)0x200009cc = 0x40; *(uint32_t*)0x200009d0 = 0x401; *(uint32_t*)0x200009d4 = 0xfffffff9; *(uint32_t*)0x200009d8 = 0x40; *(uint32_t*)0x200009dc = 8; *(uint32_t*)0x200009e0 = 0; *(uint32_t*)0x200009e4 = 0x80; *(uint32_t*)0x200009e8 = 9; *(uint32_t*)0x200009ec = 0x7ff; *(uint32_t*)0x200009f0 = 7; *(uint32_t*)0x200009f4 = 7; *(uint32_t*)0x200009f8 = 4; *(uint32_t*)0x200009fc = 0xb2; *(uint32_t*)0x20000a00 = 0x50; *(uint32_t*)0x20000a04 = 0x7fffffff; *(uint32_t*)0x20000a08 = 0xfffffffa; *(uint32_t*)0x20000a0c = 0x20; *(uint32_t*)0x20000a10 = 3; *(uint32_t*)0x20000a14 = 8; *(uint32_t*)0x20000a18 = 7; *(uint32_t*)0x20000a1c = 0x80000000; *(uint32_t*)0x20000a20 = 3; *(uint32_t*)0x20000a24 = 2; *(uint32_t*)0x20000a28 = 0x87f; *(uint32_t*)0x20000a2c = 0x20; *(uint32_t*)0x20000a30 = 4; *(uint32_t*)0x20000a34 = 0; *(uint32_t*)0x20000a38 = 0x80; *(uint32_t*)0x20000a3c = 0xc9; *(uint32_t*)0x20000a40 = 1; *(uint32_t*)0x20000a44 = 1; *(uint32_t*)0x20000a48 = 3; *(uint32_t*)0x20000a4c = 0x905; *(uint32_t*)0x20000a50 = 5; *(uint32_t*)0x20000a54 = -1; *(uint32_t*)0x20000a58 = 2; *(uint32_t*)0x20000a5c = 0xa3e; *(uint32_t*)0x20000a60 = 6; *(uint32_t*)0x20000a64 = 2; *(uint32_t*)0x20000a68 = 4; *(uint32_t*)0x20000a6c = 4; *(uint32_t*)0x20000a70 = 4; *(uint32_t*)0x20000a74 = 3; *(uint32_t*)0x20000a78 = 7; *(uint32_t*)0x20000a7c = -1; *(uint32_t*)0x20000a80 = 9; *(uint32_t*)0x20000a84 = 0x80000000; *(uint32_t*)0x20000a88 = 8; *(uint32_t*)0x20000a8c = 8; *(uint32_t*)0x20000a90 = 9; *(uint32_t*)0x20000a94 = 0x8f38; *(uint32_t*)0x20000a98 = 7; *(uint32_t*)0x20000a9c = 6; *(uint32_t*)0x20000aa0 = 0x3ff; *(uint32_t*)0x20000aa4 = 2; *(uint32_t*)0x20000aa8 = 4; *(uint32_t*)0x20000aac = 0xa06; *(uint32_t*)0x20000ab0 = 0xd599; *(uint32_t*)0x20000ab4 = 0xc6; *(uint32_t*)0x20000ab8 = 7; *(uint32_t*)0x20000abc = 0x1ff; *(uint32_t*)0x20000ac0 = 4; *(uint32_t*)0x20000ac4 = 0x1000; *(uint32_t*)0x20000ac8 = 0x3f; *(uint32_t*)0x20000acc = 4; *(uint32_t*)0x20000ad0 = 1; *(uint32_t*)0x20000ad4 = 0x3131; *(uint32_t*)0x20000ad8 = 0x1000000; *(uint32_t*)0x20000adc = 8; *(uint32_t*)0x20000ae0 = 0x7fffffff; *(uint32_t*)0x20000ae4 = 2; *(uint32_t*)0x20000ae8 = 2; *(uint32_t*)0x20000aec = 0xfff; *(uint32_t*)0x20000af0 = 2; *(uint32_t*)0x20000af4 = 3; *(uint32_t*)0x20000af8 = 4; *(uint32_t*)0x20000afc = -1; *(uint32_t*)0x20000b00 = 8; *(uint32_t*)0x20000b04 = 0x101; *(uint32_t*)0x20000b08 = 7; *(uint32_t*)0x20000b0c = 9; *(uint32_t*)0x20000b10 = 0xe4; *(uint32_t*)0x20000b14 = 0xfa1; *(uint32_t*)0x20000b18 = 0x8001; *(uint32_t*)0x20000b1c = 0xde; *(uint32_t*)0x20000b20 = 2; *(uint32_t*)0x20000b24 = 8; *(uint32_t*)0x20000b28 = 8; *(uint32_t*)0x20000b2c = 6; *(uint32_t*)0x20000b30 = 0xffffffc0; *(uint32_t*)0x20000b34 = 0xffff4d62; *(uint32_t*)0x20000b38 = 7; *(uint32_t*)0x20000b3c = 0x200; *(uint32_t*)0x20000b40 = 0x3ff; *(uint32_t*)0x20000b44 = 6; *(uint32_t*)0x20000b48 = 0x80; *(uint32_t*)0x20000b4c = 6; *(uint32_t*)0x20000b50 = 3; *(uint32_t*)0x20000b54 = 0x10000; *(uint32_t*)0x20000b58 = 0xe2; *(uint32_t*)0x20000b5c = 0x80000001; *(uint32_t*)0x20000b60 = 0; *(uint32_t*)0x20000b64 = 0x200; *(uint32_t*)0x20000b68 = 0xfffffffa; *(uint32_t*)0x20000b6c = 7; *(uint32_t*)0x20000b70 = 0; *(uint32_t*)0x20000b74 = 9; *(uint32_t*)0x20000b78 = 0xffffffc1; *(uint32_t*)0x20000b7c = 0; *(uint32_t*)0x20000b80 = 2; *(uint32_t*)0x20000b84 = 0x1000; *(uint32_t*)0x20000b88 = 0; *(uint32_t*)0x20000b8c = 0xff; *(uint32_t*)0x20000b90 = 5; *(uint32_t*)0x20000b94 = 0xfac4; *(uint32_t*)0x20000b98 = 0x212c; *(uint32_t*)0x20000b9c = 7; *(uint32_t*)0x20000ba0 = 1; *(uint32_t*)0x20000ba4 = 4; *(uint32_t*)0x20000ba8 = 0x100; *(uint32_t*)0x20000bac = 0; *(uint32_t*)0x20000bb0 = 0; *(uint32_t*)0x20000bb4 = 0x7f; *(uint32_t*)0x20000bb8 = 8; *(uint32_t*)0x20000bbc = 0xefe; *(uint32_t*)0x20000bc0 = 0x80000001; *(uint32_t*)0x20000bc4 = 0x80; *(uint32_t*)0x20000bc8 = 2; *(uint32_t*)0x20000bcc = 0; *(uint32_t*)0x20000bd0 = 6; *(uint32_t*)0x20000bd4 = 0x40; *(uint32_t*)0x20000bd8 = 0; *(uint32_t*)0x20000bdc = 0x3fe; *(uint32_t*)0x20000be0 = 0x80000000; *(uint32_t*)0x20000be4 = 5; *(uint32_t*)0x20000be8 = 3; *(uint32_t*)0x20000bec = 5; *(uint32_t*)0x20000bf0 = 3; *(uint32_t*)0x20000bf4 = 0x560; *(uint32_t*)0x20000bf8 = 0x80000001; *(uint32_t*)0x20000bfc = 4; *(uint32_t*)0x20000c00 = 3; *(uint32_t*)0x20000c04 = 0x1f; *(uint32_t*)0x20000c08 = 0x8000; *(uint32_t*)0x20000c0c = 0x7d6; *(uint32_t*)0x20000c10 = 0xfffffbff; *(uint32_t*)0x20000c14 = 3; *(uint32_t*)0x20000c18 = 6; *(uint32_t*)0x20000c1c = 7; *(uint32_t*)0x20000c20 = 7; *(uint32_t*)0x20000c24 = 0; *(uint32_t*)0x20000c28 = 5; *(uint32_t*)0x20000c2c = 0x7d5; *(uint32_t*)0x20000c30 = 0x7fff; *(uint32_t*)0x20000c34 = 0x401; *(uint32_t*)0x20000c38 = 7; *(uint32_t*)0x20000c3c = 0xca25aedd; *(uint32_t*)0x20000c40 = 0x9e; *(uint32_t*)0x20000c44 = 0x80; *(uint32_t*)0x20000c48 = 0; *(uint32_t*)0x20000c4c = 0; *(uint32_t*)0x20000c50 = 0x81; *(uint32_t*)0x20000c54 = 0x200; *(uint32_t*)0x20000c58 = 0xb17e; *(uint32_t*)0x20000c5c = 9; *(uint32_t*)0x20000c60 = 0xffffffe0; *(uint32_t*)0x20000c64 = 8; *(uint32_t*)0x20000c68 = 0x7fe0; *(uint32_t*)0x20000c6c = 0xd7f; *(uint32_t*)0x20000c70 = 8; *(uint32_t*)0x20000c74 = 3; *(uint32_t*)0x20000c78 = 0x101; *(uint32_t*)0x20000c7c = 0; *(uint32_t*)0x20000c80 = 2; *(uint32_t*)0x20000c84 = 9; *(uint32_t*)0x20000c88 = 0xb4b; *(uint32_t*)0x20000c8c = 3; *(uint32_t*)0x20000c90 = 0x401; *(uint32_t*)0x20000c94 = -1; *(uint32_t*)0x20000c98 = 0x101; *(uint32_t*)0x20000c9c = 9; *(uint32_t*)0x20000ca0 = 0; *(uint32_t*)0x20000ca4 = 8; *(uint32_t*)0x20000ca8 = 3; *(uint32_t*)0x20000cac = 1; *(uint32_t*)0x20000cb0 = 0x74; *(uint32_t*)0x20000cb4 = 0x400; *(uint32_t*)0x20000cb8 = 0x204a; *(uint32_t*)0x20000cbc = 8; *(uint32_t*)0x20000cc0 = 0x800; *(uint32_t*)0x20000cc4 = 2; *(uint32_t*)0x20000cc8 = 0xfff; *(uint32_t*)0x20000ccc = 0x1000; *(uint32_t*)0x20000cd0 = 1; *(uint32_t*)0x20000cd4 = 0xdba; *(uint32_t*)0x20000cd8 = 0xe96; *(uint32_t*)0x20000cdc = 5; *(uint32_t*)0x20000ce0 = 0x2085; *(uint32_t*)0x20000ce4 = 8; *(uint32_t*)0x20000ce8 = 7; *(uint32_t*)0x20000cec = 0; *(uint32_t*)0x20000cf0 = 0xdb1; *(uint32_t*)0x20000cf4 = 4; *(uint32_t*)0x20000cf8 = 0x20; *(uint32_t*)0x20000cfc = 7; *(uint32_t*)0x20000d00 = 8; *(uint32_t*)0x20000d04 = 0; *(uint32_t*)0x20000d08 = 1; *(uint32_t*)0x20000d0c = 4; *(uint32_t*)0x20000d10 = 7; *(uint32_t*)0x20000d14 = 0x3ff; *(uint32_t*)0x20000d18 = 0x81; *(uint32_t*)0x20000d1c = 0; *(uint32_t*)0x20000d20 = 0xfffff800; *(uint32_t*)0x20000d24 = 0xccff; *(uint32_t*)0x20000d28 = 0x3ed; *(uint32_t*)0x20000d2c = 0x2fc; *(uint32_t*)0x20000d30 = 0x1000; *(uint32_t*)0x20000d34 = 0x200; *(uint32_t*)0x20000d38 = 0x98; *(uint32_t*)0x20000d3c = 1; *(uint32_t*)0x20000d40 = 0x3fee2e23; *(uint32_t*)0x20000d44 = 0xee; *(uint32_t*)0x20000d48 = 0xebe2; *(uint32_t*)0x20000d4c = 0x819; *(uint32_t*)0x20000d50 = 6; *(uint32_t*)0x20000d54 = 0x80000001; *(uint32_t*)0x20000d58 = 0x3f; *(uint32_t*)0x20000d5c = 9; *(uint32_t*)0x20000d60 = 2; *(uint32_t*)0x20000d64 = 2; *(uint32_t*)0x20000d68 = 5; *(uint32_t*)0x20000d6c = 2; *(uint32_t*)0x20000d70 = 0; *(uint32_t*)0x20000d74 = 8; *(uint32_t*)0x20000d78 = 0x708c; *(uint32_t*)0x20000d7c = 4; *(uint32_t*)0x20000d80 = 0x4f8; *(uint32_t*)0x20000d84 = 8; *(uint32_t*)0x20000d88 = 4; *(uint32_t*)0x20000d8c = 2; *(uint32_t*)0x20000d90 = 0x1000; *(uint32_t*)0x20000d94 = 0x4df; *(uint32_t*)0x20000d98 = 3; *(uint32_t*)0x20000d9c = 6; *(uint32_t*)0x20000da0 = 0xa34; *(uint32_t*)0x20000da4 = 6; *(uint32_t*)0x20000da8 = 0x7fff; *(uint32_t*)0x20000dac = 3; *(uint32_t*)0x20000db0 = 0x81; *(uint32_t*)0x20000db4 = 0x80; *(uint32_t*)0x20000db8 = 0x10001; *(uint32_t*)0x20000dbc = 0xffffbee2; *(uint32_t*)0x20000dc0 = 0x1ff; *(uint32_t*)0x20000dc4 = 8; *(uint32_t*)0x20000dc8 = 5; *(uint32_t*)0x20000dcc = 1; *(uint32_t*)0x20000dd0 = 8; *(uint32_t*)0x20000dd4 = 3; *(uint32_t*)0x20000dd8 = 0xf3a4; *(uint32_t*)0x20000ddc = 0x63; *(uint32_t*)0x20000de0 = 0; *(uint32_t*)0x20000de4 = 7; *(uint32_t*)0x20000de8 = 1; *(uint32_t*)0x20000dec = 4; *(uint32_t*)0x20000df0 = 0xf9b; *(uint32_t*)0x20000df4 = 8; *(uint32_t*)0x20000df8 = 7; *(uint32_t*)0x20000dfc = 5; *(uint32_t*)0x20000e00 = 0xed0; *(uint32_t*)0x20000e04 = 0x3f; *(uint32_t*)0x20000e08 = 0xffff4dd8; *(uint32_t*)0x20000e0c = 8; *(uint32_t*)0x20000e10 = 0xaf2c; *(uint32_t*)0x20000e14 = -1; *(uint32_t*)0x20000e18 = 0x3ff; *(uint32_t*)0x20000e1c = 7; *(uint32_t*)0x20000e20 = 5; *(uint32_t*)0x20000e24 = 0x10000; *(uint32_t*)0x20000e28 = 1; *(uint32_t*)0x20000e2c = 4; *(uint32_t*)0x20000e30 = 5; *(uint32_t*)0x20000e34 = 0x401; *(uint32_t*)0x20000e38 = 0x20; *(uint32_t*)0x20000e3c = 2; *(uint32_t*)0x20000e40 = 5; *(uint32_t*)0x20000e44 = 0x3ff; *(uint32_t*)0x20000e48 = 0xb0; *(uint32_t*)0x20000e4c = 7; *(uint32_t*)0x20000e50 = 5; *(uint32_t*)0x20000e54 = 2; *(uint32_t*)0x20000e58 = 0x311; *(uint32_t*)0x20000e5c = -1; *(uint32_t*)0x20000e60 = 0xfffffff8; *(uint32_t*)0x20000e64 = 0; *(uint32_t*)0x20000e68 = 3; *(uint32_t*)0x20000e6c = 6; *(uint32_t*)0x20000e70 = 9; *(uint32_t*)0x20000e74 = 5; *(uint32_t*)0x20000e78 = 5; *(uint32_t*)0x20000e7c = 3; *(uint32_t*)0x20000e80 = 0x3d76d6af; *(uint32_t*)0x20000e84 = 0; *(uint32_t*)0x20000e88 = 6; *(uint32_t*)0x20000e8c = 0x100; *(uint32_t*)0x20000e90 = 0x80000000; *(uint32_t*)0x20000e94 = 9; *(uint32_t*)0x20000e98 = 1; *(uint32_t*)0x20000e9c = 0; *(uint32_t*)0x20000ea0 = 3; *(uint32_t*)0x20000ea4 = 7; *(uint32_t*)0x20000ea8 = 0x2f1; *(uint32_t*)0x20000eac = 0x100; *(uint32_t*)0x20000eb0 = 0xa8000000; *(uint32_t*)0x20000eb4 = 0x10000; *(uint32_t*)0x20000eb8 = 1; *(uint32_t*)0x20000ebc = 0; *(uint32_t*)0x20000ec0 = 7; *(uint32_t*)0x20000ec4 = 6; *(uint32_t*)0x20000ec8 = 0x6b8b; *(uint32_t*)0x20000ecc = 1; *(uint32_t*)0x20000ed0 = 0x10000; *(uint32_t*)0x20000ed4 = 0x100; *(uint32_t*)0x20000ed8 = 0xafdf; *(uint32_t*)0x20000edc = 8; *(uint32_t*)0x20000ee0 = 0x7fffffff; *(uint32_t*)0x20000ee4 = 0xfffffff9; *(uint32_t*)0x20000ee8 = 1; *(uint32_t*)0x20000eec = 3; *(uint32_t*)0x20000ef0 = 9; *(uint32_t*)0x20000ef4 = 7; *(uint32_t*)0x20000ef8 = 0x80000001; *(uint32_t*)0x20000efc = -1; *(uint32_t*)0x20000f00 = 0x6870483e; *(uint32_t*)0x20000f04 = 1; *(uint32_t*)0x20000f08 = 1; *(uint32_t*)0x20000f0c = 0x800; *(uint32_t*)0x20000f10 = 6; *(uint32_t*)0x20000f14 = 3; *(uint32_t*)0x20000f18 = 0x1382e43b; *(uint32_t*)0x20000f1c = 0x524e; *(uint32_t*)0x20000f20 = 0x649b; *(uint32_t*)0x20000f24 = 9; *(uint32_t*)0x20000f28 = 2; *(uint32_t*)0x20000f2c = 0x10001; *(uint32_t*)0x20000f30 = 0x19af; *(uint32_t*)0x20000f34 = 0; *(uint32_t*)0x20000f38 = 0x10000; *(uint32_t*)0x20000f3c = 0; *(uint32_t*)0x20000f40 = 2; *(uint32_t*)0x20000f44 = 0x70; *(uint32_t*)0x20000f48 = 2; *(uint32_t*)0x20000f4c = 0xfc8; *(uint32_t*)0x20000f50 = 5; *(uint32_t*)0x20000f54 = 4; *(uint32_t*)0x20000f58 = 0x101; *(uint32_t*)0x20000f5c = 0x1000; *(uint32_t*)0x20000f60 = 1; *(uint32_t*)0x20000f64 = 4; *(uint32_t*)0x20000f68 = 0x101; *(uint32_t*)0x20000f6c = 9; *(uint32_t*)0x20000f70 = 0x800; *(uint32_t*)0x20000f74 = 1; *(uint32_t*)0x20000f78 = 5; *(uint32_t*)0x20000f7c = 0x4244; *(uint32_t*)0x20000f80 = 0; *(uint32_t*)0x20000f84 = 3; *(uint32_t*)0x20000f88 = 1; *(uint32_t*)0x20000f8c = 0x7301; *(uint32_t*)0x20000f90 = 1; *(uint32_t*)0x20000f94 = 0x9072; *(uint32_t*)0x20000f98 = 3; *(uint32_t*)0x20000f9c = 0xfbf; *(uint32_t*)0x20000fa0 = 0x7fffffff; *(uint32_t*)0x20000fa4 = 3; *(uint32_t*)0x20000fa8 = 1; *(uint32_t*)0x20000fac = 2; *(uint32_t*)0x20000fb0 = 0xfffffff7; *(uint32_t*)0x20000fb4 = 3; *(uint32_t*)0x20000fb8 = 3; *(uint32_t*)0x20000fbc = 1; *(uint32_t*)0x20000fc0 = 0x40; *(uint32_t*)0x20000fc4 = 0x7fffffff; *(uint32_t*)0x20000fc8 = 7; *(uint32_t*)0x20000fcc = 0x8001; *(uint32_t*)0x20000fd0 = 9; *(uint32_t*)0x20000fd4 = 3; *(uint32_t*)0x20000fd8 = 0x80; *(uint32_t*)0x20000fdc = 7; *(uint32_t*)0x20000fe0 = 0x10001; *(uint32_t*)0x20000fe4 = 6; *(uint32_t*)0x20000fe8 = 0x5a92; *(uint32_t*)0x20000fec = 0xb5a9; *(uint32_t*)0x20000ff0 = 0; *(uint32_t*)0x20000ff4 = 0x1ff; *(uint32_t*)0x20000ff8 = 5; *(uint32_t*)0x20000ffc = 3; *(uint32_t*)0x20001000 = 1; *(uint32_t*)0x20001004 = 0xffffff17; *(uint32_t*)0x20001008 = 0xffff; *(uint32_t*)0x2000100c = 0x7ff; *(uint32_t*)0x20001010 = 6; *(uint32_t*)0x20001014 = 2; *(uint32_t*)0x20001018 = 1; *(uint32_t*)0x2000101c = 0xfffff001; *(uint32_t*)0x20001020 = 1; *(uint32_t*)0x20001024 = 2; *(uint32_t*)0x20001028 = 7; *(uint32_t*)0x2000102c = 0x200; *(uint32_t*)0x20001030 = 6; *(uint32_t*)0x20001034 = 0; *(uint32_t*)0x20001038 = 8; *(uint32_t*)0x2000103c = 0x40; *(uint32_t*)0x20001040 = 3; *(uint32_t*)0x20001044 = 4; *(uint32_t*)0x20001048 = 0xe195; *(uint32_t*)0x2000104c = 9; *(uint32_t*)0x20001050 = 0x5d95; *(uint32_t*)0x20001054 = 1; *(uint32_t*)0x20001058 = 4; *(uint32_t*)0x2000105c = 0x400; *(uint32_t*)0x20001060 = 0x8001; *(uint32_t*)0x20001064 = 8; *(uint32_t*)0x20001068 = 0x401; *(uint32_t*)0x2000106c = 3; *(uint32_t*)0x20001070 = 9; *(uint32_t*)0x20001074 = 6; *(uint32_t*)0x20001078 = 0xa4f9; *(uint32_t*)0x2000107c = 1; *(uint32_t*)0x20001080 = 0x200; *(uint32_t*)0x20001084 = 0x3ff; *(uint32_t*)0x20001088 = 0x400; *(uint32_t*)0x2000108c = 2; *(uint32_t*)0x20001090 = 0xfff; *(uint32_t*)0x20001094 = 0x7f; *(uint32_t*)0x20001098 = 0x7fc; *(uint32_t*)0x2000109c = 1; *(uint32_t*)0x200010a0 = 0xffffffae; *(uint32_t*)0x200010a4 = 4; *(uint32_t*)0x200010a8 = 7; *(uint32_t*)0x200010ac = 5; *(uint32_t*)0x200010b0 = 0; *(uint32_t*)0x200010b4 = 4; *(uint32_t*)0x200010b8 = 0xffffe6aa; *(uint32_t*)0x200010bc = 0xfffffff8; *(uint32_t*)0x200010c0 = 7; *(uint32_t*)0x200010c4 = 0xb7; *(uint32_t*)0x200010c8 = 2; *(uint32_t*)0x200010cc = 0x80; *(uint32_t*)0x200010d0 = 9; *(uint32_t*)0x200010d4 = 0; *(uint32_t*)0x200010d8 = 0; syscall(__NR_ioctl, -1, 0xd01c4813, 0x200000c0); *(uint8_t*)0x20000080 = 0x12; *(uint8_t*)0x20000081 = 1; *(uint16_t*)0x20000082 = 0; *(uint8_t*)0x20000084 = 5; *(uint8_t*)0x20000085 = 0xd6; *(uint8_t*)0x20000086 = 0xf2; *(uint8_t*)0x20000087 = 8; *(uint16_t*)0x20000088 = 0x841; *(uint16_t*)0x2000008a = 1; *(uint16_t*)0x2000008c = 0x6e90; *(uint8_t*)0x2000008e = 0; *(uint8_t*)0x2000008f = 0; *(uint8_t*)0x20000090 = 0; *(uint8_t*)0x20000091 = 1; *(uint8_t*)0x20000092 = 9; *(uint8_t*)0x20000093 = 2; *(uint16_t*)0x20000094 = 0x12; *(uint8_t*)0x20000096 = 1; *(uint8_t*)0x20000097 = 0; *(uint8_t*)0x20000098 = 0; *(uint8_t*)0x20000099 = 0; *(uint8_t*)0x2000009a = 0; *(uint8_t*)0x2000009b = 9; *(uint8_t*)0x2000009c = 4; *(uint8_t*)0x2000009d = 0x43; *(uint8_t*)0x2000009e = 0; *(uint8_t*)0x2000009f = 0; *(uint8_t*)0x200000a0 = 0xd; *(uint8_t*)0x200000a1 = 0xce; *(uint8_t*)0x200000a2 = 0x75; *(uint8_t*)0x200000a3 = 0; syz_usb_connect(0, 0x54, 0x20000080, 0); } int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (procid = 0; procid < 6; procid++) { if (fork() == 0) { loop(); } } sleep(1000000); return 0; }