alistair23-linux/fs/nfs
Chuck Lever 6dd3436b9d NFS: SETCLIENTID XDR buffer sizes are incorrect
Use the correct calculation of the maximum size of a clientaddr4
when encoding and decoding SETCLIENTID operations. clientaddr4 is
defined in section 2.2.10 of RFC3530bis-31.

The usage in encode_setclientid_maxsz is missing the 4-byte length
in both strings, but is otherwise correct. decode_setclientid_maxsz
simply asks for a page of receive buffer space, which is
unnecessarily large (more than 4KB).

Note that a SETCLIENTID reply is either clientid+verifier, or
clientaddr4, depending on the returned NFS status. It doesn't
hurt to allocate enough space for both.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2014-11-25 16:22:16 -05:00
..
blocklayout nfs: Remove bogus assignment 2014-11-12 14:22:53 -05:00
filelayout NFSv4: Ensure that we call FREE_STATEID when NFSv4.x stateids are revoked 2014-11-12 17:19:04 -05:00
objlayout Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd 2014-10-21 12:53:45 -07:00
cache_lib.c
cache_lib.h
callback.c nfs: do not start the callback thread until we set rqstp->rq_task 2014-09-02 17:53:30 -04:00
callback.h
callback_proc.c pnfs: enable CB_NOTIFY_DEVICEID support 2014-09-12 13:33:50 -04:00
callback_xdr.c
client.c Merge branch 'bugfixes' into linux-next 2014-09-30 17:21:41 -04:00
delegation.c NFS: Don't try to reclaim delegation open state if recovery failed 2014-11-12 17:19:04 -05:00
delegation.h NFSv4: Fix races between nfs_remove_bad_delegation() and delegation return 2014-11-12 17:19:04 -05:00
dir.c NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT 2014-11-04 19:53:49 -06:00
direct.c nfs: fix pnfs direct write memory leak 2014-11-12 14:22:51 -05:00
dns_resolve.c
dns_resolve.h
file.c Merge branch 'for-3.18/core' of git://git.kernel.dk/linux-block 2014-10-18 11:53:51 -07:00
fscache-index.c NFS: Fabricate fscache server index key correctly 2014-09-25 21:25:18 -04:00
fscache.c
fscache.h
getroot.c dcache: d_obtain_alias callers don't all want DISCONNECTED 2014-08-07 14:40:10 -04:00
idmap.c KEYS: Remove key_type::match in favour of overriding default by match_preparse 2014-09-16 17:36:06 +01:00
inode.c nfs: Fix use of uninitialized variable in nfs_getattr() 2014-11-12 14:22:53 -05:00
internal.h File locking related changes for v3.18 (pile #1) 2014-10-11 13:21:34 -04:00
iostat.h
Kconfig
Makefile NFS: Implement SEEK 2014-09-30 16:24:56 -04:00
mount_clnt.c
namespace.c
netns.h pnfs/blocklayout: serialize GETDEVICEINFO calls 2014-11-12 14:22:52 -05:00
nfs.h
nfs2super.c
nfs2xdr.c
nfs3_fs.h NFS: Move NFS v3 acl functions to nfs3_fs.h 2014-09-12 13:50:26 -04:00
nfs3acl.c NFSv3: Fix missing includes of nfs3_fs.h 2014-09-25 16:28:53 -04:00
nfs3client.c NFSv3: Fix missing includes of nfs3_fs.h 2014-09-25 16:28:53 -04:00
nfs3proc.c NFS: Move v3 declarations out of internal.h 2014-09-12 13:49:40 -04:00
nfs3super.c NFS: Move NFS v3 acl functions to nfs3_fs.h 2014-09-12 13:50:26 -04:00
nfs3xdr.c
nfs4_fs.h Merge branch 'client-4.2' into linux-next 2014-09-30 17:22:02 -04:00
nfs4client.c NFSv4: nfs4_state_manager() vs. nfs_server_remove_lists() 2014-09-18 13:04:21 -04:00
nfs4file.c NFS client updates for Linux 3.18 2014-10-18 12:52:08 -07:00
nfs4getroot.c
nfs4namespace.c
nfs4proc.c NFSv4: Ensure that we call FREE_STATEID when NFSv4.x stateids are revoked 2014-11-12 17:19:04 -05:00
nfs4renewd.c NFSv4.1: Fix an NFSv4.1 state renewal regression 2014-09-30 17:18:42 -04:00
nfs4session.c
nfs4session.h
nfs4state.c Merge branch 'bugfixes' into linux-next 2014-09-30 17:21:41 -04:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c NFS: SETCLIENTID XDR buffer sizes are incorrect 2014-11-25 16:22:16 -05:00
nfs42.h NFS: Implement SEEK 2014-09-30 16:24:56 -04:00
nfs42proc.c NFS: Implement SEEK 2014-09-30 16:24:56 -04:00
nfs42xdr.c NFS: Implement SEEK 2014-09-30 16:24:56 -04:00
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c NFS: Fix a bogus warning in nfs_generic_pgio 2014-10-13 11:04:02 -04:00
pnfs.c NFSv4.1/pnfs: replace broken pnfs_put_lseg_async 2014-10-08 16:45:43 -04:00
pnfs.h NFSv4.1/pnfs: replace broken pnfs_put_lseg_async 2014-10-08 16:45:43 -04:00
pnfs_dev.c pnfs: remove GETDEVICELIST implementation 2014-09-12 13:20:54 -04:00
proc.c
read.c
super.c NFS: Remove v3 not compiled check from validate_mount_data() 2014-09-12 13:50:20 -04:00
symlink.c
sysctl.c
unlink.c
write.c nfs: remove spurious WARN_ON_ONCE in write path 2014-11-12 14:22:52 -05:00