]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Do not poll non allocated cpu buffers
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 23 May 2013 18:21:36 +0000 (14:21 -0400)
committerSteven Rostedt <rostedt@rostedt.homelinux.com>
Tue, 28 May 2013 14:53:20 +0000 (10:53 -0400)
commit07c5c6f5acb4103ab22ec07934a707caee559b99
tree00d16ebb628161995b02939460d3f7b8d0f5ac53
parentdfcba32abb9d2d0e2bc8e3d7a20fa538604298d3
ring-buffer: Do not poll non allocated cpu buffers

The tracing infrastructure sets up for possible CPUs, but it uses
the ring buffer polling, it is possible to call the ring buffer
polling code with a CPU that hasn't been allocated. This will cause
a kernel oops when it access a ring buffer cpu buffer that is part
of the possible cpus but hasn't been allocated yet as the CPU has never
been online.

Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c