From: Eric Dumazet <eric.dumazet@gmail.com>
To: Oleg Nesterov <oleg@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, drepper@redhat.com,
jens@mcbone.net, mingo@elte.hu, peterz@infradead.org,
sonnyrao@us.ibm.com, stable@kernel.org, tglx@linutronix.de
Subject: Re: [PATCH v2] execve: must clear current->clear_child_tid
Date: Sat, 01 Aug 2009 09:52:46 +0200 [thread overview]
Message-ID: <4A73F44E.1010508@gmail.com> (raw)
In-Reply-To: <20090801064438.GA30800@redhat.com>
Oleg Nesterov a écrit :
> On 08/01, Eric Dumazet wrote:
>> I only wonder about core dumping, since mm_release() is also used by exiting tasks.
>>
>> Isnt clear_child_tid used by gdb or other debugger ?
>
> Afaics it is not...
>
> At least, I can't see how gdb (or any other user-space app) can figure
> out the value of ->clear_child_tid.
>
Yep, this was from old Unixes time, when core file included the 'u' structure ...
Dont worry ;)
>
>
> Not that this really matters, but please note also that it is possible
> that the coredumping task has ->clear_child_tid == NULL anyway, even
> without this change. The PF_SIGNALED check in mm_release() is not 100&
> reliable.
>
> Suppose a thread T sleeps in do_exit()->ptrace_event(PT_TRACE_EXIT) path.
> Another thread starts a coredump and kills T via zap_process(). This wakes
> up T, it calls exit_mm()->mm_release() without PF_SIGNALED.
>
> Oleg.
>
prev parent reply other threads:[~2009-08-01 7:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 21:42 + execve-must-clear-current-clear_child_tid.patch added to -mm tree akpm
2009-07-31 22:29 ` Oleg Nesterov
2009-08-01 0:38 ` Linus Torvalds
2009-08-01 0:51 ` Andrew Morton
2009-08-01 1:54 ` [PATCH v2] execve: must clear current->clear_child_tid Oleg Nesterov
2009-08-01 6:12 ` Eric Dumazet
2009-08-01 6:44 ` Oleg Nesterov
2009-08-01 7:52 ` Eric Dumazet [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=4A73F44E.1010508@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=drepper@redhat.com \
--cc=jens@mcbone.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
--cc=peterz@infradead.org \
--cc=sonnyrao@us.ibm.com \
--cc=stable@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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 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.