linux_dsm_epyc7002/drivers/usb/gadget
Greg Kroah-Hartman 0994b0a257 usb: gadgetfs: restrict upper bound on device configuration size
Andrey Konovalov reported that we were not properly checking the upper
limit before of a device configuration size before calling
memdup_user(), which could cause some problems.

So set the upper limit to PAGE_SIZE * 4, which should be good enough for
all devices.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-01-02 10:55:28 +02:00
..
function usb: gadget: f_fs: Fix ExtCompat descriptor validation 2017-01-02 10:55:28 +02:00
legacy usb: gadgetfs: restrict upper bound on device configuration size 2017-01-02 10:55:28 +02:00
udc USB: dummy-hcd: fix bug in stop_activity (handle ep0) 2017-01-02 10:55:28 +02:00
composite.c usb: gadget: composite: Test get_alt() presence instead of set_alt() 2017-01-02 10:55:28 +02:00
config.c usb: Use (foo *) instead of (foo*). 2016-06-21 11:16:15 +03:00
configfs.c fs: configfs: don't return anything from drop_link 2016-12-01 10:50:49 +01:00
configfs.h
epautoconf.c usb: gadget: epautoconf: add usb_ep_autoconfig_release() function 2015-09-27 10:54:31 -05:00
functions.c
Kconfig usb: gadget: uvc: add V4L2 dependency 2016-09-13 09:29:08 +03:00
Makefile
u_f.c usb: gadget: remove useless parameter in alloc_ep_req() 2016-08-25 12:13:19 +03:00
u_f.h usb: gadget: remove useless parameter in alloc_ep_req() 2016-08-25 12:13:19 +03:00
u_os_desc.h
usbstring.c