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

cpuarch/vmsa: fix soundness issue with GuestVMExit #480

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

Conversation

p4zuu
Copy link
Collaborator

@p4zuu p4zuu commented Oct 10, 2024

Previously, it was possible for a guest to exit with an exit code undefined in the GuestVMExit enum, leading to undefined behavior.

As suggested by @Freax13 in #359, we can replace this by a tuple struct, allowing unknown values.

cpuarch/src/vmsa.rs Outdated Show resolved Hide resolved
cpuarch/src/vmsa.rs Outdated Show resolved Hide resolved
@joergroedel
Copy link
Member

Hey @p4zuu , can you please rebase this change to latest HEAD? Thanks!

@joergroedel joergroedel added the needs-rebase The PR needs to be rebased to the latest upstream branch label Oct 15, 2024
Previously, it was possible for a guest to exit with an exit code
undefined in the GuestVMExit enum, leading to undefined behavior.

As suggested by @Freax13 in coconut-svsm#359, we can replace this by a tuple struct,
allowing unknown values.

Signed-off-by: Thomas Leroy <[email protected]>
@p4zuu
Copy link
Collaborator Author

p4zuu commented Oct 15, 2024

Hey @p4zuu , can you please rebase this change to latest HEAD? Thanks!

@joergroedel done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase The PR needs to be rebased to the latest upstream branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants