diff options
author | Kees Cook <kees@kernel.org> | 2024-12-17 01:45:15 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2024-12-18 13:33:40 +0300 |
commit | b8f2688258f886f0bc0c0cb3ebe51efaa12191ec (patch) | |
tree | d0865144bb20468023a5a507f5d7c945f1823f7c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fac04efc5c793dccbd07e2d59af9f90b7fc0dca4 (diff) | |
download | linux-b8f2688258f886f0bc0c0cb3ebe51efaa12191ec.tar.xz |
inotify: Use strscpy() for event->name copies
Since we have already allocated "len + 1" space for event->name, make sure
that name->name cannot ever accidentally cause a copy overflow by calling
strscpy() instead of the unbounded strcpy() routine. This assists in
the ongoing efforts to remove the unsafe strcpy() API[1] from the kernel.
Link: https://github.com/KSPP/linux/issues/88 [1]
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20241216224507.work.859-kees@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions