[PATCH v2 0/2] lib: sbi_ecall_hsm: Reject oversized hart IDs
Shibo Zhu
3499129952 at qq.com
Thu Oct 29 20:05:01 PDT 2026
Reject RV64 HSM target hart IDs which cannot be represented by OpenSBI's
internal u32 hart-ID type, and add standalone SBIUnit regression coverage.
Changes in v2:
- Split the HSM fix and SBIUnit coverage into separate patches.
- Build the HSM SBIUnit test as a standalone object.
- Invoke the registered HSM extension handler instead of including the
test source from sbi_ecall_hsm.c.
Shibo Zhu (2):
lib: sbi_ecall_hsm: Reject oversized hart IDs
lib: tests: Add HSM hart ID validation test
lib/sbi/sbi_ecall_hsm.c | 5 ++++
lib/sbi/tests/objects.mk | 3 +++
lib/sbi/tests/sbi_ecall_hsm_test.c | 41 ++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 lib/sbi/tests/sbi_ecall_hsm_test.c
base-commit: 7a7a60dc87a41c79fb63d5972943e9d8fe4abf77
--
2.43.0
More information about the opensbi
mailing list