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=1796383789; b=Pr7P8i5g6JyBTfviXXUxIog80nDz+Y2tevxUOoXxghXL8I7jpOVm/aRge5rNP3kUDSx8 I9LfqUWahK49dnwIn+Ki9nGd4TKVnr5/0rRjTf87mtdMYMm2PpPwwkJnYlk+SLe/HtZ0g 8+eJwkRoK7LKN/J6DGwEoxB5WJ2bJDIoM27fDu4cY5yVF3wEnSavWvGw4UrOva4IAjvAS XNDCwEQg1br0xz4gAlGaJmhNGpe2n9W8r8qOJMSQgXJG1Tbc5CNa3fsdqzzmxAeeJboCQ +gi+3hkoofg219B8y8iwH/5//jhV213YUDS+6326vdWPGZ3Jq5rH/TiRqVpSD0Dha2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383789; 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=bk/0WJW6V3iENtVLxUXwqIQsEydb6BgfRaw1srC59D0=; b=xjLDNg6SgWnBLVj2APyv98elG77yayHNK9F/ukv5qlFTyJChCIJvbhR9+hDbWlJAgB2h vYOHE9xuRXN7Pyq1tvF1oH8h7eu4GaRtW0c2ncVmFIhUwMqTyelskttRdtEan/GBI0ZbC UbtM0MBszvXiu1FwGkLsqLwVkHTFSSfSV+LCtRgO54kV+tMQyvpD2XVPP3011K7jEVsW8 iuCrKV7qyC3Jm++RptOwb61tQeIV7y1ExbOY40xWAqShyD25ByoxI04G9aUK2Fc7VzlYC e5vKMaDOGuL6xzUThg+ApRpDRxHK8d+H4VFGNISuSSXSu5J+Sy2mpT/HKnRxxuhX4/w== 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=KIcc5fui; 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 C18B1606A32C; Fri, 4 Dec 2026 11:29:49 +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=KIcc5fui Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB4241F000C2; Fri, 4 Dec 2026 11:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383789; bh=bk/0WJW6V3iENtVLxUXwqIQsEydb6BgfRaw1srC59D0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KIcc5fuiwLtE4Z6FK0wvul2psV8AGZlEPgbaibIJaP9Kx3s00QftzZreJB0IelDD7 Cdnq6kY7gYx7fJGsmS0q66JwY7wjBMy/OuzDiEX+npzg8v6cA+6q9gRL+4XwTZtO2Q iobkGxx4a30QwukizU7PD7gXA9fAcn01NqqvegH0= 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 6.12 366/555] Bluetooth: MGMT: Fix runtime config status opcode Date: Fri, 4 Dec 2026 19:06:49 +0900 Message-ID: <20261204100623.924447046@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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 @@ -349,6 +349,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); }