kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Prevent trace call into unloaded module text
@ 2008-11-24 14:04 Wu Fengguang
  2008-11-26 11:17 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Wu Fengguang @ 2008-11-24 14:04 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

Add marker_synchronize_unregister() before module unloading.
This prevents possible trace calls into unloaded module text.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
---
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index a87f45e..64f38b3 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2102,5 +2102,6 @@ void kvm_exit(void)
 	kvm_arch_exit();
 	kvm_exit_debug();
 	__free_page(bad_page);
+	marker_synchronize_unregister();
 }
 EXPORT_SYMBOL_GPL(kvm_exit);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-27 13:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 14:04 [PATCH] Prevent trace call into unloaded module text Wu Fengguang
2008-11-26 11:17 ` Avi Kivity
2008-11-26 11:46   ` Wu Fengguang
2008-11-26 11:59     ` Wu Fengguang
2008-11-27 13:32       ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).