Page MenuHomeFreeBSD

bhyve: Fix assignment of *niov2 in split_iov()
ClosedPublic

Authored by markj on Aug 3 2026, 4:00 PM.
Tags
None
Referenced Files
F171240374: D58625.id183488.diff
Wed, Sep 9, 6:51 PM
F171212099: D58625.id.diff
Wed, Sep 9, 1:47 PM
Unknown Object (File)
Tue, Sep 8, 6:59 PM
Unknown Object (File)
Sat, Sep 5, 9:38 AM
Unknown Object (File)
Thu, Sep 3, 5:10 PM
Unknown Object (File)
Thu, Sep 3, 7:28 AM
Unknown Object (File)
Tue, Sep 1, 4:01 AM
Unknown Object (File)
Mon, Aug 24, 11:25 PM
Subscribers

Details

Summary

niov2 returns the number of entries in the iovec starting at offset
"offset". Here we are unconditionally setting it to 1, which of course
isn't right.

Fixes: a28cf86c4171 ("bhyve/virtio: Rework iovec handling functions for efficiency and clarity")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75350
Build 72233: arc lint + arc unit

Event Timeline

markj requested review of this revision.Aug 3 2026, 4:00 PM

Not sure how to give a proper +1 here. Do I need special permissions for that?

Anyway, LGTM.

Not sure how to give a proper +1 here. Do I need special permissions for that?

I don't think so, at the bottom of the webui there should be a dropdown menu with an "Accept Revision" action.

Anyway, LGTM.

This revision is now accepted and ready to land.Aug 3 2026, 6:40 PM
This revision was automatically updated to reflect the committed changes.