diff options
| author | Deepak Gupta <debug@rivosinc.com> | 2025-11-24 14:03:39 -0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2025-12-26 16:22:09 +0530 |
| commit | fbb5fe811d453c11dbcacf8cfe2fa7e445834475 (patch) | |
| tree | e42cbe689da22a1dfcc3f66843c54a4db19167b4 /lib/utils/cppc | |
| parent | 73183a60ab5d2eead290965b783eb1a170804741 (diff) | |
| download | opensbi-fbb5fe811d453c11dbcacf8cfe2fa7e445834475.zip opensbi-fbb5fe811d453c11dbcacf8cfe2fa7e445834475.tar.gz opensbi-fbb5fe811d453c11dbcacf8cfe2fa7e445834475.tar.bz2 | |
lib: sbi: expected trap must always clear MPRV
Expected trap must always clear MPRV. Currently it doesn't. There is a
security issue here where if firmware was doing ld/st with MPRV=1 and
since there would be a expected trap, opensbi will continue to run as
MPRV=1. Security impact is DoS where opensbi will just keep trapping.
Signed-off-by: Deepak Gupta <debug@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20251124220339.3695940-1-debug@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions
