[PW_SID:1057119] [v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration#1491
[PW_SID:1057119] [v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration#1491linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
Conversation
…stration UBSAN reported an out of bounds access during registration of the last two outputs. This out of bounds access occurs because space is only allocated in the hws array for two PLLs and the four output dividers that each has, but the defined IDs contain two DLLS and their two outputs each, which are not supported by the driver. The ID order is PLLs -> DLLs -> PLL outputs -> DLL outputs. Decrement the PLL output IDs by two while adding them to the array to avoid the problem. Fixes: d39fb17 ("clk: microchip: add PolarFire SoC fabric clock support") CC: stable@vger.kernel.org Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
|
Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration" |
PR for series 1057119 applied to workflow__riscv__fixes
Name: [v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1057119
Version: 1