[PATCH 0/7] lib: sbi: dbtr: improve parameter checks
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Fri Nov 20 15:11:12 PST 2026
There a numerous places where OpenSBI's parameter checks don't match
the SBI specification (patches 1-5, 7). Patch 1/7 is a resend.
Patch 6 provides a missing return value.
Due to a bug kvm-unit-tests reports an error for patch 4.
Enabling an uninstalled trigger must not be allowed.
I am preparing a patch for kvm-unit-tests.
Heinrich Schuchardt (7):
lib: sbi: dbtr: check the flags parameter of SETUP_SHMEM
lib: sbi: dbtr: share trigger checks of install and update
lib: sbi: dbtr: check the whole shared memory range in SETUP_SHMEM
lib: sbi: dbtr: validate the trigger set of uninstall, enable, disable
lib: sbi: dbtr: keep type and chain of a trigger in UPDATE
lib: sbi: dbtr: report the failing index of UPDATE
lib: sbi: dbtr: reject a chain in the last entry of INSTALL
include/sbi/sbi_dbtr.h | 5 +-
lib/sbi/sbi_dbtr.c | 250 ++++++++++++++++++++++++++-------------
lib/sbi/sbi_ecall_dbtr.c | 4 +-
3 files changed, 174 insertions(+), 85 deletions(-)
--
2.53.0
More information about the opensbi
mailing list