diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-10-10 18:51:02 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-11-02 14:05:30 -0700 |
commit | e1c05b3bf80f829ced464bdca90f1dfa96e8d251 (patch) | |
tree | 6b08f6ae1397c02d9008c83458622caabeba8adb /arch/riscv/include/asm/cpufeature.h | |
parent | 653301077c1f3e18af33f7950014cda8b4bf4935 (diff) | |
download | linux-e1c05b3bf80f829ced464bdca90f1dfa96e8d251.tar.gz linux-e1c05b3bf80f829ced464bdca90f1dfa96e8d251.tar.bz2 linux-e1c05b3bf80f829ced464bdca90f1dfa96e8d251.zip |
RISC-V: hwprobe: Fix vDSO SIGSEGV
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@ventanamicro.com>
Reviewed-by: Evan Green <evan@rivosinc.com>
Link: https://lore.kernel.org/r/20231010165101.14942-2-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/cpufeature.h')
0 files changed, 0 insertions, 0 deletions