Page MenuHomeFreeBSD

vmm: don't leak locks exiting vmmdev_ioctl()
ClosedPublic

Authored by glebius on Jul 12 2023, 4:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 16 2024, 12:29 PM
Unknown Object (File)
Sep 5 2024, 10:18 AM
Unknown Object (File)
Sep 2 2024, 7:18 PM
Unknown Object (File)
Jun 21 2024, 2:31 AM
Unknown Object (File)
May 11 2024, 4:19 PM
Unknown Object (File)
May 2 2024, 3:33 PM
Unknown Object (File)
May 2 2024, 3:33 PM
Unknown Object (File)
May 2 2024, 3:28 PM

Details

Summary

At least an error from vcpu_lock_all() at line 553 would leak
memseg lock. There might be other cases as well.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This and D40980 are now required for me to use bhyve. Without them it panics with 100% guarantee. I don't know what is special with my machine that vcpu array is empty during early stages of bhyveload. With the patches, bhyve just works and VM boots up. Apparently vcpus are allocated later.

This revision is now accepted and ready to land.Jul 12 2023, 5:39 AM
This revision was automatically updated to reflect the committed changes.