From: Peter Zijlstra Date: Wed, 19 Jan 2011 11:26:11 +0000 (+0100) Subject: sched, cgroup: Use exit hook to avoid use-after-free crash X-Git-Tag: v2.6.38-rc2~21^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=068c5cc5ac7414a8e9eb7856b4bf3cc4d4744267;p=pandora-kernel.git sched, cgroup: Use exit hook to avoid use-after-free crash By not notifying the controller of the on-exit move back to init_css_set, we fail to move the task out of the previous cgroup's cfs_rq. This leads to an opportunity for a cgroup-destroy to come in and free the cgroup (there are no active tasks left in it after all) to which the not-quite dead task is still enqueued. Reported-by: Miklos Vajna Fixed-by: Mike Galbraith Signed-off-by: Peter Zijlstra Cc: Cc: Mike Galbraith Signed-off-by: Ingo Molnar LKML-Reference: <1293206353.29444.205.camel@laptop> --- Reading git-diff-tree failed