Hi Yifan,

On 3/3/26 8:03 PM, Yifan Wu wrote:
> Currently, a fixed-size array is used to store the configurations for
> all discovered iMC counters, which has several issues:
> 
> 1. Fixed Overhead: The array is allocated a fixed size, even if the
> platform has fewer iMCs.
> 
> 2. Out-of-Bounds Access: On platforms with more iMC counters than
> MAX_IMCS, the num_of_imcs() function can return a larger number, leading
> to an array index out-of-bounds access.

Please note there are some fixes in progress that include addressing this:
https://lore.kernel.org/linux-patches/[email protected]/

Having this managed as a list sounds good to me. Could you please build
on top of the pending fixes? Also, please write your changelogs in imperative 
tone
to make it clear what this patch does versus what it builds on and also please 
follow
kernel coding style.

Reinette


Reply via email to