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=1796284270; b=rxIWpcqITSyg1OJM5HOX2T4sMKRw1DNwYO0a30jy2m8RTOPSNBhk95cpssDMUzOy5VM/ S3rbTAvLkp/ROOAbPT8F7Hb62U1nYAq/rULNQDi2+yD25QfUmep7Lvzayh8uV7pC6r3hg sJn4cHUU52DLwXhIq6X2whf7apYZhNzWDBxtn4d6A6IsI5au26tH2Z2LmgfNvhvSOZ6Ar PzrT7EG/pRHVPXGWyxm7WLUYTJUrnk7L8Qtteri4lEhpgXpDBOkT/FQbpgQJByzGlJb2v QLNFIGSILD/EeDXRPSORvWly5Rm5DNlHn4z5e38NzPx2/uoDQQIk7PO/kYVH3wc2s1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796284270; h=Received:DKIM-Signature:Received:From:To:Subject:Date: X-Bugzilla-Reason:X-Bugzilla-Type:X-Bugzilla-Watch-Reason: X-Bugzilla-Product:X-Bugzilla-Component:X-Bugzilla-Version: X-Bugzilla-Keywords:X-Bugzilla-Severity:X-Bugzilla-Who: X-Bugzilla-Status:X-Bugzilla-Resolution:X-Bugzilla-Priority: X-Bugzilla-Assigned-To:X-Bugzilla-Flags:X-Bugzilla-Changed-Fields: Message-ID:Content-Type:Content-Transfer-Encoding:X-Bugzilla-URL: Auto-Submitted:MIME-Version; bh=QyaiN5fZJTEuFjTd650K8I3vc5XDTAlIlWbkc8EKLVE=; b=wEuB+5YAQT+UotteODPGlytYQz5FlYrA1RoKG7ljBPFdTVAuzx9XRK28mD4/LMdQUO5z 78T2lrk0p0UWxVSIqNHp1n4VpZzj03MHDEG8/2SI+Op9KMdZ8ByKfN4F7DMKuGjNhTuuA 70PZ31n7iMsLt6q6GtyzK7WnewGWbp1rH/0YpyOF/gqhRGJ5/9sQerxTpiG7k3ewFmFFw xOa5eUI87ZhxkpkZyaQKirEreritluIZldr1MqD6LG3e57NS+LjjyfQg4Xmn31Yt+XpHt KPz0llAxgQeBYsxH4NbX9lTwTmg4Qfe34kuY6pGL0bD0xWIg9+fN7vWQwGpKxs3TK8w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d4H0mYMF; 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 55683606A322 for ; Thu, 3 Dec 2026 07:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d4H0mYMF Received: by smtp.kernel.org (Postfix) with ESMTPS id 031DC1F000C1 for ; Thu, 3 Dec 2026 07:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796284270; bh=QyaiN5fZJTEuFjTd650K8I3vc5XDTAlIlWbkc8EKLVE=; h=From:To:Subject:Date; b=d4H0mYMFONP5qBrF9CfdVMajOFw1TE036e3rUPqrvKT0+hnHi9L5CQjj28lsBDkIz L+7FCcHg45EFbA99v+vkaCbT+uge+X6bWKcE8nnn0MovkFsRxyiv+oltvgYGAREEWP pLNv5oJwyZIsWuU2b0+gJy2m/KafDfYUhC/XLf17BdFu2C2/heam4mAt/w75O3m6uP qzwtdy1hGLuthrkbuGZQqi6yI8BTf+FxU7RRHYw8WvBoQplTsR7GY6XLxm5EkgFcP3 UWxgLrkmk2SNBPS1jynXnqpsi7KEhitBICMwPvr7KhnVaalGSUMHBAQFQM+rcWQlO1 fQrVFupioPg+g== Received: by aws-us-west-2-korg-bugzilla-alma10-1.codeaurora.org (Postfix, from userid 48) id F3ED7240040C; Thu, 3 Dec 2026 07:51:09 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-bluetooth@vger.kernel.org Subject: [Bug 222359] New: Bluetooth: MGMT Set Public Address in the post-setup auto-off window succeeds but leaves the controller hidden with HCI_CONFIG set Date: Thu, 03 Dec 2026 07:51:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Drivers X-Bugzilla-Component: Bluetooth X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla@accelocom.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linux-bluetooth@vger.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version cf_kernel_version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cf_regression Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D222359 Bug ID: 222359 Summary: Bluetooth: MGMT Set Public Address in the post-setup auto-off window succeeds but leaves the controller hidden with HCI_CONFIG set Product: Drivers Version: 2.5 Kernel Version: 7.3.7-2-cachyos Hardware: AMD OS: Linux Status: NEW Severity: normal Priority: P3 Component: Bluetooth Assignee: linux-bluetooth@vger.kernel.org Reporter: bugzilla@accelocom.com Regression: No MGMT Set Public Address is accepted while the controller is in the post-set= up auto-off window (HCI_UP + HCI_AUTO_OFF), because hdev_is_powered() treats t= hat state as off. It reports success, but the address is never applied and the index is never re-added, so the controller stays hidden from mgmt until the driver is reloaded. Why (mainline master as of 2026-12-02): 1. set_public_address() calls mgmt_index_removed(), sets HCI_CONFIG and HCI_AUTO_OFF, and queues power_on. 2. hci_power_on() takes its HCI_UP && HCI_MGMT && HCI_AUTO_OFF fast path: hci_powered_update_sync(), then return. 3. So hci_dev_do_open() never runs (set_bdaddr is never called), HCI_CONFIG= is never cleared, and mgmt_index_added() is never called. Observed (hit at boot by a systemd unit running btmgmt public-addr before bluetoothd started): the command returns success; btmgmt info then lists 0 indexes; hci0 is UP and RUNNING with HCI_CONFIG set, bdaddr still the old address and public_addr the new one (read with bpftrace). Reloading btusb recovers Bluetooth functionality. The same command works when the controlle= r is fully closed. To reproduce (worked out from the above, not yet run as a standalone test): stop bluetoothd, reload btusb, and within 2 seconds of hci0 appearing run "btmgmt --index 0 public-addr ". Possible fixes: reject in set_public_address() whenever HCI_UP is set, or s= kip the hci_power_on() fast path when HCI_CONFIG is set. Environment: MediaTek MT7927 (btusb + btmtk), kernel 7.3.7-2-cachyos, BlueZ 5.88. --=20 You are receiving this mail because: You are the assignee for the bug.=