[lvc-project] [PATCH] perf/x86/uncore: avoid null-ptr-deref on error in pmu_alloc_topology

Fedor Pchelkin pchelkin at ispras.ru
Thu Dec 12 17:35:59 MSK 2024


On Sun, 04. Feb 16:48, Fedor Pchelkin wrote:
> If topology[die] array allocation fails then topology[die][idx] elements
> can't be accessed on error path.
> 
> Checking this on the error path probably looks more readable than
> decrementing the counter in the allocation loop.
> 
> Found by Linux Verification Center (linuxtesting.org).
> 
> Fixes: 4d13be8ab5d4 ("perf/x86/intel/uncore: Generalize IIO topology support")
> Signed-off-by: Fedor Pchelkin <pchelkin at ispras.ru>

Hi,

ping as the patch seems to have been missed. FWIW, it's still applicable to
the mainline.

--
Thanks,
Fedor



More information about the lvc-project mailing list