// https://syzkaller.appspot.com/bug?id=355281313f1f280dff17f96850c682dc0a4182b2 // 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) { memcpy( (void*)0x20000000, "\x12\x01\x00\x00\x92\x75\x65\x08\x01\x20\x00\x4a\x72\xec\x00\x00\x00\x01" "\x09\x02\x76\x07\x02\x00\x00\x00\x00\x09\x04\x7d\x06\x0e\x6c\x8c\x3d\x05" "\x09\x05\x09\x01\x10\x00\x06\xff\x01\x07\x25\x01\x00\xb3\x03\x00\x8d\x0e" "\x64\xfe\x06\x42\xfe\x3d\x2f\xe9\xe4\xc9\xf1\xe2\xde\xfe\x59\x49\x39\xfe" "\xa8\x86\xc5\x62\xfa\xab\x36\x4e\x1e\x75\x8c\x12\x5a\x9f\xa3\x57\x14\xb1" "\x8a\xf0\xd6\xeb\xa2\x6a\xc7\x4b\xec\xe0\x3d\x2d\x67\x2d\x29\x8e\x4b\xde" "\x1f\x39\x13\x8f\x38\x58\xdd\x88\xa3\xaa\x0d\x18\xee\xe9\x3e\x12\xc2\xf6" "\x06\x60\x03\xce\xfb\xd5\x15\xdd\x9d\xa3\x3b\x08\x2a\x52\x38\xad\xb2\xf7" "\x3e\xde\xa1\x7d\x6e\x51\x1f\x24\xa5\x79\xbe\xc6\xf6\x9b\xaa\xec\xa6\x67" "\x7f\x4e\xe2\xf6\x81\xdd\x02\xf6\x65\x3a\x5d\xa6\x87\x18\x48\x27\x75\xd3" "\x22\xf2\xe8\x5b\x37\x45\x16\x73\x9e\x42\xc2\x0e\x17\x09\x05\x00\x00\x40" "\x00\x3f\x1f\x07\x31\x05\x41\xd0\xb8\x9b\x86\xf4\xa1\x0f\x54\x83\x3a\xfc" "\x47\x01\x3f\x47\x3a\x8f\x28\x42\x1b\x64\x6c\xaf\x81\x55\x0c\x0d\x2f\xd2" "\xcf\x06\xbe\x8b\x6c\xe7\x8d\xbb\x66\x64\xbd\x5a\x38\x34\x1b\x5e\x4d\x07" "\x25\x01\x02\x1f\x03\x00\x09\x05\x80\x00\xff\x03\x08\x06\x00\x09\x05\x02" "\x10\x00\x04\x00\x40\x00\x09\x05\x0f\x03\x40\x00\x03\x06\xf8\x07\x25\x01" "\x82\xc2\x9a\x00\x1d\x10\x1c\x78\x95\xc7\xcd\x42\x07\xee\xda\xe3\x24\x7b" "\xee\xbc\xb0\x56\x33\x45\x69\xd3\xf8\x50\x23\xe6\xbb\x71\xc9\x09\x05\x06" "\x03\x20\x00\xe4\x04\x02\x09\x05\x03\x02\x08\x00\x01\x2a\xd3\x09\x05\x0e" "\x10\x40\x00\x40\x98\x04\x09\x05\x07\x02\x00\x04\x05\x01\x12\x09\x05\x0f" "\x00\x00\x04\xbe\x04\x1e\x07\x25\x01\x02\x03\xff\x03\x06\x23\x74\x5f\x76" "\x1b\x09\x05\x0f\x00\xfd\x29\x09\xc4\x00\x11\x07\xf0\x76\xec\xe6\x3a\x61" "\xf8\x7d\x68\xd0\xf7\xfb\x9b\x2a\x2a\xf5\x04\x26\x2d\x9d\x09\x5d\x4a\xfa" "\xea\x3b\x7f\x95\x23\x8c\x44\x91\x00\x73\x06\x3e\x89\xb5\x8c\x22\x4b\x8f" "\x78\xf8\xd3\x9d\x23\x80\x6b\x26\xad\x59\x0e\x80\xa1\x04\x83\xa7\x91\x3b" "\xef\xa3\xf4\xa1\x9d\xc5\x5d\x8f\x9b\x96\x6e\x3d\x92\xde\x1e\x78\xb3\x89" "\x83\x0b\x22\xe2\x9d\xf6\x47\xe7\x00\x47\x04\x8d\xf0\x0c\x92\x90\x2b\x69" "\x1a\x9a\xcf\x6d\xdb\xef\x4c\xc4\xad\x16\xb0\xfc\xda\x7c\xe4\xcb\x33\x9c" "\xb3\xcf\x38\xe7\xba\xf4\xce\x4d\xe9\x37\xf5\x9f\x39\x24\x53\xed\x28\x9f" "\x29\x42\xb4\xbc\xfa\x2f\xff\x15\x4b\xcb\x02\x12\xb5\x31\xbb\xc3\x80\xf8" "\x2e\x05\xbd\x5f\x3a\xa3\xd6\x05\x73\x30\x9d\x6f\x42\x19\xa6\xea\x41\x1a" "\xa9\x41\x79\x88\x84\x25\xa2\x8d\x90\x84\x15\x8b\xb7\xea\x7c\x7f\x73\x1f" "\xce\x1a\xec\x31\x22\xae\x7b\x4c\x8c\x2d\x10\xf4\x0c\x2d\x0e\xf8\x7a\x34" "\x0b\x30\x4f\xb8\x0f\xb9\x71\x77\x6c\x52\x9a\x2d\x68\xb8\x4a\x2b\x62\xb6" "\xff\x21\x3c\xa6\xbd\xf7\xda\xd7\x8e\x77\x2d\xe9\xb5\x77\xa2\x9c\x57\x9e" "\x9f\xbf\xf0\xdc\x78\xf0\xed\x37\xc9\x71\xbc\x0f\xb9\x34\xe8\xa4\x29\xf4" "\x1a\x33\x09\x05\x0f\x00\x10\x00\x06\x3e\x05\xeb\x10\x1f\x6c\xe5\xe6\xed" "\xa9\x9b\xe0\x57\x45\x3b\xdb\x8c\xfe\x63\x90\xa1\x9b\x16\xbe\xd6\xd5\x4a" "\xec\x7a\x8a\x8c\x13\x8a\xaf\x12\x67\x5c\x56\x5c\xca\xec\x19\x1a\x4b\xd5" "\x9b\x26\x91\x88\x71\x8b\x0e\xf4\xbc\x62\xa1\x54\xcd\x74\x7a\x8b\xdc\xd7" "\x65\xc9\xa7\xd4\xaf\x37\xdd\x92\x7f\xec\xf9\x46\x24\x0c\x4b\x28\xf6\xad" "\xad\xd2\x05\x92\xec\x4a\xc7\x97\x3e\x94\x20\xe1\x55\xe6\x80\xc9\x60\x3e" "\x21\x7a\xa7\x27\xb1\xa6\xb2\x66\x12\xf2\x9d\xfe\x11\xb7\x45\xae\xe9\x0c" "\xbe\xae\xe9\x49\x27\x04\x58\x2d\x2a\x36\xec\xbb\x3e\xa5\x2c\x86\x50\x30" "\xca\xd9\x1b\x13\x63\x4a\x3c\xd1\xc9\x64\x9c\x32\x0b\x39\xc2\x49\x64\xb7" "\x89\x21\x70\x86\x45\x11\xf5\x20\xa4\x27\x99\x20\xc2\xd4\x9d\x1b\x6c\x26" "\x66\xb9\xd8\x50\x90\x2a\x19\x0f\x15\xde\x31\x71\x56\xb1\xac\x6e\x19\x76" "\x58\x8b\xcb\x65\x02\x2b\x91\x84\x13\x72\xdc\x45\xf7\xb9\x1b\xf6\x91\xf6" "\xb4\xad\x4c\xc0\x0d\x4c\x39\xd2\xd0\x9b\xf7\x1e\xab\x4c\xd3\x1c\xc0\x30" "\x38\xcf\x83\x62\xb2\xb7\xa8\xbd\x48\x03\x05\xd7\x09\x05\x09\x10\x00\x04" "\x06\x05\x06\x07\x25\x01\x00\x81\x03\x00\x07\x25\x01\x80\x7f\x04\x00\x09" "\x05\x05\x03\x00\x04\x04\x2e\x07\xb1\x09\xdb\xed\xc0\x92\x1f\xa2\x37\x89" "\xbe\x1c\xe0\xe9\x4b\x76\x19\xd3\x80\x5f\xa0\x6c\xeb\xcc\x1b\xe6\x25\x5c" "\xd0\xf9\xdb\x21\x67\x26\x9c\xb1\x15\x3e\x95\xee\x39\x91\x85\x8a\xa5\x26" "\x81\x1d\xd9\x28\x4b\xe0\x53\xa6\xaf\x30\x4e\xb4\xf4\x65\xc0\xba\x62\x55" "\xd6\xd8\x74\x99\x62\x40\x7d\x8e\x86\x31\xc4\x5f\x25\xb8\xb6\x95\x97\x39" "\xe6\xdb\x72\xaa\x03\x58\x85\xd7\x0a\xa7\x7c\xe5\x4a\x19\x74\x91\x50\x39" "\x4a\x05\x89\x5a\x15\x9c\x25\x7c\x04\xa3\x53\xa3\xe0\x4a\xcb\xd9\x5f\x2a" "\xa0\x5c\x6e\x0b\xa9\xbd\x4d\x5e\xfe\xfb\x02\x71\x6e\xab\x2a\xfd\xb4\xf6" "\xef\x38\x32\xa4\x7a\xb6\x98\x42\x3e\xd1\xd6\x98\x04\x24\x4e\x50\x0e\x17" "\xec\xc5\x39\x04\x3f\x6e\xac\x84\x5b\xb1\x72\xa6\xc4\xd5\xcc\x40\x7d\x3a" "\xe3\x6b\x82\x9c\x4a\x09\x04\xf6\xb0\x0e\xf5\x38\x09\x02\x05\x24\x06\x00" "\x01\x05\x24\x00\x07\x00\x0d\x24\x0f\x01\xe0\x00\x00\x00\x05\x00\x05\x00" "\x05\x06\x24\x1a\x02\x00\x20\x59\x24\x13\x01\x28\xb2\xe1\x1e\xac\xcd\xaf" "\x0b\xdf\xa1\x09\x1d\x6e\x21\xd7\xd9\xa3\x0f\x56\x6d\x8d\xe4\x17\xaf\x5d" "\xf4\x17\x3a\xfe\x2b\xa4\x9c\x86\xeb\xe7\x20\x39\x48\xd2\xa7\x7f\xc8\x3d" "\x18\xe0\x04\x58\xbb\x75\x49\xda\xaa\x75\x1b\x76\x5f\x42\xc1\x16\x07\x60" "\xb0\xe8\xe3\x83\x8b\x34\xcf\x82\xf2\x0d\xe0\x2b\xaf\x09\x85\x67\x20\xb1" "\x37\xae\xf3\xa8\xe7\x1c\x05\x24\x01\x02\x01\x9a\x24\x13\x03\x2c\x77\xd4" "\xaa\x3e\x10\x88\x1b\x66\x63\x68\x9d\xcb\xd2\x25\x3a\x42\x42\xed\xa6\xb8" "\x60\x8e\xfd\xaf\xaa\x58\x95\x0c\xf8\x60\xfb\xab\x3b\xc1\x28\x8e\xc2\x7a" "\x16\x5a\x99\x51\xc9\x56\x89\x88\x48\x73\xc7\x60\xc7\x38\xd3\xf4\x39\x1a" "\x3c\xa1\x2e\xf8\xbe\xdc\xf5\xd6\xcf\x0a\x52\x83\x6f\x76\x44\x1a\x35\x74" "\x4a\x0b\x98\xe2\x68\xdb\xd8\x71\x7e\x9d\x32\xd6\x2f\x24\xe3\x96\x45\xa5" "\x1e\x85\x10\xc2\x31\xfb\x33\xfa\x55\x8b\x74\x95\x9b\xab\x60\x5c\x70\x4a" "\xe5\x4e\x76\x9c\xd8\x4c\xb2\xfe\x49\x81\x88\xe6\xca\x75\x75\x84\xc0\x2d" "\xcd\xde\x31\x1a\xe4\x08\x05\x52\xa7\xa4\xed\xb4\x59\xec\x99\xc1\x7e\x2d" "\xa6\xc4\x92\x28\x24\x13\x03\x6b\xba\xb9\x6c\x06\xf3\x35\x71\x7d\x52\xb6" "\xec\x7f\x42\x3f\xf8\xfd\xaf\x62\xfc\xb0\x51\x38\xd4\xa8\x71\xd5\xee\xb4" "\x70\x77\x9c\x2c\xc4\x97\x97\x05\x24\x15\x00\x02\x07\x24\x14\xff\x07\x01" "\x04\x09\x05\x80\x08\x00\x02\x01\x9e\x00\x09\x05\x80\x02\x10\x00\x40\x40" "\x07\x09\x05\x80\x02\x20\x00\x06\x01\x20\x07\x25\x01\x01\x07\xff\x01\x07" "\x25\x01\x82\x3f\x00\x01\x09\x05\x03\x10\x20\x00\x02\x01\xad\x09\x05\x06" "\x08\xaf\x07\x00\x3f\x04\x31\x02\x01\x6b\xbe\x1a\xce\x95\xc7\xdc\x21\xd1" "\x09\xc4\xb6\xf0\x2e\x2c\x0e\xdf\x16\x82\x5c\x84\x03\xe9\xad\xbb\xe4\xc4" "\x3b\xac\x8a\xcc\xbf\x96\x3a\x3f\x39\x95\x68\xb9\xd3\xfe\x8c\xcd\x8a\xae" "\x66\x09\x05\x08\x00\x10\x00\x80\x07\xaa\x07\x25\x01\x00\x08\x03\x00\x79" "\x0a\x03\x6f\x5e\x4d\x46\x77\x64\x14\xc1\x7c\xe1\x97\x20\xd9\x6e\x1e\x6d" "\x29\xac\x04\x73\xcb\x81\xd3\x1c\x64\x89\xc2\xeb\x6d\xdc\xf4\x53\xe6\x53" "\xe7\x54\x01\x62\xa5\xf3\x6a\x34\x67\x64\x6b\x97\xef\xdb\x1c\xdd\xa6\xed" "\x9f\x2b\xb5\x1d\x8a\xbc\x22\x68\x1e\x13\x60\xb9\x76\x25\x68\xf3\x3d\x2b" "\xd1\x58\x07\x3f\xe0\x3a\xc3\x8e\x90\x42\x4f\x3a\x2c\x4b\xb8\x85\x28\xae" "\x06\x68\xdc\xb4\x16\xc7\xcc\xa1\x2e\x81\xdf\xdf\xec\xce\x4a\x2c\x01\x5c" "\xe3\x2a\x14\x54\x77\x68\x3f\x3c\x00\xc1\x04\x0e\x09\x05\x05\x02\x00\x04" "\x1f\xc9\x06\x09\x05\x0d\x03\x00\x02\x08\x12\x05\x07\x25\x01\x83\x09\x09" "\x00\x5e\x22\x19\x63\x97\xaa\x23\xe9\x6c\x0c\xfc\xbd\x3e\x9d\x05\x5a\xb6" "\xd7\x22\xeb\xe4\xbb\x0f\xce\xe5\x08\xa8\x93\x2e\xfc\x00\x09\x11\x7e\xa5" "\x0d\x4f\x01\xb6\x05\x26\xd1\x91\xbe\xf1\x92\x63\x17\x94\x85\x5b\xc0\x4a" "\xc3\xd9\xdc\xc0\x7b\xe0\x39\x0c\x06\x3e\xd0\xe4\x0c\x30\x6d\xb0\x53\x82" "\x0b\xb2\x82\xef\x38\x48\x2d\xc3\x38\x73\x2f\xc0\x71\xec\x30\xdb\x47\xda" "\x84\xf5\x5e\x12\x12\x09\x05\x01\x10\x40\x00\xce\x03\x00\x09\x05\x0c\x01" "\xff\x03\x64\xcf\xe0\x07\x25\x01\x02\x09\x2f\x00\x29\x0e\x0c\xda\xf4\x3c" "\x20\x7b\x3e\xb0\xf7\xc9\xde\x30\x66\x3b\xb6\x63\xac\x53\xc1\x3a\x61\x85" "\xbe\xea\xf5\x4c\x3e\xc1\x8f\xd1\xeb\xcf\x5e\xd9\x0e\x56\x0e\xc7\x2a\x09" "\x05\x05\x10\x40\x00\x05\x03\x07\x07\x25\x01\x03\x05\x04\x00\x09\x05\x04" "\x04\x40\x00\xc4\x04\x80\x07\x25\x01\x02\x29\x00\x00\x09\x05\x02\x03\x10" "\x00\x29\x04\x05\x09\x05\x05\x00\x10\x00\x01\x74\x04\x07\x25\x01\x01\x08" "\x00\x80\x29\x63\x2c\x2f\x17\x82\x87\x22\x01\x64", 1938); syz_usb_connect(0, 0x414, 0x20000000, 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; }