linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>,
	Gautham R Shenoy <ego@linux.vnet.ibm.com>,
	Nicholas Piggin <npiggin@gmail.com>,
	Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Subject: Re: Stack protector crash in pnv_smp_cpu_kill_self()
Date: Tue, 16 Oct 2018 09:23:41 -0500	[thread overview]
Message-ID: <20181016142340.GY29268@gate.crashing.org> (raw)
In-Reply-To: <87ftx6kowh.fsf@concordia.ellerman.id.au>

On Wed, Oct 17, 2018 at 12:21:50AM +1100, Michael Ellerman wrote:
> Christophe LEROY <christophe.leroy@c-s.fr> writes:
> 
> > Looks like a lack of initialisation of the canary for the non-boot CPUs 
> > on SMP, you applied this morning the patch I sent you for that.
> >
> > Is the patch in ?
> 
> Yeah it is.
> 
>   $ git log --oneline 4ffe713b7587 arch/powerpc/kernel/smp.c
>   8e8a31d7fd54 powerpc: Use cpu_smallcore_sibling_mask at SMT level on bigcores
>   425752c63b6f powerpc: Detect the presence of big-cores via "ibm, thread-groups"
>   7241d26e8175 powerpc/64: properly initialise the stackprotector canary on SMP.
> 
> 
> It only happens on a specific Power9 machine, not in sim, but it's 100%
> reproducible on that hardware.
> 
> The canary value has changed (?!).
> 
> The value in paca->canary and current->canary agree, but they don't
> match what's in the stack.
> 
> Clearly the idle code is doing something I don't understand :)

Did something actually corrupt the stack?


Segher

      reply	other threads:[~2018-10-16 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15 13:26 Stack protector crash in pnv_smp_cpu_kill_self() Michael Ellerman
2018-10-15 13:29 ` Christophe LEROY
2018-10-16 13:21   ` Michael Ellerman
2018-10-16 14:23     ` Segher Boessenkool [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=20181016142340.GY29268@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=abdhalee@linux.vnet.ibm.com \
    --cc=ego@linux.vnet.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    /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).