]> asedeno.scripts.mit.edu Git - linux.git/commit
sunrpc: Const-ify all instances of struct rpc_xprt_ops
authorChuck Lever <chuck.lever@oracle.com>
Tue, 1 Aug 2017 16:00:39 +0000 (12:00 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 1 Aug 2017 20:10:35 +0000 (16:10 -0400)
commitd31ae2548142b7cd12404929ef3a13ae27c9d961
tree96ec2d4daa55198d6181dc21eb77d484e82024c2
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
sunrpc: Const-ify all instances of struct rpc_xprt_ops

After transport instance creation, these function pointers never
change. Mark them as constant to prevent their use as an attack
vector for code injections.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c