]> git.baikalelectronics.ru Git - kernel.git/commit
svcrdma: backchannel cannot share a page for send and rcv buffers
authorChuck Lever <chuck.lever@oracle.com>
Sat, 29 Oct 2016 02:22:33 +0000 (22:22 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 1 Nov 2016 19:23:58 +0000 (15:23 -0400)
commite6f76e020ea15f9d76d54604463cbfe1e6450b98
tree3d2146cfe4432350fb9b795cc38ff7c0f5602216
parent8d863a818fdf6b2f8f70b20aefb1037ba5ca6935
svcrdma: backchannel cannot share a page for send and rcv buffers

The underlying transport releases the page pointed to by rq_buffer
during xprt_rdma_bc_send_request. When the backchannel reply arrives,
rq_rbuffer then points to freed memory.

Fixes: 48888135f71c ('SUNRPC: Separate buffer pointers for RPC ...')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_backchannel.c