HomeFreeBSD

bhyve: avoid updating fbaddr when vm_mmap_memseg fails

Description

bhyve: avoid updating fbaddr when vm_mmap_memseg fails

In the function pci_fbuf_baraddr the field sc->fbaddr was set with a
user-controlled value, even though the call to vm_mmap_memseg failed.

No security risk as currently sc->fbaddr is not really used in the
source code.

Reported by: Synacktiv
Reviewed by: emaste
Sponsored by: Alpha-Omega Project
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D46109

Details

Provenance
khorben_defora.orgAuthored on Jul 24 2024, 8:51 PM
emasteCommitted on Mon, Aug 26, 8:23 PM
Reviewer
emaste
Differential Revision
Restricted Differential Revision
Parents
rGde9468837c92: sqlite3: Vendor import of sqlite3 3.46.1
Branches
Unknown
Tags
Unknown