[PATCH v2] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

Peter Zijlstra peterz at infradead.org
Thu Feb 21 04:08:41 AEDT 2019


On Wed, Feb 20, 2019 at 05:55:20PM +0100, Laurent Vivier wrote:
> index 3f35ba1d8fde..372278605f0d 100644
> --- a/kernel/sched/topology.c
> +++ b/kernel/sched/topology.c
> @@ -1651,6 +1651,7 @@ void sched_init_numa(void)
>  	 */
>  	tl[i++] = (struct sched_domain_topology_level){
>  		.mask = sd_numa_mask,
> +		.flags = SDTL_OVERLAP,

This makes no sense what so ever. The numa identify node should not have
overlap with other domains.

Are you sure this is not because of the utterly broken powerpc nonsense
where they move CPUs between nodes?

>  		.numa_level = 0,
>  		SD_INIT_NAME(NODE)
>  	};
> -- 
> 2.20.1
> 


More information about the Linuxppc-dev mailing list