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=1796382368; b=MXdWeEKUJMyxI6UipXflEbCHowj+85puX4lN4IbJxOaoTIrBNjCA4QzfN4Pbzwu9qxEB AKk9qhaehE8u4H6+hvmRXrPs8zPku/+N7ZYgxe7Dx+dlr8FcEouFzSAStAXqD+u3SatQs mCcVd7gMMP4Fsu1c3NnStJSmFWG8xJ6hq5HKJa1Hgn7tvoKzYuIFMprhW1QXAI4SYiZdG ZeqXxyEp+a6noTfldq/AtQ1/K41sLcAgzA2X6ubENerMWQaVDEmv/7DVZ6BgCcsOMJ+Sp r8sTIPDFZ98hKdL9xvFzkszH780ooGTKgLeAxYDSE40pogR+Y6rM4cazxaK+xeevUMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382368; 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=po6t5BOJLQ9p2yJPLXhvK4Ys3/uzRQ6mgftmg8BcCOo=; b=qmlSTpuy7zNBd98hEYDcYzSdv+a04fVCA658M1VFtmAkXf8Mc7hiGLtMWnS4jEQtXsvS 9ZDsZuJUh+IxJ/akBIltxkzefmEJdIbpW9zKsae5y8nJ34OLyDzUGXPEeemFK21gF6SJX j7U6GH+eeMZCB8O01QXX0NSCj7D75yTAL0f7KfnZ8gCFz6AlHKl36hF1gP/DDM/LWOHN0 /rVRdyiUVPSy26DCYa9OTR2nXOJxZTbJCwhprww857H6EJQF46qMdR4k36EFQcTitYv8Z Qj72H99bBEn7ENs1muNgN3IL/ap6hbSBNBz9qtbiRo7bhNN9ED2xi3ZXmFGbpotP9ow== 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=h7uterUe; 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 79229606A322; Fri, 4 Dec 2026 11:06:08 +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=h7uterUe Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C5EF1F000CE; Fri, 4 Dec 2026 11:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382368; bh=po6t5BOJLQ9p2yJPLXhvK4Ys3/uzRQ6mgftmg8BcCOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=h7uterUeFSHjpQJZWKHeIxIpJtx4COwL+sO+9m4g4jiuIjK+SUZW/OIEJK/79X7Pa LfoJH2HZ6sPy24VgZaLUlLHF0c7NLrcc3W/GaTBCmlOGPnvGdB/goPI654rcsJhdXQ CNhyuoX6xSjMmMzho/yFoofq+a75EjRJrBH5V/0c= 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.18 406/703] Bluetooth: MGMT: Fix runtime config status opcode Date: Fri, 4 Dec 2026 19:05:05 +0900 Message-ID: <20261204100638.634719758@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-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); }