aboutsummaryrefslogtreecommitdiff
path: root/net/lapb
diff options
context:
space:
mode:
authorShuo Liu <[email protected]>2021-07-22 14:27:36 +0800
committerGreg Kroah-Hartman <[email protected]>2021-07-27 16:48:45 +0200
commit4c4c1257b844ffe5d0933684e612f92c4b78e120 (patch)
tree5f19d985685727d76803e701bec30937e1d286d8 /net/lapb
parentff1176468d368232b684f75e82563369208bc371 (diff)
virt: acrn: Do hcall_destroy_vm() before resource release
The ACRN hypervisor has scenarios which could run a real-time guest VM. The real-time guest VM occupies dedicated CPU cores, be assigned with dedicated PCI devices. It can run without the Service VM after boot up. hcall_destroy_vm() returns failure when a real-time guest VM refuses. The clearing of flag ACRN_VM_FLAG_DESTROYED causes some kernel resource double-freed in a later acrn_vm_destroy(). Do hcall_destroy_vm() before resource release to drop this chance to destroy the VM if hypercall fails. Fixes: 9c5137aedd11 ("virt: acrn: Introduce VM management interfaces") Cc: stable <[email protected]> Signed-off-by: Shuo Liu <[email protected]> Signed-off-by: Fei Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions