HomeFreeBSD

vmm: Properly handle writes spanning across two pages in vm_handle_db

Description

vmm: Properly handle writes spanning across two pages in vm_handle_db

The vm_handle_db function is responsible for writing correct status
register values into memory when a guest VM is being single-stepped
using the RFLAGS.TF mechanism. However, it currently does not properly
handle an edge case where the resulting write spans across two pages.
This commit fixes this by making vm_handle_db use two vm_copy_info
structs.

Security: HYP-09
Reviewed by: markj

(cherry picked from commit 51fda658baa3f80c9778f3a9873fbf67df87119b)

Details

Provenance
bnovkovAuthored on Sep 29 2024, 11:10 AM
emasteCommitted on Oct 6 2024, 3:01 PM
Parents
rG2403e6d5aa9e: printf(): Save errno earlier.
Branches
Unknown
Tags
Unknown