]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply
authorChuck Lever <chuck.lever@oracle.com>
Wed, 29 Jun 2016 17:55:14 +0000 (13:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:24 +0000 (15:21 +0200)
commitd1026ba2c0cb31cdbe2710faa46e7e09f169b67b
tree62201f124d700cf9d633a17af3f7d0d74d6a0c7b
parentc31ebfa6e16a2daa04e9b8888c2071679aa8256b
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply

commit 0533b13072f4bf35738290d2cf9e299c7bc6c42a upstream.

If an RPC program does not set vs_dispatch and pc_func() returns
rpc_drop_reply, the server sends a reply anyway containing a single
word containing the value RPC_DROP_REPLY (in network byte-order, of
course). This is a nonsense RPC message.

Fixes: 9e701c610923 ("svcrpc: simpler request dropping")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/svc.c