aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/kmemtrace.c
diff options
context:
space:
mode:
authorLai Jiangshan2010-03-08 14:50:43 +0800
committerSteven Rostedt2010-03-12 20:26:56 -0500
commit52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4 (patch)
tree77ec9beecf7a58ed06f59c589f122caf87ec4f0b /kernel/trace/kmemtrace.c
parent915a0b575fdb2376135ed9334b3ccb1eb51db622 (diff)
ring-buffer: Move disabled check into preempt disable section
The ring buffer resizing and resetting relies on a schedule RCU action. The buffers are disabled, a synchronize_sched() is called and then the resize or reset takes place. But this only works if the disabling of the buffers are within the preempt disabled section, otherwise a window exists that the buffers can be written to while a reset or resize takes place. Cc: stable@kernel.org Reported-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4B949E43.2010906@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/kmemtrace.c')
0 files changed, 0 insertions, 0 deletions