Skip to content

Conversation

@Lencerf
Copy link
Contributor

@Lencerf Lencerf commented Jul 13, 2024

As per VirtIO spec 1.2 section 5.2.6, the status field is a byte, not u32. cloud-hypervisor writes an u32 to guest memory, which accidentally zeros out the following 3 bytes, and may corrupt guest OS internal state.

As per VirtIO spec 1.2 section 5.2.6, the `status` field is a byte, not
u32. cloud-hypervisor writes an `u32` to guest memory, which
accidentally zeros out the following 3 bytes, and may corrupt guest OS
internal state.

Signed-off-by: Changyuan Lyu <[email protected]>
@Lencerf Lencerf requested a review from a team as a code owner July 13, 2024 06:14
@liuw liuw added this pull request to the merge queue Jul 14, 2024
Merged via the queue into cloud-hypervisor:main with commit bc6acb8 Jul 14, 2024
@Lencerf Lencerf deleted the virtio-blk-status branch July 14, 2024 20:35
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.

3 participants