OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Reset more security-related CSRs
@ 2025-04-15 13:19 Radim Krčmář
  2025-04-15 13:19 ` [PATCH 1/8] lib: sbi: add 64 bit csr macros Radim Krčmář
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Radim Krčmář @ 2025-04-15 13:19 UTC (permalink / raw)
  To: opensbi

Hello,

there is a possible security hole in the initial state of many CSRs that
control isolation between privilege levels.

[1,2/8] are making the rest easier to implement.
The vulnerabilities get fixed in [3,4,8/8].
[5/8] fixes a loosely-related opensbi bug.

Radim Krčmář (8):
  lib: sbi: add 64 bit csr macros
  lib: sbi: use 64 bit csr macros
  lib: sbi_hart: reset hstatus
  lib: sbi_hart: reset sstateen and hstateen
  lib: sbi_hart: fix sstateen emulation
  lib: sbi_hart: reset mstateen0
  lib: sbi_hart: add Ssstateen extension
  lib: sbi_hart: properly reset Ssstateen

 include/sbi/riscv_asm.h | 21 +++++++++++++++++++
 include/sbi/sbi_hart.h  |  4 +++-
 lib/sbi/sbi_hart.c      | 46 +++++++++++++++++++++++++++--------------
 lib/sbi/sbi_timer.c     |  7 +------
 4 files changed, 55 insertions(+), 23 deletions(-)

-- 
2.48.1


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-04-29  5:39 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 13:19 [PATCH 0/8] Reset more security-related CSRs Radim Krčmář
2025-04-15 13:19 ` [PATCH 1/8] lib: sbi: add 64 bit csr macros Radim Krčmář
2025-04-28 12:28   ` Anup Patel
2025-04-28 13:48     ` Radim Krčmář
2025-04-15 13:19 ` [PATCH 2/8] lib: sbi: use " Radim Krčmář
2025-04-28 12:29   ` Anup Patel
2025-04-15 13:19 ` [PATCH 3/8] lib: sbi_hart: reset hstatus Radim Krčmář
2025-04-28 12:27   ` Anup Patel
2025-04-15 13:19 ` [PATCH 4/8] lib: sbi_hart: reset sstateen and hstateen Radim Krčmář
2025-04-28 12:29   ` Anup Patel
2025-04-15 13:19 ` [PATCH 5/8] lib: sbi_hart: fix sstateen emulation Radim Krčmář
2025-04-28 12:34   ` Anup Patel
2025-04-15 13:19 ` [PATCH 6/8] lib: sbi_hart: reset mstateen0 Radim Krčmář
2025-04-28 12:35   ` Anup Patel
2025-04-15 13:19 ` [PATCH 7/8] lib: sbi_hart: add Ssstateen extension Radim Krčmář
2025-04-28 12:38   ` Anup Patel
2025-04-28 13:47     ` Radim Krčmář
2025-04-29  5:30       ` Anup Patel
2025-04-15 13:19 ` [PATCH 8/8] lib: sbi_hart: properly reset Ssstateen Radim Krčmář
2025-04-28 12:39   ` Anup Patel
2025-04-28 13:44     ` Radim Krčmář
2025-04-28 12:41 ` [PATCH 0/8] Reset more security-related CSRs Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox