diff options
| author | Tanushree Shah <tshah@linux.ibm.com> | 2026-07-26 00:19:49 +0530 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-08-06 09:13:15 -0700 |
| commit | 1121a7af1833f8b5723f1e32685b461614353d5d (patch) | |
| tree | 5c218efebd6b4e118fec6230007c31051a8c1c1e /scripts/patch-kernel | |
| parent | 6d421f609bba7b0b1a11741ec4b19feadfd27051 (diff) | |
| download | linux-1121a7af1833f8b5723f1e32685b461614353d5d.tar.gz linux-1121a7af1833f8b5723f1e32685b461614353d5d.zip | |
perf trace-event: Fix buffer overflow in read_string()
read_string() writes into buf[BUFSIZ] one byte at a time without
checking 'size' against the buffer bound before each write. A
string longer than BUFSIZ in the input overflows the stack buffer.
Add a bounds check before each write to prevent overflow. On
overflow the function returns NULL, matching its other error paths.
Fixes: 9215545e99d8 ("perf: Convert perf tracing data into a tracing_data event")
Signed-off-by: Tanushree Shah <tshah@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
