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=1796389253; b=hJzbqrJkGDKSdmRJrqoIAUbhpA4IsL1VyjHxA3byB4Y+JDP6D9LggxFOy0S6/dHZQHY8 KJMXm0yHFGM87WMu0kD/sPOTEGqQ0a8EXNfLAJCriNxLS752Wf0afjHdILBUH0JijGB5S VhzmuOfIUXl+ORUPdMLYLAYkt88vn/8tPvhOzRnDfvRTlz74lUqT1jYWEkCxbFb6D3wIg /y/ReSzDbMxESuSI1TgSr8g1zYtyrOevkdqE/cXjp6LZkgTuz0dhbDW14BYWhblUDydyI WkWzg/Zj+V+FyRb/xFghtyqUC8bdD+CzAtCJnfIDJslJjRhDSey2H3vfPIPESze6yDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389253; 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=J8OEQ4Yj/ABNCP5qm2Zv+MTAJRujLkBaC1SfJknH22g=; b=MRmuFGw2vIn9QhgXq7n/yR5jIPsUDFv0br8ZBhwwoPIovIE2wLtYZN0uP26xYgJ0uR4r 3VC9DAY5BbUln1EedJcu8UD45hwkzG485LG+hMhtxtoGsbKBTkCi7oCGxb+4f+Vf6gmNv fnIHtL5UMbpslv42/B+OPdNk5XaK2Ak2+uhxGWL+EcTVdJy6CsNgMBHFn7LN4qDyzTRE/ PNvC9Vt8Pi28ARV+sQnkoVCaqmqVShqV3wveonvdNGQgDfhQ4c6cX5OUj4su17aLYxLnl GNspfAGu6/iT4zA66yyt07DiaV+8FORYfAW2O5um0+o7QLWSuJVJIlKj3wAccA6KMFg== 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=ZDI0a3MN; 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 5AA1D606A322; Fri, 4 Dec 2026 13:00:53 +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=ZDI0a3MN Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF31D1F000CE; Fri, 4 Dec 2026 13:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389253; bh=J8OEQ4Yj/ABNCP5qm2Zv+MTAJRujLkBaC1SfJknH22g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZDI0a3MNlxruI1PE17hYPEypk489fxjcawCiOHmpBtCe5m/u2E7RNjk9XNv+UdheL PcB3UIAMPoo8wd3RQMggHJHKXXCbWa7sQ3YT5YTS/guOjLFpAJptKvK1NpBFyV2syq uJvC9TYdUioE6wogEVxSYdEy6c7/hALlLIjlgRUc= 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.1 0922/1059] Bluetooth: MGMT: Fix runtime config status opcode Date: Fri, 4 Dec 2026 19:07:33 +0900 Message-ID: <20261204100707.906806508@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@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.1-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); }