diff options
| author | Weihong Guan <weihong.guan@gmail.com> | 2026-11-12 03:34:28 +0000 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-11-12 14:28:26 -0500 |
| commit | f3183d7ad10120437bcc3f4a751cd256ba69793f (patch) | |
| tree | fe2e90b4dd7522c27376ef4f7aa7b8cd2930fb91 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 1752a2c40059f845123946e01646b8a1798eeea4 (diff) | |
Bluetooth: hci_sync: Drop the command's sk reference
hci_cmd_sync_alloc() takes a reference on the sk a command is sent for
(sock_hold()), and hci_cmd_sync_complete() means to drop it, but looks
for the sk in the response skb, which never carries one. The reference
is never dropped: every command sent with an sk leaks it, and with it
the sk and a reference on the bluetooth module.
The commands sent with an sk are LE Remove Advertising Set and LE
Clear Advertising Sets, for MGMT's Remove Advertising and the instance
removals, and Read Local OOB (Extended) Data. After each, the module's
refcnt stays one higher with no socket left open, and the module can't
be unloaded until a reboot.
Drop the reference from the request command, hdev->req_skb, before
freeing it.
Fixes: cba6b758711c ("Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 2")
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Weihong Guan <weihong.guan@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
