linux-stable/fs/nfsd
Dan Carpenter 438068f491 NFSD: prevent underflow in nfssvc_decode_writeargs()
commit 184416d4b9 upstream.

Smatch complains:

	fs/nfsd/nfsxdr.c:341 nfssvc_decode_writeargs()
	warn: no lower bound on 'args->len'

Change the type to unsigned to prevent this issue.

Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:08:09 +02:00
..
acl.h
auth.c
auth.h
blocklayout.c
blocklayoutxdr.c
blocklayoutxdr.h
cache.h
current_stateid.h
export.c
export.h
fault_inject.c
flexfilelayout.c
flexfilelayoutxdr.c
flexfilelayoutxdr.h
idmap.h
Kconfig
lockd.c
Makefile
netns.h
nfs2acl.c
nfs3acl.c
nfs3proc.c NFSD: Clamp WRITE offsets 2022-02-16 12:44:49 +01:00
nfs3xdr.c nfsd4: readdirplus shouldn't return parent of export 2021-01-23 15:48:45 +01:00
nfs4acl.c
nfs4callback.c nfsd: Fix svc_xprt refcnt leak when setup callback client failed 2020-06-25 15:41:49 +02:00
nfs4idmap.c
nfs4layouts.c nfsd: fix delay timer on 32-bit architectures 2020-02-14 16:32:17 -05:00
nfs4proc.c NFSD: Clamp WRITE offsets 2022-02-16 12:44:49 +01:00
nfs4recover.c nfsd: fix a warning in __cld_pipe_upcall() 2019-12-17 20:38:18 +01:00
nfs4state.c nfsd: nfsd4_setclientid_confirm mistakenly expires confirmed client. 2022-02-08 18:16:29 +01:00
nfs4xdr.c nfsd4: Handle the NFSv4 READDIR 'dircount' hint being zero 2021-10-17 10:08:32 +02:00
nfscache.c
nfsctl.c NFSD: Keep existing listeners on portlist error 2021-10-27 09:51:39 +02:00
nfsd.h
nfsfh.c
nfsfh.h
nfsproc.c NFSD: prevent underflow in nfssvc_decode_writeargs() 2022-04-20 09:08:09 +02:00
nfssvc.c nfsd: Fix message level for normal termination 2020-12-29 13:47:00 +01:00
nfsxdr.c
pnfs.h
state.h nfsd: fix jiffies/time_t mixup in LRU list 2020-02-14 16:32:17 -05:00
stats.c
stats.h
trace.c
trace.h
vfs.c nfsd: apply umask on fs without ACL support 2020-07-09 09:36:31 +02:00
vfs.h nfsd: allow fh_want_write to be called twice 2019-06-15 11:54:54 +02:00
xdr.h NFSD: prevent underflow in nfssvc_decode_writeargs() 2022-04-20 09:08:09 +02:00
xdr3.h
xdr4.h
xdr4cb.h