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=1796386244; b=Nt4Q0fDd60aVr/XZl9FhocYea/DrMxG3FtUUoRFUaU5L8GwBMNzEza42FymGcjG+i9e2 JvkvoSYFKdlJauSpS5vHAWTGy+JEH8oaLX5tVqd/tNAzOUhfmfcARRQs013GSdkBX/Cz1 Nt0pU4XpzCvWBEfDxoMeUmpVfdemSZSE8HdSw5nphuzrho2Bjpc25B7sfXeGoSTesp4Kg YFRy3DFIZ/BBRd8cE5Wg9JPPfTNNmcJoAt3qQADtPbEpc7/aUKpFjwYJRtJl6Q45GYIQk 1aiXYGOsvob25FJEm2vCIdle/fXC0++aDX5HKwHyGVf/GDmT9WmRPDpiXNbYn4JjJow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386244; 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=4wi5+H/rLfOu772aHQ9L7TZNEfEpYvJCmoDP5h4FXvY=; b=aD9Wo2TUci324Fw1UIdiFWgVexzbzw/9hHEh3Xcqex7npt99WLmJBRmCbAVcMys0Nb3x bst2uHs/6ipeucoL60/ISDdFJtUKdlFt9+9rbnkAVxwWU7S49dkbFoL7VVvY9T077z2xD AeYO8tBEJvzy/lJjQzEov/0G8Idb7SXAjF96URZUCA7CGotFh0Yqq8d4eVLcm5aM7CC0C nPnCZf+xOXowih6/uoRNUTxJ9Q01XQQqJ98eJ7vc29yEVxtgstdgpW3PbrBXsp0PZRY9D LkcJZW8U5ARDJn1+IMTmjI+g6SZo3jomxSbOQ5JczW7ZT25yagpSVuSdQArOBm96lgg== 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=cyvzTpgE; 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 94D73606A33C; Fri, 4 Dec 2026 12:10:44 +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=cyvzTpgE Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7B841F000CE; Fri, 4 Dec 2026 12:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386244; bh=4wi5+H/rLfOu772aHQ9L7TZNEfEpYvJCmoDP5h4FXvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cyvzTpgEAJlffAvCQPn7js/iEEYBxNzJXPk5YAgdpCLigRQtOYefxkGUBkwqFw605 gYIFl2XDKJ2I1/BiCZBc19zumst3VaPCdZh4pWiFqnVZ5KN+Px8hbLCdX+lR7vsDgN pGWZsR9LvD0fD/1JUUKDNZOsKhyS7tImbWILyzo8= 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.6 0883/1167] Bluetooth: mgmt: Reject zero multi advertising rotation duration Date: Fri, 4 Dec 2026 19:05:10 +0900 Message-ID: <20261204100725.172447560@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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