From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA6C03F44EA; Wed, 20 May 2026 17:24:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297887; cv=none; b=qUzOFdskMk6UkMywBXITsdLQUlZVWqIgKJ05iduYBvrSFr9K8ImuGOAXBUVW5u7CKDbIArJ2assA24MhPFguQacbd2F/qJqIEJt7lG2wYxZcz81PyJkUW0/4KHuHD7VfHaTnxWhybha8PxnBcTUshPlZk85nlbb4fYwKptYBecA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297887; c=relaxed/simple; bh=bA5DwWhqmOcGGPCIB4CcA0j21l3gu6bgiOJM3GYwXFI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rTS/EvKSRnWOeltVjOFV+uC5WhczM5NOAb+TexUO+JSwtt1EsJ7KjYzy38kwtzEDyxo2dzm2qQMQkDIwbfUaBWkhjZ0NXdKKsr6bbkyXyuyNed2EuTqDPQolslICslWyBE+mvkCprj0Y8xAqz5gGbsHHFbrhXQqiL+RlUjdRVwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kALoV5jQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kALoV5jQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C42B1F000E9; Wed, 20 May 2026 17:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779297885; bh=/2InMUfeqVQMRpj1VS71YET1+PmDcCtn9mqUJFz4aBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kALoV5jQCEp1efMoUxEqAcqPRuCHqBjmX/hizoxDrqq8cbUJAVgZI9S1Q3eBUc/+x r5QExa2rQjs3TlZCtI1R43LnhY6Se7Q74SZ9RjPbifjTbSUr5r0DWVnLgjHP6lAeJ+ jR8e4AOmh+xlenN205mprCWjhclhUTCvO4Ffcd2I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Luiz Augusto von Dentz , Paul Menzel , Sasha Levin Subject: [PATCH 6.18 174/957] Bluetooth: L2CAP: Fix printing wrong information if SDU length exceeds MTU Date: Wed, 20 May 2026 18:10:57 +0200 Message-ID: <20260520162138.327260173@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luiz Augusto von Dentz [ Upstream commit 15bf35a660eb82a49f8397fc3d3acada8dae13db ] The code was printing skb->len and sdu_len in the places where it should be sdu_len and chan->imtu respectively to match the if conditions. Link: https://lore.kernel.org/linux-bluetooth/20260315132013.75ab40c5@kernel.org/T/#m1418f9c82eeff8510c1beaa21cf53af20db96c06 Fixes: e1d9a6688986 ("Bluetooth: LE L2CAP: Disconnect if received packet's SDU exceeds IMTU") Signed-off-by: Luiz Augusto von Dentz Reviewed-by: Paul Menzel Signed-off-by: Sasha Levin --- net/bluetooth/l2cap_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 29e23f20dc438..7664723a34d0a 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -6733,7 +6733,7 @@ static int l2cap_ecred_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb) if (sdu_len > chan->imtu) { BT_ERR("Too big LE L2CAP SDU length: len %u > %u", - skb->len, sdu_len); + sdu_len, chan->imtu); l2cap_send_disconn_req(chan, ECONNRESET); err = -EMSGSIZE; goto failed; -- 2.53.0