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=1796383346; b=4OGGIyVGcwAxZFglyj8mADUBV8m5DK8b4ttu9KfEwdiXG5e850DMG8MqnXI4ORqdIDHU 7+JoCjtMeO1omf0CAjChEoqjZkko7mjsXcKNd3eAEqaybFJuSDwOdlYzDrHdCCYk8z9QM NmHY88OuVFwUefRe4EGmFsjSyMJoVmirIi5oKxeuIWQ2BwLwdpmXXWX9u/wUzxyx1L611 SIfQOGNjhg7vZpK18e8nKQ2di1YNAIKyjx1bLEG3LNYqf8Oqas7BXCXcmfRF9s8PWU97t YsTZM7lBw0JBIyteTrVpxEi1IC1arCeo0nFPgKTf+eCcmNGzluL1tZ2sIbHkZ4t91Mw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383346; 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=ncUL0Ym3Zpudsbvfi3ITVuRX4GgO8TmVZ+He3WB6L04=; b=4oIU35ieUSonpccT+XJ5ncoYu4v2v2gAKhuVMRAVbdL4WHO216l1Vfj+qi5AV9tg5MB3 5YL4PkpXwLOlj2qwpSe0506pnLjfu9Oem9PV7VNXUGFPXTVuPKCCD9i4GP3WfEW/iWqWJ 4qRUEPeQULrWs0dRh5N6FmYM2i/Rg7GmC51epE4k7yeL27PDQMTATVl4kTRKVqMuWFCwr 1z/2rhH9k54HiCgrkP1jhUfTTjwQblLNWFVUbJIWdl8KEA3dSgUlYbKAqfkgdSLu0/s3O lpmS7WUF7y07gija4Sy4XFkp3fT0Iu9uNZii2FDdl8mmwt8aYw/8nKa1iYRyHj4Bsiw== 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=bmevcE0U; 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 0DE72606A322; Fri, 4 Dec 2026 11:22:26 +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=bmevcE0U Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC1F1F000CE; Fri, 4 Dec 2026 11:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383345; bh=ncUL0Ym3Zpudsbvfi3ITVuRX4GgO8TmVZ+He3WB6L04=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bmevcE0UFTzAKJNlMzjy0XLZwvPOi2uiV31RbnPauQJf51QME5FN2aEuiv/StahFY lTpQzPpntfZafqX4XJXVL26iPyW5XPT1QMYo/q52Bxp3CQ1+jnArVlfcWBZ/yjZSPl 5mnBo9B43LjoK2oCZg0mr82aN5OEjOIDuEEKHMfE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sashiko , Luiz Augusto von Dentz , Sasha Levin Subject: [PATCH 6.12 188/555] Bluetooth: mgmt: Reject zero multi advertising rotation duration Date: Fri, 4 Dec 2026 19:03:51 +0900 Message-ID: <20261204100615.324923017@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: Luiz Augusto von Dentz [ Upstream commit 4e0dc0523bd98adbd45ce1c66dd1a96d4f6a3ec9 ] A zero def_multi_adv_rotation_duration makes hci_schedule_adv_instance_sync() requeue itself with no delay, spinning the request workqueue. Reject it in Set Default System Configuration. Reported-by: Sashiko Link: https://sashiko.dev/#/bug/linux-24ecb695-0c5c-408a-a016-a980c3115e95 Fixes: 17896406ff35 ("Bluetooth: implement read/set default system parameters mgmt") Assisted-by: OpenCode:claude-fable-5.2 Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Sasha Levin --- net/bluetooth/mgmt_config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/net/bluetooth/mgmt_config.c b/net/bluetooth/mgmt_config.c index 6ef701c27da48..3b1593f35f25f 100644 --- a/net/bluetooth/mgmt_config.c +++ b/net/bluetooth/mgmt_config.c @@ -206,6 +206,14 @@ int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data, MGMT_STATUS_INVALID_PARAMS); } + /* A zero rotation duration would make the advertising instance + * scheduler requeue itself with no delay. + */ + if (type == 0x000c && !TLV_GET_LE16(buffer)) + return mgmt_cmd_status(sk, hdev->id, + MGMT_OP_SET_DEF_SYSTEM_CONFIG, + MGMT_STATUS_INVALID_PARAMS); + buffer_left -= exp_len; buffer += exp_len; } -- 2.53.0