mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Joris van Rantwijk <joris@eljakim.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.7 Oops in signal handling with ptrace
Date: Sun, 20 Jun 2004 22:11:47 -0700	[thread overview]
Message-ID: <20040620221147.7c3086b7.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0406191611450.12748@eljakim.netsystem.nl>

Joris van Rantwijk <joris@eljakim.nl> wrote:
>
> Linux 2.6.7 (and 2.6.6) gives an Oops in specific situations
>  related to signal handling and ptracing. The Oops is triggered when
>  a process which is being ptraced with TRACESYSGOOD, receives signals
>  in a very specific pattern. This Oops is perfectly reproducable.

Joris, Linus has merged a patch similar to yours which should address this
problem.  Many thanks for tracking this down.



From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
To: bk-commits-head@vger.kernel.org
Subject: Follow 2.4.x semantics for in-kernel signal sending.
Date: Sun, 20 Jun 2004 16:56:58 +0000
Sender: bk-commits-head-owner@vger.kernel.org

 ChangeSet 1.1769, 2004/06/20 09:56:58-07:00, torvalds@ppc970.osdl.org

 	Follow 2.4.x semantics for in-kernel signal sending.



  signal.c |    7 +++++++
  1 files changed, 7 insertions(+)


 diff -Nru a/kernel/signal.c b/kernel/signal.c
 --- a/kernel/signal.c	2004-06-20 11:07:49 -07:00
 +++ b/kernel/signal.c	2004-06-20 11:07:49 -07:00
 @@ -1197,6 +1197,13 @@
  	unsigned long flags;
  
  	/*
 +	 * Make sure legacy kernel users don't send in bad values
 +	 * (normal paths check this in check_kill_permission).
 +	 */
 +	if (sig < 0 || sig > _NSIG)
 +		return -EINVAL;
 +
 +	/*
  	 * We need the tasklist lock even for the specific
  	 * thread case (when we don't need to follow the group
  	 * lists) in order to avoid races with "p->sighand"
 -
 To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
 the body of a message to majordomo@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2004-06-21  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 14:35 Joris van Rantwijk
2004-06-21  5:11 ` Andrew Morton [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=20040620221147.7c3086b7.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=joris@eljakim.nl \
    --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

all inboxes | Powered by JetHome®