Re: [PATCH] xhci: Do not create endpoint debugfs while holding the bandwidth mutex

From: Greg Kroah-Hartman
Date: Wed May 31 2023 - 09:10:21 EST


On Wed, May 31, 2023 at 02:40:02PM +0200, Ricardo Ribalda Delgado wrote:
> xhci_debugfs_create_endpoint needs to take the mm->mmap_sem, which is
> not serialized with the hcd->bandwidth_mutex across the codebase.
>
> Without this patch a deadlock has been observed with the uvc driver at
> the functions v4l2_mmap() and usb_set_interface().
>
> Cc: Stephen Boyd <swboyd@xxxxxxxxxxxx

Missing ">" :(