Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 EEEAA3A5421 for ; Wed, 19 Aug 2026 21:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787174478; cv=none; b=BmI2iWCPMJK73fSQOFPxuqyc711I0YulrIGCxcZRVPd/U4AKST7/ykSL22CFlB9PTPr/JpJdPFQNEeMbiaw9egjVJ2dKWI5OOZE1yxGyB92yZ5CqzzTi97BjgrSbE78c+kBr7Yc9Xz/MdVFkRyA3qHwHws3d/8HYJ7JneNfAECE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787174478; c=relaxed/simple; bh=1sm5DJvN9JZq6zFJ3rudO9ha47L7zEKKAdXSC02I0m4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=inSu6FIvC6hyRYmydM054yKjkm7ZmSo/KTdUxVQxqMz3wSGUrSrCbqe81+DmDn+8xDbCxCGoqQCpK5yIA/5PdF64xd+u7tNu5n/auVv0HQCI07R/9cT39CTAAcrJxvZ8FQn3mBi9BDPAarjBH2XjebNBA84Im4moEdg7czCvL18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gNDEQ7Yj; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=hZbf4DBG; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gNDEQ7Yj"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="hZbf4DBG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1787174476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CqgpeVGn0RSIV25AilpufRbxuFATmlWL+zdwTTPB/B0=; b=gNDEQ7Yj7uPQ54t5/YSnKU7vgJwKAHpBXumRH1iQZseluqtnzlzCLtu64c6Gi3enIHvEV1 ymfY+tGbZzsyTrv0CbiJKGboMlUxQUaZbTEsyq3u7M6gcbbT/j4awdTZC5UBoninSuImsy Va4d+9j0CYSrGldwqsjkI0+2ULIKTAM= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-620-IRV-1ArbOdmYz1cndgkdmA-1; Wed, 19 Aug 2026 17:21:14 -0400 X-MC-Unique: IRV-1ArbOdmYz1cndgkdmA-1 X-Mimecast-MFC-AGG-ID: IRV-1ArbOdmYz1cndgkdmA_1787174474 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-936d067836eso190501385a.0 for ; Wed, 19 Aug 2026 14:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1787174474; x=1787779274; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=CqgpeVGn0RSIV25AilpufRbxuFATmlWL+zdwTTPB/B0=; b=hZbf4DBGYedr+3yZZYyeMRt3r5Aaohe8avIvv5fmQ/okL4NbmjAzqXyI3UPyiI2CbJ v+15mmfBBBPt0fXT1H2uXW1ZtxATaPVt8SznQ6ih7SIPJL7cZWHSyLXCCupwXXTnI1mx RZ3NwUlLrDOEgJkjf7BbqC3pG7FFsTFPZ09S1o3vgN3J7EQ6/oCDTPU/HtHPVoVrrHFs DMYXx9lThQeDV35VFqOtDtW8jg4FlxB24rcTaPD5/52zESGuVsT9nXNbPmSC0KGk5Njt HxbDuWhlNHOd4329n9s70c6AQzjQWq+XPUatwIOT4ydNkZpMRP2OH2Xnfjq8LIVkaP4u +wvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787174474; x=1787779274; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CqgpeVGn0RSIV25AilpufRbxuFATmlWL+zdwTTPB/B0=; b=D793DVtc9CtK3nL57+B1RTOcM4mgkj14n+yA39qBxSoFrQLjMyvyux42A8myN+M2zm IDY0fqGDKo3JEZy5fDYzR7s96XZUgFU2fHWH11gRKTPkiOWCp+i2g0FlHr6YqJ+4zp2a IFWSUsloSPj1MuDSpBPVseQdUDdO4ISRyY+h1P04W+yfLvZLzDFxcsi42nBT8TscxjFi HeeTpuI1Z+pswcHJhnWyD1OTmMy3jytY/bjRrtDbM0MmQ8UxHmS03D3OJTvpBTiKuzRG UjBPPk5UZ7crYtGfHDpP76rowbtkav3cP9/VeTxeYp7BsgKsqXCgbA14u3xM33dYN1Fr EBcQ== X-Forwarded-Encrypted: i=1; AHgh+RqgE/6hPUwwu1f+1Tr4vY2qv8upXSnp7Sr7XY8PKJPiphE1v/c0SwB+N/ksR0biZGrCQrk2uckhMls=@vger.kernel.org X-Gm-Message-State: AOJu0YwM5/z5vSKZ0Dha2TfUF4C+zkhgSvUHcGJlpxPY77f31xPTjZPu ApKpJRrL+YxQM9iEUqSIiw8SToUP2VImajcG8+L8ess3gUahuvgfcmpYrrPbz+5ZmkB4gii9kVZ NXGidJ4ROlJkdipmNIpkyyK8CVzuPzbEDqfRZd03Q7QOiBLSeJCY2eooyhin9yw== X-Gm-Gg: AR+sD133Wee4NF+lkhUtAg3lvTqIlAP2SJ7PYJ2j2r1/9OnqH8jR7x6G5knP4dnETaY m1NY1iTDJiq0gtlMP5pDWCMA8OXOLExLCTVEXKk25XPYd3crgkx1jphMv4fR6Tlna+0c0KCeDCs ixXmOVy2R+bgL+bhpVOPdb6TkjxZT+4wS0n+VaLHalaXizkURugOu9Vbo5gRATK+Lfumhmn9hIY WgwS7/bMfUYj6G3+OnnFpKHa5gkQgA2dgkA3v2gG2TZGnYwdQ4a0rfovBKNSkmOxdOOJeQiUllt 8nWS75LMEKiTM/SOXGphB3HpQep1PMnq6rPa1J+C7dY22VAkBWNTDu2MYswtec6EekmuzhWjy4X Y6uajOU4vlHRAoqgsPT8LT+wryE4yYPo/fvA= X-Received: by 2002:a05:620a:6010:b0:937:139d:592c with SMTP id af79cd13be357-9371e67ddfemr822211785a.38.1787174473978; Wed, 19 Aug 2026 14:21:13 -0700 (PDT) X-Received: by 2002:a05:620a:6010:b0:937:139d:592c with SMTP id af79cd13be357-9371e67ddfemr822206085a.38.1787174473413; Wed, 19 Aug 2026 14:21:13 -0700 (PDT) Received: from redhat.com (c-73-183-53-213.hsd1.pa.comcast.net. [73.183.53.213]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93720582980sm222991885a.33.2026.08.19.14.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2026 14:21:12 -0700 (PDT) Date: Wed, 19 Aug 2026 17:21:10 -0400 From: Brian Masney To: Geert Uytterhoeven Cc: Tero Kristo , Stephen Boyd , Brian Masney , Jerome Brunet , Nobuhiro Iwamatsu , Nuno Sa , Guenter Roeck , Michael Hennerich , Antoniu Miclaus , Jonathan Cameron , David Lechner , Andy Shevchenko , Sunny Luo , Xianwei Zhao , Mark Brown , Kees Cook , Kevin Hilman , Mathieu Dubois-Briand , 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 Subject: Re: [PATCH treewide 1/5] clk: ti: Make sure clk_init_data is fully initialized Message-ID: References: Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.4.0 (2026-06-19) On Wed, Aug 19, 2026 at 09:05:15PM +0200, Geert Uytterhoeven wrote: > 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. > > _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. > > 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. > > Fixes: 667f420c09f1417c ("clk: ti: mux: resolve parent clocks by DT index, not by name") > Closes: https://lore.kernel.org/CAMuHMdU3yVqoyHC4eNF2NuYo8wy+6ODLoYat4R71X99Mxc_=kw@mail.gmail.com > Signed-off-by: Geert Uytterhoeven Reviewed-by: Brian Masney