[lttng-dev] [PATCH lttng-tools] Fix: thread exit vs futex wait/wakeup race

2017-05-17 Thread Mathieu Desnoyers
relayd_live_stop performs, in this order: CMM_STORE_SHARED(live_dispatch_thread_exit, 1); [A] futex_nto1_wake(_conn_queue.futex);[B] whereas thread_dispatcher does: while (!CMM_LOAD_SHARED(live_dispatch_thread_exit)) { [1] [...]

Re: [lttng-dev] [PATCH lttng-modules] Fix: NULL pointer dereference of THIS_MODULE with built-in modules

2017-05-17 Thread Mathieu Desnoyers
Merged into master, 2.10, 2.9, 2.8, thanks! Mathieu - On May 17, 2017, at 5:09 PM, Francis Deslauriers francis.deslauri...@efficios.com wrote: > THIS MODULE is defined to 0 when a module is built-in the kernel [1]. > This caused NULL pointer dereference when booting a kernel with the >

[lttng-dev] [PATCH lttng-modules] Fix: NULL pointer dereference of THIS_MODULE with built-in modules

2017-05-17 Thread Francis Deslauriers
THIS MODULE is defined to 0 when a module is built-in the kernel [1]. This caused NULL pointer dereference when booting a kernel with the lttng-modules built-in. To fix this issue, add #if guard around the wrapper_lttng_fixup_sig function checking if the MODULE macro is defined to confirm that