From: Ryan Brue <ryanbrue.dev@gmail.com>
To: akkun11.open@gmail.com
Cc: angelogioacchino.delregno@collabora.com, bmasney+clk@redhat.com,
conor+dt@kernel.org, devicetree@vger.kernel.org,
jbrunet+clk@baylibre.com, krzk+dt@kernel.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
matthias.bgg@gmail.com, miles.chen@mediatek.com, robh@kernel.org,
sboyd@kernel.org, wenst@chromium.org
Subject: Re: [PATCH linux-next 14/33] clk: mediatek: Fix MT8173 onecell IDs after common probe migration
Date: Wed, 2 Dec 2026 15:56:21 -0600 [thread overview]
Message-ID: <f94da2e2-6be3-4f14-8e3a-9bae5d215570@gmail.com> (raw)
In-Reply-To: <20261129014745.3375923-15-akkun11.open@gmail.com>
On Sun, Nov 29, 2026 at 10:47:26AM +0900, Akari Tsuyukusa wrote:
> Migrating the MT8173 infracfg clock driver to the common probe/remove
> helpers stopped using CLK_*_NR for onecell data allocation, causing
> a out-of-bounds registration due to an missing dummy slot for ID 0.
Tested on MT8173 (Amazon Fire HD 10 2017): v7.4-rc5 with board patches
and the mtk-clk-for-v7.5 tag merged in, KASAN on, two boots each way.
Without this patch, KASAN reports an 8-byte out-of-bounds read and write
in mtk_clk_register_cpumuxes() at boot, just past the 120-byte clk_data.
The A72 clock can't be looked up ("of_clk_hw_onecell_get: invalid index
14"), so mtk-cpufreq fails to probe and there is no cpufreq on any CPU.
The A72 cores stay at 851.5 MHz.
With the patch there are no KASAN reports, both cpufreq policies come
up, and the A72 cluster goes up to 1.807 GHz under load, the same as on
7.4-rc5 without the tag.
8c9dacbf42f1 is in the mtk-clk-for-v7.5 pull, so without this fix MT8173
boards will lose cpufreq in 7.5.
Tested-by: Ryan Brue <ryanbrue.dev@gmail.com> # MT8173, amazon-suez
next prev parent reply other threads:[~2026-12-02 21:56 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 1:47 [PATCH linux-next 00/33] clk: mediatek: Fix regressions and pre-existing bugs Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 01/33] clk: mediatek: Skip common MMIO mapping for PLL-only controllers Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 02/33] clk: mediatek: Fix NULL pointer dereference in pdev remove Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 03/33] clk: mediatek: Drop unused shared_io flag Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 04/33] clk: mediatek: Pass node to of_platform_populate() in common probe Akari Tsuyukusa
2026-11-29 1:58 ` sashiko-bot
2026-11-29 1:47 ` [PATCH linux-next 05/33] clk: mediatek: Fix MFG mux notifier use-after-free Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 06/33] clk: mediatek: mt2701: Keep CPU mux descriptors alive Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 07/33] clk: mediatek: mt8167: Keep muxes " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 08/33] clk: mediatek: mt8516: Keep clock " Akari Tsuyukusa
2026-11-29 1:54 ` sashiko-bot
2026-11-29 1:47 ` [PATCH linux-next 09/33] clk: mediatek: Reserve missing MT2701 audsys clock IDs Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 10/33] clk: mediatek: Fix MT2701 onecell IDs after common probe migration Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 11/33] clk: mediatek: Fix MT6779 " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 12/33] clk: mediatek: Fix MT6797 " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 13/33] clk: mediatek: Fix MT8135 " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 14/33] clk: mediatek: Fix MT8173 " Akari Tsuyukusa
2026-12-02 21:56 ` Ryan Brue [this message]
2026-11-29 1:47 ` [PATCH linux-next 15/33] dt-bindings: clock: mt2701: Drop unused _NR macros Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 16/33] dt-bindings: clock: mt2712: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 17/33] dt-bindings: clock: mt6765: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 18/33] dt-bindings: clock: mt6779: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 19/33] dt-bindings: clock: mt6795: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 20/33] dt-bindings: clock: mt6797: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 21/33] dt-bindings: clock: mt7622: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 22/33] dt-bindings: clock: mt7629: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 23/33] dt-bindings: clock: mt7988: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 24/33] dt-bindings: clock: mt8135: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 25/33] dt-bindings: clock: mt8167: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 26/33] dt-bindings: clock: mt8173: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 27/33] dt-bindings: clock: mt8183: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 28/33] dt-bindings: clock: mt8186: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 29/33] dt-bindings: clock: mt8188: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 30/33] dt-bindings: clock: mt8192: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 31/33] dt-bindings: clock: mt8195: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 32/33] dt-bindings: clock: mt8365: " Akari Tsuyukusa
2026-11-29 1:47 ` [PATCH linux-next 33/33] dt-bindings: clock: mt8516: " Akari Tsuyukusa
2026-12-01 2:56 ` [PATCH linux-next 00/33] clk: mediatek: Fix regressions and pre-existing bugs Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f94da2e2-6be3-4f14-8e3a-9bae5d215570@gmail.com \
--to=ryanbrue.dev@gmail.com \
--cc=akkun11.open@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=miles.chen@mediatek.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox