From: Oleg Nesterov <oleg@redhat.com>
To: Ziran Zhang <zhangcoder@yeah.net>
Cc: Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Valentin Schneider <vschneid@redhat.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] sched: clarify ptrace's effect on task_struct->parent
Date: Mon, 23 Nov 2026 17:23:14 +0100 [thread overview]
Message-ID: <awRocuwV_7lJHSl4@redhat.com> (raw)
In-Reply-To: <20261123111256.18671-1-zhangcoder@yeah.net>
On 11/23, Ziran Zhang wrote:
>
> > The current comment for the parent field does not explain that it can be
> > temporarily replaced by the tracer when the task is being ptraced.
> >
> > This can lead to confusion, so clarify the comment to document this
> > important behavior.
> >
> > No functional change.
> >
> > Suggested-by: Oleg Nesterov <oleg@redhat.com>
> > Signed-off-by: Ziran Zhang <zhangcoder@yeah.net>
> > ---
> > Changes in v2:
> > - Use Oleg's minimal wording suggestion to adjust comment.
> >
> > include/linux/sched.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/linux/sched.h b/include/linux/sched.h
> > index 705970d07..8aad8a8ef 100644
> > --- a/include/linux/sched.h
> > +++ b/include/linux/sched.h
> > @@ -1093,7 +1093,7 @@ struct task_struct {
> > /* Real parent process: */
> > struct task_struct __rcu *real_parent;
> >
> > - /* Recipient of SIGCHLD, wait4() reports: */
> > + /* Recipient of SIGCHLD, wait4() reports: ->real_parent or ptracer */
> > struct task_struct __rcu *parent;
> >
> > /*
> > --
> > 2.51.0
>
> Ping on this v2 patch. Suggested-by ptrace maintainer since September.
Well, I only suggested to simplify the comment you proposed in V1 ;)
So please remove the Suggested-by tag, feel free to add
Acked-by: Oleg Nesterov <oleg@redhat.com>
prev parent reply other threads:[~2026-11-23 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 4:17 [PATCH] sched: clarify ptrace's effect on task_struct->parent Ziran Zhang
2026-09-10 12:54 ` Oleg Nesterov
2026-09-10 13:16 ` Ziran Zhang
2026-09-10 13:30 ` [PATCH v2] " Ziran Zhang
2026-11-23 11:12 ` Ziran Zhang
2026-11-23 16:23 ` Oleg Nesterov [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=awRocuwV_7lJHSl4@redhat.com \
--to=oleg@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=zhangcoder@yeah.net \
/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