Re: [Xen-devel] [PATCH] x86: avoid invalid phys_proc_id reference

2015-07-13 Thread Chao Peng
On Mon, Jul 13, 2015 at 09:55:39AM +0100, Jan Beulich wrote: > >>> On 13.07.15 at 05:36, wrote: > > phys_proc_id is invalidated in remove_siblinginfo() which gets called > > before cpu_smpboot_free(). This means calling cpu_to_socket(cpu) in > > cpu_smpboot_free() is not possible to be correct. >

Re: [Xen-devel] [PATCH] x86: avoid invalid phys_proc_id reference

2015-07-13 Thread Jan Beulich
>>> On 13.07.15 at 05:36, wrote: > phys_proc_id is invalidated in remove_siblinginfo() which gets called > before cpu_smpboot_free(). This means calling cpu_to_socket(cpu) in > cpu_smpboot_free() is not possible to be correct. > > This patch invokes remove_siblinginfo() in cpu_smpboot_free(), > i

[Xen-devel] [PATCH] x86: avoid invalid phys_proc_id reference

2015-07-12 Thread Chao Peng
phys_proc_id is invalidated in remove_siblinginfo() which gets called before cpu_smpboot_free(). This means calling cpu_to_socket(cpu) in cpu_smpboot_free() is not possible to be correct. This patch invokes remove_siblinginfo() in cpu_smpboot_free(), immediately after the use for cpu_to_socket(cpu