[PATCH] RISC-V: hwprobe: Fix vDSO SIGSEGV

Evan Green evan at rivosinc.com
Tue Oct 10 11:16:03 PDT 2023


On Tue, Oct 10, 2023 at 9:51 AM Andrew Jones <ajones at ventanamicro.com> wrote:
>
> A hwprobe pair key is signed, but the hwprobe vDSO function was
> only checking that the upper bound was valid. In order to help
> avoid this type of problem in the future, and in anticipation of
> this check becoming more complicated with sparse keys, introduce
> and use a "key is valid" predicate function for the check.
>
> Fixes: aa5af0aa90ba ("RISC-V: Add hwprobe vDSO function and data")
> Signed-off-by: Andrew Jones <ajones at ventanamicro.com>

Reviewed-by: Evan Green <evan at rivosinc.com>



More information about the linux-riscv mailing list