]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
string: Remove strlcpy()
authorKees Cook <keescook@chromium.org>
Thu, 18 Jan 2024 20:31:55 +0000 (12:31 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 19 Jan 2024 19:59:11 +0000 (11:59 -0800)
commitd26270061ae66b915138af7cd73ca6f8b85e6b44
treeefd84b38f392f32f691e6f98173b90cbbd0e0106
parente28b0359587fe4055c838698172de0530b511702
string: Remove strlcpy()

With all the users of strlcpy() removed[1] from the kernel, remove the
API, self-tests, and other references. Leave mentions in Documentation
(about its deprecation), and in checkpatch.pl (to help migrate host-only
tools/ usage). Long live strscpy().

Link: https://github.com/KSPP/linux/issues/89
Cc: Azeem Shaikh <azeemshaikh38@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: linux-hardening@vger.kernel.org
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/fortify-string.h
include/linux/string.h
lib/nlattr.c
lib/string.c
lib/test_fortify/write_overflow-strlcpy-src.c [deleted file]
lib/test_fortify/write_overflow-strlcpy.c [deleted file]