diff options
author | Alexander Antonov <[email protected]> | 2023-11-27 10:52:45 -0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-11-30 14:29:52 +0100 |
commit | 1692cf434ba13ee212495b5af795b6a07e986ce4 (patch) | |
tree | b251ee35f2aae0f02715997111b550d8f158a2c6 /rust/helpers.c | |
parent | 0f9e0d7928d8e88d57b1482effab70edb9741ce1 (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