summaryrefslogtreecommitdiffstats
path: root/kernel/tsacct.c
diff options
context:
space:
mode:
authorOleg Nesterov2006-10-28 19:38:49 +0200
committerLinus Torvalds2006-10-28 20:30:54 +0200
commitfca178c0c6e8d52a1875be36b070f30884ebfae9 (patch)
tree4bce17647edd3fae6b0ba96407cd1c02037b11d1 /kernel/tsacct.c
parent[PATCH] strstrip remove last blank fix (diff)
downloadkernel-qcow2-linux-fca178c0c6e8d52a1875be36b070f30884ebfae9.tar.gz
kernel-qcow2-linux-fca178c0c6e8d52a1875be36b070f30884ebfae9.tar.xz
kernel-qcow2-linux-fca178c0c6e8d52a1875be36b070f30884ebfae9.zip
[PATCH] fill_tgid: fix task_struct leak and possible oops
1. fill_tgid() forgets to do put_task_struct(first). 2. release_task(first) can happen after fill_tgid() drops tasklist_lock, it is unsafe to dereference first->signal. This is a temporary fix, imho the locking should be reworked. 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> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions