From: Jan Kara Date: Tue, 25 Mar 2014 20:37:09 +0000 (+0100) Subject: fs: Avoid userspace mounting anon_inodefs filesystem X-Git-Tag: v3.14~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f2589ad561aa5fa39f347eca6942668b7560a1;p=pandora-kernel.git fs: Avoid userspace mounting anon_inodefs filesystem anon_inodefs filesystem is a kernel internal filesystem userspace shouldn't mess with. Remove registration of it so userspace cannot even try to mount it (which would fail anyway because the filesystem is MS_NOUSER). This fixes an oops triggered by trinity when it tried mounting anon_inodefs which overwrote anon_inode_inode pointer while other CPU has been in anon_inode_getfile() between ihold() and d_instantiate(). Thus effectively creating dentry pointing to an inode without holding a reference to it. Reported-by: Sasha Levin Signed-off-by: Jan Kara Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed