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)
Fri, Sep 11, 1:12 PM
Unknown Object (File)
Fri, Sep 11, 8:44 AM
Unknown Object (File)
Thu, Sep 10, 7:51 PM
Unknown Object (File)
Wed, Sep 9, 10:52 PM
Unknown Object (File)
Wed, Sep 9, 1:01 PM
Unknown Object (File)
Sun, Sep 6, 9:58 PM
Unknown Object (File)
Sun, Sep 6, 6:09 AM
Unknown Object (File)
Sun, Sep 6, 3:23 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