Page MenuHomeFreeBSD

bhyve: Fix unchecked stream I/O in RFB handler
ClosedPublic

Authored by hayzam_gmail.com on Feb 18 2026, 9:48 AM.
Tags
Referenced Files
F161429894: D55343.id172149.diff
Fri, Jul 3, 4:18 PM
Unknown Object (File)
Fri, Jul 3, 1:02 PM
Unknown Object (File)
Fri, Jul 3, 12:28 PM
Unknown Object (File)
Thu, Jul 2, 11:51 PM
Unknown Object (File)
Wed, Jul 1, 6:13 PM
Unknown Object (File)
Wed, Jul 1, 8:57 AM
Unknown Object (File)
Mon, Jun 29, 8:36 PM
Unknown Object (File)
Tue, Jun 23, 5:18 PM
Subscribers

Details

Summary

Convert rfb_send_* helpers to return status codes and check their results. Add missing checks for stream_read() and stream_write() returns during the handshake in rfb_handle() to avoid acting on failed I/O.

Sponsored by: The FreeBSD Foundation
Signed-off-by: Hayzam Sherif <hayzam@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

When uploading a raw patch via the web UI, please be sure to add -U999999 per the guidance here: https://wiki.freebsd.org/Phabricator#Create_a_Revision_via_Web_Interface

Otherwise it's hard to read the patch due to missing context.

Regenerated diff with full context (-U999999) as requested

This revision is now accepted and ready to land.Feb 19 2026, 7:21 PM
This revision was automatically updated to reflect the committed changes.