From: Thomas Gleixner <tglx@linutronix.de>
To: Andy Lutomirski <luto@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
X86 ML <x86@kernel.org>
Subject: Re: BUG: Sporadic crashes with current Linus tree
Date: Fri, 15 Sep 2017 09:09:27 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1709150907300.1890@nanos> (raw)
In-Reply-To: <CALCETrW0+0a5NDiSNH5vFEMixsstQ_-sb-wO=9cV5Fc38Hborg@mail.gmail.com>
On Thu, 14 Sep 2017, Andy Lutomirski wrote:
> On Thu, Sep 14, 2017 at 9:00 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Thu, 14 Sep 2017, Andy Lutomirski wrote:
> >> On Thu, Sep 14, 2017 at 12:38 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> >> > Hi!
> >> >
> >> > I've seen the following crash sporadically with commit 46c1e79fee:
> >> >
> >> > Have not seen that with 3882a734c19b, though I saw the PCID warnings on
> >> > that machine.
> >> >
> >> > I have no idea how to reproduce so bisecting is pretty much pointless. Any
> >> > idea what to do?
> >>
> >> Does tools/testing/selftests/x86/sigreturn_64 reproduce it?
> >
> > Will try tomorrow once I figured out how to compile that stuff. Invoking a
> > simple make in that directory fails.
>
> What's the error? It works for me.
gcc -m64 -o /home/tglx/work/kernel/linus/linux/tools/testing/selftests/x86/sysret_ss_attrs_64 -O2 -g -std=gnu99 -pthread -Wall sysret_ss_attrs.c thunks.S -lrt -ldl
/usr/bin/ld: /tmp/cco4vSkU.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
> >
> > Built it manually and when I run it tells: stack16 is too high
> >
> >> Ugh, weird. It kind of looks like current->thread.sp0 == NULL. I
> >> have a patch series that changes a bunch of that code in my git tree,
> >> but that's definitely not in Linus' tree.
> >
> > Right. The stupid thing is that the machine did not throw up all day
> > neither idle nor loaded. Still the same kernel which barfed tonight several
> > times.
>
> This is weird. The crashing process is rsyslogd, which should have
> been running for a long time and shouldn't have any strange state. I
> wonder if this is some kind of memory corruption. There would have to
> be corruption of thread_struct *and* some kind of issue causing IRET
> to fail, though.
>
> The attached patch could plausibly give some useful hint.
I'll put it on that machine and hope it will reproduce. Didn't die since
yesterday moring ....
Thanks,
tglx
next prev parent reply other threads:[~2017-09-15 7:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-14 7:38 Thomas Gleixner
2017-09-14 15:22 ` Andy Lutomirski
2017-09-14 16:00 ` Thomas Gleixner
2017-09-14 16:44 ` Andy Lutomirski
2017-09-15 7:09 ` Thomas Gleixner [this message]
2017-10-13 15:54 ` Dmitry Safonov
2017-10-13 17:22 ` Andy Lutomirski
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=alpine.DEB.2.20.1709150907300.1890@nanos \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=x86@kernel.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
all inboxes | Powered by JetHome®