[PATCH v3 0/4] Miscellaneous PMU fixes

Atish Patra atishp at rivosinc.com
Wed Jul 20 14:50:31 PDT 2022


This series have a set of smaller PMU related fixes/improvements.
Most of the fixes are around possible buffer overrun errors in case of 
corrupt supervisor software.

Changes from v2->v3:
1. Improved patch 2.
2. Added RB tags.

Changes from v1->v2:
1. Split patch 1 to two patches with further improvements.
2. Added a fix for the issue pointed by Andrew.

Atish Patra (4):
lib: sbi: Fix counter index sanity check
lib: sbi: Add the bound check for events during config match
lib: sbi: Fix possible buffer overrun in counter validation
lib: sbi: Fix fw_event_map initialization

lib/sbi/sbi_pmu.c | 87 +++++++++++++++++++++++++++++++++++------------
1 file changed, 65 insertions(+), 22 deletions(-)

--
2.25.1




More information about the opensbi mailing list