diff options
| author | Dawid Osuchowski <dawid.osuchowski@linux.intel.com> | 2026-09-01 14:57:49 +0200 |
|---|---|---|
| committer | Karol Wachowski <karol.wachowski@linux.intel.com> | 2026-09-07 08:08:36 +0200 |
| commit | 95bf070f3225dc7175725438c916ad321d42fe45 (patch) | |
| tree | 4fa93115c43ae85ca2ef8d7d76bd6122adf8484d /scripts/Makefile.thinlto | |
| parent | 0724afc55c77c36c7feb9a7264b02aa7593c5c2d (diff) | |
| download | linux-95bf070f3225dc7175725438c916ad321d42fe45.tar.gz linux-95bf070f3225dc7175725438c916ad321d42fe45.zip | |
accel/ivpu: Limit firmware log name prints to field size
The name in struct vpu_tracing_buffer_header is a fixed-size array
populated by the NPU firmware. It is expected to be NUL-terminated,
but nothing on the host side enforces this, so printing it with an
unbounded string conversion would read past the field if the
terminator is ever missing and expose adjacent bytes of the shared
tracing BO through dmesg and the debugfs FW log output.
Print at most as many characters as the name field holds, so the output
never runs past it even if the string is not NUL-terminated.
Cc: stable@vger.kernel.org
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260827102339.281799-1-dawid.osuchowski@linux.intel.com?part=2
Fixes: d4e4257afa6e ("accel/ivpu: Add firmware tracing support")
Signed-off-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://patch.msgid.link/20260901125749.404338-4-dawid.osuchowski@linux.intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
