+ uml-__user-annotation-in-arch_prctl.patch added to -mm tree

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

 



The patch titled

     uml: __user annotation in arch_prctl

has been added to the -mm tree.  Its filename is

     uml-__user-annotation-in-arch_prctl.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: uml: __user annotation in arch_prctl
From: Al Viro <viro@xxxxxxxxxxxxxxxxxx>


fix uml/amd64 prctl()

put_user() there should go to (long __user *)addr, not &addr

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/um/sys-x86_64/syscalls.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/um/sys-x86_64/syscalls.c~uml-__user-annotation-in-arch_prctl arch/um/sys-x86_64/syscalls.c
--- devel/arch/um/sys-x86_64/syscalls.c~uml-__user-annotation-in-arch_prctl	2006-06-03 19:28:42.000000000 -0700
+++ devel-akpm/arch/um/sys-x86_64/syscalls.c	2006-06-03 19:28:42.000000000 -0700
@@ -45,7 +45,7 @@ static long arch_prctl_tt(int code, unsi
 	case ARCH_GET_GS:
 		ret = arch_prctl(code, (unsigned long) &tmp);
 		if(!ret)
-			ret = put_user(tmp, &addr);
+			ret = put_user(tmp, (long __user *)addr);
 		break;
 	default:
 		ret = -EINVAL;
_

Patches currently in -mm which might be from viro@xxxxxxxxxxxxxxxxxx are

uml-__user-annotation-in-arch_prctl.patch
uml-more-__user-annotations.patch
git-audit-master.patch
kauditd_thread-warning-fix.patch
vfs-add-lock-owner-argument-to-flush-operation.patch
nbd-endian-annotations.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux