Skip to content

Bluetooth: SMP LTK fixes

[email protected] linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Bluetooth: Fix long_term_keys debugfs outputnet/bluetooth/hci_core.c+2 -20 replies
2/4Bluetooth: Make LTK key type check more readablenet/bluetooth/hci_core.c+1 -10 replies
3/4Bluetooth: Remove unnecessary LTK type check from hci_add_ltknet/bluetooth/hci_core.c+0 -30 replies
4/4Bluetooth: Fix differentiating stored master vs slave LTK typesinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c net/bluetooth/hci_event.c +1 more+24 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Bluetooth: SMP LTK fixes

Hi,

Now that my LTK key distribution patch is already applied I unfortunately uncovered several bugs due to it. The main issue is that the kernel code was not accounting for the possibility of there being two LTKs for the same remote device in the hdev->long_term_keys list.

There are still fixes needed on the user space side which I haven't completely sorted out yet (to pushable form - it's more or less working already through). Right now the storage format doesn't allow storing two LTKs for the same device.

----------------------------------------------------------------
Johan Hedberg (4):
Bluetooth: Fix long_term_keys debugfs output
Bluetooth: Make LTK key type check more readable
Bluetooth: Remove unnecessary LTK type check from hci_add_ltk
Bluetooth: Fix differentiating stored master vs slave LTK types

 include/net/bluetooth/hci_core.h |  5 +++--
 net/bluetooth/hci_core.c         | 31 +++++++++++++++++++++----------
 net/bluetooth/hci_event.c        |  2 +-
 net/bluetooth/smp.c              |  3 ++-
 4 files changed, 27 insertions(+), 14 deletions(-)