diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-07-12 19:45:17 +0200 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-07-19 18:59:57 -0700 |
| commit | 5bd88fef6a0858bc80723de2e63168965054705d (patch) | |
| tree | bdb26a0f70c64795997ff6a7b418eaec2cd845b4 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 5add26c0a18636e8e9fe409d4591c8a36e1bf695 (diff) | |
mm/memfd: replace deprecated strcpy() with memcpy() in alloc_name()
strcpy() is deprecated; use memcpy() instead.
Not copying the NUL terminator is safe because strncpy_from_user() would
overwrite it anyway by appending uname to the destination buffer at index
MFD_NAME_PREFIX_LEN.
No functional changes intended.
Link: https://github.com/KSPP/linux/issues/88
Link: https://lkml.kernel.org/r/20250712174516.64243-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
