diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2008-11-26 06:59:06 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:55:04 -0500 |
commit | b82091824ee4970adf92d5cd6d57b12273171625 (patch) | |
tree | a083204512430d1a1ca91bb5b698b4009a3f350a /virt/kvm | |
parent | 6692cef30b7caf7525ae99670cddbaf28f1f9d40 (diff) |
KVM: Prevent trace call into unloaded module text
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>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_trace.c b/virt/kvm/kvm_trace.c index 41dcc845f78c..f59874446440 100644 --- a/virt/kvm/kvm_trace.c +++ b/virt/kvm/kvm_trace.c | |||
@@ -252,6 +252,7 @@ void kvm_trace_cleanup(void) | |||
252 | struct kvm_trace_probe *p = &kvm_trace_probes[i]; | 252 | struct kvm_trace_probe *p = &kvm_trace_probes[i]; |
253 | marker_probe_unregister(p->name, p->probe_func, p); | 253 | marker_probe_unregister(p->name, p->probe_func, p); |
254 | } | 254 | } |
255 | marker_synchronize_unregister(); | ||
255 | 256 | ||
256 | relay_close(kt->rchan); | 257 | relay_close(kt->rchan); |
257 | debugfs_remove(kt->lost_file); | 258 | debugfs_remove(kt->lost_file); |