mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
parent
6692cef30b
commit
b82091824e
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue