Re: [PATCH V2 04/13] selftests/resctrl: Protect against array overrun during iMC config parsing

2024-09-30 Thread Reinette Chatre
Hi Ilpo, On 9/30/24 6:35 AM, Ilpo Järvinen wrote: > On Thu, 12 Sep 2024, Reinette Chatre wrote: > >> The MBM and MBA tests need to discover the event and umask with which to >> configure the performance event used to measure read memory bandwidth. >> This is done by parsing the >> /sys/bus/event_

Re: [PATCH V2 04/13] selftests/resctrl: Protect against array overrun during iMC config parsing

2024-09-30 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > The MBM and MBA tests need to discover the event and umask with which to > configure the performance event used to measure read memory bandwidth. > This is done by parsing the > /sys/bus/event_source/devices/uncore_imc_/events/cas_count_read > file for

[PATCH V2 04/13] selftests/resctrl: Protect against array overrun during iMC config parsing

2024-09-12 Thread Reinette Chatre
The MBM and MBA tests need to discover the event and umask with which to configure the performance event used to measure read memory bandwidth. This is done by parsing the /sys/bus/event_source/devices/uncore_imc_/events/cas_count_read file for each iMC instance that contains the formatted output: