From: Mike Galbraith Date: Thu, 16 Dec 2010 14:09:52 +0000 (+0100) Subject: sched, autogroup: Fix potential access to freed memory X-Git-Tag: v2.6.38-rc1~489^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8219875a0dad2cfad9e93a3fafcd9626db98d2;p=pandora-kernel.git sched, autogroup: Fix potential access to freed memory Oleg pointed out that the /proc interface kref_get() useage may race with the final put during autogroup_move_group(). A signal->autogroup assignment may be in flight when the /proc interface dereference, leaving them taking a reference to an already dead group. Reported-by: Oleg Nesterov Signed-off-by: Mike Galbraith Signed-off-by: Peter Zijlstra LKML-Reference: <1292508592.5940.28.camel@maggy.simson.net> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed