android_kernel_xiaomi_sm8350/drivers/infiniband
Bryan O'Sullivan 3977026462 IB/ipath: fix null deref during rdma ops
The problem was that node A's sending thread, which handles sending RDMA
read response data, would write the trigger word, the last packet would
be sent, node B would send a new RDMA read request, node A's interrupt
handler would initialize s_rdma_sge, then node A's sending thread would
update s_rdma_sge.  This didn't happen very often naturally but was more
frequent with 1 byte RDMA reads.  Rather than adding more locking or
increasing the QP structure size and copying sge data, I modified the
copy routine to update the pointers before writing the trigger word to
avoid the update race.

Signed-off-by: Ralph Campbell <ralphc@pathscale.com>
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-05-23 13:29:35 -07:00
..
core IB/uverbs: Don't leak ref to mm on error path 2006-05-17 22:20:50 -07:00
hw IB/ipath: fix null deref during rdma ops 2006-05-23 13:29:35 -07:00
ulp IB/srp: Complete correct SCSI commands on device reset 2006-05-17 09:20:48 -07:00
Kconfig IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00
Makefile IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00