From: Dario Faggioli <dario.faggioli@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Chao Peng <chao.p.peng@linux.intel.com>,
boris.ostrovsky@oracle.com, xen-devel@lists.xen.org,
keir@xen.org, Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [PATCH v3] x86: correct socket_cpumask allocation
Date: Fri, 10 Jul 2015 17:33:05 +0200 [thread overview]
Message-ID: <1436542385.22672.431.camel@citrix.com> (raw)
In-Reply-To: <559FFD3F020000780008F9D5@mail.emea.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 1519 bytes --]
On Fri, 2015-07-10 at 16:13 +0100, Jan Beulich wrote:
> >>> On 10.07.15 at 16:57, <dario.faggioli@citrix.com> wrote:
> > ...
> > (XEN) Preparing system for ACPI S5 state.
> > (XEN) Disabling non-boot CPUs ...
> > (XEN) Broke affinity for irq 9
> > (XEN) cpu=1 cpu_to_socket=4294967295
> > (XEN) ----[ Xen-4.6-unstable x86_64 debug=y Tainted: C ]----
> > (XEN) CPU: 0
> > (XEN) RIP: e008:[<ffff82d0801886c2>] cpu_smpboot_free+0x43/0x28b
> > ...
> >
> > I.e., it looks like phys_proc_id has already been reset to
> > XEN_INVALID_SOCKET_ID, as we're kind-of racing with
> > remove_siblinginfo().
>
> Right. We have
>
> cpu_down()
> stop_machine_run(take_cpu_down, ...)
> notifier_call_chain(&cpu_chain, CPU_DYING, ...)
> __cpu_disable()
> remove_siblinginfo()
> __cpu_die()
> notifier_call_chain(&cpu_chain, CPU_DEAD, ...)
> cpu_smpboot_free()
>
> I.e. a clear use-after-invalidate.
>
Exactly. I don't have a box with CAT, but on one, I expect similar
problems to happen in:
psr_cpu_fini()
cat_cpu_fini() --> unsigned int socket = cpu_to_socket(cpu);
as that also runs from CPU_DEAD. :-/
I guess this haven't seen any "let's shut the host down" kind of
testing...
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2015-07-10 15:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 14:23 [PATCH v3] x86: correct socket_cpumask allocation Chao Peng
2015-07-09 15:16 ` Andrew Cooper
2015-07-09 15:36 ` Boris Ostrovsky
2015-07-10 14:29 ` Dario Faggioli
2015-07-10 14:47 ` Andrew Cooper
2015-07-10 14:57 ` Dario Faggioli
2015-07-10 15:13 ` Jan Beulich
2015-07-10 15:25 ` Jan Beulich
2015-07-10 16:03 ` Dario Faggioli
2015-07-13 3:19 ` Chao Peng
2015-07-10 15:33 ` Dario Faggioli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436542385.22672.431.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=chao.p.peng@linux.intel.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).