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=1796380936; b=NsUyAFNccFSzJM8pNFnIhMUk6fxmuXhsqLtd1/m4z0rSLmKfD+C1jzSEqZSMzu0LdTeM UcmgrnpJp/QkRROT1XKyKgWpXvzVHJyX6UWcyrOFNHRGwnFcK1v2xTRnNB1lOxVTXdZea EV/fm18utoxnPLmHh8SFcATxcQujqevFpNRRq2w3BGLXhC9Icqs9m0Gv7KAp1G0CyvZD/ Y95z/oY2kYr71IUyqVFvt127NpyKvyD+IfgQjaw+j8ikgLXKvG8gAy74/f3XGSEbB1DKN QNyHiRShAHbLlCl1WU4EDjkr9/dpDjWmNtZ/DWsWLtOZU+ODxRQfzLRsfcg42IrBIiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380936; 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=dB2+TQuKYVGcRdHqQVvUH7UxJY9c4TS6/Stc/pM14Ag=; b=VilrXSPm56CF83EMORfRX9FtNPRYufaKvmNtb0540nQlMdKKEEMrHUJCV5bQ5nBXKlJ9 h6UGpjiz8YGH0GbhQwArSZ9EjlqcUWv8LyWRZ0bJ44b68WmKWY4UPvvinuLD/7k1jrv9R E0FdiCZhvms0QMoRuZ7Sah557bObnnwAAqO1H4+YxG1n6XrtoskhdfSGvPIIeqxVpmp3D v+JNXvckY7nToXWxlnVimBa+6toKtzbw+NzNn74TOY7UBdLJn9AJ6PmfnbGbelvSPCtAM fKSzDufTnpzHhU1h2wLhVdsiHYEGYcbrHhjRd7qftghjtnrcNY0YJEsYTRs7j57ECjA== 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=v9BVfPAI; 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 6BFE0606A322; Fri, 4 Dec 2026 10:42:16 +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=v9BVfPAI Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9CCD1F000C2; Fri, 4 Dec 2026 10:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380936; bh=dB2+TQuKYVGcRdHqQVvUH7UxJY9c4TS6/Stc/pM14Ag=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v9BVfPAIc2T2B369Xmz7z7655xk3MundneLTxFCu6JlKMxS/rapk0PYuqV89NtRSt AIiYPN77gk2F9BHEiY0kgWvQDd/ILCQUrcBOaWMKipVWRORa6EPrq6VDrsEVFuzqJr 06ioAPDljws6xIYrJiQIt6mvU/B80B3LgOnnpEsU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xu Rao , Luiz Augusto von Dentz Subject: [PATCH 7.3 447/742] Bluetooth: MGMT: Fix runtime config status opcode Date: Fri, 4 Dec 2026 19:05:11 +0900 Message-ID: <20261204100647.024022259@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xu Rao commit 4728474344793dd67956e03a2cb244b71383ef7c upstream. The Set Default Runtime Configuration command uses opcode 0x004e, but set_def_runtime_config() reports its invalid-parameter status with the Set Default System Configuration opcode, 0x004c. A management client that matches Command Status events to its pending request by opcode therefore cannot associate the response with the request it sent. Runtime configuration parameters are not implemented, so the command still returns MGMT_STATUS_INVALID_PARAMS. Use MGMT_OP_SET_DEF_RUNTIME_CONFIG for the status event so the response identifies the command that was actually handled. Fixes: aececa645dc7 ("Bluetooth: mgmt: Add commands for runtime configuration") Signed-off-by: Xu Rao Cc: stable@vger.kernel.org Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Greg Kroah-Hartman --- net/bluetooth/mgmt_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/bluetooth/mgmt_config.c +++ b/net/bluetooth/mgmt_config.c @@ -370,6 +370,6 @@ int set_def_runtime_config(struct sock * { bt_dev_dbg(hdev, "sock %p", sk); - return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_SYSTEM_CONFIG, + return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_RUNTIME_CONFIG, MGMT_STATUS_INVALID_PARAMS); }