kernel-ark/fs/nfs
Chuck Lever fc6014771b NFS: Address memory leaks in the NFS client mount option parser
David Howells noticed that repeating the same mount option twice during an
NFS mount request can result in orphaned memory in certain cases.

Only the client_address and mount_server.hostname strings are initialized
in the mount parsing loop, so those appear to be the only two pointers that
might be written over by repeating a mount option.  The strings in the
nfs_server section of the nfs_parsed_mount_data structure are set only once
after the options are parsed, thus these are not susceptible to being
overwritten.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-01-30 02:06:11 -05:00
..
callback_proc.c NFS: Change nfs_find_client() to take "struct sockaddr *" 2008-01-30 02:05:55 -05:00
callback_xdr.c NFS: Change cb_recallargs to pass "struct sockaddr *" instead of sockaddr_in 2008-01-30 02:05:55 -05:00
callback.c NFS: Change nfs_find_client() to take "struct sockaddr *" 2008-01-30 02:05:55 -05:00
callback.h NFS: Change cb_recallargs to pass "struct sockaddr *" instead of sockaddr_in 2008-01-30 02:05:55 -05:00
client.c NLM: Introduce an arguments structure for nlmclnt_init() 2008-01-30 02:06:07 -05:00
delegation.c NFS: eliminate NIPQUAD(clp->cl_addr.sin_addr) 2008-01-30 02:05:52 -05:00
delegation.h NFSv4: Use RCU to protect delegations 2007-07-10 23:40:41 -04:00
dir.c NFS: define a function to update nfsi->cache_change_attribute 2008-01-30 02:05:47 -05:00
direct.c NFS: Optimise away the sigmask code in aio/dio reads and writes 2008-01-30 02:06:10 -05:00
file.c NFS: nfs_write_end clean up 2008-01-30 02:06:02 -05:00
getroot.c NFS: Fix an Oops in NFS unmount 2007-12-12 11:12:15 -05:00
idmap.c NFS: Use size_t for storing name lengths 2008-01-30 02:06:01 -05:00
inode.c NFS: define a function to update nfsi->cache_change_attribute 2008-01-30 02:05:47 -05:00
internal.h NFS: Support non-IPv4 addresses in nfs_parsed_mount_data 2008-01-30 02:05:57 -05:00
iostat.h
Makefile [NFS] [PATCH] nfs: tiny makefile cleanup 2007-10-09 17:15:36 -04:00
mount_clnt.c NFS: Improve debugging output in NFS in-kernel mount client 2007-07-10 23:40:47 -04:00
namespace.c NFS: Remove the redundant nfs_client->cl_nfsversion 2008-01-30 02:05:49 -05:00
nfs2xdr.c NFS: Use unsigned intermediates for manipulating header lengths (NFSv2 XDR) 2008-01-30 02:05:44 -05:00
nfs3acl.c NFS: Remove nfs_begin_data_update/nfs_end_data_update 2007-10-09 17:19:53 -04:00
nfs3proc.c NLM/NFS: Use cached nlm_host when calling nlmclnt_proc() 2008-01-30 02:06:07 -05:00
nfs3xdr.c NFS: Use unsigned intermediates for manipulating header lengths (NFSv3 XDR) 2008-01-30 02:05:44 -05:00
nfs4_fs.h NFSv4: Give the lock stateid its own sequence queue 2008-01-10 13:35:32 -08:00
nfs4namespace.c NFS: Adjust nfs_clone_mount structure to store "struct sockaddr *" 2008-01-30 02:05:56 -05:00
nfs4proc.c nfs4: allow nfsv4 acls on non-regular-files 2008-01-30 02:06:10 -05:00
nfs4renewd.c NFSv4: Fix circular locking dependency in nfs4_kill_renewd 2008-01-03 09:37:16 -05:00
nfs4state.c NFS: eliminate NIPQUAD(clp->cl_addr.sin_addr) 2008-01-30 02:05:52 -05:00
nfs4xdr.c NFS: Ensure NFSv4 SETCLIENTID send buffer is large enough 2008-01-30 02:05:51 -05:00
nfsroot.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
pagelist.c NFS: Clean up the write request locking. 2008-01-30 02:05:24 -05:00
proc.c NLM/NFS: Use cached nlm_host when calling nlmclnt_proc() 2008-01-30 02:06:07 -05:00
read.c NFS/SUNRPC: Convert users of rpc_init_task+rpc_execute to rpc_run_task() 2008-01-30 02:05:39 -05:00
super.c NFS: Address memory leaks in the NFS client mount option parser 2008-01-30 02:06:11 -05:00
symlink.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sysctl.c [PATCH] nfs: fix congestion control 2007-03-16 19:25:05 -07:00
unlink.c NFS/SUNRPC: Convert all users of rpc_call_setup() 2008-01-30 02:05:32 -05:00
write.c NFS: Fix minor mixed sign comparison in NFS client's write logic 2008-01-30 02:06:01 -05:00