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

vspace004: allocate a cap for the final pool #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

midnightveil
Copy link

This coincidentally fails with ret == seL4_RevokeFirst(9) if the number of pools to allocate before failing is less than the actual amount, because we don't allocate a capability for the last pool.

In essence, that could be happening even if we had the correct number of pools, but doesn't because of how the kernel (presumably) checks that the cap is free after checking the ASID pools are free.

This *coincidentally* fails with ret == seL4_RevokeFirst(9) if the
number of pools to allocate before failing is less than the actual
amount, because we don't allocate a capability for the last pool.

In essence, that could be happening even if we had the correct number
of pools, but doesn't because of how the kernel (presumably) checks
that the cap is free after checking the ASID pools are free.

Signed-off-by: julia <[email protected]>
@Indanz Indanz added the hw-test set to run sel4test hardware test for this PR label Feb 12, 2025
Copy link
Contributor

@Indanz Indanz left a comment

Choose a reason for hiding this comment

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

At this point it might be cleaner to bring the last check within the loop and check i to determine the expected ret, but this is fine too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hw-test set to run sel4test hardware test for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants