From: Paul Mackerras <paulus@samba.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: x86: SIGTRAP handling differences from 2.4 to 2.6
Date: Sun, 23 Nov 2003 09:19:54 +1100 [thread overview]
Message-ID: <16319.57610.204577.206796@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0311221044480.2379-100000@home.osdl.org>
Linus Torvalds writes:
> ... In 2.6.x, trying to block
> a thread-synchronous signal will just cause the process to be killed
> with that signal ("it can't be delivered, it can't be ignored, let's
> just tell the user")
Occasionally I have had a situation where the init process hits an
instruction fault (often because of a kernel bug, actually), such as
an access to a bad address. On embedded platforms we sometimes get
the situation where init uses floating-point instructions but the CPU
doesn't have floating point and the kernel has been compiled without
FP emulation. In these situations the system looks like it just
hangs, since init is doing nothing but take the same signal over and
over again.
In this case the signal would not actually be set to be blocked or
ignored but would end up being ignored because of the rule that "init
gets no signals it doesn't want". I would prefer to see
thread-synchronous signals kill init if they are not handled, so that
at least we get a panic with a message that says what went wrong
rather than the system just spinning its wheels uselessly.
Regards,
Paul.
next prev parent reply other threads:[~2003-11-22 22:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 18:29 Daniel Barlow
2003-11-22 19:02 ` Linus Torvalds
2003-11-22 22:19 ` Paul Mackerras [this message]
2003-11-22 22:40 ` Linus Torvalds
2003-11-23 6:21 ` H. Peter Anvin
2003-11-23 17:59 ` Linus Torvalds
2003-11-24 23:57 ` jw schultz
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=16319.57610.204577.206796@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®