From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 25789158042 for ; Thu, 14 Nov 2024 13:50:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C807E089F; Thu, 14 Nov 2024 13:50:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31614E089F for ; Thu, 14 Nov 2024 13:50:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BA25342FE5 for ; Thu, 14 Nov 2024 13:50:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7840816D2 for ; Thu, 14 Nov 2024 13:49:59 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1731592151.3e3358ec19faa4465e8fd12d2e884f345ed5a2fb.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:6.11 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 2400_bluetooth-mgmt-device-connected-fix.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 3e3358ec19faa4465e8fd12d2e884f345ed5a2fb X-VCS-Branch: 6.11 Date: Thu, 14 Nov 2024 13:49:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2b8e5489-7672-43a0-9e32-8ad5a95e5a9c X-Archives-Hash: d67b48a1311ae747f4618cbd46cdfee8 commit: 3e3358ec19faa4465e8fd12d2e884f345ed5a2fb Author: Mike Pagano gentoo org> AuthorDate: Thu Nov 14 13:49:11 2024 +0000 Commit: Mike Pagano gentoo org> CommitDate: Thu Nov 14 13:49:11 2024 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3e3358ec Bluetooth: hci_core: Fix calling mgmt_device_connected Bug: https://bugs.gentoo.org/942925 Signed-off-by: Mike Pagano gentoo.org> 0000_README | 4 +++ 2400_bluetooth-mgmt-device-connected-fix.patch | 34 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/0000_README b/0000_README index 9d412a8c..39ba643a 100644 --- a/0000_README +++ b/0000_README @@ -87,6 +87,10 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-marcel@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 +Patch: 2400_bluetooth-mgmt-device-connected-fix.patch +From: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git +Desc: Bluetooth: hci_core: Fix calling mgmt_device_connected + Patch: 2600_HID-revert-Y900P-fix-ThinkPad-L15-touchpad.patch From: https://bugs.gentoo.org/942797 Desc: Revert: HID: multitouch: Add support for lenovo Y9000P Touchpad diff --git a/2400_bluetooth-mgmt-device-connected-fix.patch b/2400_bluetooth-mgmt-device-connected-fix.patch new file mode 100644 index 00000000..86cf10e9 --- /dev/null +++ b/2400_bluetooth-mgmt-device-connected-fix.patch @@ -0,0 +1,34 @@ +From 48adce305dc6d6c444fd00e40ad07d4a41acdfbf Mon Sep 17 00:00:00 2001 +From: Luiz Augusto von Dentz +Date: Fri, 8 Nov 2024 11:19:54 -0500 +Subject: Bluetooth: hci_core: Fix calling mgmt_device_connected + +Since 61a939c68ee0 ("Bluetooth: Queue incoming ACL data until +BT_CONNECTED state is reached") there is no long the need to call +mgmt_device_connected as ACL data will be queued until BT_CONNECTED +state. + +Link: https://bugzilla.kernel.org/show_bug.cgi?id=219458 +Link: https://github.com/bluez/bluez/issues/1014 +Fixes: 333b4fd11e89 ("Bluetooth: L2CAP: Fix uaf in l2cap_connect") +Signed-off-by: Luiz Augusto von Dentz +--- + net/bluetooth/hci_core.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c +index f6cff34a85421c..f9e19f9cb5a386 100644 +--- a/net/bluetooth/hci_core.c ++++ b/net/bluetooth/hci_core.c +@@ -3792,8 +3792,6 @@ static void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb) + + hci_dev_lock(hdev); + conn = hci_conn_hash_lookup_handle(hdev, handle); +- if (conn && hci_dev_test_flag(hdev, HCI_MGMT)) +- mgmt_device_connected(hdev, conn, NULL, 0); + hci_dev_unlock(hdev); + + if (conn) { +-- +cgit 1.2.3-korg +