* [PATCH] Bluetooth: hci_event: Terminate PA sync transferred while not pending
@ 2026-11-22 20:13 Simon Mikuda
2026-11-22 22:54 ` bluez.test.bot
2026-11-23 19:10 ` [PATCH] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ 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
hci_le_past_params_sync() sets the PAST parameters of the ACL connection
so the controller synchronizes to the PA train transferred by the peer,
but nothing resets them once the PA sync has completed, so a later
transfer from the same peer is synchronized to as well.
HCI_LE_Periodic_Advertising_Sync_Transfer_Received is then received
with no connection having HCI_CONN_CREATE_PA_SYNC set and is only
logged, leaving the sync established in the controller, using its
resources, without the host knowing about it. Terminate it instead.
Fixes: 33b2835f0b7e ("Bluetooth: HCI: Add initial support for PAST")
Signed-off-by: Simon Mikuda <simon.mikuda@streamunlimited.com>
---
net/bluetooth/hci_event.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 039bcea98a5a..4b8fd3bfeba4 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -6279,6 +6279,12 @@ static void hci_le_past_received_evt(struct hci_dev *hdev, void *data,
bt_dev_err(hdev,
"Unable to find connection for dst %pMR sid 0x%2.2x",
&ev->bdaddr, ev->sid);
+ /* No PA sync is pending, the PAST parameters are just left
+ * set from a previous one, so terminate the sync instead of
+ * leaving it behind in the controller.
+ */
+ if (!ev->status)
+ hci_le_pa_term_sync(hdev, ev->sync_handle);
goto unlock;
}
base-commit: 4fe38719e6738feaa90486e36b0790dd5d960a96
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: Bluetooth: hci_event: Terminate PA sync transferred while not pending
2026-11-22 20:13 [PATCH] Bluetooth: hci_event: Terminate PA sync transferred while not pending Simon Mikuda
@ 2026-11-22 22:54 ` bluez.test.bot
2026-11-23 19:10 ` [PATCH] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-11-22 22:54 UTC (permalink / raw)
To: linux-bluetooth, simon.mikuda
[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1218947/
---Test result---
Test Summary:
CheckPatch PASS 0.79 seconds
VerifyFixes PASS 0.13 seconds
VerifySignedoff PASS 0.14 seconds
GitLint PASS 0.35 seconds
SubjectPrefix PASS 0.13 seconds
BuildKernel PASS 31.26 seconds
CheckAllWarning PASS 35.47 seconds
CheckSparse WARNING 37.63 seconds
BuildKernel32 PASS 30.73 seconds
CheckKernelLLVM PASS 32.77 seconds
TestRunnerSetup PASS 744.29 seconds
TestRunner_l2cap-tester PASS 15.09 seconds
TestRunner_iso-tester PASS 13.13 seconds
TestRunner_bnep-tester PASS 3.20 seconds
TestRunner_mgmt-tester PASS 89.08 seconds
TestRunner_rfcomm-tester PASS 4.51 seconds
TestRunner_sco-tester PASS 5.66 seconds
TestRunner_ioctl-tester PASS 4.69 seconds
TestRunner_mesh-tester PASS 4.52 seconds
TestRunner_smp-tester PASS 4.41 seconds
TestRunner_userchan-tester PASS 3.25 seconds
TestRunner_6lowpan-tester PASS 4.47 seconds
IncrementalBuild PASS 29.02 seconds
Details
##############################
Test: CheckSparse - WARNING
Desc: Run sparse tool with linux kernel
Output:
net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):
https://github.com/bluez/bluetooth-next/pull/1192
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: hci_event: Terminate PA sync transferred while not pending
2026-11-22 20:13 [PATCH] Bluetooth: hci_event: Terminate PA sync transferred while not pending Simon Mikuda
2026-11-22 22:54 ` bluez.test.bot
@ 2026-11-23 19:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-11-23 19:10 UTC (permalink / raw)
To: Simon Mikuda; +Cc: linux-bluetooth, marcel, luiz.dentz
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Sun, 22 Nov 2026 21:13:19 +0100 you wrote:
> hci_le_past_params_sync() sets the PAST parameters of the ACL connection
> so the controller synchronizes to the PA train transferred by the peer,
> but nothing resets them once the PA sync has completed, so a later
> transfer from the same peer is synchronized to as well.
>
> HCI_LE_Periodic_Advertising_Sync_Transfer_Received is then received
> with no connection having HCI_CONN_CREATE_PA_SYNC set and is only
> logged, leaving the sync established in the controller, using its
> resources, without the host knowing about it. Terminate it instead.
>
> [...]
Here is the summary with links:
- Bluetooth: hci_event: Terminate PA sync transferred while not pending
https://git.kernel.org/bluetooth/bluetooth-next/c/5e831a19ea74
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-23 19:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 20:13 [PATCH] Bluetooth: hci_event: Terminate PA sync transferred while not pending Simon Mikuda
2026-11-22 22:54 ` bluez.test.bot
2026-11-23 19:10 ` [PATCH] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox