sunrpc: mark all struct rpc_procinfo instances as const
authorChristoph Hellwig <hch@lst.de>
Fri, 12 May 2017 13:36:49 +0000 (15:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 May 2017 15:42:20 +0000 (17:42 +0200)
commit499b4988109e91b76f231fb1b4f1e53ec3260686
treecb00c04bb34f8e82ef15bdd4d843c33a7833c80e
parentf700c72dd2f1f886f56788436b540aab95903c3f
sunrpc: mark all struct rpc_procinfo instances as const

struct rpc_procinfo contains function pointers, and marking it as
constant avoids it being able to be used as an attach vector for
code injections.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
16 files changed:
fs/lockd/clnt4xdr.c
fs/lockd/clntxdr.c
fs/lockd/mon.c
fs/nfs/internal.h
fs/nfs/mount_clnt.c
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4xdr.c
fs/nfsd/nfs4callback.c
include/linux/sunrpc/clnt.h
include/linux/sunrpc/sched.h
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/clnt.c
net/sunrpc/rpcb_clnt.c
net/sunrpc/stats.c