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
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
mtu3_gadget.c
mtu3_host.c
mtu3_hw_regs.h
mtu3_plat.c
mtu3_qmu.c
mtu3_qmu.h
mtu3_trace.c
mtu3_trace.h
mtu3.h