linux/fs/nfs
Eric W. Biederman 65b38851a1 NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes
The usage of pid_ns->child_reaper->nsproxy->net_ns in
nfs_server_list_open and nfs_client_list_open is not safe.

/proc for a pid namespace can remain mounted after the all of the
process in that pid namespace have exited.  There are also times
before the initial process in a pid namespace has started or after the
initial process in a pid namespace has exited where
pid_ns->child_reaper can be NULL or stale.  Making the idiom
pid_ns->child_reaper->nsproxy a double whammy of problems.

Luckily all that needs to happen is to move /proc/fs/nfsfs/servers and
/proc/fs/nfsfs/volumes under /proc/net to /proc/net/nfsfs/servers and
/proc/net/nfsfs/volumes and add a symlink from the original location,
and to use seq_open_net as it has been designed.

Cc: stable@vger.kernel.org
Cc: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2014-08-04 09:28:32 -07:00
..
blocklayout
filelayout NFS client updates for Linux 3.16 2014-06-10 15:02:42 -07:00
objlayout
cache_lib.c
cache_lib.h
callback_proc.c
callback_xdr.c
callback.c
callback.h
client.c NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes 2014-08-04 09:28:32 -07:00
delegation.c
delegation.h
dir.c
direct.c NFS: Remove 2 unused variables 2014-07-12 17:35:57 -04:00
dns_resolve.c
dns_resolve.h
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
fscache-index.c
fscache.c
fscache.h
getroot.c
idmap.c
inode.c NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes 2014-08-04 09:28:32 -07:00
internal.h NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes 2014-08-04 09:28:32 -07:00
iostat.h
Kconfig
Makefile
mount_clnt.c
namespace.c
netns.h NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes 2014-08-04 09:28:32 -07:00
nfs2super.c
nfs2xdr.c
nfs3acl.c nfs: only show Posix ACLs in listxattr if actually present 2014-07-08 14:36:08 -04:00
nfs3client.c
nfs3proc.c nfs: only show Posix ACLs in listxattr if actually present 2014-07-08 14:36:08 -04:00
nfs3super.c
nfs3xdr.c
nfs4_fs.h NFSv4: test SECINFO RPC_AUTH_GSS pseudoflavors for support 2014-06-24 18:46:58 -04:00
nfs4client.c
nfs4file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
nfs4getroot.c
nfs4namespace.c NFSv4: test SECINFO RPC_AUTH_GSS pseudoflavors for support 2014-06-24 18:46:58 -04:00
nfs4proc.c NFSv4: test SECINFO RPC_AUTH_GSS pseudoflavors for support 2014-06-24 18:46:58 -04:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFS client updates for Linux 3.16 2014-06-10 15:02:42 -07:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c
nfs.h
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c NFS: Don't reset pg_moreio in __nfs_pageio_add_request 2014-07-13 15:18:44 -04:00
pnfs_dev.c
pnfs.c NFS client updates for Linux 3.16 2014-06-10 15:02:42 -07:00
pnfs.h NFS client updates for Linux 3.16 2014-06-10 15:02:42 -07:00
proc.c
read.c
super.c NFS: populate ->net in mount data when remounting 2014-06-10 11:10:29 -04:00
symlink.c
sysctl.c
unlink.c
write.c NFS: Remove 2 unused variables 2014-07-12 17:35:57 -04:00