Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH v17 0/2] Bluetooth: L2CAP: Fix LE credits resuming channels pending security
@ 2026-12-03 18:13 Luiz Augusto von Dentz
  2026-12-03 18:14 ` [PATCH v17 1/2] Bluetooth: L2CAP: Restrict LE credits to connected CoCs Luiz Augusto von Dentz
  2026-12-03 18:14 ` [PATCH v17 2/2] Bluetooth: L2CAP: Keep credits from completing security upgrades Luiz Augusto von Dentz
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-12-03 18:13 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

An LE Flow Control Credit packet resumes the channel, which on a CoC
waiting for a security upgrade requested with BT_SECURITY drains queued
data and clears the socket suspension before the upgrade completes.

This version is a simplified rework of v16: rather than tracking the
upgrade with a separate work, an established CoC is now moved to
BT_CONFIG with FLAG_PENDING_SECURITY set, like ATT, while the upgrade is
pending, so credits are only accounted, not acted upon, and the existing
l2cap_security_cfm() path resumes or closes the channel once the upgrade
completes.

This set has a companion userspace set for BlueZ adding l2cap-tester
cases covering it:

  [PATCH BlueZ v1 0/2] l2cap-tester: Add tests for changing LE security
  with SMP pending

Changes in v17:
- Drop the security work, SMP hooks and the ECRED/BT_RCVMTU changes.
- Move established CoCs to BT_CONFIG while a BT_SECURITY upgrade is
  pending and accept credits and data in that state.

v16: https://lore.kernel.org/linux-bluetooth/20261201022855.1483888-1-cochcoder@proton.me/

Kyle Pepper (2):
  Bluetooth: L2CAP: Restrict LE credits to connected CoCs
  Bluetooth: L2CAP: Keep credits from completing security upgrades

 net/bluetooth/l2cap_core.c | 38 +++++++++++++++++++++++++++++++++++++-
 net/bluetooth/l2cap_sock.c | 19 +++++++++++++++++--
 2 files changed, 54 insertions(+), 3 deletions(-)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 18:13 [PATCH v17 0/2] Bluetooth: L2CAP: Fix LE credits resuming channels pending security Luiz Augusto von Dentz
2026-12-03 18:14 ` [PATCH v17 1/2] Bluetooth: L2CAP: Restrict LE credits to connected CoCs Luiz Augusto von Dentz
2026-12-03 18:14 ` [PATCH v17 2/2] Bluetooth: L2CAP: Keep credits from completing security upgrades Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox