Fix: Missing RCU read lock in kernel_destroy_session()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 2 Dec 2014 03:06:23 +0000 (22:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 2 Dec 2014 03:08:09 +0000 (22:08 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c

index 44a71fc595de1427682bf84b19991bf0725da1bd..7a1b7a98b3ce0d5451ad9d901a64142772d4d9d7 100644 (file)
@@ -772,6 +772,7 @@ void kernel_destroy_session(struct ltt_kernel_session *ksess)
                struct lttng_ht_iter iter;
 
                /* For each consumer socket. */
+               rcu_read_lock();
                cds_lfht_for_each_entry(ksess->consumer->socks->ht, &iter.iter,
                                socket, node.node) {
                        struct ltt_kernel_channel *chan;
@@ -785,6 +786,7 @@ void kernel_destroy_session(struct ltt_kernel_session *ksess)
                                }
                        }
                }
+               rcu_read_unlock();
        }
 
        /* Close any relayd session */
This page took 0.028401 seconds and 4 git commands to generate.