Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 15 Aug 2002 02:32:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 15 Aug 2002 02:32:56 -0400 Received: from mx1.elte.hu ([157.181.1.137]:44690 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Thu, 15 Aug 2002 02:32:55 -0400 Date: Thu, 15 Aug 2002 08:37:13 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Jamie Lokier Cc: Linus Torvalds , Subject: Re: [patch] user-vm-unlock-2.5.31-A2 In-Reply-To: <20020815050343.A27963@kushida.apsleyroad.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 31 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/