Bug 255467 - bhyve(8) -U <UUID> input validation issue
Summary: bhyve(8) -U <UUID> input validation issue
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-virtualization (Nobody)
Depends on:
Reported: 2021-04-28 16:11 UTC by Michael Dexter
Modified: 2021-04-30 17:14 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dexter 2021-04-28 16:11:41 UTC
Assertion failed: (error == 0), function main, file /usr/src/usr.sbin/bhyve/bhyverun.c, line 1376.
                   Abort trap (core dumped)
                                           exit value is 134
Comment 1 Michael Dexter 2021-04-28 16:15:32 UTC
Entering a garbage -U <UUID> value on a bhyve(8) launch string will produce an Abort trap rather than "invalid input" error message. Perhaps input validation and an error message would be more desirable, and consistent with other error handling in bhyve(8).
Comment 2 James Mintram 2021-04-30 14:12:31 UTC
Michael, happy to take a look at this.
Comment 3 James Mintram 2021-04-30 17:14:09 UTC
Got a simple PR here https://github.com/JamesRM/freebsd-src/pull/1 if you want to take a look while I figure out how to get this onto phabricator.