HomeFreeBSD

vmm: Bump vmname buffer in struct vm to VM_MAX_NAMELEN + 1

Description

vmm: Bump vmname buffer in struct vm to VM_MAX_NAMELEN + 1

In hw.vmm.create sysctl handler the maximum length of vm name is
VM_MAX_NAMELEN. However in vm_create() the maximum length allowed is
only VM_MAX_NAMELEN - 1 chars. Bump the length of the internal buffer to
allow the length of VM_MAX_NAMELEN for vm name.

Reviewed by: grehan
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31372

(cherry picked from commit df95cc76affbbf114c9ff2e4ee011b6f162aa8bd)

Details

Provenance
khngAuthored on Aug 2 2021, 9:54 AM
Reviewer
grehan
Differential Revision
D31372: vmm: Bump vmname buffer in struct vm to VM_MAX_NAMELEN + 1
Parents
rG3bda6fa6a021: tmpfs: Fix error being cleared after commit c12118f6cec0
Branches
Unknown
Tags
Unknown