You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/02/25 07:03:17 UTC

[GitHub] simonratner opened a new issue #347: SM: When SM is disabled, `ble_sm_tx` is called without a host lock

simonratner opened a new issue #347: SM: When SM is disabled, `ble_sm_tx` is called without a host lock
URL: https://github.com/apache/mynewt-nimble/issues/347
 
 
   Configuration:
   ```
   BLE_SM_LEGACY: 0
   BLE_SM_SC: 0
   ```
   When pairing is attempted with a device with SM disabled, it leads to a this code path being executed, which calls `ble_sm_tx` without holding the host lock:
   https://github.com/apache/mynewt-nimble/blob/master/nimble/host/src/ble_sm.c#L2743
   
   The debug check inside `ble_sm_tx` asserts because the host lock is not held:
   https://github.com/apache/mynewt-nimble/blob/master/nimble/host/src/ble_sm_cmd.c#L56

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services