-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAOS-15276 object: refine sgl valid check #14176
Conversation
Errors are Unable to load ticket data |
ab39069
to
f6646d1
Compare
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14176/2/testReport/ |
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14176/2/execution/node/1435/log |
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14176/2/execution/node/1451/log |
33727e2
to
a5dcaf8
Compare
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14176/4/execution/node/1451/log |
Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14176/4/execution/node/1592/log |
a5dcaf8
to
9f33604
Compare
Test stage Functional Hardware Medium Verbs Provider completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14176/5/testReport/ |
9f33604
to
5eb825d
Compare
@daos-stack/daos-gatekeeper ping, thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a proper commit message (PR description) for landing.
please fix the error message "Bad iov". you can do it in same PR or following PR, but it needs to be fix as it's user facing/
Test stage Functional on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14176/7/testReport/ |
Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14176/8/execution/node/1454/log |
Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14176/8/testReport/ |
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14176/9/testReport/ |
Refine sgl check to avoid segfault for special sgl parameter. Add a test case for it. Required-githooks: true Signed-off-by: Xuezhao Liu <xuezhao.liu@intel.com>
Required-githooks: true Signed-off-by: Xuezhao Liu <xuezhao.liu@intel.com>
@mchaarawi I reverted the parameter check in dfs, changed to "if (value == NULL) d_iov_set(&sg_iovs[0], NULL, 0);" that probably is safer. Is it find to you? |
yes thanks for changing that |
OK, there still with a "-1" left by you, any other concern? |
oh sorry, i thought i removed that. |
@@ -2216,6 +2216,22 @@ obj_iod_sgl_valid(daos_obj_id_t oid, unsigned int nr, daos_iod_t *iods, | |||
return -DER_INVAL; | |||
} | |||
} | |||
if (sgls != NULL && sgls[i].sg_nr > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"if (sgls != NULL) {" seems enough.
Required-githooks: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: