]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 20 Oct 2016 13:07:18 +0000 (08:07 -0500)
commit4e006d0a135a8e939c45cd52ae6b11a2c0fa6a7e
treec462651dd00a5e1beee75348d60621db1f69dbee
parentc5d03fc8c8f0ac6bc18e9e9fe7613af52450437a
svc: Avoid garbage replies when pc_func() returns rpc_drop_reply

BugLink: http://bugs.launchpad.net/bugs/1631468
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/sunrpc/svc.c