diff options
author | Jan Kara <jack@suse.cz> | 2014-03-25 21:37:09 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-26 01:42:16 +0100 |
commit | d6f2589ad561aa5fa39f347eca6942668b7560a1 (patch) | |
tree | 48708ad51abdeed29c5787350f0f2a378297754d /fs/nls/nls_base.c | |
parent | Merge branch 'nfsd-next' of git://linux-nfs.org/~bfields/linux (diff) | |
download | linux-d6f2589ad561aa5fa39f347eca6942668b7560a1.tar.xz linux-d6f2589ad561aa5fa39f347eca6942668b7560a1.zip |
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 <sasha.levin@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nls/nls_base.c')
0 files changed, 0 insertions, 0 deletions