aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorAlexander Antonov <[email protected]>2023-11-27 10:52:45 -0800
committerPeter Zijlstra <[email protected]>2023-11-30 14:29:52 +0100
commit1692cf434ba13ee212495b5af795b6a07e986ce4 (patch)
treeb251ee35f2aae0f02715997111b550d8f158a2c6 /rust/helpers.c
parent0f9e0d7928d8e88d57b1482effab70edb9741ce1 (diff)
perf/x86/intel/uncore: Fix NULL pointer dereference issue in upi_fill_topology()
Get logical socket id instead of physical id in discover_upi_topology() to avoid out-of-bound access on 'upi = &type->topology[nid][idx];' line that leads to NULL pointer dereference in upi_fill_topology() Fixes: f680b6e6062e ("perf/x86/intel/uncore: Enable UPI topology discovery for Icelake Server") Reported-by: Kyle Meyer <[email protected]> Signed-off-by: Alexander Antonov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Kan Liang <[email protected]> Tested-by: Kyle Meyer <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions