public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: signal dequeue ...
Date: Fri, 22 Jun 2001 13:31:02 -0700	[thread overview]
Message-ID: <3B33AB06.A421381@mvista.com> (raw)
In-Reply-To: <XFMail.20010622115917.davidel@xmailserver.org>

Davide Libenzi wrote:
> 
> On 22-Jun-2001 george anzinger wrote:
> > Davide Libenzi wrote:
> >>
> >> I'm just trying to figure out the reason why signal must be delivered one at
> >> a
> >> time instead of building a frame with multiple calls with only the last one
> >> chaining back to the kernel.
> >> All previous calls instead of calling the stub that jump back to the kernel
> >> will call a small stub like ( Ix86 ) :
> >>
> >> stkclean_stub:
> >>         add $frame_size, %esp
> >>         cmp %esp, $end_stubs
> >>         jae $sigreturn_stub
> >>         ret
> >> sigreturn_stub:
> >>         mov __NR_sigreturn, %eax
> >>         int $0x80
> >> end_stubs:
> >>
> >> ...
> >> | context1
> >> * $stkclean_stub
> >> * sigh1_eip
> >> | context0
> >> * $stkclean_stub
> >> * sigh0_eip
> >>
> >> When sigh0 return, it'll call stkclean_stub that will clean context0 and if
> >> we're at the end it'll call the jump-back-to-kernel stub, otherwise the
> >> it'll
> >> execute the  ret  the will call sigh1 handler ... and so on.
> >>
> > And if the user handler does a long_jmp?
> 
> But if the user handler does a long_jump even the old stub will be missed,
> isn't it ?

Right, but the remaining signals are still pending.  In your method, the
kernel doesn't know which were and which were not actually delivered.

George

  reply	other threads:[~2001-06-22 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-22 18:05 signal dequeue Davide Libenzi
2001-06-22 18:42 ` george anzinger
2001-06-22 18:59   ` Davide Libenzi
2001-06-22 20:31     ` george anzinger [this message]
     [not found] <0C01A29FBAE24448A792F5C68F5EA47D120354@nasdaq.ms.ensim.com>
2001-06-22 21:58 ` Paul Menage
2001-06-22 22:16   ` Davide Libenzi

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=3B33AB06.A421381@mvista.com \
    --to=george@mvista.com \
    --cc=davidel@xmailserver.org \
    --cc=linux-kernel@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