From: Jérémie Galarneau Date: Thu, 13 Nov 2014 21:27:40 +0000 (-0500) Subject: Fix: missing rcu_read_lock in trace_ust_destroy_session() X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0c0fcd77061d4588fed9474446b36f7e15f4648e;p=lttng-tools.git Fix: missing rcu_read_lock in trace_ust_destroy_session() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 339148ae9..19a1c95d3 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -752,10 +752,12 @@ void trace_ust_destroy_session(struct ltt_ust_session *session) /* Cleaning up UST domain */ destroy_domain_global(&session->domain_global); + rcu_read_lock(); cds_lfht_for_each_entry(session->agents->ht, &iter.iter, agt, node.node) { lttng_ht_del(session->agents, &iter); agent_destroy(agt); } + rcu_read_unlock(); /* Cleanup UID buffer registry object(s). */ cds_list_for_each_entry_safe(reg, sreg, &session->buffer_reg_uid_list,