diff options
| author | Yicong Hui <yiconghui@gmail.com> | 2026-01-09 16:25:14 +0000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-03-17 10:40:51 -0400 |
| commit | 736ef29ed4573ce699949bd494cec328e6908527 (patch) | |
| tree | 02ed974a09027e3db4fad5919c94a221cde411ea /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9c7be0efa6f0daa949a5f3e3fdf9ea090b0713cb (diff) | |
drm/amdgpu: Replace deprecated strcpy() in amdgpu_virt_write_vf2pf_data
strcpy() is deprecated as it does not do any bounds checking (as
specified in Documentation/process/deprecated.rst).
There is a risk of buffer overflow in the case that the value for
THIS_MODULE->version exceeds the 64 characters. This is unlikely, but
replacing the deprecated function will pre-emptively remove this risk
entirely.
Replace both instances of strcpy() with the safer strscpy() function.
Changes have been compile tested.
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Yicong Hui <yiconghui@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
