]> git.baikalelectronics.ru Git - kernel.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)
commit59f7790077d6ac58d6ef2b6c427b74246acf1153
tree96ec2d4daa55198d6181dc21eb77d484e82024c2
parent8b74f4f4576ba4882ca9e92e5c3794c2476fd0af
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