From 21a557a1df7eda94bf71149d42b8cbe0a40bd943 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 26 Jul 2010 16:50:14 -0700 Subject: [PATCH] delete --- meta | 3 +- patches/srq | 124 ---------------------------------------------------- 2 files changed, 1 insertion(+), 126 deletions(-) delete mode 100644 patches/srq diff --git a/meta b/meta index 97df654e..5e0d22c7 100644 --- a/meta +++ b/meta @@ -1,5 +1,5 @@ Version: 1 -Previous: 455463608548f6b4ff0a2b609c1ae093b55e2828 +Previous: 47a1b6e1aa86b04316e69a0312cbed79dc3d6948 Head: 84588550c84d1c3edae7eabcc0caad91e3b4c720 Applied: nd-heap: 4073d4bd9835679d69e79783b4fd841e173ec458 @@ -10,7 +10,6 @@ Applied: nd-adapt: 89c3aaa5d3df57c2dcc7cbb7042ff6ba2e771925 sge: 84588550c84d1c3edae7eabcc0caad91e3b4c720 Unapplied: - srq: 0024a4123a3ed01d41c946126590641f9f76bc20 wv-rm-ioctl: 2c4f8b27f89993bc9c1215e8c358046b2934f755 wv-ver: 9abd550558317c525e7f7f82caae75f1a810d2b7 wv-mr: 94ee5024914f1c34a32f674b628a38d3cf570f6e diff --git a/patches/srq b/patches/srq deleted file mode 100644 index 4578a377..00000000 --- a/patches/srq +++ /dev/null @@ -1,124 +0,0 @@ -Bottom: 06cdce656914daffeb60188020c0cbccef3f6806 -Top: 249b39658665183a9d3faed2870a1841a127346b -Author: Sean Hefty -Date: 2010-07-15 10:49:16 -0700 - -winverbs: fix memory violation in SRQ code - -Problem reported by Shiqing Fan: - -"I got a memory violation error in wv_srq.cpp Query() function around -line 202. It seems using uninitialized verbsData.output_size for -memcpy. The verbsData.input_size is initialized in WvPreQueryQp -(wvuverbs.cpp), and it has a similar memcpy in this function too." - -wv_uverbs.cpp should initialize the output_size to 0 in all -WvPre* calls. - -Signed-off-by: Sean Hefty - - ---- - -diff --git a/trunk/core/winverbs/user/wv_uverbs.cpp b/trunk/core/winverbs/user/wv_uverbs.cpp -index d7073a1..1a315b4 100644 ---- a/trunk/core/winverbs/user/wv_uverbs.cpp -+++ b/trunk/core/winverbs/user/wv_uverbs.cpp -@@ -39,7 +39,7 @@ WvPreOpenCa(const ib_net64_t ca_guid, ci_umv_buf_t *p_umv_buf, - UNREFERENCED_PARAMETER(ca_guid); - UNREFERENCED_PARAMETER(ph_uvp_ca); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -76,7 +76,7 @@ WvPreAllocatePd(ib_ca_handle_t h_uvp_ca, ci_umv_buf_t *p_umv_buf, - UNREFERENCED_PARAMETER(h_uvp_ca); - UNREFERENCED_PARAMETER(ph_uvp_pd); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -112,7 +112,7 @@ WvPreCreateAv(const ib_pd_handle_t h_uvp_pd, const ib_av_attr_t *p_addr_vector, - UNREFERENCED_PARAMETER(p_addr_vector); - UNREFERENCED_PARAMETER(ph_uvp_av); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -148,7 +148,7 @@ WvPreCreateSrq(const ib_pd_handle_t h_uvp_pd, const ib_srq_attr_t* const p_srq_a - UNREFERENCED_PARAMETER(p_srq_attr); - UNREFERENCED_PARAMETER(ph_uvp_srq); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -170,7 +170,7 @@ WvPreModifySrq(const ib_srq_handle_t h_uvp_srq, const ib_srq_attr_t * const p_sr - UNREFERENCED_PARAMETER(p_srq_attr); - UNREFERENCED_PARAMETER(srq_attr_mask); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -188,7 +188,7 @@ WvPreQuerySrq(ib_srq_handle_t h_uvp_srq, ci_umv_buf_t *p_umv_buf) - { - UNREFERENCED_PARAMETER(h_uvp_srq); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -234,7 +234,7 @@ WvPreModifyQp(const ib_qp_handle_t h_uvp_qp, const ib_qp_mod_t *p_modify_attr, - UNREFERENCED_PARAMETER(h_uvp_qp); - UNREFERENCED_PARAMETER(p_modify_attr); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -252,7 +252,7 @@ WvPreQueryQp(ib_qp_handle_t h_uvp_qp, ci_umv_buf_t *p_umv_buf) - { - UNREFERENCED_PARAMETER(h_uvp_qp); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -288,7 +288,7 @@ WvPreCreateCq(const ib_ca_handle_t h_uvp_ca, uint32_t* const p_size, - UNREFERENCED_PARAMETER(p_size); - UNREFERENCED_PARAMETER(ph_uvp_cq); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -310,7 +310,7 @@ WvPreResizeCq(const ib_cq_handle_t h_uvp_cq, uint32_t* const p_size, - UNREFERENCED_PARAMETER(h_uvp_cq); - UNREFERENCED_PARAMETER(p_size); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } - -@@ -345,7 +345,7 @@ WvPreCreateMw(const ib_pd_handle_t h_uvp_pd, ci_umv_buf_t *p_umv_buf, - UNREFERENCED_PARAMETER(h_uvp_pd); - UNREFERENCED_PARAMETER(ph_uvp_mw); - -- p_umv_buf->input_size = 0; -+ RtlZeroMemory(p_umv_buf, sizeof(*p_umv_buf)); - return IB_SUCCESS; - } -- 2.46.0