mbox series

[5.10/5.15,0/1] Bluetooth: Fix deadlock in vhci_send_frame

Message ID 20240221145744.27895-1-d.dulov@aladdin.ru
Headers show
Series Bluetooth: Fix deadlock in vhci_send_frame | expand

Message

Daniil Dulov Feb. 21, 2024, 2:57 p.m. UTC
Syzkaller reports a potential circular dependency leading to deadlock
in 5.10 and 5.15 stable releases since the commit
92d4abd66f70 ("Bluetooth: vhci: Fix race when opening vhci device")
that caused this crash was backported to these branches.
The problem has been fixed by the following upstream patch that was
adapted to 5.10 and 5.15. All of the changes made to the patch
in order to adapt it are described at the end of commit message.

This patch has already been backported to the following stable branches:
v6.6 - https://lore.kernel.org/stable/20231230115814.038261305@linuxfoundation.org/
v6.1 - https://lore.kernel.org/stable/20231230115807.749489379@linuxfoundation.org/

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.