From: Hitalo Souza <enghitalo@gmail.com>
To: luiz.dentz@gmail.com
Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] Bluetooth: Don't leave abandoned SCO links up in the controller
Date: Thu, 8 Oct 2026 11:28:26 -0400 [thread overview]
Message-ID: <20261008152826.2162209-1-enghitalo@gmail.com> (raw)
In-Reply-To: <CABBYNZKoSV1_cVJRrdonHT=gKtS6pgoWDM3R5nj5aR0D17SqRg@mail.gmail.com>
Hi Luiz,
On Wed, Oct 7, 2026 at 2:15 PM Luiz Augusto von Dentz <luiz.dentz@gmail.com> wrote:
> Sashiko flagged quite a few problems:
>
> https://sashiko.dev/#/patchset/20261007154353.148223-1-enghitalo%40gmail.com
>
> We need to check if the logic of hci_sco_disconnect_orphan couldn't be
> made more generically, so in case the connection was aborted but we
> received the connection complete that shall always result in
> HCI_OP_DISCONNECT so the handle don't stay active in the controller.
Thanks, agreed. v2 does that in two patches:
- when hci_conn_set_handle() refuses the handle because the connection
is being aborted, the Connection Complete, Synchronous Connection
Complete and LE Connection Complete handlers now disconnect the link,
with the abort reason;
- an ACL link that completes after its connection was already aborted
and deleted (an incoming connection, where Create Connection Cancel
fails at once) is disconnected too, as SCO links already are.
Both reproduce in an emulator (ACL outgoing and incoming, and LE):
without them the link stays up. The SCO patch now uses the same helper.
The other two Sashiko findings are addressed as well: the legacy
Connection Complete path in the SCO patch, and the air mode
notification of a SCO link that failed in a separate patch, as it
predates this series (1f8330ea1692).
v2 is here:
https://lore.kernel.org/linux-bluetooth/20261008151238.2138665-1-enghitalo@gmail.com/
Hitalo
next prev parent reply other threads:[~2026-10-08 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 15:43 [PATCH 0/3] Bluetooth: Fix SCO setup failures after an abandoned setup Hitalo Souza
2026-10-07 15:43 ` [PATCH 1/3] Bluetooth: hci_event: Don't fail a connected SCO link on setup errors Hitalo Souza
2026-10-07 15:43 ` [PATCH 2/3] Bluetooth: hci_conn: Don't set up a SCO link that is already up Hitalo Souza
2026-10-07 15:43 ` [PATCH 3/3] Bluetooth: Don't leave abandoned SCO links up in the controller Hitalo Souza
2026-10-07 18:15 ` Luiz Augusto von Dentz
2026-10-08 15:28 ` Hitalo Souza [this message]
2026-10-08 16:17 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261008152826.2162209-1-enghitalo@gmail.com \
--to=enghitalo@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®