Re: [PATCH 6/6] security: Try harder to run transactions

2020-03-20 Thread Pavel Mores
On Wed, Mar 18, 2020 at 06:32:16PM +0100, Michal Privoznik wrote: > When a QEMU process dies in the middle of a hotplug, then we fail > to restore the seclabels on the device. The problem is that if > the thread doing hotplug locks the domain object first and thus > blocks the thread that wants to

[PATCH 6/6] security: Try harder to run transactions

2020-03-18 Thread Michal Privoznik
When a QEMU process dies in the middle of a hotplug, then we fail to restore the seclabels on the device. The problem is that if the thread doing hotplug locks the domain object first and thus blocks the thread that wants to do qemuProcessStop(), the seclabel cleanup code will see vm->pid still set