HomeFreeBSD

bhyveload: open guest boot disk image O_RDWR

Description

bhyveload: open guest boot disk image O_RDWR

When a boot environment has been booted via the bootonce feature,
userboot clears the bootonce value from an nvlist but fails to write the
updated nvlist back to disk.

The failure occurs because bhyveload opens the guest boot disk image
O_RDONLY, fix this by opening it O_RDWR.

Reviewed by: imp, markj, jhb
Differential Revision: https://reviews.freebsd.org/D37274

(cherry picked from commit 5a023bd2a53a7279b126ae6bf949560c6342b57a)

Details

Provenance
rewAuthored on Dec 5 2022, 5:22 PM
jhbCommitted on Jan 26 2023, 10:29 PM
Reviewer
imp
Differential Revision
D37274: bhyveload: open guest boot disk image O_RDWR
Parents
rGabdc47cd6969: bhyve: Fix a buffer overread in the PCI hda device model.
Branches
Unknown
Tags
Unknown