Page MenuHomeFreeBSD

vmm: don't free unallocated memory
ClosedPublic

Authored by corvink on May 5 2023, 6:44 AM.
Tags
None
Referenced Files
F108209330: D39974.id121555.diff
Wed, Jan 22, 4:26 PM
Unknown Object (File)
Sun, Jan 12, 6:29 PM
Unknown Object (File)
Sat, Jan 11, 2:53 AM
Unknown Object (File)
Tue, Jan 7, 8:58 PM
Unknown Object (File)
Tue, Jan 7, 8:34 PM
Unknown Object (File)
Tue, Jan 7, 7:58 PM
Unknown Object (File)
Mon, Jan 6, 9:23 AM
Unknown Object (File)
Mon, Jan 6, 8:40 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