]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: L2CAP: Fix not tracking outstanding TX ident
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 21 Jan 2026 21:39:44 +0000 (16:39 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 29 Jan 2026 18:36:35 +0000 (13:36 -0500)
commit6c3ea155e5ee3e56606233acde8309afda66d483
treee0a6b1dc34d9b4ef2b281123e6d56c7707d74d50
parent4db19bfd320f2124c820d3456aeae3953095ea8e
Bluetooth: L2CAP: Fix not tracking outstanding TX ident

This attempts to proper track outstanding request by using struct ida
and allocating from it in l2cap_get_ident using ida_alloc_range which
would reuse ids as they are free, then upon completion release
the id using ida_free.

This fixes the qualification test case L2CAP/COS/CED/BI-29-C which
attempts to check if the host stack is able to work after 256 attempts
to connect which requires Ident field to use the full range of possible
values in order to pass the test.

Link: https://github.com/bluez/bluez/issues/1829
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c