FAILED: Patch "clk: rs9: Reserve 8 struct clk_hw slots for for 9FGV0841" failed to apply to 6.12-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 5ec820fc28d0b8a0f3890d476b1976f20e8343cc Mon Sep 17 00:00:00 2001
From: Marek Vasut <[email protected]>
Date: Thu, 22 Jan 2026 00:26:38 +0100
Subject: [PATCH] clk: rs9: Reserve 8 struct clk_hw slots for for 9FGV0841
The 9FGV0841 has 8 outputs and registers 8 struct clk_hw, make sure there are 8 slots for those newly registered clk_hw pointers, else there is going to be out of bounds write when pointers 4..7 are set into struct rs9_driver_data .clk_dif[4..7] field.
Since there are other structure members past this struct clk_hw pointer array, writing to .clk_dif[4..7] fields corrupts both the struct rs9_driver_data content and data around it, sometimes without crashing the kernel. However, the kernel does surely crash when the driver is unbound or during suspend.
Fix this, increase the struct clk_hw pointer array size to the maximum output count of 9FGV0841, which is the biggest chip that is supported by this driver.
--- drivers/clk/clk-renesas-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk-renesas-pcie.c +1 -1
@@ -64,7 +64,7 @@ struct rs9_driver_data {struct i2c_client *client;struct regmap *regmap;const struct rs9_chip_info *chip_info; -struct clk_hw *clk_dif[4 ]; +struct clk_hw *clk_dif[8 ];u8 pll_amplitude;u8 pll_ssc;u8 clk_dif_sr;
Signature · 1 line
2.51.0
Quoted 4 lines · Sasha Levin
The patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
The cherry-pick worked out cleanly on 6.12.74, I also don't see anything that would prevent the patch from being applied, is there maybe another backport in the pipeline that is interfering with the application ?