[lttng-dev] [PATCH lttng-tools] Fix: add missing RCU read unlock

Jérémie Galarneau jeremie.galarneau at efficios.com
Sun Dec 28 14:11:00 EST 2014


Merged, thanks!

Jérémie

On Wed, Dec 24, 2014 at 12:10 PM, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> 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 at efficios.com>
> ---
>  src/bin/lttng-sessiond/syscall.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/bin/lttng-sessiond/syscall.c b/src/bin/lttng-sessiond/syscall.c
> index c38f891..bfe32ac 100644
> --- a/src/bin/lttng-sessiond/syscall.c
> +++ b/src/bin/lttng-sessiond/syscall.c
> @@ -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
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list