OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6692cef
)
KVM: Prevent trace call into unloaded module text
author
Wu Fengguang
<fengguang.wu@intel.com>
Wed, 26 Nov 2008 11:59:06 +0000
(19:59 +0800)
committer
Avi Kivity
<avi@redhat.com>
Wed, 31 Dec 2008 14:55:04 +0000
(16:55 +0200)
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>
virt/kvm/kvm_trace.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_trace.c
b/virt/kvm/kvm_trace.c
index
41dcc84
..
f598744
100644
(file)
--- a/
virt/kvm/kvm_trace.c
+++ b/
virt/kvm/kvm_trace.c
@@
-252,6
+252,7
@@
void kvm_trace_cleanup(void)
struct kvm_trace_probe *p = &kvm_trace_probes[i];
marker_probe_unregister(p->name, p->probe_func, p);
}
+ marker_synchronize_unregister();
relay_close(kt->rchan);
debugfs_remove(kt->lost_file);