[Xen-devel] [PATCH 05/32] usb-linux.c: fix buffer overflow

2015-04-22 Thread Andrew Cooper
From: Jim Paris In usb-linux.c:usb_host_handle_control, we pass a 1024-byte buffer and length to the kernel. However, the length was provided by the caller of dev->handle_packet, and is not checked, so the kernel might provide too much data and overflow our buffer. For example, hw/usb-uhci.c co

[Xen-devel] [PATCH 05/32] usb-linux.c: fix buffer overflow

2015-04-22 Thread Andrew Cooper
From: Jim Paris In usb-linux.c:usb_host_handle_control, we pass a 1024-byte buffer and length to the kernel. However, the length was provided by the caller of dev->handle_packet, and is not checked, so the kernel might provide too much data and overflow our buffer. For example, hw/usb-uhci.c co