// https://syzkaller.appspot.com/bug?id=7349616606afa3c986c377792f7ccbf9daae1142 // 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 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; } #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); } #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 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 (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } *(uint32_t*)0x200006c0 = 2; *(uint32_t*)0x200006c4 = 3; *(uint32_t*)0x200006c8 = 0x54; *(uint32_t*)0x200006cc = 1; *(uint32_t*)0x200006d0 = 4; *(uint32_t*)0x200006d4 = 9; *(uint32_t*)0x200006d8 = 0x3eb; *(uint32_t*)0x200006dc = 0x80000000; *(uint32_t*)0x200006e0 = 0x7ff; *(uint32_t*)0x200006e4 = 5; *(uint32_t*)0x200006e8 = 9; *(uint32_t*)0x200006ec = 4; *(uint32_t*)0x200006f0 = 0x2b1; *(uint32_t*)0x200006f4 = 2; *(uint32_t*)0x200006f8 = 0xc; *(uint32_t*)0x200006fc = 0x101; *(uint32_t*)0x20000700 = 0x80000001; *(uint32_t*)0x20000704 = 3; *(uint32_t*)0x20000708 = 5; *(uint32_t*)0x2000070c = 7; *(uint32_t*)0x20000710 = 1; *(uint32_t*)0x20000714 = 0x4a70b2dc; *(uint32_t*)0x20000718 = 0x1000; *(uint32_t*)0x2000071c = 0x3e0; *(uint32_t*)0x20000720 = 0xe787; *(uint32_t*)0x20000724 = 0x40; *(uint32_t*)0x20000728 = 5; *(uint32_t*)0x2000072c = 0x1bc; *(uint32_t*)0x20000730 = 0x10000; *(uint32_t*)0x20000734 = 0xff; *(uint32_t*)0x20000738 = 3; *(uint32_t*)0x2000073c = 0xa; *(uint32_t*)0x20000740 = 3; *(uint32_t*)0x20000744 = 0x49c; *(uint32_t*)0x20000748 = 1; *(uint32_t*)0x2000074c = 0x10001; *(uint32_t*)0x20000750 = 0x200; *(uint32_t*)0x20000754 = 3; *(uint32_t*)0x20000758 = 6; *(uint32_t*)0x2000075c = 2; *(uint32_t*)0x20000760 = 0x900000; *(uint32_t*)0x20000764 = 0; *(uint32_t*)0x20000768 = 0x10; *(uint32_t*)0x2000076c = 0; *(uint32_t*)0x20000770 = 5; *(uint32_t*)0x20000774 = 6; *(uint32_t*)0x20000778 = 1; *(uint32_t*)0x2000077c = 0x7c; *(uint32_t*)0x20000780 = 0xcc1; *(uint32_t*)0x20000784 = 7; *(uint32_t*)0x20000788 = 1; *(uint32_t*)0x2000078c = 8; *(uint32_t*)0x20000790 = 4; *(uint32_t*)0x20000794 = 7; *(uint32_t*)0x20000798 = 5; *(uint32_t*)0x2000079c = 0xaa78; *(uint32_t*)0x200007a0 = 0x3c4; *(uint32_t*)0x200007a4 = 0x6dc0; *(uint32_t*)0x200007a8 = 8; *(uint32_t*)0x200007ac = 0xef31; *(uint32_t*)0x200007b0 = 2; *(uint32_t*)0x200007b4 = 0x10001; *(uint32_t*)0x200007b8 = 1; *(uint32_t*)0x200007bc = 1; *(uint32_t*)0x200007c0 = 0; *(uint32_t*)0x200007c4 = 0x81; *(uint32_t*)0x200007c8 = 4; *(uint32_t*)0x200007cc = 3; *(uint32_t*)0x200007d0 = 3; *(uint32_t*)0x200007d4 = 9; *(uint32_t*)0x200007d8 = 7; *(uint32_t*)0x200007dc = 0xff; *(uint32_t*)0x200007e0 = 9; *(uint32_t*)0x200007e4 = 0x40; *(uint32_t*)0x200007e8 = 2; *(uint32_t*)0x200007ec = 4; *(uint32_t*)0x200007f0 = 5; *(uint32_t*)0x200007f4 = 0x7ff; *(uint32_t*)0x200007f8 = 0xa24; *(uint32_t*)0x200007fc = 0xff; *(uint32_t*)0x20000800 = 4; *(uint32_t*)0x20000804 = 0xf; *(uint32_t*)0x20000808 = 2; *(uint32_t*)0x2000080c = 0; *(uint32_t*)0x20000810 = 4; *(uint32_t*)0x20000814 = 1; *(uint32_t*)0x20000818 = 6; *(uint32_t*)0x2000081c = 0x10001; *(uint32_t*)0x20000820 = 9; *(uint32_t*)0x20000824 = 0x57; *(uint32_t*)0x20000828 = 0xd1; *(uint32_t*)0x2000082c = 4; *(uint32_t*)0x20000830 = 6; *(uint32_t*)0x20000834 = 4; *(uint32_t*)0x20000838 = 0x59bb6727; *(uint32_t*)0x2000083c = 1; *(uint32_t*)0x20000840 = 0x200; *(uint32_t*)0x20000844 = 0xd; *(uint32_t*)0x20000848 = 3; *(uint32_t*)0x2000084c = 6; *(uint32_t*)0x20000850 = 2; *(uint32_t*)0x20000854 = 6; *(uint32_t*)0x20000858 = 4; *(uint32_t*)0x2000085c = 0xcae3; *(uint32_t*)0x20000860 = 0x7f2e8000; *(uint32_t*)0x20000864 = 6; *(uint32_t*)0x20000868 = 0x81; *(uint32_t*)0x2000086c = 5; *(uint32_t*)0x20000870 = 8; *(uint32_t*)0x20000874 = 9; *(uint32_t*)0x20000878 = 4; *(uint32_t*)0x2000087c = 5; *(uint32_t*)0x20000880 = 0x852; *(uint32_t*)0x20000884 = 0x8001; *(uint32_t*)0x20000888 = 3; *(uint32_t*)0x2000088c = 9; *(uint32_t*)0x20000890 = 4; *(uint32_t*)0x20000894 = 3; *(uint32_t*)0x20000898 = 3; *(uint32_t*)0x2000089c = 8; *(uint32_t*)0x200008a0 = 0x80000001; *(uint32_t*)0x200008a4 = 9; *(uint32_t*)0x200008a8 = 8; *(uint32_t*)0x200008ac = 0xc832; *(uint32_t*)0x200008b0 = 8; *(uint32_t*)0x200008b4 = 2; *(uint32_t*)0x200008b8 = 0xd; *(uint32_t*)0x200008bc = 0xfffffff0; *(uint32_t*)0x200008c0 = 6; *(uint32_t*)0x200008c4 = 0xfffffffe; *(uint32_t*)0x200008c8 = 0x68; *(uint32_t*)0x200008cc = 3; *(uint32_t*)0x200008d0 = 0x7f; *(uint32_t*)0x200008d4 = 8; *(uint32_t*)0x200008d8 = 0x81; *(uint32_t*)0x200008dc = 6; *(uint32_t*)0x200008e0 = 5; *(uint32_t*)0x200008e4 = 2; *(uint32_t*)0x200008e8 = 0; *(uint32_t*)0x200008ec = 0xef92; *(uint32_t*)0x200008f0 = 0; *(uint32_t*)0x200008f4 = 0xffff0000; *(uint32_t*)0x200008f8 = 0x349175d9; *(uint32_t*)0x200008fc = 0x7d0; *(uint32_t*)0x20000900 = 4; *(uint32_t*)0x20000904 = 2; *(uint32_t*)0x20000908 = 3; *(uint32_t*)0x2000090c = 0x8001; *(uint32_t*)0x20000910 = 3; *(uint32_t*)0x20000914 = 4; *(uint32_t*)0x20000918 = 0x8d7; *(uint32_t*)0x2000091c = 0x89c; *(uint32_t*)0x20000920 = 0xd1; *(uint32_t*)0x20000924 = 5; *(uint32_t*)0x20000928 = 0; *(uint32_t*)0x2000092c = 0xfffffffa; *(uint32_t*)0x20000930 = 5; *(uint32_t*)0x20000934 = 3; *(uint32_t*)0x20000938 = 5; *(uint32_t*)0x2000093c = 6; *(uint32_t*)0x20000940 = 3; *(uint32_t*)0x20000944 = 7; *(uint32_t*)0x20000948 = 9; *(uint32_t*)0x2000094c = 0x80000000; *(uint32_t*)0x20000950 = 0; *(uint32_t*)0x20000954 = 2; *(uint32_t*)0x20000958 = 0x7b8; *(uint32_t*)0x2000095c = 0xc1; *(uint32_t*)0x20000960 = 5; *(uint32_t*)0x20000964 = 8; *(uint32_t*)0x20000968 = 2; *(uint32_t*)0x2000096c = 0x82; *(uint32_t*)0x20000970 = 1; *(uint32_t*)0x20000974 = 0x7f; *(uint32_t*)0x20000978 = 9; *(uint32_t*)0x2000097c = 6; *(uint32_t*)0x20000980 = 3; *(uint32_t*)0x20000984 = 0xd; *(uint32_t*)0x20000988 = 3; *(uint32_t*)0x2000098c = 0x8000; *(uint32_t*)0x20000990 = 0x20000; *(uint32_t*)0x20000994 = 2; *(uint32_t*)0x20000998 = 0xca09; *(uint32_t*)0x2000099c = 5; *(uint32_t*)0x200009a0 = 0x40; *(uint32_t*)0x200009a4 = 0xe84; *(uint32_t*)0x200009a8 = 1; *(uint32_t*)0x200009ac = 1; *(uint32_t*)0x200009b0 = 0xb; *(uint32_t*)0x200009b4 = 2; *(uint32_t*)0x200009b8 = 0xfff; *(uint32_t*)0x200009bc = 0x400; *(uint32_t*)0x200009c0 = 0xfffffff7; *(uint32_t*)0x200009c4 = 5; *(uint32_t*)0x200009c8 = 4; *(uint32_t*)0x200009cc = 5; *(uint32_t*)0x200009d0 = 5; *(uint32_t*)0x200009d4 = 0x7ff; *(uint32_t*)0x200009d8 = 1; *(uint32_t*)0x200009dc = 0; *(uint32_t*)0x200009e0 = 0x20; *(uint32_t*)0x200009e4 = 0xfffffff8; *(uint32_t*)0x200009e8 = 5; *(uint32_t*)0x200009ec = 0xffff7bf9; *(uint32_t*)0x200009f0 = 0x10000; *(uint32_t*)0x200009f4 = 0x40; *(uint32_t*)0x200009f8 = 4; *(uint32_t*)0x200009fc = 9; *(uint32_t*)0x20000a00 = 0x43; *(uint32_t*)0x20000a04 = 3; *(uint32_t*)0x20000a08 = 6; *(uint32_t*)0x20000a0c = 7; *(uint32_t*)0x20000a10 = 7; *(uint32_t*)0x20000a14 = 0xfffffffe; *(uint32_t*)0x20000a18 = -1; *(uint32_t*)0x20000a1c = 3; *(uint32_t*)0x20000a20 = 0; *(uint32_t*)0x20000a24 = 9; *(uint32_t*)0x20000a28 = 5; *(uint32_t*)0x20000a2c = 2; *(uint32_t*)0x20000a30 = 9; *(uint32_t*)0x20000a34 = 5; *(uint32_t*)0x20000a38 = 8; *(uint32_t*)0x20000a3c = 0; *(uint32_t*)0x20000a40 = 8; *(uint32_t*)0x20000a44 = 0x6c; *(uint32_t*)0x20000a48 = 0x8000; *(uint32_t*)0x20000a4c = 0x2e; *(uint32_t*)0x20000a50 = 2; *(uint32_t*)0x20000a54 = 0x52; *(uint32_t*)0x20000a58 = 8; *(uint32_t*)0x20000a5c = 0x10000; *(uint32_t*)0x20000a60 = 0x1000; *(uint32_t*)0x20000a64 = 8; *(uint32_t*)0x20000a68 = 0x25; *(uint32_t*)0x20000a6c = 9; *(uint32_t*)0x20000a70 = 4; *(uint32_t*)0x20000a74 = 5; *(uint32_t*)0x20000a78 = 0xffff1bb8; *(uint32_t*)0x20000a7c = 0xfffffffd; *(uint32_t*)0x20000a80 = 5; *(uint32_t*)0x20000a84 = 0x1000; *(uint32_t*)0x20000a88 = 0x521aef36; *(uint32_t*)0x20000a8c = 5; *(uint32_t*)0x20000a90 = 0; *(uint32_t*)0x20000a94 = 0x45ea1f35; *(uint32_t*)0x20000a98 = 0xb; *(uint32_t*)0x20000a9c = 0xffffeae5; *(uint32_t*)0x20000aa0 = 0x800; *(uint32_t*)0x20000aa4 = 4; *(uint32_t*)0x20000aa8 = 5; *(uint32_t*)0x20000aac = 8; *(uint32_t*)0x20000ab0 = 9; *(uint32_t*)0x20000ab4 = 2; *(uint32_t*)0x20000ab8 = 5; *(uint32_t*)0x20000abc = 0xfffe; *(uint32_t*)0x20000ac0 = 0; *(uint32_t*)0x20000ac4 = 0x55ed; *(uint32_t*)0x20000ac8 = 0x80; *(uint32_t*)0x20000acc = 0xae800000; *(uint32_t*)0x20000ad0 = 3; *(uint32_t*)0x20000ad4 = 0xba1; *(uint32_t*)0x20000ad8 = 0x101; *(uint32_t*)0x20000adc = 5; *(uint32_t*)0x20000ae0 = 6; *(uint32_t*)0x20000ae4 = 0x66d; *(uint32_t*)0x20000ae8 = 1; *(uint32_t*)0x20000aec = 9; *(uint32_t*)0x20000af0 = 0x5ca0; *(uint32_t*)0x20000af4 = 0; *(uint32_t*)0x20000af8 = 0xfff; *(uint32_t*)0x20000afc = 5; *(uint32_t*)0x20000b00 = 2; *(uint32_t*)0x20000b04 = 8; *(uint32_t*)0x20000b08 = 0x79283876; *(uint32_t*)0x20000b0c = 1; *(uint32_t*)0x20000b10 = 6; *(uint32_t*)0x20000b14 = 4; *(uint32_t*)0x20000b18 = 5; *(uint32_t*)0x20000b1c = 0xc22; *(uint32_t*)0x20000b20 = 0xfffffff7; *(uint32_t*)0x20000b24 = 0x80; *(uint32_t*)0x20000b28 = 0xff; *(uint32_t*)0x20000b2c = 0x4000; *(uint32_t*)0x20000b30 = 8; *(uint32_t*)0x20000b34 = 3; *(uint32_t*)0x20000b38 = 0x7fffffff; *(uint32_t*)0x20000b3c = 8; *(uint32_t*)0x20000b40 = 1; *(uint32_t*)0x20000b44 = 0xd3; *(uint32_t*)0x20000b48 = 8; *(uint32_t*)0x20000b4c = 0xc99b; *(uint32_t*)0x20000b50 = 0x80000001; *(uint32_t*)0x20000b54 = 7; *(uint32_t*)0x20000b58 = 0x10001; *(uint32_t*)0x20000b5c = 6; *(uint32_t*)0x20000b60 = 8; *(uint32_t*)0x20000b64 = 0x3b5; *(uint32_t*)0x20000b68 = 0x1000; *(uint32_t*)0x20000b6c = 0; *(uint32_t*)0x20000b70 = 0x9dd; *(uint32_t*)0x20000b74 = 1; *(uint32_t*)0x20000b78 = 7; *(uint32_t*)0x20000b7c = 0xe; *(uint32_t*)0x20000b80 = 4; *(uint32_t*)0x20000b84 = 7; *(uint32_t*)0x20000b88 = 0xffff9b3f; *(uint32_t*)0x20000b8c = 1; *(uint32_t*)0x20000b90 = 0xffff; *(uint32_t*)0x20000b94 = 0x7fffffff; *(uint32_t*)0x20000b98 = 7; *(uint32_t*)0x20000b9c = 7; *(uint32_t*)0x20000ba0 = 0x1e1; *(uint32_t*)0x20000ba4 = 5; *(uint32_t*)0x20000ba8 = 8; *(uint32_t*)0x20000bac = 3; *(uint32_t*)0x20000bb0 = 0x10001; *(uint32_t*)0x20000bb4 = 5; *(uint32_t*)0x20000bb8 = 0x800; *(uint32_t*)0x20000bbc = 0; *(uint32_t*)0x20000bc0 = 0x28e88f9b; *(uint32_t*)0x20000bc4 = 0xb36; *(uint32_t*)0x20000bc8 = 0xd; *(uint32_t*)0x20000bcc = 0x80000000; *(uint32_t*)0x20000bd0 = 0xa; *(uint32_t*)0x20000bd4 = 1; *(uint32_t*)0x20000bd8 = 6; *(uint32_t*)0x20000bdc = 9; *(uint32_t*)0x20000be0 = 4; *(uint32_t*)0x20000be4 = 0x80000001; *(uint32_t*)0x20000be8 = 3; *(uint32_t*)0x20000bec = 0xe; *(uint32_t*)0x20000bf0 = 0xfdb9; *(uint32_t*)0x20000bf4 = 9; *(uint32_t*)0x20000bf8 = 0x200; *(uint32_t*)0x20000bfc = 8; *(uint32_t*)0x20000c00 = 0x10; *(uint32_t*)0x20000c04 = 0xfffffff4; *(uint32_t*)0x20000c08 = 8; *(uint32_t*)0x20000c0c = 5; *(uint32_t*)0x20000c10 = 0; *(uint32_t*)0x20000c14 = 2; *(uint32_t*)0x20000c18 = 0x401; *(uint32_t*)0x20000c1c = 9; *(uint32_t*)0x20000c20 = 1; *(uint32_t*)0x20000c24 = 0xfffffffc; *(uint32_t*)0x20000c28 = 0x2b3a; *(uint32_t*)0x20000c2c = 0x8383; *(uint32_t*)0x20000c30 = 0x5387; *(uint32_t*)0x20000c34 = 6; *(uint32_t*)0x20000c38 = 6; *(uint32_t*)0x20000c3c = 6; *(uint32_t*)0x20000c40 = 5; *(uint32_t*)0x20000c44 = 1; *(uint32_t*)0x20000c48 = 2; *(uint32_t*)0x20000c4c = 1; *(uint32_t*)0x20000c50 = 1; *(uint32_t*)0x20000c54 = 1; *(uint32_t*)0x20000c58 = 0x8001; *(uint32_t*)0x20000c5c = 0x80000000; *(uint32_t*)0x20000c60 = 4; *(uint32_t*)0x20000c64 = 6; *(uint32_t*)0x20000c68 = 0x8000; *(uint32_t*)0x20000c6c = 0x101; *(uint32_t*)0x20000c70 = 5; *(uint32_t*)0x20000c74 = 7; *(uint32_t*)0x20000c78 = 6; *(uint32_t*)0x20000c7c = 8; *(uint32_t*)0x20000c80 = 5; *(uint32_t*)0x20000c84 = 0x7fffffff; *(uint32_t*)0x20000c88 = 5; *(uint32_t*)0x20000c8c = 0xfff; *(uint32_t*)0x20000c90 = 3; *(uint32_t*)0x20000c94 = 9; *(uint32_t*)0x20000c98 = 9; *(uint32_t*)0x20000c9c = 7; *(uint32_t*)0x20000ca0 = 0x101; *(uint32_t*)0x20000ca4 = 4; *(uint32_t*)0x20000ca8 = 2; *(uint32_t*)0x20000cac = 0; *(uint32_t*)0x20000cb0 = 4; *(uint32_t*)0x20000cb4 = 8; *(uint32_t*)0x20000cb8 = 7; *(uint32_t*)0x20000cbc = 6; *(uint32_t*)0x20000cc0 = 9; *(uint32_t*)0x20000cc4 = 1; *(uint32_t*)0x20000cc8 = 0xfffffffd; *(uint32_t*)0x20000ccc = 7; *(uint32_t*)0x20000cd0 = 0x18000000; *(uint32_t*)0x20000cd4 = 7; *(uint32_t*)0x20000cd8 = 7; *(uint32_t*)0x20000cdc = 7; *(uint32_t*)0x20000ce0 = 0x10001; *(uint32_t*)0x20000ce4 = 9; *(uint32_t*)0x20000ce8 = 9; *(uint32_t*)0x20000cec = 0x6c; *(uint32_t*)0x20000cf0 = 7; *(uint32_t*)0x20000cf4 = 0x10000; *(uint32_t*)0x20000cf8 = 4; *(uint32_t*)0x20000cfc = 0x74; *(uint32_t*)0x20000d00 = 0xea; *(uint32_t*)0x20000d04 = 2; *(uint32_t*)0x20000d08 = 0xffffff42; *(uint32_t*)0x20000d0c = 0x51; *(uint32_t*)0x20000d10 = 5; *(uint32_t*)0x20000d14 = 0xf; *(uint32_t*)0x20000d18 = 6; *(uint32_t*)0x20000d1c = 0; *(uint32_t*)0x20000d20 = 0xf15; *(uint32_t*)0x20000d24 = 0x5cf; *(uint32_t*)0x20000d28 = 0x10001; *(uint32_t*)0x20000d2c = 8; *(uint32_t*)0x20000d30 = 0x6ae; *(uint32_t*)0x20000d34 = 0xc62; *(uint32_t*)0x20000d38 = 0x10; *(uint32_t*)0x20000d3c = 0x75aca70; *(uint32_t*)0x20000d40 = 0x5a; *(uint32_t*)0x20000d44 = 9; *(uint32_t*)0x20000d48 = 0xd; *(uint32_t*)0x20000d4c = 0x101; *(uint32_t*)0x20000d50 = 0xf; *(uint32_t*)0x20000d54 = 0x16b37584; *(uint32_t*)0x20000d58 = 0x80000; *(uint32_t*)0x20000d5c = 0xcb; *(uint32_t*)0x20000d60 = 3; *(uint32_t*)0x20000d64 = 1; *(uint32_t*)0x20000d68 = 0x11; *(uint32_t*)0x20000d6c = 6; *(uint32_t*)0x20000d70 = 0; *(uint32_t*)0x20000d74 = 0xd; *(uint32_t*)0x20000d78 = 0x101; *(uint32_t*)0x20000d7c = 0xd; *(uint32_t*)0x20000d80 = 0; *(uint32_t*)0x20000d84 = 0x40; *(uint32_t*)0x20000d88 = 2; *(uint32_t*)0x20000d8c = 0; *(uint32_t*)0x20000d90 = 0x3a; *(uint32_t*)0x20000d94 = 4; *(uint32_t*)0x20000d98 = 0xd0; *(uint32_t*)0x20000d9c = 2; *(uint32_t*)0x20000da0 = 9; *(uint32_t*)0x20000da4 = 6; *(uint32_t*)0x20000da8 = 0x1c2; *(uint32_t*)0x20000dac = 3; *(uint32_t*)0x20000db0 = 0x10001; *(uint32_t*)0x20000db4 = 6; *(uint32_t*)0x20000db8 = 3; *(uint32_t*)0x20000dbc = 9; *(uint32_t*)0x20000dc0 = 1; *(uint32_t*)0x20000dc4 = 0; *(uint32_t*)0x20000dc8 = 1; *(uint32_t*)0x20000dcc = 4; *(uint32_t*)0x20000dd0 = 0x6034; *(uint32_t*)0x20000dd4 = 0x10001; *(uint32_t*)0x20000dd8 = 0xb7; *(uint32_t*)0x20000ddc = 0x3fa; *(uint32_t*)0x20000de0 = 8; *(uint32_t*)0x20000de4 = 6; *(uint32_t*)0x20000de8 = 0x10; *(uint32_t*)0x20000dec = 0x7d; *(uint32_t*)0x20000df0 = 6; *(uint32_t*)0x20000df4 = 0x7fff; *(uint32_t*)0x20000df8 = 0x7fffffff; *(uint32_t*)0x20000dfc = 1; *(uint32_t*)0x20000e00 = 1; *(uint32_t*)0x20000e04 = 4; *(uint32_t*)0x20000e08 = 0x4b3; *(uint32_t*)0x20000e0c = 0xea; *(uint32_t*)0x20000e10 = 5; *(uint32_t*)0x20000e14 = 0x40; *(uint32_t*)0x20000e18 = 5; *(uint32_t*)0x20000e1c = 0xfffffff9; *(uint32_t*)0x20000e20 = 1; *(uint32_t*)0x20000e24 = 3; *(uint32_t*)0x20000e28 = 7; *(uint32_t*)0x20000e2c = 0x3c; *(uint32_t*)0x20000e30 = 0x8000; *(uint32_t*)0x20000e34 = 3; *(uint32_t*)0x20000e38 = 3; *(uint32_t*)0x20000e3c = 3; *(uint32_t*)0x20000e40 = 3; *(uint32_t*)0x20000e44 = 1; *(uint32_t*)0x20000e48 = 5; *(uint32_t*)0x20000e4c = 0x2e; *(uint32_t*)0x20000e50 = 6; *(uint32_t*)0x20000e54 = 4; *(uint32_t*)0x20000e58 = 0; *(uint32_t*)0x20000e5c = 7; *(uint32_t*)0x20000e60 = 1; *(uint32_t*)0x20000e64 = 7; *(uint32_t*)0x20000e68 = 1; *(uint32_t*)0x20000e6c = 0xffff; *(uint32_t*)0x20000e70 = 0xf; *(uint32_t*)0x20000e74 = 0x8001; *(uint32_t*)0x20000e78 = 7; *(uint32_t*)0x20000e7c = 0x5f37; *(uint32_t*)0x20000e80 = 0xcd; *(uint32_t*)0x20000e84 = 2; *(uint32_t*)0x20000e88 = 4; *(uint32_t*)0x20000e8c = 2; *(uint32_t*)0x20000e90 = 0xfffffff8; *(uint32_t*)0x20000e94 = 5; *(uint32_t*)0x20000e98 = 1; *(uint32_t*)0x20000e9c = 6; *(uint32_t*)0x20000ea0 = 4; *(uint32_t*)0x20000ea4 = 2; *(uint32_t*)0x20000ea8 = 0xf; *(uint32_t*)0x20000eac = 7; *(uint32_t*)0x20000eb0 = 5; *(uint32_t*)0x20000eb4 = 0x667b6536; *(uint32_t*)0x20000eb8 = 1; *(uint32_t*)0x20000ebc = 9; *(uint32_t*)0x20000ec0 = 0xc1; *(uint32_t*)0x20000ec4 = 2; *(uint32_t*)0x20000ec8 = 7; *(uint32_t*)0x20000ecc = 0x7f77; *(uint32_t*)0x20000ed0 = 3; *(uint32_t*)0x20000ed4 = 2; *(uint32_t*)0x20000ed8 = 9; *(uint32_t*)0x20000edc = 2; *(uint32_t*)0x20000ee0 = 4; *(uint32_t*)0x20000ee4 = 0x9f6; *(uint32_t*)0x20000ee8 = 0xd; *(uint32_t*)0x20000eec = 3; *(uint32_t*)0x20000ef0 = 0xfff; *(uint32_t*)0x20000ef4 = 5; *(uint32_t*)0x20000ef8 = 0x10000; *(uint32_t*)0x20000efc = 5; *(uint32_t*)0x20000f00 = 0x8f; *(uint32_t*)0x20000f04 = 3; *(uint32_t*)0x20000f08 = 8; *(uint32_t*)0x20000f0c = 0x80000000; *(uint32_t*)0x20000f10 = 0x666; *(uint32_t*)0x20000f14 = 0x401; *(uint32_t*)0x20000f18 = 0x41; *(uint32_t*)0x20000f1c = 0xfffffff9; *(uint32_t*)0x20000f20 = 6; *(uint32_t*)0x20000f24 = 0xd; *(uint32_t*)0x20000f28 = 0x400; *(uint32_t*)0x20000f2c = 8; *(uint32_t*)0x20000f30 = 0xd4; *(uint32_t*)0x20000f34 = 0x3f681b61; *(uint32_t*)0x20000f38 = 1; *(uint32_t*)0x20000f3c = 0x641d; *(uint32_t*)0x20000f40 = 0x838; *(uint32_t*)0x20000f44 = 1; *(uint32_t*)0x20000f48 = 1; *(uint32_t*)0x20000f4c = 4; *(uint32_t*)0x20000f50 = 1; *(uint32_t*)0x20000f54 = 0x5ef; *(uint32_t*)0x20000f58 = 0; *(uint32_t*)0x20000f5c = 8; *(uint32_t*)0x20000f60 = 0xd; *(uint32_t*)0x20000f64 = 0x200; *(uint32_t*)0x20000f68 = 0xad1; *(uint32_t*)0x20000f6c = 0; *(uint32_t*)0x20000f70 = 0xffff; *(uint32_t*)0x20000f74 = 8; *(uint32_t*)0x20000f78 = 0x8cc0; *(uint32_t*)0x20000f7c = 0; *(uint32_t*)0x20000f80 = 4; *(uint32_t*)0x20000f84 = 7; *(uint32_t*)0x20000f88 = 1; *(uint32_t*)0x20000f8c = 0xf9e; *(uint32_t*)0x20000f90 = 0x40; *(uint32_t*)0x20000f94 = 8; *(uint32_t*)0x20000f98 = 8; *(uint32_t*)0x20000f9c = 0; *(uint32_t*)0x20000fa0 = 0x5c42; *(uint32_t*)0x20000fa4 = 0xa86c; *(uint32_t*)0x20000fa8 = 9; *(uint32_t*)0x20000fac = 2; *(uint32_t*)0x20000fb0 = 0; *(uint32_t*)0x20000fb4 = 2; *(uint32_t*)0x20000fb8 = 4; *(uint32_t*)0x20000fbc = 2; *(uint32_t*)0x20000fc0 = 6; *(uint32_t*)0x20000fc4 = 0xbb; *(uint32_t*)0x20000fc8 = 7; *(uint32_t*)0x20000fcc = 2; *(uint32_t*)0x20000fd0 = 4; *(uint32_t*)0x20000fd4 = 0xfffffffe; *(uint32_t*)0x20000fd8 = 0x84e; *(uint32_t*)0x20000fdc = 5; *(uint32_t*)0x20000fe0 = 0; *(uint32_t*)0x20000fe4 = 8; *(uint32_t*)0x20000fe8 = 0x40; *(uint32_t*)0x20000fec = 3; *(uint32_t*)0x20000ff0 = 0xee; *(uint32_t*)0x20000ff4 = 3; *(uint32_t*)0x20000ff8 = 0x200; *(uint32_t*)0x20000ffc = 0x80000000; *(uint32_t*)0x20001000 = 3; *(uint32_t*)0x20001004 = 0x8000; *(uint32_t*)0x20001008 = 0x947; *(uint32_t*)0x2000100c = 0xb; *(uint32_t*)0x20001010 = 0x3ff; *(uint32_t*)0x20001014 = 2; *(uint32_t*)0x20001018 = -1; *(uint32_t*)0x2000101c = 7; *(uint32_t*)0x20001020 = 0xffff; *(uint32_t*)0x20001024 = 1; *(uint32_t*)0x20001028 = 0x10; *(uint32_t*)0x2000102c = 1; *(uint32_t*)0x20001030 = 0x80; *(uint32_t*)0x20001034 = 0; *(uint32_t*)0x20001038 = 7; *(uint32_t*)0x2000103c = 0xbb34; *(uint32_t*)0x20001040 = -1; *(uint32_t*)0x20001044 = 2; *(uint32_t*)0x20001048 = 0xffff; *(uint32_t*)0x2000104c = 0xb; *(uint32_t*)0x20001050 = 0x10001; *(uint32_t*)0x20001054 = 8; *(uint32_t*)0x20001058 = 5; *(uint32_t*)0x2000105c = 0x19f; *(uint32_t*)0x20001060 = 8; *(uint32_t*)0x20001064 = 7; *(uint32_t*)0x20001068 = 2; *(uint32_t*)0x2000106c = 0x61; *(uint32_t*)0x20001070 = 2; *(uint32_t*)0x20001074 = 0x1000; *(uint32_t*)0x20001078 = 5; *(uint32_t*)0x2000107c = 0; *(uint32_t*)0x20001080 = 0x39; *(uint32_t*)0x20001084 = 0x4f8435bc; *(uint32_t*)0x20001088 = 0x40; *(uint32_t*)0x2000108c = 1; *(uint32_t*)0x20001090 = 0x8000; *(uint32_t*)0x20001094 = 0xff; *(uint32_t*)0x20001098 = 6; *(uint32_t*)0x2000109c = 0x81; *(uint32_t*)0x200010a0 = 3; *(uint32_t*)0x200010a4 = 0x8000; *(uint32_t*)0x200010a8 = 6; *(uint32_t*)0x200010ac = 3; *(uint32_t*)0x200010b0 = 6; *(uint32_t*)0x200010b4 = 0x10000; *(uint32_t*)0x200010b8 = 3; *(uint32_t*)0x200010bc = 0x80000001; *(uint32_t*)0x200010c0 = 5; *(uint32_t*)0x200010c4 = 6; *(uint32_t*)0x200010c8 = 0x6755; *(uint32_t*)0x200010cc = 0xffff; *(uint32_t*)0x200010d0 = 1; *(uint32_t*)0x200010d4 = 0x80000001; *(uint32_t*)0x200010d8 = 0x40; *(uint32_t*)0x200010dc = 0xc; *(uint32_t*)0x200010e0 = 0; *(uint32_t*)0x200010e4 = 0; *(uint32_t*)0x200010e8 = 0xb0; *(uint32_t*)0x200010ec = 7; *(uint32_t*)0x200010f0 = 5; *(uint32_t*)0x200010f4 = 8; *(uint32_t*)0x200010f8 = 2; *(uint32_t*)0x200010fc = 4; *(uint32_t*)0x20001100 = 2; *(uint32_t*)0x20001104 = 7; *(uint32_t*)0x20001108 = 0xfffffffd; *(uint32_t*)0x2000110c = 0; *(uint32_t*)0x20001110 = 0x5783d24c; *(uint32_t*)0x20001114 = 0x1000; *(uint32_t*)0x20001118 = 0xb; *(uint32_t*)0x2000111c = 0xe92f; *(uint32_t*)0x20001120 = 0x10; *(uint32_t*)0x20001124 = 0xc0000000; *(uint32_t*)0x20001128 = 0x80000001; *(uint32_t*)0x2000112c = 0x81; *(uint32_t*)0x20001130 = 0xf; *(uint32_t*)0x20001134 = 0x3f; *(uint32_t*)0x20001138 = 3; *(uint32_t*)0x2000113c = 0xd02; *(uint32_t*)0x20001140 = 3; *(uint32_t*)0x20001144 = 3; *(uint32_t*)0x20001148 = 2; *(uint32_t*)0x2000114c = 8; *(uint32_t*)0x20001150 = 5; *(uint32_t*)0x20001154 = 7; *(uint32_t*)0x20001158 = 4; *(uint32_t*)0x2000115c = 8; *(uint32_t*)0x20001160 = 0x16b1; *(uint32_t*)0x20001164 = 1; *(uint32_t*)0x20001168 = 9; *(uint32_t*)0x2000116c = 2; *(uint32_t*)0x20001170 = 0xa17; *(uint32_t*)0x20001174 = 1; *(uint32_t*)0x20001178 = 0xd; *(uint32_t*)0x2000117c = 0x1ff; *(uint32_t*)0x20001180 = 9; *(uint32_t*)0x20001184 = 0x10; *(uint32_t*)0x20001188 = 0x1000; *(uint32_t*)0x2000118c = 8; *(uint32_t*)0x20001190 = 0x10001; *(uint32_t*)0x20001194 = 2; *(uint32_t*)0x20001198 = 9; *(uint32_t*)0x2000119c = 0xd12d; *(uint32_t*)0x200011a0 = 0xb; *(uint32_t*)0x200011a4 = 0x80000000; *(uint32_t*)0x200011a8 = 0x10; *(uint32_t*)0x200011ac = 7; *(uint32_t*)0x200011b0 = 7; *(uint32_t*)0x200011b4 = 5; *(uint32_t*)0x200011b8 = 0; *(uint32_t*)0x200011bc = 4; *(uint32_t*)0x200011c0 = 0x10000; *(uint32_t*)0x200011c4 = 2; *(uint32_t*)0x200011c8 = 6; *(uint32_t*)0x200011cc = 2; *(uint32_t*)0x200011d0 = 1; *(uint32_t*)0x200011d4 = 5; *(uint32_t*)0x200011d8 = 2; *(uint32_t*)0x200011dc = 0xfffffffd; *(uint32_t*)0x200011e0 = 0x800; *(uint32_t*)0x200011e4 = 0xc30; *(uint32_t*)0x200011e8 = 6; *(uint32_t*)0x200011ec = 1; *(uint32_t*)0x200011f0 = 0x401; *(uint32_t*)0x200011f4 = 7; *(uint32_t*)0x200011f8 = 4; *(uint32_t*)0x200011fc = 2; *(uint32_t*)0x20001200 = 1; *(uint32_t*)0x20001204 = 0x14bb21e8; *(uint32_t*)0x20001208 = 6; *(uint32_t*)0x2000120c = 7; *(uint32_t*)0x20001210 = 9; *(uint32_t*)0x20001214 = 2; *(uint32_t*)0x20001218 = 6; *(uint32_t*)0x2000121c = 0; *(uint32_t*)0x20001220 = 7; *(uint32_t*)0x20001224 = 9; *(uint32_t*)0x20001228 = 0x10000; *(uint32_t*)0x2000122c = 7; *(uint32_t*)0x20001230 = 9; *(uint32_t*)0x20001234 = 0xc3; *(uint32_t*)0x20001238 = 9; *(uint32_t*)0x2000123c = 0x33; *(uint32_t*)0x20001240 = 7; *(uint32_t*)0x20001244 = 2; *(uint32_t*)0x20001248 = 8; *(uint32_t*)0x2000124c = 0xfffffdc7; *(uint32_t*)0x20001250 = 0x10001; *(uint32_t*)0x20001254 = 0x1000; *(uint32_t*)0x20001258 = 1; *(uint32_t*)0x2000125c = 8; *(uint32_t*)0x20001260 = 3; *(uint32_t*)0x20001264 = 0; *(uint32_t*)0x20001268 = 0; *(uint32_t*)0x2000126c = 0x200; *(uint32_t*)0x20001270 = 0x80000000; *(uint32_t*)0x20001274 = 8; *(uint32_t*)0x20001278 = 0x80000001; *(uint32_t*)0x2000127c = 6; *(uint32_t*)0x20001280 = 0; *(uint32_t*)0x20001284 = 0x10000; *(uint32_t*)0x20001288 = 4; *(uint32_t*)0x2000128c = 0xd2ae; *(uint32_t*)0x20001290 = 0x8001; *(uint32_t*)0x20001294 = 0x7f; *(uint32_t*)0x20001298 = 3; *(uint32_t*)0x2000129c = 9; *(uint32_t*)0x200012a0 = 0xfffffff8; *(uint32_t*)0x200012a4 = 0xecc; *(uint32_t*)0x200012a8 = 0xf7b7; *(uint32_t*)0x200012ac = 0; *(uint32_t*)0x200012b0 = 2; *(uint32_t*)0x200012b4 = 8; *(uint32_t*)0x200012b8 = 8; *(uint32_t*)0x200012bc = 0x39; *(uint32_t*)0x200012c0 = 0x4745b028; *(uint32_t*)0x200012c4 = 0xb1; *(uint32_t*)0x200012c8 = 0xffc; *(uint32_t*)0x200012cc = 6; *(uint32_t*)0x200012d0 = 0x7ff; *(uint32_t*)0x200012d4 = 0x7088; *(uint32_t*)0x200012d8 = 5; *(uint32_t*)0x200012dc = 5; *(uint32_t*)0x200012e0 = 9; *(uint32_t*)0x200012e4 = 0x9dd; *(uint32_t*)0x200012e8 = 8; *(uint32_t*)0x200012ec = 0xffff6c24; *(uint32_t*)0x200012f0 = 6; *(uint32_t*)0x200012f4 = 3; *(uint32_t*)0x200012f8 = 0x40; *(uint32_t*)0x200012fc = 1; *(uint32_t*)0x20001300 = 2; *(uint32_t*)0x20001304 = 2; *(uint32_t*)0x20001308 = 0x80000001; *(uint32_t*)0x2000130c = 4; *(uint32_t*)0x20001310 = 0x3ff00000; *(uint32_t*)0x20001314 = 5; *(uint32_t*)0x20001318 = 0xb; *(uint32_t*)0x2000131c = 0x1ff; *(uint32_t*)0x20001320 = 0x34; *(uint32_t*)0x20001324 = 6; *(uint32_t*)0x20001328 = 0x8710; *(uint32_t*)0x2000132c = 0x10001; *(uint32_t*)0x20001330 = 8; *(uint32_t*)0x20001334 = 9; *(uint32_t*)0x20001338 = 8; *(uint32_t*)0x2000133c = 0xb; *(uint32_t*)0x20001340 = 9; *(uint32_t*)0x20001344 = 5; *(uint32_t*)0x20001348 = 0x7ff; *(uint32_t*)0x2000134c = 0x1000; *(uint32_t*)0x20001350 = 0xb; *(uint32_t*)0x20001354 = 7; *(uint32_t*)0x20001358 = 9; *(uint32_t*)0x2000135c = 0; *(uint32_t*)0x20001360 = 7; *(uint32_t*)0x20001364 = 9; *(uint32_t*)0x20001368 = 5; *(uint32_t*)0x2000136c = 5; *(uint32_t*)0x20001370 = 0; *(uint32_t*)0x20001374 = 0; *(uint32_t*)0x20001378 = 7; *(uint32_t*)0x2000137c = 6; *(uint32_t*)0x20001380 = 4; *(uint32_t*)0x20001384 = 8; *(uint32_t*)0x20001388 = 0x89df; *(uint32_t*)0x2000138c = 6; *(uint32_t*)0x20001390 = 8; *(uint32_t*)0x20001394 = 0x32; *(uint32_t*)0x20001398 = 8; *(uint32_t*)0x2000139c = 5; *(uint32_t*)0x200013a0 = 8; *(uint32_t*)0x200013a4 = 4; *(uint32_t*)0x200013a8 = 0x40; *(uint32_t*)0x200013ac = 4; *(uint32_t*)0x200013b0 = 0x80; *(uint32_t*)0x200013b4 = 8; *(uint32_t*)0x200013b8 = 0; *(uint32_t*)0x200013bc = 6; *(uint32_t*)0x200013c0 = 0; *(uint32_t*)0x200013c4 = 0xdef; *(uint32_t*)0x200013c8 = 5; *(uint32_t*)0x200013cc = 0x312; *(uint32_t*)0x200013d0 = 3; *(uint32_t*)0x200013d4 = 2; *(uint32_t*)0x200013d8 = 0x200000; *(uint32_t*)0x200013dc = 8; *(uint32_t*)0x200013e0 = 7; *(uint32_t*)0x200013e4 = 0x7f; *(uint32_t*)0x200013e8 = 0xb4; *(uint32_t*)0x200013ec = 0; *(uint32_t*)0x200013f0 = 0x219; *(uint32_t*)0x200013f4 = 4; *(uint32_t*)0x200013f8 = 5; *(uint32_t*)0x200013fc = 5; *(uint32_t*)0x20001400 = 0x10000; *(uint32_t*)0x20001404 = 0x3152aec6; *(uint32_t*)0x20001408 = 3; *(uint32_t*)0x2000140c = 1; *(uint32_t*)0x20001410 = 0x1ff; *(uint32_t*)0x20001414 = 0xfffffff8; *(uint32_t*)0x20001418 = 0x5a; *(uint32_t*)0x2000141c = 0x401; *(uint32_t*)0x20001420 = 0x101; *(uint32_t*)0x20001424 = 0x72; *(uint32_t*)0x20001428 = 5; *(uint32_t*)0x2000142c = 7; *(uint32_t*)0x20001430 = 9; *(uint32_t*)0x20001434 = 0x8000; *(uint32_t*)0x20001438 = 0xc; *(uint32_t*)0x2000143c = 1; *(uint32_t*)0x20001440 = 7; *(uint32_t*)0x20001444 = 5; *(uint32_t*)0x20001448 = 5; *(uint32_t*)0x2000144c = 0x1ff; *(uint32_t*)0x20001450 = 0; *(uint32_t*)0x20001454 = 0x46e1e3bd; *(uint32_t*)0x20001458 = 0; *(uint32_t*)0x2000145c = 0xfff; *(uint32_t*)0x20001460 = 0xfffffffb; *(uint32_t*)0x20001464 = 8; *(uint32_t*)0x20001468 = 8; *(uint32_t*)0x2000146c = 2; *(uint32_t*)0x20001470 = 4; *(uint32_t*)0x20001474 = 1; *(uint32_t*)0x20001478 = 0xfffffffb; *(uint32_t*)0x2000147c = 0x448bf557; *(uint32_t*)0x20001480 = 6; *(uint32_t*)0x20001484 = 7; *(uint32_t*)0x20001488 = 0x98f1; *(uint32_t*)0x2000148c = 8; *(uint32_t*)0x20001490 = 0x361; *(uint32_t*)0x20001494 = 7; *(uint32_t*)0x20001498 = 0x12; *(uint32_t*)0x2000149c = 0x8001; *(uint32_t*)0x200014a0 = 0xf2; *(uint32_t*)0x200014a4 = 2; *(uint32_t*)0x200014a8 = 6; *(uint32_t*)0x200014ac = 7; *(uint32_t*)0x200014b0 = 3; *(uint32_t*)0x200014b4 = 0x6c4; *(uint32_t*)0x200014b8 = 0xe181; *(uint32_t*)0x200014bc = 1; *(uint32_t*)0x200014c0 = 1; *(uint32_t*)0x200014c4 = 4; *(uint32_t*)0x200014c8 = 0x10001; *(uint32_t*)0x200014cc = 0x400; *(uint32_t*)0x200014d0 = 0xff; *(uint32_t*)0x200014d4 = 0xae90; *(uint32_t*)0x200014d8 = 8; *(uint32_t*)0x200014dc = 0x10000; *(uint32_t*)0x200014e0 = 1; *(uint32_t*)0x200014e4 = 0x40; *(uint32_t*)0x200014e8 = 9; *(uint32_t*)0x200014ec = 8; *(uint32_t*)0x200014f0 = 0x1000; *(uint32_t*)0x200014f4 = 0x40; *(uint32_t*)0x200014f8 = 0xd; *(uint32_t*)0x200014fc = 0xcf3; *(uint32_t*)0x20001500 = 2; *(uint32_t*)0x20001504 = 0xbf8; *(uint32_t*)0x20001508 = 0; *(uint32_t*)0x2000150c = 8; *(uint32_t*)0x20001510 = 9; *(uint32_t*)0x20001514 = 0x800; *(uint32_t*)0x20001518 = 9; *(uint32_t*)0x2000151c = 0x54; *(uint32_t*)0x20001520 = 0xb; *(uint32_t*)0x20001524 = 0xa49; *(uint32_t*)0x20001528 = 0x3f; *(uint32_t*)0x2000152c = 0xfffffff7; *(uint32_t*)0x20001530 = 4; *(uint32_t*)0x20001534 = 0x12c70; *(uint32_t*)0x20001538 = 0xcb4; *(uint32_t*)0x2000153c = 4; *(uint32_t*)0x20001540 = 4; *(uint32_t*)0x20001544 = 5; *(uint32_t*)0x20001548 = 0; *(uint32_t*)0x2000154c = 0xffff; *(uint32_t*)0x20001550 = 0x601; *(uint32_t*)0x20001554 = 7; *(uint32_t*)0x20001558 = 7; *(uint32_t*)0x2000155c = 4; *(uint32_t*)0x20001560 = 0xfffffffa; *(uint32_t*)0x20001564 = 0; *(uint32_t*)0x20001568 = 7; *(uint32_t*)0x2000156c = 0; *(uint32_t*)0x20001570 = 0xff00; *(uint32_t*)0x20001574 = 7; *(uint32_t*)0x20001578 = 0xffffff80; *(uint32_t*)0x2000157c = 6; *(uint32_t*)0x20001580 = 0x1ff; *(uint32_t*)0x20001584 = 0x10; *(uint32_t*)0x20001588 = 0xe; *(uint32_t*)0x2000158c = 0x7fffffff; *(uint32_t*)0x20001590 = 0x8a; *(uint32_t*)0x20001594 = 0xf; *(uint32_t*)0x20001598 = 9; *(uint32_t*)0x2000159c = 5; *(uint32_t*)0x200015a0 = 2; *(uint32_t*)0x200015a4 = 0x401; *(uint32_t*)0x200015a8 = 4; *(uint32_t*)0x200015ac = 2; *(uint32_t*)0x200015b0 = 0xc3; *(uint32_t*)0x200015b4 = 0; *(uint32_t*)0x200015b8 = 6; *(uint32_t*)0x200015bc = 4; *(uint32_t*)0x200015c0 = 1; *(uint32_t*)0x200015c4 = 0xe62; *(uint32_t*)0x200015c8 = 1; *(uint32_t*)0x200015cc = 6; *(uint32_t*)0x200015d0 = 0xfffffffb; *(uint32_t*)0x200015d4 = 0xb; *(uint32_t*)0x200015d8 = 6; *(uint32_t*)0x200015dc = 1; *(uint32_t*)0x200015e0 = 0xc; *(uint32_t*)0x200015e4 = 0x8000; *(uint32_t*)0x200015e8 = 0xfc; *(uint32_t*)0x200015ec = 8; *(uint32_t*)0x200015f0 = 0; *(uint32_t*)0x200015f4 = 0; *(uint32_t*)0x200015f8 = 5; *(uint32_t*)0x200015fc = 5; *(uint32_t*)0x20001600 = 0x400; *(uint32_t*)0x20001604 = 0xa; *(uint32_t*)0x20001608 = 6; *(uint32_t*)0x2000160c = 6; *(uint32_t*)0x20001610 = 0x80000001; *(uint32_t*)0x20001614 = 0x10; *(uint32_t*)0x20001618 = 0x18000; *(uint32_t*)0x2000161c = 0x400; *(uint32_t*)0x20001620 = 0x80000000; *(uint32_t*)0x20001624 = 0xb51; *(uint32_t*)0x20001628 = 3; *(uint32_t*)0x2000162c = 3; *(uint32_t*)0x20001630 = 8; *(uint32_t*)0x20001634 = 3; *(uint32_t*)0x20001638 = 0xfffffff7; *(uint32_t*)0x2000163c = 0x40; *(uint32_t*)0x20001640 = 0x9b59; *(uint32_t*)0x20001644 = 4; *(uint32_t*)0x20001648 = -1; *(uint32_t*)0x2000164c = 0x8000; *(uint32_t*)0x20001650 = 3; *(uint32_t*)0x20001654 = 8; *(uint32_t*)0x20001658 = 3; *(uint32_t*)0x2000165c = 7; *(uint32_t*)0x20001660 = 1; *(uint32_t*)0x20001664 = 6; *(uint32_t*)0x20001668 = 8; *(uint32_t*)0x2000166c = 0x14e6; *(uint32_t*)0x20001670 = 7; *(uint32_t*)0x20001674 = 0x80; *(uint32_t*)0x20001678 = 9; *(uint32_t*)0x2000167c = 3; *(uint32_t*)0x20001680 = 0xfffffffd; *(uint32_t*)0x20001684 = 0xe; *(uint32_t*)0x20001688 = 4; *(uint32_t*)0x2000168c = 9; *(uint32_t*)0x20001690 = 3; *(uint32_t*)0x20001694 = 5; *(uint32_t*)0x20001698 = 0x9937; *(uint32_t*)0x2000169c = 0x1000; *(uint32_t*)0x200016a0 = 7; *(uint32_t*)0x200016a4 = 0; *(uint32_t*)0x200016a8 = 0xfffffffc; *(uint32_t*)0x200016ac = 3; *(uint32_t*)0x200016b0 = 1; *(uint32_t*)0x200016b4 = 0x81; *(uint32_t*)0x200016b8 = 0x79e74c8e; *(uint32_t*)0x200016bc = 8; *(uint32_t*)0x200016c0 = 0xb; *(uint32_t*)0x200016c4 = 0x53e; *(uint32_t*)0x200016c8 = 5; *(uint32_t*)0x200016cc = 0x80000001; *(uint32_t*)0x200016d0 = 5; *(uint32_t*)0x200016d4 = 0; *(uint32_t*)0x200016d8 = 9; syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0xd01c4813, /*arg=*/0x200006c0ul); memcpy((void*)0x200010c0, "\x12\x01\x00\x00\xea\xfa\x72\x40\x93\x69\x01\xb0\x29\x3d\xf4\x00\x10" "\x01\x09\x02\x1b\x00\x01\x24\xa8\x00\x80\x09\x04\x00\x00\x01\x03\x00" "\x00\x00\x09\x05", 38); *(uint16_t*)0x200010e6 = -1; syz_usb_connect(/*speed=USB_SPEED_FULL*/ 2, /*dev_len=*/0x2d, /*dev=*/0x200010c0, /*conn_descs=*/0); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { loop(); } } sleep(1000000); return 0; }