From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7087CC5DF82 for ; Thu, 20 Aug 2026 05:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Message-ID:Date:To:Cc:From: Subject:References:In-Reply-To:Content-Transfer-Encoding:MIME-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bTtESEhDqdaJJFf13TJPMsvGwGlOkJtwU8iCH8UJRzI=; b=ThsK+ilq6xZND1UWpSC8Ywdxff tmr+Y8jWPq0dDdnZF4bJWs+D0fsQfmKGRDW+fXAvvMfp8BZvkFFSn/TTyf8lJh6ULXHw9EFlInkr7 Ng0AkUu24/YEG8fgCwK03YjQcYT7W7R9cSp35R7GBoxeCE7BjIlvvma4sG1enS5dU4ldvLPiXn/qe mytBk+p5Bd8rAgZ6wUHmvIeBuDguxAbaXEP00lt5Xg7Q4M1DfiYwHWhlqhc+jcfBUWaH9AVophh4v VIfQjhPR8PcWbD5/ZDHLphojSvTdtQB9r7H7jGl8yk7iOgVyi7kpOc3duhYp3BQ36D/IOya9vV8SD nrcZLK/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwvlX-0000000Aspb-1dY2; Thu, 20 Aug 2026 05:56:39 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwvlW-0000000AspD-2Qmv; Thu, 20 Aug 2026 05:56:38 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7799C43769; Thu, 20 Aug 2026 05:56:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F8F91F00A3A; Thu, 20 Aug 2026 05:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787205397; bh=bTtESEhDqdaJJFf13TJPMsvGwGlOkJtwU8iCH8UJRzI=; h=In-Reply-To:References:Subject:From:Cc:To:Date; b=Sx/ECOxkrorY3o+MTDG3qDlw0HT8E/cTXE/rqe8svELCermUqUrt6Wz1D0fkuY92z 7eoD80Sfzx2VqwviyXDW5AW0oKJRMoxoCw4Jj1l8JZgPjpzKXlZfpbveDFFFHR3CPK 266u2W0cPA4LXRWVFnuCOxKceTyx4BsTpWAodATgmimYdZ87R3LkX3UNZqha33FHBo +luXGBcy7XhRmg1Ld3J/lJeOEeoahw/ICOwRim9qFHYNNvQbsLqy2ZSH9Unkx25M1T Rlqq6pD7uQdlqkgCCpFqyShTEU7ohk5Py83Y5hDlDqESjFGj1Q04A08SxecEIy/CXm lwBLBt91ZMu/A== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: [PATCH treewide 1/5] clk: ti: Make sure clk_init_data is fully initialized From: Stephen Boyd Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux@analog.com, linux-iio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-spi@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven To: Andy Shevchenko , Antoniu Miclaus , Brian Masney , David Lechner , Geert Uytterhoeven , Guenter Roeck , Jerome Brunet , Jonathan Cameron , Kees Cook , Kevin Hilman , Mark Brown , Mathieu Dubois-Briand , Michael Hennerich , Nobuhiro Iwamatsu , Nuno Sa , Sunny Luo , Tero Kristo , Xianwei Zhao Date: Wed, 19 Aug 2026 22:56:35 -0700 Message-ID: <178720539505.4726.15293940846422145239@lazor> User-Agent: alot/0.12 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Geert Uytterhoeven (2026-08-19 12:05:15) > The clk_init_data structure contains several mutually-exclusive members > for different methods to specify the possible parents of a clock, > prompting drivers to initialize only the members they need. However, > not initializing all members may cause subtle issues, which are only > exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is > enabled. >=20 > _register_mux() fills in init.parent_data, and assumes that > init.parent_names is NULL. However, the latter in uninitialized, and > thus may cause a crash. >=20 > Make sure all members are fully initialized, to fix such bugs, and to > avoid future breakage when converting drivers to a different method for > specifying the parents. >=20 > Fixes: 667f420c09f1417c ("clk: ti: mux: resolve parent clocks by DT index= , not by name") > Closes: https://lore.kernel.org/CAMuHMdU3yVqoyHC4eNF2NuYo8wy+6ODLoYat4R71= X99Mxc_=3Dkw@mail.gmail.com > Signed-off-by: Geert Uytterhoeven > --- Applied to clk-next