Re: [PATCH] x86/x2apic: fix x2apic_cluster_probe null pointer

From: Wanpeng Li
Date: Fri Aug 12 2016 - 01:50:35 EST


2016-08-12 13:30 GMT+08:00 Huaitong Han <huaitong.han@xxxxxxxxx>:
> percpu cpus_in_cluster is a pointer with CONFIG_CPUMASK_OFFSTACK, cpu_in_cluster
> is not alloced memory before x2apic_prepare_cpu is invoked, so cpumask_set_cpu
> would get a NULL pointer bug:
> BUG: unable to handle kernel NULL pointer dereference at (null)
> IP: [<ffffffff8105ac25>] x2apic_cluster_probe+0x35/0x70

Could you try this? https://lkml.org/lkml/2016/8/4/345

Regards,
Wanpeng Li