linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 4/6] UML - __user annotation in arch_prctl
@ 2006-06-04  2:16 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-06-04  2:16 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel, Al Viro

From: Al Viro <viro@zeniv.linux.org.uk>

fix uml/amd64 prctl()
   
put_user() there should go to (long __user *)addr, not &addr

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.17-mm/arch/um/sys-x86_64/syscalls.c
===================================================================
--- linux-2.6.17-mm.orig/arch/um/sys-x86_64/syscalls.c	2006-05-31 12:14:58.000000000 -0400
+++ linux-2.6.17-mm/arch/um/sys-x86_64/syscalls.c	2006-06-02 18:39:09.000000000 -0400
@@ -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;




_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-06  2:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-04  2:16 [uml-devel] [PATCH 4/6] UML - __user annotation in arch_prctl Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).