diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-10-28 19:38:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-28 20:30:54 +0200 |
commit | 093a8e8aecd77b2799934996a55a6838e1e2b8f3 (patch) | |
tree | ece87b2e194494059b2d4aaa43a094786dac1db7 /kernel/sysctl.c | |
parent | [PATCH] bacct_add_tsk: fix unsafe and wrong parent/group_leader dereference (diff) | |
download | linux-093a8e8aecd77b2799934996a55a6838e1e2b8f3.tar.xz linux-093a8e8aecd77b2799934996a55a6838e1e2b8f3.zip |
[PATCH] taskstats_tgid_free: fix usage
taskstats_tgid_free() is called on copy_process's error path. This is wrong.
IF (clone_flags & CLONE_THREAD)
We should not clear ->signal->taskstats, current uses it,
it probably has a valid accumulated info.
ELSE
taskstats_tgid_init() set ->signal->taskstats = NULL,
there is nothing to free.
Move the callsite to __exit_signal(). We don't need any locking, entire
thread group is exiting, nobody should have a reference to soon to be
released ->signal.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions