diff options
author | Oleg Nesterov <oleg@redhat.com> | 2009-06-18 01:27:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 22:03:52 +0200 |
commit | d92656633b8352c6d4b14afcb7beb154d76e7aa6 (patch) | |
tree | 616dabaff973bc4483ece684c93afdb2dcacff59 /kernel/timer.c | |
parent | ptrace: wait_task_zombie: s/->parent/->real_parent/ (diff) | |
download | linux-d92656633b8352c6d4b14afcb7beb154d76e7aa6.tar.xz linux-d92656633b8352c6d4b14afcb7beb154d76e7aa6.zip |
ptrace: do_notify_parent_cldstop: fix the wrong ->nsproxy usage
If the non-traced sub-thread calls do_notify_parent_cldstop(), we send the
notification to group_leader->real_parent and we report group_leader's
pid.
But, if group_leader is traced we use the wrong ->parent->nsproxy->pid_ns,
the tracer and parent can live in different namespaces. Change the code
to use "parent" instead of tsk->parent.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Acked-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/timer.c')
0 files changed, 0 insertions, 0 deletions