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)
Tue, Nov 4, 6:19 PM
Unknown Object (File)
Sat, Nov 1, 2:43 AM
Unknown Object (File)
Wed, Oct 22, 2:17 PM
Unknown Object (File)
Thu, Oct 16, 2:52 PM
Unknown Object (File)
Tue, Oct 14, 4:42 AM
Unknown Object (File)
Tue, Oct 14, 4:42 AM
Unknown Object (File)
Tue, Oct 14, 4:42 AM
Unknown Object (File)
Mon, Oct 13, 3:16 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