]> 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)
commit61433af56077f5fd8815281b44938d84feb04687
tree3fc82e93f1cf8e68d39b4b02e1c563b024357d32
parent2b4f8923ecaafc0c25ee56bc17ea9256d12b747c
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: 59aa1f9a3cce3 ("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