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)
Oct 14 2025, 4:42 AM
Unknown Object (File)
Oct 14 2025, 4:42 AM
Unknown Object (File)
Oct 14 2025, 4:42 AM
Unknown Object (File)
Oct 13 2025, 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 51337
Build 48228: arc lint + arc unit