android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anssi Hannula d8f98a23b4 xhci: fix uninitialized string returned by xhci_decode_ctrl_ctx()
commit 05519b8589a679edb8fa781259893d20bece04ad upstream.

xhci_decode_ctrl_ctx() returns the untouched buffer as-is if both "drop"
and "add" parameters are zero.

Fix the function to return an empty string in that case.

It was not immediately clear from the possible call chains whether this
issue is currently actually triggerable or not.

Note that before commit 4843b4b5ec64 ("xhci: fix even more unsafe memory
usage in xhci tracing") the result effect in the failure case was different
as a static buffer was used here, but the code still worked incorrectly.

Fixes: 90d6d5731d ("xhci: Add tracing for input control context")
Cc: stable@vger.kernel.org
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
commit 4843b4b5ec64 ("xhci: fix even more unsafe memory usage in xhci tracing")
Link: https://lore.kernel.org/r/20220303110903.1662404-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-15 14:17:57 +02:00
..
atm
c67x00
cdns3
chipidea
class usb: usbtmc: Fix bug in pipe direction for control transfers 2022-03-23 09:12:07 +01:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:52:52 +01:00
core
dwc2
dwc3 usb: dwc3: gadget: Let the interrupt handler disable bottom halves. 2022-03-02 11:41:15 +01:00
early
gadget usb: gadget: Fix use-after-free bug by not setting udc->dev.driver 2022-03-23 09:12:07 +01:00
host xhci: fix uninitialized string returned by xhci_decode_ctrl_ctx() 2022-04-15 14:17:57 +02:00
image
isp1760
misc
mon
mtu3
musb
phy
renesas_usbhs
roles
serial USB: serial: simple: add Nokia phone driver 2022-04-15 14:17:55 +02:00
storage USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c 2022-04-15 14:17:57 +02:00
typec
usbip
Kconfig
Makefile
usb-skeleton.c