Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: handle malformed balloon actual from guest - #7903

Merged
rbradford merged 1 commit into
cloud-hypervisor:mainfrom
dgreid:topic/balloon-bounds
Mar 26, 2026
Merged

rbradford merged 1 commit into
cloud-hypervisor:mainfrom
dgreid:topic/balloon-bounds

Conversation

@dgreid

@dgreid dgreid commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

The actual size of the balloon is taken directly from the guest. A misbehaving guest can set it to an arbitrary value and cause underflow on the next vm.info call. Use a saturation_sub instead to avoid a panic in a debug build or a crazy number in a release build.

The actual size of the balloon is taken directly from the guest. A
misbehaving guest can set it to an arbitrary value and cause underflow
on the next vm.info call. Use a saturation_sub instead to avoid a panic
in a debug build or a crazy number in a release build.

Signed-off-by: Dylan Reid <[email protected]>
@dgreid
dgreid requested a review from a team as a code owner March 26, 2026 03:33

@phip1611 phip1611 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@rbradford
rbradford added this pull request to the merge queue Mar 26, 2026
Merged via the queue into cloud-hypervisor:main with commit 6507325 Mar 26, 2026
37 checks passed
@rbradford rbradford moved this to ✅ Done in Cloud Hypervisor Roadmap Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants