public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NMI between switch_mm and switch_to
@ 2009-07-28  4:49 Paul Mackerras
  2009-07-28  7:51 ` Peter Zijlstra
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Mackerras @ 2009-07-28  4:49 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: linux-kernel

Ben H. suggested there might be a problem if we get a PMU interrupt
and try to do a stack trace of userspace in the interval between when
we call switch_mm() from sched.c:context_switch() and when we call
switch_to().  If we get an NMI in that interval and do a stack trace
of userspace, we'll see the registers of the old task but when we peek
at user addresses we'll see the memory image for the new task, so the
stack trace we get will be completely bogus.

Is this in fact also a problem on x86, or is there some subtle reason
why it can't happen there?

Paul.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-03 10:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28  4:49 NMI between switch_mm and switch_to Paul Mackerras
2009-07-28  7:51 ` Peter Zijlstra
2009-07-28  9:23   ` Andi Kleen
2009-08-03  8:29   ` Ingo Molnar
2009-08-03 10:32     ` Paul Mackerras
2009-08-03 10:43       ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox