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)
Sun, Dec 22, 4:25 PM
Unknown Object (File)
Nov 21 2024, 3:46 PM
Unknown Object (File)
Nov 4 2024, 9:01 AM
Unknown Object (File)
Oct 13 2024, 10:01 AM
Unknown Object (File)
Sep 29 2024, 10:22 PM
Unknown Object (File)
Sep 27 2024, 11:17 AM
Unknown Object (File)
Sep 25 2024, 9:14 PM
Unknown Object (File)
Sep 24 2024, 3:09 AM
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