https://github.com/torvalds/linux
Revision d6f2589ad561aa5fa39f347eca6942668b7560a1 authored by Jan Kara on 25 March 2014, 20:37:09 UTC, committed by Linus Torvalds on 26 March 2014, 00:42:16 UTC
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>
1 parent 632b06a
Raw File
Tip revision: d6f2589ad561aa5fa39f347eca6942668b7560a1 authored by Jan Kara on 25 March 2014, 20:37:09 UTC
fs: Avoid userspace mounting anon_inodefs filesystem
Tip revision: d6f2589
Kconfig
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"

config SRCARCH
	string
	option env="SRCARCH"

source "arch/$SRCARCH/Kconfig"
back to top