From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4CC7606A32C for ; Fri, 27 Nov 2026 19:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=tJXJapd9; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OF3EfNgR DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=A8pE+QEy1Xnbw5gXMkwV6/rX+ygQUXtk9SWSNR/TP+E=; b=tJXJapd9sR3e+0cFZohxKsLjsh PPi6QJONh2AsjwDpKxOT1khGZq3OUVPpu250oUd7RGbhMGIxdCoTMbkPdlL308NVXzU4QfttLPlgW jai/lrUoDqvqQgOSZyV7raB/fHCvSpTljn0lAaaQELa11EtyesV8R5oXeSIqMDZ2v6hOQl/GWCRA7 C36jh2lQ5M0qM7q1mV1smGj6iTzWleIgwNu3rNws8K+CLsY/ny4iuItlnIwAobP8FzThS50lO6D1a SL8IdHBodZ1WOktvBkRV54a/No9DToxFO5KUKgjTBVLNzx0GLe1YL4kRgg+GXhGGjRTlB1mSKjrWB Ov6Qiw7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xX1ad-0000000HXwk-19Aq; Fri, 27 Nov 2026 19:26:35 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xX1aZ-0000000HXwL-0anh; Fri, 27 Nov 2026 19:26:31 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7ED1845528; Fri, 27 Nov 2026 19:26:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B31B11F00899; Fri, 27 Nov 2026 19:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795807589; bh=0Bj2HfA+RacmXf4tT16y1Nvz3cM+4pVUyjdUHKbVS6w=; h=From:To:Cc:Subject:Date; b=OF3EfNgRN+x5+FYr5KfqcWvf0pbWlwgu+0wy2XuPXwrMt+6BFUZmr7IYsMxke1tAR 2H8siDyj/38n9CKtkV67H4YremSwVVgxOnjHAr+9vMeaE1GtIwYIQFOR+GranT1NZW Z5rGvx0cm7bFnbSxl1BHRpCy247QHU65ILaXuRcKrAtczFR5DBelI0c+GyMqHLSF6s go8ygOgIiF4g/Ni+xoE5tVBPdpNbs+fXk6ahqf7HS6wGdBpBLyyojE0YAW5Nsp1iaI voET/Ktf0U33MxcyO0+8ZMT9aQVAzF9sb0h/TIwQi1dwFyN5Mf+8geIV26Y31p5Xzm oHrdZ0DzRtdlg== From: Lee Jones To: lee@kernel.org, Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, "Thomas Richard (TI)" , Andrea della Porta , Brian Masney , Conor Dooley , Dominique Belhachemi , Doug Anderson , Emil Renner Berthing , Florian Fainelli , Hal Feng , Jerome Brunet , Jonathan Hunter , Joshua Peisach , Linus Walleij , linux-clk@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, Michael Turquette , Michal Wilczynski , Naushir Patuck , Nishanth Menon , Palmer Dabbelt , Prashant Gaikwad , Rob Herring , Rosen Penev , Santosh Shilimkar , Stephen Boyd , Tero Kristo , Thierry Reding , Thomas Abraham , Timo Alho , Tony Lindgren , Wentao Liang , Xingyu Wu Subject: [PATCH 00/10] clk: Fix OOB writes, UAFs, ERR_PTR dereferences, and rate-calc bugs (batch 2) Date: Fri, 27 Nov 2026 19:25:24 +0000 Message-ID: <20261127192620.3443537-1-lee@kernel.org> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog X-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 These issues were reported by Sashiko. This is batch 2 of Common Clock Framework fixes, based on clk/clk-next. It addresses output array OOB writes in ti/fapll, ERR_PTR dereferences and double-unregister in tegra/bpmp, notifier UAFs and global array mutation in starfive/jh7110 and rockchip/cpu, rate and parent lookup bugs in rp1, and allocation error handling in sci-clk and icst. Cc: "Thomas Richard (TI)" Cc: Andrea della Porta Cc: Brian Masney Cc: Conor Dooley Cc: Dominique Belhachemi Cc: Doug Anderson Cc: Emil Renner Berthing Cc: Florian Fainelli Cc: Hal Feng Cc: Heiko Stuebner Cc: Jerome Brunet Cc: Jonathan Hunter Cc: Joshua Peisach Cc: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org Cc: linux-clk@vger.kernel.org Cc: linux-omap@vger.kernel.org Cc: linux-rockchip@lists.infradead.org Cc: linux-tegra@vger.kernel.org Cc: Michael Turquette Cc: Michal Wilczynski Cc: Naushir Patuck Cc: Nishanth Menon Cc: Palmer Dabbelt Cc: Prashant Gaikwad Cc: Rob Herring Cc: Rosen Penev Cc: Santosh Shilimkar Cc: Stephen Boyd Cc: Tero Kristo Cc: Thierry Reding Cc: Thomas Abraham Cc: Timo Alho Cc: Tony Lindgren Cc: Wentao Liang Cc: Xingyu Wu Lee Jones (10): clk: ti: fapll: Fix output clock array allocation and bounds check clk: tegra: bpmp: Drop manual clock unregister on provider failure clk: starfive: jh7110-sys: Use devres for PLL0 clock and notifier clk: starfive: jh7110: Duplicate top clock bulk arrays per device clk: rockchip: cpu: Allocate rate_table before registering notifier clk: tegra: bpmp: Skip ERR_PTR entries in tegra_bpmp_clk_of_xlate() clk: rp1: Propagate determine_rate() return value for PLL dividers clk: rp1: Reference secondary PLL divider clk_hw in parent tables clk: keystone: sci-clk: Check allocation failure before copying clock array clk: versatile: icst: Check kasprintf() and put parent node on error drivers/clk/clk-rp1.c | 32 +++++++++---------- drivers/clk/keystone/sci-clk.c | 8 +++-- drivers/clk/rockchip/clk-cpu.c | 26 +++++++-------- .../clk/starfive/clk-starfive-jh7110-isp.c | 9 ++++-- .../clk/starfive/clk-starfive-jh7110-sys.c | 5 +-- .../clk/starfive/clk-starfive-jh7110-vout.c | 9 ++++-- drivers/clk/tegra/clk-bpmp.c | 14 +------- drivers/clk/ti/fapll.c | 13 +++++--- drivers/clk/versatile/clk-icst.c | 5 +++ 9 files changed, 66 insertions(+), 55 deletions(-) -- 2.56.1.839.g22a8290db9-goog _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip