HomeFreeBSD

bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)

Description

bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)

ioctl(2)'s with integer argument shall pass command argument by value,
not by pointer. The ioctl(2) manual page is not very clear about that.
See sys/kern/sys_generic.c:sys_ioctl() near IOC_VOID.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D42366
Fixes: fd8b9c73a5a63a7aa438a73951d7a535b4f25d9a

(cherry picked from commit f407a72a506d2630d60d9096c42058f12dff874e)

Details

Provenance
glebiusAuthored on Oct 26 2023, 9:59 AM
markjCommitted on Oct 27 2023, 5:33 PM
Reviewer
markj
Differential Revision
D42366: bhyve: fix arguments to ioctl(VMIO_SIOCSIFFLAGS)
Parents
rGdfaadbb4661d: pfctl: fix incorrect mask on dynamic address
Branches
Unknown
Tags
Unknown