Page MenuHomeFreeBSD

vmm: Free vCPUs when destroying them.
ClosedPublic

Authored by jhb on Dec 9 2022, 12:58 AM.
Tags
None
Referenced Files
F110241044: D37649.diff
Sat, Feb 15, 3:00 PM
Unknown Object (File)
Mon, Jan 27, 1:48 AM
Unknown Object (File)
Sun, Jan 26, 3:50 AM
Unknown Object (File)
Jan 12 2025, 12:38 AM
Unknown Object (File)
Nov 11 2024, 4:17 AM
Unknown Object (File)
Nov 7 2024, 10:36 AM
Unknown Object (File)
Oct 26 2024, 11:04 AM
Unknown Object (File)
Sep 29 2024, 10:33 PM

Diff Detail

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

Event Timeline

jhb requested review of this revision.Dec 9 2022, 12:58 AM
This revision is now accepted and ready to land.Dec 9 2022, 7:13 AM
corvink added a subscriber: corvink.
corvink added inline comments.
sys/amd64/vmm/vmm.c
670

Should we set vm->vcpu[i] to NULL after calling vcpu_cleanup to avoid any use-after-free?

sys/amd64/vmm/vmm.c
670

We are about to free(vm) in the caller after this function returns in the destroy case, so use-after-free isn't really possible I think.

This revision was automatically updated to reflect the committed changes.