From: patchwork-bot+bluetooth@kernel.org
To: Qican Ma <goonsomeway@gmail.com>
Cc: marcel@holtmann.org, luiz.dentz@gmail.com,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2] Bluetooth: RFCOMM: serialize RFCOMM_CONNINFO dlc->session dereference
Date: Tue, 24 Nov 2026 17:20:07 +0000 [thread overview]
Message-ID: <179554080777.3669449.2938682800558673060.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <179550683515.38654.13328780695859519079@gmail.com>
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 24 Nov 2026 15:53:55 +0800 you wrote:
> rfcomm_sock_getsockopt_old() checks rfcomm_pi(sk)->dlc->session and then
> dereferences dlc->session->sock->sk while holding only lock_sock(sk).
> rfcomm_dlc_unlink() clears d->session and rfcomm_session_del() frees the
> session under rfcomm_mutex without taking the socket lock, leaving a
> check-then-dereference race against concurrent session teardown.
>
> Commit 46f8ffd0a1f1 ("Bluetooth: RFCOMM: fix NULL dereference of
> dlc->session in RFCOMM_CONNINFO") added the NULL check for the
> post-disconnect case on deferred-setup sockets, but did not serialize
> the dereference against concurrent unlink and kfree().
>
> [...]
Here is the summary with links:
- [v2] Bluetooth: RFCOMM: serialize RFCOMM_CONNINFO dlc->session dereference
https://git.kernel.org/bluetooth/bluetooth-next/c/77bc0f253ff9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-11-24 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 7:53 [PATCH v2] Bluetooth: RFCOMM: serialize RFCOMM_CONNINFO dlc->session dereference Qican Ma
2026-11-24 17:20 ` patchwork-bot+bluetooth [this message]
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=179554080777.3669449.2938682800558673060.git-patchwork-notify@kernel.org \
--to=patchwork-bot+bluetooth@kernel.org \
--cc=goonsomeway@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.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