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)
Nov 23 2024, 11:21 AM
Unknown Object (File)
Nov 23 2024, 3:10 AM
Unknown Object (File)
Nov 17 2024, 6:07 PM
Unknown Object (File)
Nov 17 2024, 3:42 PM
Unknown Object (File)
Nov 17 2024, 2:23 PM
Unknown Object (File)
Oct 28 2024, 12:32 AM
Unknown Object (File)
Sep 16 2024, 12:29 PM
Unknown Object (File)
Sep 5 2024, 10:18 AM

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.