Chuck Lever
b4284efb1e
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
...
commit 23cf1ee1f1869966b75518c59b5cbda4c6c92450 upstream.
Utilize the xpo_release_rqst transport method to ensure that each
rqstp's svc_rdma_recv_ctxt object is released even when the server
cannot return a Reply for that rqstp.
Without this fix, each RPC whose Reply cannot be sent leaks one
svc_rdma_recv_ctxt. This is a 2.5KB structure, a 4KB DMA-mapped
Receive buffer, and any pages that might be part of the Reply
message.
The leak is infrequent unless the network fabric is unreliable or
Kerberos is in use, as GSS sequence window overruns, which result
in connection loss, are more common on fast transports.
Fixes: 3a88092ee3 ("svcrdma: Preserve Receive buffer until svc_rdma_sendto")
Signed-off-by: Chuck Lever <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-05-02 08:48:48 +02:00
..
auth_gss
sunrpc: Fix gss_unwrap_resp_integ() again
2020-04-23 10:36:41 +02:00
xprtrdma
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
2020-05-02 08:48:48 +02:00
addr.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
auth.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
auth_null.c
SUNRPC: Add rpc_auth::au_ralign field
2019-02-14 11:48:36 -05:00
auth_unix.c
SUNRPC: Use the client user namespace when encoding creds
2019-04-26 16:24:32 -04:00
backchannel_rqst.c
SUNRPC: Destroy the back channel when we destroy the host transport
2019-10-30 12:04:35 -04:00
cache.c
sunrpc: Fix potential leaks in sunrpc_cache_unhash()
2020-02-24 08:36:55 +01:00
clnt.c
NFS Client Updates for Linux 5.3
2019-09-26 12:20:14 -07:00
debugfs.c
NFS client updates for Linux 5.3
2019-07-18 14:32:33 -07:00
Kconfig
SUNRPC: Drop redundant CONFIG_ from CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES
2019-07-06 14:54:53 -04:00
Makefile
SUNRPC: remove generic cred code.
2018-12-19 13:52:46 -05:00
netns.h
rpc_pipe.c
new helper: get_tree_keyed()
2019-09-05 14:34:22 -04:00
rpcb_clnt.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
sched.c
SUNRPC: Avoid RPC delays when exiting suspend
2019-12-13 08:42:34 +01:00
socklib.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
stats.c
Merge branch 'multipath_tcp'
2019-07-06 14:54:52 -04:00
sunrpc.h
sunrpc_syms.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
svc.c
sunrpc: clean up indentation issue
2019-09-25 11:13:12 -04:00
svc_xprt.c
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
2020-05-02 08:48:48 +02:00
svcauth.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
svcauth_unix.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
svcsock.c
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
2020-05-02 08:48:48 +02:00
sysctl.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
timer.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
xdr.c
SUNRPC: Fix another issue with MIC buffer space
2020-01-26 10:01:07 +01:00
xprt.c
SUNRPC: Destroy the back channel when we destroy the host transport
2019-10-30 12:04:35 -04:00
xprtmultipath.c
SUNRPC: Optimise transport balancing code
2019-07-18 14:43:52 -04:00
xprtsock.c
SUNRPC: Fix backchannel RPC soft lockups
2020-04-29 16:33:18 +02:00