x86 vm_event: reset monitor in vm_event_cleanup_domain()
PATCH 1/1 x86 vm_event: reset monitor in vm_event_cleanup_domain()
It is currently possible to leave a monitor flag enabled even after vm_event_cleanup_domain() has been called, potentially leading to a crash in hvm_msr_write_intercept() and hvm_set_crX() (when v->arch.vm_event has become NULL, but the corresponding corresponding v->domain->arch.monitor flag is non-zero). This patch zeroes out arch.monitor in vm_event_cleanup_domain().
--- xen/arch/x86/vm_event.c | 1 + 1 file changed, 1 insertion(+)
xen/arch/x86/vm_event.c +1 -0
@@ -56,6 +56,7 @@ void vm_event_cleanup_domain(struct domain *d) } d->arch.mem_access_emulate_each_rep =0 ; +memset (&d->arch.monitor,0 ,sizeof (d->arch.monitor)); }void vm_event_toggle_singlestep (struct domain *d,struct vcpu *v)
Signature · 1 line
2.7.0
Quoted 8 lines · Razvan Cojocaru
It is currently possible to leave a monitor flag enabled even after
vm_event_cleanup_domain()has been called, potentially leading to a crash inhvm_msr_write_intercept()andhvm_set_crX()(whenv->arch.vm_eventhas become NULL, but the corresponding correspondingv->domain->arch.monitorflag is non-zero). This patch zeroes out arch.monitor invm_event_cleanup_domain().Signed-off-by Razvan Cojocaru <[email protected]>
Quoted 16 lines
--- xen/arch/x86/vm_event.c | 1 + 1 file changed, 1 insertion(+)xen/arch/x86/vm_event.c +1
-0@@ -56,6 +56,7 @@ void vm_event_cleanup_domain(struct domain *d) } d->arch.mem_access_emulate_each_rep =0 ; +memset (&d->arch.monitor,0 ,sizeof (d->arch.monitor)); }void vm_event_toggle_singlestep (struct domain *d,struct vcpu *v)
On Wed, Jan 27, 2016 at 12:42 PM, Razvan Cojocaru <[email protected]
Quoted 11 lines
wrote:
It is currently possible to leave a monitor flag enabled even after
vm_event_cleanup_domain()has been called, potentially leading to a crash inhvm_msr_write_intercept()andhvm_set_crX()(whenv->arch.vm_eventhas become NULL, but the corresponding correspondingv->domain->arch.monitorflag is non-zero). This patch zeroes out arch.monitor invm_event_cleanup_domain().Signed-off-by Razvan Cojocaru <[email protected]>
Quoted 17 lines
--- xen/arch/x86/vm_event.c | 1 + 1 file changed, 1 insertion(+)xen/arch/x86/vm_event.c +1
-1@@ -56,6 +56,7 @@ void vm_event_cleanup_domain(struct domain *d) } d->arch.mem_access_emulate_each_rep =0 ; +memset (&d->arch.monitor,0 ,sizeof (d->arch.monitor)); }void vm_event_toggle_singlestep (struct domain *d,struct vcpu *v) --
Quoted 3 lines
2.7.0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel