Re: [Part2 PATCH v7 35/38] KVM: SVM: Pin guest memory when SEV is active

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 11/06/2017 08:43 AM, Borislav Petkov wrote:
...

+
+	region->uaddr = range->addr;
+	region->size = range->size;
+	list_add_tail(&region->list, &sev->regions_list);
+	return ret;

Nothing's protecting that list from concurrent modifications of adding
and removal of regions.


Ah good catch. I will fix this in next rev. Similar to the mem_enc_op(), we need to acquire the kvm->lock when adding or removing the regions.

-Brijesh



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux