]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Throw away reply when version is unrecognized
authorChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2017 19:01:06 +0000 (15:01 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Nov 2017 18:47:53 +0000 (13:47 -0500)
commit72d31e52ee72ba92eaf8a26f1e6c969f0dee04b1
tree3fc82e93f1cf8e68d39b4b02e1c563b024357d32
parent2af1dc35d4638ef444a64dcd11d92ce511c54252
xprtrdma: Throw away reply when version is unrecognized

A reply with an unrecognized value in the version field means the
transport header is potentially garbled and therefore all the fields
are untrustworthy.

Fixes: 80a28378f6dc1 ("xprtrdma: Properly handle RDMA_ERROR ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c