HomeFreeBSD

bhyve: Avoid unlikely truncation of the blockif ident strings.

Description

bhyve: Avoid unlikely truncation of the blockif ident strings.

The ident string for NVMe and VirtIO block deivces do not contain the
bus, and the various fields can potentially use up to three characters
when printed as unsigned values (full range of uint8_t) even if not
likely in practice.

Reviewed by: corvink, chuck
Differential Revision: https://reviews.freebsd.org/D37488

(cherry picked from commit 5d805962ca9347bbf62750452c4c980decb94793)

Details

Provenance
jhbAuthored on Nov 29 2022, 1:09 AM
Reviewer
corvink
Differential Revision
D37488: bhyve: Avoid unlikely truncation of the blockif ident strings.
Parents
rG697b7cf36101: bhyve: Clear lid to 0 for internal device errors for NVMe AENs.
Branches
Unknown
Tags
Unknown