dapl: use private_data_len for mem copies
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 05:06:11 +0000 (05:06 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 05:06:11 +0000 (05:06 +0000)
commit918a3a2579823fcdcd89da228c32a80204f6cda3
treeba4c5db17b5c38372c25073a5a6ec878e9d733df
parentf0b48f0f130f9320db62f058590cf2c931baa820
dapl: use private_data_len for mem copies

From: Sean Hefty <sean.hefty@intel.com>

When copying private_data out of rdma_cm events, use the
reported private_data_len for the size, and not IB maximums.
This fixes a bug running over the librdmacm on windows, where
DAPL accessed invalid memory.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2688 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
12 files changed:
ulp/dapl2/dapl/common/dapl_adapter_util.h
ulp/dapl2/dapl/common/dapl_cr_callback.c
ulp/dapl2/dapl/common/dapl_cr_util.h
ulp/dapl2/dapl/common/dapl_ep_connect.c
ulp/dapl2/dapl/common/dapl_ep_util.c
ulp/dapl2/dapl/common/dapl_evd_connection_callb.c
ulp/dapl2/dapl/common/dapl_evd_util.h
ulp/dapl2/dapl/common/dapl_ia_query.c
ulp/dapl2/dapl/ibal/dapl_ibal_cm.c
ulp/dapl2/dapl/openib_cma/cm.c
ulp/dapl2/dapl/openib_scm/cm.c
ulp/dapl2/dapl/openib_ucm/cm.c