[to-be-updated] mm-memfd-replace-strcpy-by-strscpy.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm/memfd: replace strcpy() by strscpy()
has been removed from the -mm tree.  Its filename was
     mm-memfd-replace-strcpy-by-strscpy.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Stephen Zhang <stephenzhangzsd@xxxxxxxxx>
Subject: mm/memfd: replace strcpy() by strscpy()

strcpy() is being deprecated.  Replace it with the safer strscpy().

Link: https://lkml.kernel.org/r/1611455017-2210-1-git-send-email-stephenzhangzsd@xxxxxxxxx
Signed-off-by: Stephen Zhang <stephenzhangzsd@xxxxxxxxx>
Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/memfd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/memfd.c~mm-memfd-replace-strcpy-by-strscpy
+++ a/mm/memfd.c
@@ -278,7 +278,7 @@ SYSCALL_DEFINE2(memfd_create,
 	if (!name)
 		return -ENOMEM;
 
-	strcpy(name, MFD_NAME_PREFIX);
+	strscpy(name, MFD_NAME_PREFIX, len + MFD_NAME_PREFIX_LEN);
 	if (copy_from_user(&name[MFD_NAME_PREFIX_LEN], uname, len)) {
 		error = -EFAULT;
 		goto err_name;
_

Patches currently in -mm which might be from stephenzhangzsd@xxxxxxxxx are

mm-swapfilec-fix-debugging-information-problem.patch
mm-early_ioremapc-use-__func__-instead-of-function-name.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux