public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Parag Warudkar <parag.lkml@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Fenghua Yu <fenghua.yu@intel.com>,
	"H. Peter Anvin" <hpa@linux.intel.com>,
	Ingo Molnar <mingo@elte.hu>, Dmitry Torokhov <dtor@mail.ru>,
	linux-kernel@vger.kernel.org
Subject: Re: Resume Issues :Exec of NX page, Synaptics Botchup
Date: Mon, 23 May 2011 00:41:14 +0200	[thread overview]
Message-ID: <201105230041.14729.rjw@sisk.pl> (raw)
In-Reply-To: <alpine.DEB.2.02.1105221817100.1868@natty-nar>

On Monday, May 23, 2011, Parag Warudkar wrote:
> 
> On Sun, 22 May 2011, Linus Torvalds wrote:
> 
> > 
> > Hmm. The "Code: " line is just full of complete garbage, so I think
> > the real issue is that you really are trying to execute data.
> > 
> > And that in turn seems to be because "setup_disablecpuid()" has
> > actually been free'd, because it is marked as __init.
> > 
> > Which is fine at the initial bootup, but not so fine at resume time,
> > since it was free'd long long ago by then.
> > 
> > And it definitely shouldn' t be called at resume time. There's
> > something wrong there. That call trace is odd:
> > 
> >   Call Trace:
> >    [<ffffffff8148a119>] ? identify_cpu+0xd8/0x2d8
> >    [<ffffffff8148a32d>] identify_secondary_cpu+0x14/0x1b
> >    [<ffffffff8148bf0f>] smp_store_cpu_info+0x3c/0x3e
> >    [<ffffffff8148c2ef>] start_secondary+0xf7/0x1d2
> > 
> > because none of those should be calling "setup_disablecpuid()" at all.
> > 
> > Hmm. In fact, RIP is "setup_disablecpuid+0x40/0x40", ie it is one past
> > the _end_ of setup_disablecpuid.
> > 
> > I suspect that is actually "setup_smep()" that got called, an dthat
> > there was some garbage data in there that caused it to jump back a
> > bit.
> > 
> > Does the attached patch fix it?
> > 
> 
> Now I get a different call trace for the same NX error. (And Synaptics is 
> completely dead this time - not attributable to the patch, it was dumb 
> luck perhaps that it wored last time.)

Any chance to try with commit de5397ad5b9ad22e2401c4dacdf1bb3b19c05679
(x86, cpu: Enable/disable Supervisor Mode Execution Protection) reverted?

Rafael

  reply	other threads:[~2011-05-22 22:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 21:36 Resume Issues :Exec of NX page, Synaptics Botchup Parag Warudkar
2011-05-22 21:56 ` Linus Torvalds
2011-05-22 22:22   ` Parag Warudkar
2011-05-22 22:41     ` Rafael J. Wysocki [this message]
2011-05-23  2:49       ` Yu, Fenghua
2011-05-23 21:22         ` Rafael J. Wysocki
2011-05-23 21:31           ` Yu, Fenghua
2011-05-22 23:43     ` Linus Torvalds
2011-05-23  3:04       ` Parag Warudkar
2011-05-23 16:38         ` Dmitry Torokhov
2011-05-23 10:10       ` Ingo Molnar

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=201105230041.14729.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=dtor@mail.ru \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=parag.lkml@gmail.com \
    --cc=torvalds@linux-foundation.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