linux/drivers/usb/usbip
Michael Grzeschik b3b51417d0 usb: usbip: set buffer pointers to NULL after free
The usbip stack dynamically allocates the transfer_buffer and
setup_packet of each urb that got generated by the tcp to usb stub code.
As these pointers are always used only once we will set them to NULL
after use. This is done likewise to the free_urb code in vudc_dev.c.
This patch fixes double kfree situations where the usbip remote side
added the URB_FREE_BUFFER.

Cc: stable@vger.kernel.org
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-13 10:48:24 +02:00
..
Kconfig usb: Kconfig: using select for USB_COMMON dependency 2016-09-27 12:20:17 +02:00
Makefile usbip: vudc: Add vudc to Kconfig 2016-04-26 15:19:50 -07:00
README
stub_dev.c usbip: fix NULL pointer dereference on errors 2016-04-28 12:28:08 -07:00
stub_main.c usb: usbip: set buffer pointers to NULL after free 2017-06-13 10:48:24 +02:00
stub_rx.c usb: usbip: stub_rx: don't print error when allocating urb fails 2016-08-15 15:54:27 +02:00
stub_tx.c usb: usbip: set buffer pointers to NULL after free 2017-06-13 10:48:24 +02:00
stub.h usbip: fix NULL pointer dereference on errors 2016-04-28 12:28:08 -07:00
usbip_common.c Merge branch 'work.sendmsg' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-03-02 15:16:38 -08:00
usbip_common.h sched/headers: Prepare to move the get_task_struct()/put_task_struct() and related APIs from <linux/sched.h> to <linux/sched/task.h> 2017-03-02 08:42:40 +01:00
usbip_event.c usbip: event handler as one thread 2016-04-19 04:33:15 +09:00
vhci_hcd.c USB: usbip: fix nonconforming hub descriptor 2017-05-17 11:53:02 +02:00
vhci_rx.c usbip: vhci extension: modifications to vhci driver 2016-08-09 16:21:05 +02:00
vhci_sysfs.c usbip: fix warning in vhci_hcd_probe/lockdep_init_map 2016-12-06 08:37:41 +01:00
vhci_tx.c usb: usbip: Fix possible deadlocks reported by lockdep 2016-02-03 13:52:10 -08:00
vhci.h usbip: vhci extension: modifications to vhci driver 2016-08-09 16:21:05 +02:00
vudc_dev.c usbip: vudc: Refactor init_vudc_hw() to be more obvious 2016-12-05 15:08:45 +01:00
vudc_main.c usbip: vudc: Add VUDC main file 2016-04-26 15:19:50 -07:00
vudc_rx.c usb: usbip: vudc: fix left shift overflow 2016-08-30 22:28:52 +02:00
vudc_sysfs.c usb: usbip: remove null check 2016-06-07 22:18:39 -07:00
vudc_transfer.c usbip: vudc: fix: Clear already_seen flag also for ep0 2016-12-05 15:08:45 +01:00
vudc_tx.c usbip: vudc: Add vudc_tx 2016-04-26 15:19:50 -07:00
vudc.h usb: usbip: vudc: Rename find_endpoint() to vudc_find_endpoint() 2016-04-28 12:28:08 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>