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)
Sat, Dec 20, 11:03 PM
Unknown Object (File)
Fri, Dec 19, 11:47 PM
Unknown Object (File)
Dec 11 2025, 3:36 AM
Unknown Object (File)
Nov 25 2025, 11:37 PM
Unknown Object (File)
Nov 20 2025, 10:16 AM
Unknown Object (File)
Nov 17 2025, 3:11 PM
Unknown Object (File)
Nov 17 2025, 1:00 AM
Unknown Object (File)
Nov 16 2025, 12:38 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