Skip to content

validate number of indirect desc in pop_avail - #1188

Open
papertigers wants to merge 1 commit into
spr/papertigers/master.validate-number-of-indirect-desc-in-pop_availfrom
spr/papertigers/validate-number-of-indirect-desc-in-pop_avail
Open

validate number of indirect desc in pop_avail#1188
papertigers wants to merge 1 commit into
spr/papertigers/master.validate-number-of-indirect-desc-in-pop_availfrom
spr/papertigers/validate-number-of-indirect-desc-in-pop_avail

Conversation

@papertigers

@papertigers papertigers commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The pop_avail function now validates that the number of indirect descriptors is not larger than the size of the virtio queue.

Stack:

@papertigers
papertigers changed the base branch from spr/papertigers/master.validate-number-of-indirect-desc-in-pop_avail to spr/papertigers/bump-rust-to-1971 July 29, 2026 00:28
@papertigers
papertigers changed the base branch from spr/papertigers/bump-rust-to-1971 to spr/papertigers/master.validate-number-of-indirect-desc-in-pop_avail July 29, 2026 00:32

if flags.contains(DescFlag::NEXT) {
if count == self.size() {
// XXX: signal error condition?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to address #1190 to properly solve this.
Currently return None and we also fail to return the descriptor to the used ring, this can leave the queue stalled or in an overall bad state.

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