Files
erofs-linux/arch/riscv/kernel
Mark Harris 5caae1deee riscv: hwprobe: Avoid uninitialized read in hwprobe_get_cpus()
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: e178bf146e ("RISC-V: hwprobe: Introduce which-cpus flag")
Signed-off-by: Mark Harris <[email protected]>
Reviewed-by: Nam Cao <[email protected]>
Reviewed-by: Michael Ellerman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paul Walmsley <[email protected]>
2026-07-15 11:12:40 -06:00
..
…
…
…
…
…
2026-04-04 18:42:44 -06:00
2026-04-04 18:42:44 -06:00
…
…
…
…
…