mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: schwidefsky@de.ibm.com
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
	Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
	linux-kernel@vger.kernel.org, ralf@linux-mips.org,
	macro@linux-mips.org, akpm@osdl.org, dev@sw.ru
Subject: Re: [PATCH] more sigkill priority fix
Date: Mon, 19 Sep 2005 02:08:04 -0700 (PDT)	[thread overview]
Message-ID: <20050919090804.55590180E1D@magilla.sf.frob.com> (raw)
In-Reply-To: Martin Schwidefsky's message of  Monday, 19 September 2005 10:57:44 +0200 <1127120264.4897.34.camel@localhost.localdomain>

> Does that mean that it is incorrect to deliver one signal at a time?

Whenever there are pending unblocked signals, they need to be delivered
before running any more user code.  If after setting up a signal handler
(and blocking signals for it), there is another unblocked signal pending,
then that must be delivered immediately.  This can mean terminating the
process before the handler ever runs, or it can mean setting up another
signal handler frame starting from the context of the first handler frame. 

The only change with this bug fix is that this reliably happens immediately.
Before, it would always happen pretty soon (except in a pathological case
with a bad stack).  That is, the next preemption, system call, fault, 
other trap, or external interrupt--anything that entered the kernel--would
check the pending signals properly before returning to user mode.  


Thanks,
Roland

      reply	other threads:[~2005-09-19  9:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07 16:24 Atsushi Nemoto
2005-09-16 16:17 ` Atsushi Nemoto
2005-09-19  8:24   ` Heiko Carstens
2005-09-19  8:46     ` Roland McGrath
2005-09-19  8:57       ` Martin Schwidefsky
2005-09-19  9:08         ` Roland McGrath [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=20050919090804.55590180E1D@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=akpm@osdl.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=dev@sw.ru \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@linux-mips.org \
    --cc=ralf@linux-mips.org \
    --cc=schwidefsky@de.ibm.com \
    /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®