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
F167734576: D40981.diff
Mon, Aug 24, 3:27 AM
Unknown Object (File)
Sat, Aug 22, 6:22 AM
Unknown Object (File)
Fri, Aug 14, 4:18 AM
Unknown Object (File)
Thu, Aug 13, 7:19 PM
Unknown Object (File)
Wed, Aug 12, 1:06 PM
Unknown Object (File)
Sat, Aug 8, 11:33 PM
Unknown Object (File)
May 2 2026, 4:57 PM
Unknown Object (File)
May 1 2026, 2:59 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.