Skip to content

services/bluetooth: Defer bonding callbacks to KernelMain to avoid deadlock [FIRM-723]#409

Merged
jplexer merged 1 commit into
coredevices:mainfrom
jplexer:pair_crash
Nov 3, 2025
Merged

services/bluetooth: Defer bonding callbacks to KernelMain to avoid deadlock [FIRM-723]#409
jplexer merged 1 commit into
coredevices:mainfrom
jplexer:pair_crash

Conversation

@jplexer
Copy link
Copy Markdown
Member

@jplexer jplexer commented Oct 31, 2025

  • schedule BLE bonding change notifications on the launcher task when invoked from NimBLE
  • queue bonding creation finalization to KernelMain so bt_lock is taken outside the host stack

Comment thread src/fw/services/normal/bluetooth/bluetooth_persistent_storage.c Outdated
Comment thread src/fw/services/normal/bluetooth/bluetooth_persistent_storage.c Outdated
Comment thread src/fw/services/common/bluetooth/bonding.c Outdated
- schedule BLE bonding change notifications on the launcher task when
invoked from NimBLE - queue bonding creation finalization to KernelMain
so bt_lock is taken outside the host stack

Signed-off-by: Joshua Jun <joshuajun@proton.me>
@jplexer jplexer merged commit 3c931ec into coredevices:main Nov 3, 2025
21 checks passed
@jplexer jplexer deleted the pair_crash branch November 3, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants