From: Li Zefan Date: Wed, 18 Feb 2009 22:48:20 +0000 (-0800) Subject: cgroups: fix possible use after free X-Git-Tag: v2.6.29-rc6~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67e055d144c5b2acdc1c63811fde031263bf92c5;p=pandora-kernel.git cgroups: fix possible use after free In cgroup_kill_sb(), root is freed before sb is detached from the list, so another sget() may find this sb and call cgroup_test_super(), which will access the root that has been freed. Reported-by: Al Viro Signed-off-by: Li Zefan Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed