From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796385819; b=OLLPI+FYRHCV98kilQ+ZhW24uDMtS4S+AGwBdkVOPi2l/rVq42R1izUOBJ7pZJ7DbCf3 nyeS/pXCdDgvEMaFBgXnfeUO9J999wAKbw8Mk192CIooIPcgNkzNanmuHYtDEN0/a7Rqi P/sr/C/8Zh3peWzJYrDVHWz0joiwmGdeUvtCzWcL6RdV3luYp3uttIKPPlCuRylZ3Ns4Z uY6kmGSz5d8WxpuCqjAMRgROzfmpomwEIlbhH7sI+zDkqhneOozvvYszq8bfqNJT/wzzG oTo/yhqj/kSiW58MXjvTBK7B1SUgPhFdM6rXhMPGfexBdfaeqrpvB4xm3MJvhJTGJiQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385819; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=kJZrW1GOcUuvZZTZsGIbmR0EEGUebA2iU66eEn0pN7s=; b=EfVyeE0pi7qGsx3mVLIfVSSvTqGZv3uODLR2tBIwHanbQvQGvup4EK074Rekq5fVjFgm ORa938dOhCuG7mBRC4yvURrKjSKt1RdxfGII43sM2AHV9Nr3Xp958hwIOnFGqYiwFcdcC 4RDWjs7HsRe2odTda3YDZTU6ebyLTGArkLNARbFCGXGfRFzNC36dVlYLVNPgQWN1tanEg P+OZDRXGXUcRK5hiB/dENjakutnxxdo2MngMnHyUsdcVW/5EkuvqZjc/qfL5bUaFN54PS TVldLDtkfIsCH2TYKZzpWsn7sG8l1v73Tsq0Z1ok/QeCWYrT8cCG4LSijjr9MblTDzg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=F4LVAg4Z; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34AA6606A337; Fri, 4 Dec 2026 12:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=F4LVAg4Z Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0E1F1F00934; Fri, 4 Dec 2026 12:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385819; bh=kJZrW1GOcUuvZZTZsGIbmR0EEGUebA2iU66eEn0pN7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=F4LVAg4ZgzOve1aFZtOpT24mXZS6xMpyIv6YE2n2RcXUgEbE9bfTFiuXo3lcz26tg h0jTig3hvZFax+tsY7MnwrNlLYPVRricnHKj1D74HFoBS64jc9MTvlTNvH6ycW3Dsz D4lI/nnu4C4F82TJmizE2RmIsG4/5au9eMVk1UIs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Luiz Augusto von Dentz , Sean Rhodes Subject: [PATCH 6.6 0704/1167] Bluetooth: btintel: Check if controller is ISO capable on btintel_classify_pkt_type Date: Fri, 4 Dec 2026 19:02:11 +0900 Message-ID: <20261204100720.406979614@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luiz Augusto von Dentz commit 6ec3185fbc3528f2284c347fb9bd8be6fa672ed4 upstream. Due to what seem to be a bug with variant version returned by some firmwares the code may set hdev->classify_pkt_type with btintel_classify_pkt_type when in fact the controller doesn't even support ISO channels feature but may use the handle range expected from a controllers that does causing the packets to be reclassified as ISO causing several bugs. To fix the above btintel_classify_pkt_type will attempt to check if the controller really supports ISO channels and in case it doesn't don't reclassify even if the handle range is considered to be ISO, this is considered safer than trying to fix the specific controller/firmware version as that could change over time and causing similar problems in the future. Link: https://bugzilla.kernel.org/show_bug.cgi?id=219553 Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2100565 Link: https://github.com/StarLabsLtd/firmware/issues/180 Fixes: f25b7fd36cc3 ("Bluetooth: Add vendor-specific packet classification for ISO data") Cc: stable@vger.kernel.org Signed-off-by: Luiz Augusto von Dentz Tested-by: Sean Rhodes Signed-off-by: Greg Kroah-Hartman --- drivers/bluetooth/btintel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -2611,7 +2611,7 @@ static u8 btintel_classify_pkt_type(stru * Distinguish ISO data packets form ACL data packets * based on their connection handle value range. */ - if (hci_skb_pkt_type(skb) == HCI_ACLDATA_PKT) { + if (iso_capable(hdev) && hci_skb_pkt_type(skb) == HCI_ACLDATA_PKT) { __u16 handle = __le16_to_cpu(hci_acl_hdr(skb)->handle); if (hci_handle(handle) >= BTINTEL_ISODATA_HANDLE_BASE)