Skip to content

[PW_SID:1126968] [v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()#2275

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1126968
Closed

[PW_SID:1126968] [v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()#2275
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1126968

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1126968 applied to workflow__riscv__fixes

Name: [v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1126968
Version: 2

When cpusetsize < cpumask_size(), hwprobe_get_cpus() did not fully
initialize its copy of the cpu mask, which could cause non-deterministic
results from the riscv_hwprobe syscall on a system with more than 8 CPUs
when the supplied cpu mask is empty.  Address this by fully initializing
the cpu mask.

Fixes: e178bf1 ("RISC-V: hwprobe: Introduce which-cpus flag")
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Michael Ellerman <mpe@kernel.org>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 142.48 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1379.97 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1677.19 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.54 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.14 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.78 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.41 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
kdoc
Desc: Detects for kdoc errors
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.32 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw1126968 branch July 14, 2026 04:34
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