All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Korty <joe.korty@ccur.com>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] fix uninitialized variable in waitid(2)
Date: Thu, 2 Dec 2004 17:39:51 -0500	[thread overview]
Message-ID: <20041202223951.GA22488@tsunami.ccur.com> (raw)
In-Reply-To: <20041202175418.GA9716@tsunami.ccur.com>

Specify an initial value signal_struct's field stop_state
whenever a signal_struct variable is created.

Bug was discovered through the occasional failure of
telnet(1) to connect.

Signed-off-by: Joe Korty <joe.korty@ccur.com>

--- base/kernel/fork.c	2004-12-02 17:18:39.340843441 -0500
+++ new/kernel/fork.c	2004-12-02 17:24:27.085305563 -0500
@@ -733,6 +733,7 @@
 	sig->group_exit_code = 0;
 	sig->group_exit_task = NULL;
 	sig->group_stop_count = 0;
+	sig->stop_state = 0;
 	sig->curr_target = NULL;
 	init_sigpending(&sig->shared_pending);
 	INIT_LIST_HEAD(&sig->posix_timers);

  reply	other threads:[~2004-12-02 22:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01  3:55 waitid breaks telnet Joe Korty
2004-12-01  4:27 ` Andrew Morton
2004-12-01 13:32   ` Joe Korty
2004-12-01 19:20   ` Roland McGrath
2004-12-01 19:41     ` Andrew Morton
2004-12-01 22:30       ` Joe Korty
2004-12-01 22:49         ` Joe Korty
2004-12-01 23:22           ` Joe Korty
2004-12-01 23:58             ` Roland McGrath
2004-12-02 17:54               ` Joe Korty
2004-12-02 22:39                 ` Joe Korty [this message]
2004-12-02 22:51                   ` [PATCH] fix uninitialized variable in waitid(2) Andrew Morton

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=20041202223951.GA22488@tsunami.ccur.com \
    --to=joe.korty@ccur.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.