]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: vhci-hcd: Do not drop references before new references are gained
authorOliver Neukum <oneukum@suse.com>
Tue, 9 Jul 2024 11:38:41 +0000 (13:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Aug 2024 03:45:43 +0000 (05:45 +0200)
commite8c1e606dab8c56cf074b43b98d0805de7322ba2
tree48a6e7d02ef9ba7d1efc3489d22c933d94c760cc
parenta2400556fb4353a38c1ee401f76bdb635c1dcc78
usb: vhci-hcd: Do not drop references before new references are gained

commit afdcfd3d6fcdeca2735ca8d994c5f2d24a368f0a upstream.

At a few places the driver carries stale pointers
to references that can still be used. Make sure that does not happen.
This strictly speaking closes ZDI-CAN-22273, though there may be
similar races in the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240709113851.14691-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c