Skip to content

Comments

[PW_SID:1057119] [v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration#1491

Open
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1057119
Open

[PW_SID:1057119] [v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration#1491
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1057119

Conversation

@linux-riscv-bot
Copy link

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

…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>
@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 139.92 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1116.66 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1621.09 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 28.56 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 29.74 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.20 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
kdoc
Desc: Detects for kdoc errors
Duration: 0.99 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v1] clk: microchip: mpfs-ccc: fix out of bounds access during output registration"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants