Skip to contentSkip to conversation

Fix: add missing RCU read unlock

PATCH Jérémie Galarneau 1 participant 1 message Dec 28, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jérémie Galarneau

author Applied
#1 lore raw

Merged, thanks!

Jérémie

Quoted 26 lines · Mathieu Desnoyers

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.

---
 src/bin/lttng-sessiond/syscall.c | 1 +
 1 file changed, 1 insertion(+)
src/bin/lttng-sessiond/syscall.c +1 -1
index c38f891..bfe32ac 100644
@@ -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;
--

2.1.1

Signature · 8 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev