Fix: add missing RCU read unlock
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Dec 2014 17:10:01 +0000 (12:10 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 Dec 2014 19:08:06 +0000 (14:08 -0500)
Master commit 24eb8569dc841f318d7964ca9a0ad0a4f9508a8e
"Fix: Missing RCU read locks in syscall_list_channel()"

Introduces unbalanced RCU read-side lock/unlock. Should be applied to
master and stable-2.6.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/syscall.c

index c38f8910940f0b8bb990034ed4fa0fcef0360fef..bfe32ac731f1be0e72441b2e152561079764fc38 100644 (file)
@@ -409,6 +409,7 @@ ssize_t syscall_list_channel(struct ltt_kernel_channel *kchan,
                ksyscall = lookup_syscall(syscalls_ht, syscall_table[i].name);
                if (ksyscall) {
                        update_event_syscall_bitness(events, i, ksyscall->index);
+                       rcu_read_unlock();
                        continue;
                }
                ksyscall = NULL;
This page took 0.027716 seconds and 5 git commands to generate.