OS-8378: Have bhhwcompat exploit illumos#14660

Details

Issue Type:New Feature
Priority:4 - Normal
Status:Resolved
Created at:2022-05-02T21:41:21.433Z
Updated at:2022-05-03T04:11:00.201Z

People

Created by:Dan McDonald
Reported by:Dan McDonald
Assigned to:Dan McDonald

Related Links

Description

Illumos #14660, introducing versioning into the BHYVE kernel interface (vmm), should be at least noted by bhhwcompat (and printed with -v in use).

Comments

Comment by Dan McDonald
Created at 2022-05-02T21:42:58.884Z

Change should look very close to test code in usr/src/test/bhyve-tests/tests/vmm/interface_version.c.


Comment by Dan McDonald
Created at 2022-05-02T22:01:04.808Z
Updated at 2022-05-03T03:02:31.049Z

Testing will be to do this on a new PI:

[root@curly (kebecloud) ~]# truss /usr/lib/brand/bhyve/bhhwcompat -v |& grep ioctl
ioctl(3, (('V'<<16)|('M'<<8)|3), 0xFFFFFC7FFFDFFB10) = 0
[root@curly (kebecloud) ~]# 

The new PI should have double the ioctls issued, first ‘4' then '3’.


Comment by Dan McDonald
Created at 2022-05-03T04:08:02.004Z

And it does.

[root@curly (kebecloud) ~]# truss /usr/lib/brand/bhyve/bhhwcompat -v |& grep ioctl
ioctl(3, (('V'<<16)|('M'<<8)|4), 0x00000000)    = 1
ioctl(3, (('V'<<16)|('M'<<8)|3), 0xFFFFFC7FFFDFFB10) = 0
[root@curly (kebecloud) ~]#