diff options
| author | Oleg Nesterov <[email protected]> | 2009-04-02 16:58:16 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-04-02 19:04:59 -0700 |
| commit | b1442b055c154699a6a2c436f3352f71b6beede3 (patch) | |
| tree | dda315fddb15936bc74eb9c74bec29b64e65b71c /tools/perf/scripts/python | |
| parent | 0a967a044a777e8b9c739120927114ddc0094298 (diff) | |
reparent_thread: fix the "is it traced" check
reparent_thread() uses ptrace_reparented() to check whether this thread is
ptraced, in that case we should not notify the new parent.
But ptrace_reparented() is not exactly correct when the reparented thread
is traced by /sbin/init, because forget_original_parent() has already
changed ->real_parent.
Currently, the only problem is the false notification. But with the next
patch the kernel crash in this (yes, pathological) case.
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions