Skip to content
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

prov/efa: Control plane AV operation locking fix #10823

Closed
wants to merge 2 commits into from

Conversation

sunkuamzn
Copy link
Contributor

prov/efa: Grab srx lock for control plane AV operations

The srx lock is already used in the data path in both tx and rx
operations. Using the same lock for control plane AV operations
will prevent unsafe access from the control plane.

The util_av code still requires the util_av->lock to be held for some
util_av calls. So grab that lock as well for those calls. This
additional lock will not introduce any extra contention because the srx
lock is already serializing the control plane AV calls.

prov/efa: Rename domain->srx_lock to domain->progress_lock

In addition to the SRX, this lock now protects read and write access to
the AV. Rename it to progress_lock.

This PR fixes some of the unsafe reads in #10804 for the EFA provider

@sunkuamzn sunkuamzn changed the title Rdm av srx lock control path prov/efa: Control plane AV operation locking fix Feb 24, 2025
@sunkuamzn sunkuamzn requested a review from a team February 24, 2025 18:25
The srx lock is already used in the data path in both tx and rx
operations. Using the same lock for control plane AV operations
will prevent unsafe access from the control plane.

The util_av code still requires the util_av->lock to be held for some
util_av calls. So grab that lock as well for those calls. This
additional lock will not introduce any extra contention because the srx
lock is already serializing the control plane AV calls.

Signed-off-by: Sai Sunku <sunkusa@amazon.com>
In addition to the SRX, this lock now protects read and write access to
the AV. Rename it to progress_lock.

Signed-off-by: Sai Sunku <sunkusa@amazon.com>
@sunkuamzn sunkuamzn force-pushed the rdm-av-srx-lock-control-path branch from 92e75be to 2418c6f Compare February 24, 2025 18:46
@sunkuamzn
Copy link
Contributor Author

Needs more internal discussion

@sunkuamzn sunkuamzn closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant