Skip to content

Commit

Permalink
KVM: Prevent trace call into unloaded module text
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Fengguang authored and Avi Kivity committed Dec 31, 2008
1 parent 6692cef commit b820918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virt/kvm/kvm_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b820918

Please sign in to comment.