From: Andrew Morton <akpm@digeo.com>
To: Dawson Engler <engler@csl.stanford.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] race in 2.5.62/kernel/ptrace.c?
Date: Sat, 22 Mar 2003 13:46:34 -0800 [thread overview]
Message-ID: <20030322134634.5b159b8d.akpm@digeo.com> (raw)
In-Reply-To: <200303221947.h2MJlHA24028@csl.stanford.edu>
Dawson Engler <engler@csl.stanford.edu> wrote:
>
> Is the following unlocked use of recalc_sigpending a race?
>
> // 2.5.62/kernel/ptrace.c:339:ptrace_notify:
> void ptrace_notify(int exit_code)
> {
> BUG_ON (!(current->ptrace & PT_PTRACED));
>
> /* Let the debugger run. */
> current->exit_code = exit_code;
> set_current_state(TASK_STOPPED);
> notify_parent(current, SIGCHLD);
> schedule();
>
> /*
> * Signals sent while we were stopped might set TIF_SIGPENDING.
> */
> recalc_sigpending();
> }
>
I think so. To find out I shall send a patch to Linus and see if
I get shouted at.
prev parent reply other threads:[~2003-03-22 21:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-22 19:47 Dawson Engler
2003-03-22 21:46 ` 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=20030322134634.5b159b8d.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=engler@csl.stanford.edu \
--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®