public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: 2.6 unwind problem in kernel/sched.c
Date: Thu, 11 Mar 2004 08:14:51 +0000	[thread overview]
Message-ID: <16464.8187.46194.970020@napali.hpl.hp.com> (raw)
In-Reply-To: <3398.1078793456@kao2.melbourne.sgi.com>

>>>>> On Tue, 09 Mar 2004 11:50:56 +1100, Keith Owens <kaos@sgi.com> said:

  Keith> 2.6.4-rc2, gcc 3.2.3, binutils 2.14.90.0.4.  kernel/sched.c
  Keith> does schedule() -> context_switch() -> switch_to() followed
  Keith> by finish_task_switch().  finish_task_switch() calls
  Keith> finish_arch_switch() which enables interrupts.  If there is
  Keith> an interrupt pending, that interrupt runs at schedule+0x1090
  Keith> (ssm).

  Keith> At this point we are running on the new stack but cr_iip
  Keith> points into schedule() so the unwinder uses schedule's unwind
  Keith> data (b0, ar.pfs in r60, r61).  r60 and r61 are loaded from
  Keith> bsp on the new stack, they are completely wrong and the
  Keith> unwind is useless.

I must be missing something. After switch_to() you're fully switched
to the new task so I don't see why an interrupt during
finish_arch_switch() would mess up the backtrace.  Since CR.IIP points
to schedule() and since the interrupt handler will return to that
instruction after its done, the state at that instruction better be
valid.

	--david

      reply	other threads:[~2004-03-11  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09  0:50 2.6 unwind problem in kernel/sched.c Keith Owens
2004-03-11  8:14 ` David Mosberger [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=16464.8187.46194.970020@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.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