From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA83B347515; Wed, 20 May 2026 18:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301094; cv=none; b=L88wXaJaIlWXNO1VCwiyKaeGi5foX7AHocHoQigxTTuK4kdsweWgrUiiC1ymrh6T7O5EIfv3CjLmZXbL5dJhtafFHYI/gq/cwzNPLLC6AdW/rAtifmMBC5AyVJHAPdk6Bl5nYyi+jyG5yxXgAskQIN+vS1eoLjam8DVqLwrnIFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301094; c=relaxed/simple; bh=2VjH9C8eoYPlOZjGFXtc51gDBpc3V7AAXCj+CeYL5EQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=olT+gwzR1jc+/PpTLphj+6+ThJxYGBr7n8EDRPEoQwX8dULiXoz5caLrC+gPuF97j5gzh/VP04pk/ZrWypu26/W/9w499fx5H0dbLlkGaKw4go8IhBFs3n/C96N9SGDoPR1jeNQwIso9pJ4rHEE75U5yx+KhpFetDvQ1LpjZTDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0cVs2Bz7; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0cVs2Bz7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A9771F000E9; Wed, 20 May 2026 18:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779301093; bh=LYO3HubTpWJSbG4ZzI4PbGIwg2XmroyauA7YXZGts7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0cVs2Bz7uaKuxRTTXC1VexohEc/X7AcQ5rXAGjQflCrGZjldBoSpepD2H/A5diHrC +KP/S0BWfKTyOPKzt8lNUQZNH/yhMA6Yx7mW2TMR3AQgno0BRTri0ZHxWAA37iZ35i RjXEUh47GyPs1WRK+9mNYzIsN+j93U1gjo1rFyxU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Brian Masney , =?UTF-8?q?Beno=C3=AEt=20Monin?= , Nobuhiro Iwamatsu , Stephen Boyd , Sasha Levin Subject: [PATCH 6.12 423/666] clk: visconti: pll: initialize clk_init_data to zero Date: Wed, 20 May 2026 18:20:34 +0200 Message-ID: <20260520162120.437000960@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Brian Masney [ Upstream commit 1603cbb64173a0e9fa7500f2a686f4aa011c58b9 ] Sashiko reported the following: > The struct clk_init_data init is declared on the stack without being > fully zero-initialized. While fields like name, flags, parent_names, > num_parents, and ops are explicitly assigned, the parent_data and > parent_hws fields are left containing stack garbage. clk_core_populate_parent_map() currently prefers the parent names over the parent data and hws, so this isn't a problem at the moment. If that ordering ever changed in the future, then this could lead to some unexpected crashes. Let's just go ahead and make sure that the struct clk_init_data is initialized to zero as a good practice. Fixes: b4cbe606dc367 ("clk: visconti: Add support common clock driver and reset driver") Link: https://sashiko.dev/#/patchset/20260326042317.122536-1-rosenp%40gmail.com Signed-off-by: Brian Masney Reviewed-by: BenoƮt Monin Reviewed-by: Nobuhiro Iwamatsu Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/visconti/pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/visconti/pll.c b/drivers/clk/visconti/pll.c index 3f929cf8dd2f7..22930fd589b70 100644 --- a/drivers/clk/visconti/pll.c +++ b/drivers/clk/visconti/pll.c @@ -244,7 +244,7 @@ static struct clk_hw *visconti_register_pll(struct visconti_pll_provider *ctx, const struct visconti_pll_rate_table *rate_table, spinlock_t *lock) { - struct clk_init_data init; + struct clk_init_data init = {}; struct visconti_pll *pll; struct clk_hw *pll_hw_clk; size_t len; -- 2.53.0