Page MenuHomeFreeBSD

vmm: don't free unallocated memory
ClosedPublic

Authored by corvink on May 5 2023, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 8:51 AM
Unknown Object (File)
Apr 30 2026, 8:31 AM
Unknown Object (File)
Apr 29 2026, 11:28 AM
Unknown Object (File)
Apr 29 2026, 11:22 AM
Unknown Object (File)
Apr 27 2026, 4:41 PM
Unknown Object (File)
Apr 27 2026, 11:26 AM
Unknown Object (File)
Apr 23 2026, 6:08 AM
Unknown Object (File)
Apr 15 2026, 1:34 PM
Subscribers

Details

Summary

If vmx or svm is disabled in BIOS or the device isn't supported by vmm,
modinit won't allocate these state save areas. As kmem_free panics when
passing a NULL pointer to it, loading the vmm kernel module causes a
panic too.

PR: 271251

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable