Re: [PATCH 2/2] tools/perf: Fix out of bound access to cpu mask array

2022-09-04 Thread R Nageswara Sastry
On 05/09/22 10:24 am, Athira Rajeev wrote: The cpu mask init code in "record__mmap_cpu_mask_init" function access "bits" array part of "struct mmap_cpu_mask". The size of this array is the value from cpu__max_cpu().cpu. This array is used to contain the cpumask value for each cpu. While settin

[PATCH 2/2] tools/perf: Fix out of bound access to cpu mask array

2022-09-04 Thread Athira Rajeev
The cpu mask init code in "record__mmap_cpu_mask_init" function access "bits" array part of "struct mmap_cpu_mask". The size of this array is the value from cpu__max_cpu().cpu. This array is used to contain the cpumask value for each cpu. While setting bit for each cpu, it calls "set_bit" function