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

2016-08-11 Thread Han, Huaitong
On Fri, 2016-08-12 at 13:50 +0800, Wanpeng Li wrote: > 2016-08-12 13:30 GMT+08:00 Huaitong Han : > > 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 poi

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

2016-08-11 Thread Wanpeng Li
2016-08-12 13:30 GMT+08:00 Huaitong Han : > 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 a

[PATCH] x86/x2apic: fix x2apic_cluster_probe null pointer

2016-08-11 Thread Huaitong Han
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: [] x2apic_cluster_probe+0x35/0x70 Sign