lkml.org 
[lkml]   [2002]   [Aug]   [15]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
Patch in this message
/
DateThu, 15 Aug 2002 08:37:13 +0200 (CEST)
FromIngo Molnar <>
SubjectRe: [patch] user-vm-unlock-2.5.31-A2
On Thu, 15 Aug 2002, Jamie Lokier wrote:

> Is this correct?  I would have expected this, given that stacks are
> pre-decrement, and given that the value of `esp' is typically just after
> the end of an mmaped region:
> 
> +		childregs->esp -= sizeof(0UL);
> +		p->user_vm_lock = (long *) childregs->esp;

you are right. Fix against BK-curr attached.

	Ingo

--- linux/arch/i386/kernel/process.c.orig	Thu Aug 15 08:37:52 2002
+++ linux/arch/i386/kernel/process.c	Thu Aug 15 08:37:59 2002
@@ -627,7 +627,7 @@
 	 */
 	if (clone_flags & CLONE_RELEASE_VM) {
 		childregs->esp -= sizeof(0UL);
-		p->user_vm_lock = (long *) esp;
+		p->user_vm_lock = (long *) childregs->esp;
 	}
 	return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:28    [W:0.530 / U:0.540 seconds]
©2003-2008 Jasper Spaans