linux-stable/include/linux/sunrpc
Anna Schumaker 61182c796d SUNRPC: kmap() the xdr pages during decode
If the pages are in HIGHMEM then we need to make sure they're mapped
before trying to read data off of them, otherwise we could end up with a
NULL pointer dereference.

The downside to this is that we need an extra cleanup step at the end of
decode to kunmap() the last page. I introduced an xdr_finish_decode()
function to do this. Right now this function only calls the
unmap_current_page() function, but other generic cleanup steps could be
added in the future if we come across anything else.

Reported-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2023-08-23 15:58:47 -04:00
..
addr.h
auth.h SUNRPC: Add RPC client support for the RPC_AUTH_TLS auth flavor 2023-06-19 12:18:36 -04:00
auth_gss.h
bc_xprt.h
cache.h
clnt.h NFS: add sysfs shutdown knob 2023-06-19 15:08:12 -04:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h
stats.h
svc.h Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
svc_rdma.h svcrdma: Revert 2a1e4f21d8 ("svcrdma: Normalize Send page handling") 2023-06-12 12:16:36 -04:00
svc_rdma_pcl.h
svc_xprt.h SUNRPC: always free ctxt when freeing deferred request 2023-05-14 15:55:02 -04:00
svcauth.h
svcauth_gss.h
svcsock.h nfsd: fix double fget() bug in __write_ports_addfd() 2023-05-31 09:57:14 -04:00
timer.h
types.h
xdr.h SUNRPC: kmap() the xdr pages during decode 2023-08-23 15:58:47 -04:00
xprt.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00
xprtmultipath.h
xprtrdma.h
xprtsock.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00