From: David Woodhouse <dwmw2@infradead.org>
To: Paul Mackerras <paulus@samba.org>
Cc: Andrew Morton <akpm@osdl.org>,
Matthew Grant <grantma@anathoth.gen.nz>,
linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: rt_sigsuspend() does not return EINTR on 2.6.16-rc2+
Date: Mon, 06 Mar 2006 11:30:02 +0000 [thread overview]
Message-ID: <1141644602.4110.37.camel@pmac.infradead.org> (raw)
In-Reply-To: <17420.7204.375377.273773@cargo.ozlabs.ibm.com>
On Mon, 2006-03-06 at 22:25 +1100, Paul Mackerras wrote:
> I have been looking at the equivalent code on powerpc. This looks to
> me like we aren't calling do_signal on the way back out of the system
> call to userspace on x86 when the _TIF_RESTORE_SIGMASK thread_info
> flag is set. I had a look at the code in arch/i386/kernel and I can't
> see why we wouldn't be getting to do_signal, but x86 assembly is not
> my strong point.
You can't see it because it's not in assembly -- it's in
do_notify_resume() in signal.c :)
> The fact that userspace is seeing the -ERESTARTNOHAND return value
> from the rt_sigsuspend strongly suggests that we aren't actually
> calling do_signal, though.
That's just because we do the ptrace stop _before_ do_signal now, just
as we already did for all other restartable syscalls. The signal really
is happening -- you can see the sigreturn().
--
dwmw2
next prev parent reply other threads:[~2006-03-06 11:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 1:26 Matthew Grant
2006-03-05 11:24 ` David Woodhouse
2006-03-06 8:28 ` Matthew Grant
2006-03-06 10:45 ` Andrew Morton
2006-03-06 11:25 ` Paul Mackerras
2006-03-06 11:30 ` David Woodhouse [this message]
2006-03-06 11:31 ` David Woodhouse
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=1141644602.4110.37.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=akpm@osdl.org \
--cc=grantma@anathoth.gen.nz \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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
all inboxes | Powered by JetHome®