All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Bluetooth: hci_conn: Fix BIG cleanup while BISes are still bound
@ 2026-11-22 20:13 Simon Mikuda
  2026-11-22 20:13 ` [PATCH 2/3] Bluetooth: hci_conn: Terminate a BIG before its periodic advertising Simon Mikuda
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Mikuda @ 2026-11-22 20:13 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Simon Mikuda, Marcel Holtmann, Luiz Augusto von Dentz

If a BIS bound to a BIG closes before LE BIG Complete, bis_cleanup() sees
no other BIS in use and terminates the BIG. That removes the advertising
set the BIG is being created on, and a Broadcom/Infineon controller
crashes: it sends vendor events with a memory dump and answers no further
command.

    < LE Create Broadcast Isochronous Group
    > LE Broadcast Isochronous Group Complete  Status: Success
    < LE Set Periodic Advertising Enable  Disabled
    < LE Setup Isochronous Data Path
    < LE Set Extended Advertising Enable  Disabled
    < LE Remove Advertising Set
    < LE Terminate Broadcast Isochronous Group

hci_le_create_big_complete_evt() connects every BIS in BT_BOUND, so count
them as users of the BIG too. They were counted until the lookup of any
BIS of the BIG was replaced with lookups by state.

Fixes: d36349ea73d8 ("Bluetooth: hci_conn: Fix running bis_cleanup for hci_conn->type PA_LINK")
Signed-off-by: Simon Mikuda <simon.mikuda@streamunlimited.com>
---
 net/bluetooth/hci_conn.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 7f0250653189..8024fc4223e9 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -927,6 +927,13 @@ static void bis_cleanup(struct hci_conn *conn)
 		if (bis)
 			return;
 
+		bis = hci_conn_hash_lookup_big_state(hdev,
+						     conn->iso_qos.bcast.big,
+						     BT_BOUND,
+						     HCI_ROLE_MASTER);
+		if (bis)
+			return;
+
 		hci_le_terminate_big(hdev, conn);
 	} else {
 		hci_le_big_terminate(hdev, conn);

base-commit: cf357cfc025e7f72851479ed3fb60d5f16413c1b
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-22 22:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 20:13 [PATCH 1/3] Bluetooth: hci_conn: Fix BIG cleanup while BISes are still bound Simon Mikuda
2026-11-22 20:13 ` [PATCH 2/3] Bluetooth: hci_conn: Terminate a BIG before its periodic advertising Simon Mikuda
2026-11-22 20:13 ` [PATCH 3/3] Bluetooth: hci_sync: Fix closing all BISes while their BIG is created Simon Mikuda
2026-11-22 22:55 ` [1/3] Bluetooth: hci_conn: Fix BIG cleanup while BISes are still bound bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.