Commit 1692cf4
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: f680b6e ("perf/x86/intel/uncore: Enable UPI topology discovery for Icelake Server")
Reported-by: Kyle Meyer <kyle.meyer@hpe.com>
Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Tested-by: Kyle Meyer <kyle.meyer@hpe.com>
Link: https://lore.kernel.org/r/20231127185246.2371939-2-alexander.antonov@linux.intel.com1 parent 0f9e0d7 commit 1692cf4
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5596 | 5596 | | |
5597 | 5597 | | |
5598 | 5598 | | |
5599 | | - | |
| 5599 | + | |
5600 | 5600 | | |
5601 | 5601 | | |
5602 | 5602 | | |
| |||
5614 | 5614 | | |
5615 | 5615 | | |
5616 | 5616 | | |
| 5617 | + | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
5617 | 5622 | | |
5618 | | - | |
| 5623 | + | |
5619 | 5624 | | |
5620 | 5625 | | |
5621 | 5626 | | |
| |||
5626 | 5631 | | |
5627 | 5632 | | |
5628 | 5633 | | |
| 5634 | + | |
5629 | 5635 | | |
5630 | 5636 | | |
5631 | 5637 | | |
| |||
0 commit comments