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)
Mon, Nov 4, 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
Unknown Object (File)
Sep 23 2024, 12:42 PM
Unknown Object (File)
Sep 23 2024, 5:27 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 51337
Build 48228: arc lint + arc unit