public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Bug in signal handling
Date: Wed, 05 Dec 2001 02:15:50 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590698805614@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805573@msgid-missing>

>>>>> On Tue, 4 Dec 2001 17:14:26 -0800, Richard Henderson <rth@redhat.com> said:

  Richard> On Mon, Dec 03, 2001 at 06:19:52PM -0800, David Mosberger
  Richard> wrote:
  >> Richard, I'm cc'ing you because it appears to me that Alpha Linux
  >> may have the same problem.

  Richard> I don't think it does:

  Richard> That is, after do_signal we restore registers and return.

  Richard> Unless you meant something else?

Oh, sorry, I was referring to teh *other* problem... ;-)

What I meant is that the check for re-scheduling
(current->need_resched) and signal deliverify (current->sigpending)
needs to be done with interrupts turned off, and the interrupts need
to be left off until user space is reached.  Otherwise, you could get
an interrupt which would wake up a higher priority task or post a
signal between the check and the return to user space.

I didn't see this interrupt disabling in the Alpha version of entry.S,
but I have to admit my Alpha assembly is getting quite rusty.

	--david


      parent reply	other threads:[~2001-12-05  2:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-02 22:05 [Linux-ia64] Bug in signal handling Andreas Schwab
2001-12-03  3:15 ` David Mosberger
2001-12-04 19:53 ` David Mosberger
2001-12-05  1:14 ` Richard Henderson
2001-12-05  2:15 ` 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=marc-linux-ia64-105590698805614@msgid-missing \
    --to=davidm@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