Fix: metadata stream leak, missing list removal and locking
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Jul 2020 15:15:40 +0000 (11:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Jul 2020 19:06:21 +0000 (15:06 -0400)
commit92143b2c56562f525bc74777a1ef9e320e4a5942
treee489cc8897a0e66c9a60a090cdbd71c69fc85098
parent3e75e2a7f7693107faa58606538f80a4faf73fe6
Fix: metadata stream leak, missing list removal and locking

The metadata stream is part of a list of metadata streams in the
metadata cache. Its addition to the list should be protected by
the metadata cache lock. It needs to be paired with protection
of list iteration with the same lock.

Removal from the list is entirely missing, and should be added
to lttng_metadata_ring_buffer_release (with proper locking).

This missing list removal was probably not causing issues because the
metadata stream structure was leaked: a kfree() is missing from
lttng_metadata_ring_buffer_release as well.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-abi.c
src/lttng-events.c
This page took 0.02502 seconds and 4 git commands to generate.