From: Jérémie Galarneau Date: Thu, 13 Nov 2014 21:09:57 +0000 (-0500) Subject: Fix: missing rcu_read_lock in cmd_start_trace() X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a9e410447d26fdc9aba52718b4f9d698f9867fc6;p=lttng-tools.git Fix: missing rcu_read_lock in cmd_start_trace() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 17091de09..c2b0248ea 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1848,7 +1848,9 @@ int cmd_start_trace(struct ltt_session *session) * possible to enable channel thus inform the client. */ if (usess && usess->domain_global.channels) { + rcu_read_lock(); nb_chan += lttng_ht_get_count(usess->domain_global.channels); + rcu_read_unlock(); } if (ksession) { nb_chan += ksession->channel_count;