Heiko Carstens 307b3114ef s390/numa: always use logical cpu and core ids
The toptree algorithm uses the physical core ids to create a mapping
between cores and nodes (to_node_id array within emu_cores structure).
The core ids are used as an index into an array which size depends on
CONFIG_NR_CPUS. If the physical core ids are larger, this will result
in out-of-bounds write accesses.

Generate logical core ids instead to avoid this.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-12-07 07:22:41 +01:00
..
2016-10-19 08:39:47 -07:00
2016-10-21 17:26:24 +01:00
2016-10-21 19:09:29 -07:00
2016-10-19 08:39:47 -07:00
2016-10-27 18:43:42 -07:00
2016-10-19 08:39:47 -07:00
2016-10-21 19:09:29 -07:00
2016-10-10 11:31:19 -07:00
2016-10-21 19:13:00 -07:00
2016-10-19 08:39:47 -07:00
2016-10-19 08:39:47 -07:00