]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/kmemleak: replace strncpy() with strscpy()
authorKees Cook <kees@kernel.org>
Wed, 10 Jul 2024 00:13:08 +0000 (17:13 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 18 Jul 2024 04:05:18 +0000 (21:05 -0700)
commit0b84780134fb02525ef29ddcb88c3d560ba88a9c
treeb515a63f3d68d7bb7e2b756e69a27149e2ba4816
parent53dabce2652fb854eae84609ce9c37429d5d87ba
mm/kmemleak: replace strncpy() with strscpy()

Replace the depreciated[1] strncpy() calls with strscpy().  Uses of
object->comm do not depend on the padding side-effect.

Link: https://github.com/KSPP/linux/issues/90
Link: https://lkml.kernel.org/r/20240710001300.work.004-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c