[PATCH] lib: sbi: reject PMU skip-match counter class mismatches

Pengpeng Hou hppiscas at 163.com
Wed Oct 14 02:01:53 PDT 2026


Hi Sebastian,

Thanks for testing both directions and for the Tested-by.

Yes, ctr_idx - num_hw_ctrs is evaluated as unsigned and wraps; it does
not produce a negative array index. The class check rejects either
mismatch before it reaches the counter-specific operations.

Thanks,
Pengpeng




More information about the opensbi mailing list