From: Oleg Nesterov Date: Sat, 28 Oct 2006 17:38:49 +0000 (-0700) Subject: [PATCH] fill_tgid: fix task_struct leak and possible oops X-Git-Tag: v2.6.19-rc4~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fca178c0c6e8d52a1875be36b070f30884ebfae9;p=pandora-kernel.git [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 Cc: Shailabh Nagar Cc: Balbir Singh Cc: Jay Lan Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed