Chuck Lever
b419808712
SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()
...
[ Upstream commit 6c254bf3b637dd4ef4f78eb78c7447419c0161d7 ]
I found that NFSD's new NFSv3 READDIRPLUS XDR encoder was screwing up
right at the end of the page array. xdr_get_next_encode_buffer() does
not compute the value of xdr->end correctly:
* The check to see if we're on the final available page in xdr->buf
needs to account for the space consumed by @nbytes.
* The new xdr->end value needs to account for the portion of @nbytes
that is to be encoded into the previous buffer.
Fixes: 2825a7f907 ("nfsd4: allow encoding across page boundaries")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:52:39 +02:00
..
auth_gss
rpc: fix gss_svc_init cleanup on failure
2021-09-22 11:43:07 +02:00
xprtrdma
SUNRPC/call_alloc: async tasks mustn't block waiting for memory
2022-04-20 09:06:43 +02:00
addr.c
net: sunrpc: interpret the return value of kstrtou32 correctly
2021-01-23 15:38:18 +01:00
auth.c
sunrpc: replace generic auth_cred hash with auth-specific function
2016-09-30 15:47:47 -04:00
auth_generic.c
SUNRPC: Fix a bogus get/put in generic_key_to_expire()
2018-12-01 09:44:21 +01:00
auth_null.c
sunrpc: move NO_CRKEY_TIMEOUT to the auth->au_flags
2016-07-19 16:23:24 -04:00
auth_unix.c
NFS client updates for Linux 4.9
2016-10-13 21:28:20 -07:00
backchannel_rqst.c
SUNRPC: Refactor rpc_xdr_buf_init()
2016-09-19 13:08:37 -04:00
cache.c
sunrpc: fix crash when cache_head become valid before update
2019-12-21 10:42:19 +01:00
clnt.c
SUNRPC: ECONNREFUSED should cause a rebind.
2020-11-10 10:23:50 +01:00
debugfs.c
Kconfig
Makefile
SUNRPC: Add a structure to track multiple transports
2016-02-05 18:48:54 -05:00
netns.h
rpc_pipe.c
sunrpc: fixed rollback in rpc_gssd_dummy_populate()
2020-06-30 15:38:45 -04:00
rpcb_clnt.c
SUNRPC: stop printk reading past end of string
2020-09-23 08:46:14 +02:00
sched.c
SUNRPC/call_alloc: async tasks mustn't block waiting for memory
2022-04-20 09:06:43 +02:00
socklib.c
sunrpc: do not pull udp headers on receive
2016-04-11 15:31:33 -04:00
stats.c
sunrpc.h
sunrpc_syms.c
SUNRPC: cleanup ida information when removing sunrpc module
2017-02-01 08:33:09 +01:00
svc.c
sunrpc: fix refcount leak for rpc auth modules
2021-03-24 10:59:23 +01:00
svc_xprt.c
NFSD: Repair misuse of sv_lock in 5.10.16-rt30.
2021-03-24 10:59:23 +01:00
svcauth.c
svcrpc: move some initialization to common code
2015-11-24 10:39:16 -07:00
svcauth_unix.c
kernel: make groups_sort calling a responsibility group_info allocators
2018-01-10 09:29:52 +01:00
svcsock.c
sunrpc: use-after-free in svc_process_common()
2019-01-16 22:12:33 +01:00
sysctl.c
Sunrpc: Supports hexadecimal number for sysctl files of sunrpc debug
2015-11-03 15:56:49 -05:00
timer.c
xdr.c
SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()
2022-06-14 16:52:39 +02:00
xprt.c
SUNRPC: avoid race between mod_timer() and del_timer_sync()
2022-04-20 09:06:28 +02:00
xprtmultipath.c
SUNRPC search xprt switch for sockaddr
2016-09-19 13:08:36 -04:00
xprtsock.c
Revert "SUNRPC: attempt AF_LOCAL connect on setup"
2022-05-12 12:14:56 +02:00