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:07:52 +0000 (22:07 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c

index 9134d4683bdcaf2590f352b142be57999bff7bd4..fc95302fccb9336332df0517b32dfec5a02954d5 100644 (file)
@@ -767,6 +767,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;
@@ -780,6 +781,7 @@ void kernel_destroy_session(struct ltt_kernel_session *ksess)
                                }
                        }
                }
+               rcu_read_unlock();
        }
 
        /* Close any relayd session */
This page took 0.026472 seconds and 4 git commands to generate.