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

(cherry picked from commit 85707cfdaddc179af8bd2623091eb1b8c58fed4a)
(cherry picked from commit 4a81e501337cf160d56af2d638f080983e520654)

Details

Provenance
khorben_defora.orgAuthored on Jul 24 2024, 8:51 PM
emasteCommitted on Sep 3 2024, 2:54 PM
Reviewer
emaste
Differential Revision
Restricted Differential Revision
Parents
rGbee9d305ee57: sqlite3: Vendor import of sqlite3 3.46.1
Branches
Unknown
Tags
Unknown