diff options
author | Radim Krčmář <rkrcmar@ventanamicro.com> | 2025-04-29 16:25:46 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-04-30 10:14:26 +0530 |
commit | 6b877fb53b8da84c69f0832c7f2a343239ba609e (patch) | |
tree | fa0396b2e47ea5cea2241f13cb967e9e97031c15 /lib/utils/cppc | |
parent | 009f77a9f06bcb5a3a6252b3333171adb8c84512 (diff) | |
download | opensbi-6b877fb53b8da84c69f0832c7f2a343239ba609e.zip opensbi-6b877fb53b8da84c69f0832c7f2a343239ba609e.tar.gz opensbi-6b877fb53b8da84c69f0832c7f2a343239ba609e.tar.bz2 |
lib: sbi_hart: reset sstateen and hstateen
Not resetting sstateen is a potential security hole, because U might be
able to access state that S does not properly context-switch.
Similar for hstateen with VS and HS.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Link: https://lore.kernel.org/r/20250429142549.3673976-6-rkrcmar@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions