Skip to content

DAOS-19350 object: validate array IOD recxs#18719

Draft
mchaarawi wants to merge 1 commit into
release/2.8from
mschaara/19350-2.8
Draft

DAOS-19350 object: validate array IOD recxs#18719
mchaarawi wants to merge 1 commit into
release/2.8from
mschaara/19350-2.8

Conversation

@mchaarawi

Copy link
Copy Markdown
Contributor

Because Object fetch tasks retain caller-owned IOD pointers, and RPC encoding may be deferred or repeated during a retry, if an asynchronous caller clears or reuses an IOD before completion, encoding can observe a positive iod_nr with a NULL iod_recxs, DAOS engine can crash in this case before it doesn't do enough defensive check.

This patch includes these changes:

  • Reject array IODs with a positive extent count and no recx array during client validation and RPC encoding.

  • Add a server-side guard to prevent malformed requests from reaching VOS.

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

Because Object fetch tasks retain caller-owned IOD pointers, and RPC encoding
may be deferred or repeated during a retry, if an asynchronous caller clears
or reuses an IOD before completion, encoding can observe a positive iod_nr with
a NULL iod_recxs, DAOS engine can crash in this case before it doesn't do enough
defensive check.

This patch includes these changes:
- Reject array IODs with a positive extent count and no recx array during client
 validation and RPC encoding.

- Add a server-side guard to prevent malformed requests from reaching VOS.

Signed-off-by: Liang Zhen <gnailzenh@gmail.com>
@github-actions

Copy link
Copy Markdown

Ticket title is 'repeated engine segfaults on daos_user'
Status is 'Open'
https://daosio.atlassian.net/browse/DAOS-19350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants