From: Li Zefan Date: Tue, 14 May 2013 11:44:20 +0000 (+0800) Subject: cgroup: initialize xattr before calling d_instantiate() X-Git-Tag: v3.10-rc5~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6cbf35dac8a3dadb9103379820c96d7c85df3d9;p=pandora-kernel.git cgroup: initialize xattr before calling d_instantiate() cgroup_create_file() calls d_instantiate(), which may decide to look at the xattrs on the file. Smack always does this and SELinux can be configured to do so. But cgroup_add_file() didn't initialize xattrs before calling cgroup_create_file(), which finally leads to dereferencing NULL dentry->d_fsdata. This bug has been there since cgroup xattr was introduced. Cc: # 3.8.x Reported-by: Ivan Bulatovic Reported-by: Casey Schaufler Signed-off-by: Li Zefan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed