Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8209182 authored by Wu Fengguang's avatar Wu Fengguang Committed by Avi Kivity
Browse files

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: default avatarWu Fengguang <wfg@linux.intel.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 6692cef3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);