kernel_optimize_test/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
Makefile
mtu3_core.c usb: mtu3: clear dual mode of u3port when disable device 2020-07-29 16:53:58 +02:00
mtu3_debug.h
mtu3_debugfs.c usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-26 16:02:38 +01:00
mtu3_dr.c
mtu3_dr.h
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
mtu3_hw_regs.h usb: mtu3: fix macro for maximum number of packets 2020-07-29 16:53:57 +02:00
mtu3_plat.c
mtu3_qmu.c
mtu3_qmu.h
mtu3_trace.c
mtu3_trace.h
mtu3.h usb: mtu3: Remove unsused inline function is_first_entry 2020-08-18 12:11:55 +02:00