[PATCH 0/7] lib: sbi: dbtr: improve parameter checks
Himanshu Chauhan
himanshu.chauhan at oss.qualcomm.com
Mon Nov 23 23:35:20 PST 2026
On Sat, Nov 21, 2026 at 12:11:12AM +0100, Heinrich Schuchardt wrote:
> 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
>
Hi Heinrich,
Most of the patches look good to me. One has a nit about function rename.
Also, all patches are missign fixes tag. You will need to send the patches.
You can keep the Reviewed-by tag for patches reviewed.
Thanks
Regards
Himanshu
> 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
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list