diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-02-20 09:51:12 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-02-21 09:15:23 -0500 |
commit | e78fb4eac817308027da88d02e5d0213462a7562 (patch) | |
tree | eb69e770b741d51fdc193a2f2c50503df8c08b7d /tools/perf/util/trace-event-scripting.c | |
parent | b401b621758e46812da61fa58a67c3fd8d91de0d (diff) |
ring-buffer: Do not let subbuf be bigger than write mask
The data on the subbuffer is measured by a write variable that also
contains status flags. The counter is just 20 bits in length. If the
subbuffer is bigger than then counter, it will fail.
Make sure that the subbuffer can not be set to greater than the counter
that keeps track of the data on the subbuffer.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Fixes: 2808e31ec12e5 ("ring-buffer: Add interface for configuring trace sub buffer size")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions