Re: [PATCH] tracing: Fix crash when it fails to alloc ring buffer

2017-12-26 Thread Steven Rostedt
On Tue, 26 Dec 2017 15:12:53 +0800 Chunyan Zhang wrote: > From: Jing Xia > > Double free of the ring buffer happens when it fails to alloc new > ring buffer instance for max_buffer if TRACER_MAX_TRACE is configured. > The root cause is that the pointer is not set to NULL after the buffer > is f

[PATCH] tracing: Fix crash when it fails to alloc ring buffer

2017-12-25 Thread Chunyan Zhang
From: Jing Xia Double free of the ring buffer happens when it fails to alloc new ring buffer instance for max_buffer if TRACER_MAX_TRACE is configured. The root cause is that the pointer is not set to NULL after the buffer is freed in allocate_trace_buffers(), and the freeing of the ring buffer i