HomeFreeBSD

bhyve: initialize register value

Description

bhyve: initialize register value

In case of an error in a code pattern like

uint64_t val;
error = memread(vcpu, gpa, &val, 1, arg);
error = vie_update_register(vcpu, reg, val, size);

uninitialized stack data would be used.

Reported by: Synacktiv
Reviewed by: markj
Security: HYP-21
Sponsored by: The Alpha-Omega Project
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46107

Details

Provenance
khorben_defora.orgAuthored on Jul 24 2024, 7:33 PM
emasteCommitted on Sep 27 2024, 12:59 PM
Reviewer
markj
Differential Revision
Restricted Differential Revision
Parents
rG7fe42038b269: pf: fix max-src-conn when rules are added via netlink
Branches
Unknown
Tags
Unknown