]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Ensure the transport backchannel association
authorBenjamin Coddington <bcodding@redhat.com>
Mon, 22 Mar 2021 18:37:01 +0000 (14:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Apr 2021 13:04:21 +0000 (09:04 -0400)
commit3b697007aeea9dda0609b91db45b58e68d251072
tree04fa110730aa200b030fd6651e4fd1ec0f22d3bf
parent4302a36505913ee5469117d287ba91f2f0fc403c
SUNRPC: Ensure the transport backchannel association

If the server sends CB_ calls on a connection that is not associated
with the backchannel, refuse to process the call and shut down the
connection.  This avoids a NULL dereference crash in
xprt_complete_bc_request().  There's not much more we can do in this
situation unless we want to look into allowing all connections to be
associated with the fore and back channel.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c