From: bugzilla-daemon@kernel.org
To: linux-bluetooth@vger.kernel.org
Subject: [Bug 218914] New: Missing HCI event REMOTE_NAME Causing Subsequent Bluetooth Connection Failures
Date: Thu, 30 May 2024 02:01:54 +0000 [thread overview]
Message-ID: <bug-218914-62941@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=218914
Bug ID: 218914
Summary: Missing HCI event REMOTE_NAME Causing Subsequent
Bluetooth Connection Failures
Product: Drivers
Version: 2.5
Kernel Version: 6.7.9
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Bluetooth
Assignee: linux-bluetooth@vger.kernel.org
Reporter: yuxuanhu@buaa.edu.cn
CC: baijiaju1990@gmail.com, johan.hedberg@gmail.com,
linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com,
marcel@holtmann.org
Regression: No
Hi All,
We round a possible bug during 2 consecutive rounds of RFCOMM connections in
kernel 6.7.9:
(1) During the connection process, the host sends a HCI command REMOTE_NAME_REQ
to request the name of the remote device. Normally, the controller responds to
it with a HCI event COMMAND_STATUS(REMOTE_NAME_REQ) and then sends a HCI event
REMOTE_NAME containing the remote device's name.
(2) Upon receiving COMMAND_STATUS(REMOTE_NAME_REQ), function
hci_cmd_status_evt(net/bluetooth/hci_event.c:4356) is called, which in turn
invokes function handle_cmd_cnt_and_timer to clear the timer.
(3) Since the timer has been clear, the host indefinitely waits for the HCI
event REMOTE_NAME. If the controller fails to send this packet, the only
recourse is for the user to manually terminate the connection process.
(4.1) Because the connection state is only set to CONNECTED upon receiving the
HCI event REMOTE_NAME (hci_remote_name_evt
->hci_check_pending_name->mgmt_device_connected), the remote device remains
unconnected in (3).
(4.2) We tried to reconnect for multiple times, but host is unable to send the
HCI command CREATE_CONNECTION, resulting in subsequent failures to establish a
connection with the device.
We believe it might be necessary to set a timeout while waiting for the HCI
event REMOTE_NAME.
Thank you for reading this. Appreciating for any possible reply.
Attachment 1: Log file containing HCI packet contents.
Attachment 2: ftrace records of bluetooth and rfcomm modules.
Best Wishes,
Yuxuan Hu
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
next reply other threads:[~2024-05-30 2:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 2:01 bugzilla-daemon [this message]
2024-05-30 2:02 ` [Bug 218914] Missing HCI event REMOTE_NAME Causing Subsequent Bluetooth Connection Failures bugzilla-daemon
2024-05-30 2:02 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-218914-62941@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox