linux/arch/s390/numa
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
..
Makefile s390/numa: add emulation support 2015-08-04 14:06:53 +02:00
mode_emu.c s390/numa: always use logical cpu and core ids 2016-12-07 07:22:41 +01:00
numa.c s390/numa: only set possible nodes within node_possible_map 2016-07-31 05:28:00 -04:00
numa_mode.h s390/numa: add emulation support 2015-08-04 14:06:53 +02:00
toptree.c s390/numa: add topology tree infrastructure 2015-08-03 18:40:26 +02:00
toptree.h s390/numa: add topology tree infrastructure 2015-08-03 18:40:26 +02:00