Skip to content
Commit 4b3e3d22 authored by Steven Rostedt's avatar Steven Rostedt
Browse files

tracing: limit the number of loops the ring buffer self test can make



Impact: prevent deadlock if ring buffer gets corrupted

This patch adds a paranoid check to make sure the ring buffer consumer
does not go into an infinite loop. Since the ring buffer has been set
to read only, the consumer should not loop for more than the ring buffer
size. A check is added to make sure the consumer does not loop more than
the ring buffer size.

Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
parent 4d7a077c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment