[PATCH 0/2] [GIT PULL][v3.5] ring-buffer: Fixes for the changes in the last merge window

From: Steven Rostedt
Date: Fri Jun 29 2012 - 17:41:17 EST



Ingo,

This patch series has a couple of fixes for bugs that snuck into the last
merge window. The first is a crash that can happen because of an
uninitialized list, and failing to allocate the requested amount. This
can happen by changing the buffer_size_kb to a huge amount as the first
change that is done to it after booting up (note, the bug does not happen
if a successful change happens first).

The second patch can cause the ring buffer accounting (which is used by
the infrastructure of the ring buffer) to get out of sync. This happens
if you fill the buffer and then remove a few pages from it while it
is full.

The fixes are pretty simple, and should go into the 3.5-rc.

Please pull the latest tip/perf/urgent tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
tip/perf/urgent

Head SHA1: 48fdc72f23ad9a9956e524a47843135d0bbc3317


Vaibhav Nagarnaik (2):
ring-buffer: Fix crash due to uninitialized new_pages list head
ring-buffer: Fix accounting of entries when removing pages

----
kernel/trace/ring_buffer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Attachment: signature.asc
Description: This is a digitally signed message part