Page MenuHomeFreeBSD

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

Authored by hayzam_gmail.com on Wed, Feb 18, 9:48 AM.
Tags
Referenced Files
Unknown Object (File)
Tue, Feb 24, 1:26 PM
Unknown Object (File)
Tue, Feb 24, 2:00 AM
Unknown Object (File)
Mon, Feb 23, 9:56 PM
Unknown Object (File)
Sat, Feb 21, 11:56 PM
Unknown Object (File)
Sat, Feb 21, 11:03 PM
Unknown Object (File)
Thu, Feb 19, 7:24 PM
Unknown Object (File)
Wed, Feb 18, 3:11 PM
Unknown Object (File)
Wed, Feb 18, 2:04 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 Not Applicable
Unit
Tests Not Applicable

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.Thu, Feb 19, 7:21 PM
This revision was automatically updated to reflect the committed changes.