]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sunrpc: Const-ify instances of struct svc_xprt_ops
authorChuck Lever <chuck.lever@oracle.com>
Tue, 1 Aug 2017 15:59:49 +0000 (11:59 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 25 Aug 2017 02:13:50 +0000 (22:13 -0400)
commit2412e927604e0af7e17ae4b688b85a1e87e378fe
treefd19b288f4a379c1fab36d99c867d4ef37da6c36
parentbac966d6065207b6900a4c2a3e6e5f78cfee7b4d
sunrpc: Const-ify instances of struct svc_xprt_ops

Close an attack vector by moving the arrays of server-side transport
methods to read-only memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_xprt.h
net/sunrpc/svcsock.c
net/sunrpc/xprtrdma/svc_rdma_transport.c