Linux bluetooth development
 help / color / mirror / Atom feed
From: Yu Junzhe <junzheyu1@gmail.com>
To: stable@vger.kernel.org
Cc: Yu Junzhe <junzheyu1@gmail.com>,
	Marcel Holtmann <marcel@holtmann.org>,
	Johan Hedberg <johan.hedberg@gmail.com>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	linux-bluetooth@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>
Subject: [PATCH 0/3] Bluetooth: hci_core: lookup hci_conn on the RX path
Date: Thu, 26 Nov 2026 07:55:51 +0000	[thread overview]
Message-ID: <20261126075554.106-1-junzheyu1@gmail.com> (raw)
In-Reply-To: <2026-11-19-1-daily-reply-0012@kernel.org>

Sasha, this replaces the 6.6-only v2.

79a2d4678ba9 ("Bluetooth: hci_core: lookup hci_conn on RX path on
protocol side") is in v6.18 and is already in bluetooth.git. These
diffs are for the stable trees that still lack it. They do not apply
to bluetooth.git HEAD, so the BlueZ CI apply check will fail. Please
review them for the stable branches.

6.12.y already has l2cap_conn_hold_unless_zero() and
iso_conn_hold_unless_zero(). 6.6.y and 6.1.y have the L2CAP helper
only. sco_conn has no kref on any of the three, so SCO is unchanged.
hci_conn_get() does not pin sco_conn.

Booted KASAN guests, same racer (patch-test/repro.c):

- 6.12.119 unpatched printed slab-use-after-free in l2cap_recv_acldata.
  6.12.119 with patch 1/3 finished 371 connect/auth/disconnect rounds
  and printed no KASAN report. The racer exercises ACL, not ISO.
- 6.6.162 with patch 2/3 finished 123 rounds and printed no KASAN
  report. That image is a build of this diff. The earlier #1 image
  still contained the v1 SCO and ISO edits.
- 6.1.193 with patch 3/3 booted and completed one connection with no
  KASAN report. The racer then lost sync with the virtual controller
  (unexpected command-complete length), so it did not repeat the
  6.12 and 6.6 stress.

Yu Junzhe (3):
  Bluetooth: hci_core: lookup hci_conn on the ACL and ISO RX paths
  Bluetooth: hci_core: lookup hci_conn on the ACL RX path
  Bluetooth: hci_core: lookup hci_conn on the ACL RX path

 6.12.y: 4 files changed, 66 insertions(+), 47 deletions(-)
 6.6.y:  3 files changed, 28 insertions(+), 23 deletions(-)
 6.1.y:  3 files changed, 32 insertions(+), 25 deletions(-)

-- 
2.53.0

  parent reply	other threads:[~2026-11-26  7:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 12:35 [PATCH 6.6] Bluetooth: hci_core: lookup hci_conn on RX path Yu Junzhe
2026-11-18 18:23 ` [6.6] " bluez.test.bot
     [not found] ` <20261119035758.45-1-junzheyu1@gmail.com>
     [not found]   ` <2026-11-19-1-daily-reply-0012@kernel.org>
2026-11-26  7:55     ` Yu Junzhe [this message]
2026-11-26  7:55       ` [PATCH 6.12.y 1/3] Bluetooth: hci_core: lookup hci_conn on the ACL and ISO RX paths Yu Junzhe
2026-11-26 12:19         ` Bluetooth: hci_core: lookup hci_conn on the RX path bluez.test.bot
2026-11-26  7:55       ` [PATCH 6.6.y 2/3] Bluetooth: hci_core: lookup hci_conn on the ACL " Yu Junzhe
2026-11-26  7:55       ` [PATCH 6.1.y 3/3] " Yu Junzhe
2026-11-26 10:20       ` [PATCH 0/3] Bluetooth: hci_core: lookup hci_conn on the " Greg Kroah-Hartman

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=20261126075554.106-1-junzheyu1@gmail.com \
    --to=junzheyu1@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=sashal@kernel.org \
    --cc=stable@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