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-Tag: v2.6.0-rc4~62 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=492a663458c07634564b43ca49adda898fee5465;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 62324455f..d40b58c36 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1836,7 +1836,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;