linux_dsm_epyc7002/drivers/usb/mtu3
Dan Carpenter 4cfc27cb56 usb: mtu3: fix memory corruption in mtu3_debugfs_regset()
commit 3f6f6343a29d9ea7429306b83b18e66dc1331d5c upstream.

This code is using the wrong sizeof() so it does not allocate enough
memory.  It allocates 32 bytes but 72 are required.  That will lead to
memory corruption.

Fixes: ae07809255 ("usb: mtu3: add debugfs interface files")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X8ikqc4Mo2/0G72j@mwanda
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-26 16:02:38 +01:00
..
Kconfig usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
Makefile usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_core.c usb: mtu3: clear dual mode of u3port when disable device 2020-07-29 16:53:58 +02:00
mtu3_debug.h usb: mtu3: mtu3_debug: Add forward declaration of 'struct ssusb_mtk' 2020-07-09 16:46:57 +02:00
mtu3_debugfs.c usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-26 16:02:38 +01:00
mtu3_dr.c usb: roles: Provide the switch drivers handle to the switch in the API 2020-03-04 11:12:50 +01:00
mtu3_dr.h USB: mtu3: Use the correct style for SPDX License Identifier 2020-04-16 14:32:48 +02:00
mtu3_gadget_ep0.c usb: mtu3: use MTU3_EP_WEDGE flag 2020-07-29 16:53:58 +02:00
mtu3_gadget.c usb: mtu3: fix panic in mtu3_gadget_stop() 2020-11-06 12:06:57 +01:00
mtu3_host.c usb: mtu3: fix semicolon.cocci warnings 2018-01-16 10:01:01 +01:00
mtu3_hw_regs.h usb: mtu3: fix macro for maximum number of packets 2020-07-29 16:53:57 +02:00
mtu3_plat.c usb: mtu3: convert to devm_platform_ioremap_resource_byname 2020-07-29 16:49:37 +02:00
mtu3_qmu.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_qmu.h USB: mtu3: Use the correct style for SPDX License Identifier 2020-04-16 14:32:48 +02:00
mtu3_trace.c usb: mtu3: mtu3_trace: Supply missing mtu3_debug.h include file 2020-07-15 17:25:57 +02:00
mtu3_trace.h USB: mtu3: Use the correct style for SPDX License Identifier 2020-04-16 14:32:48 +02:00
mtu3.h usb: mtu3: Remove unsused inline function is_first_entry 2020-08-18 12:11:55 +02:00