Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265855AbTFSRWJ (ORCPT ); Thu, 19 Jun 2003 13:22:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265857AbTFSRWJ (ORCPT ); Thu, 19 Jun 2003 13:22:09 -0400 Received: from are.twiddle.net ([64.81.246.98]:24988 "EHLO are.twiddle.net") by vger.kernel.org with ESMTP id S265855AbTFSRWH (ORCPT ); Thu, 19 Jun 2003 13:22:07 -0400 Date: Thu, 19 Jun 2003 10:35:47 -0700 From: Richard Henderson To: davidm@hpl.hp.com Cc: "Aneesh Kumar K.V" , "David S. Miller" , Russell King , Linux Kernel List Subject: Re: force_successful_syscall_return() buggy? Message-ID: <20030619173547.GA9514@twiddle.net> Mail-Followup-To: davidm@hpl.hp.com, "Aneesh Kumar K.V" , "David S. Miller" , Russell King , Linux Kernel List References: <3EEEBB1F.70609@digital.com> <16111.25976.768140.306522@napali.hpl.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16111.25976.768140.306522@napali.hpl.hp.com> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 23 On Tue, Jun 17, 2003 at 12:01:12PM -0700, David Mosberger wrote: > Aneesh> I was facing a simillar problem with ptrace on Alpha (ptrace > Aneesh> on alpha expect the pt_regs at current + 2*PAGE_SIZE for > Aneesh> 2.4. kernel ) w.r.t www.openssi.org project. What i found > Aneesh> was that even after we return to user space subsequent > Aneesh> syscalls are not putting pt_regs at that offset. I guess > Aneesh> while entering the kernel kernel stack pointer always point > Aneesh> to value stored in thread_struct.ksp ? > > If a platform doesn't start with an empty kernel stack on entry from > user-space, that platform will be wasting (precious) stack space and > ptrace() most likely won't work reliably. Personally, I'd consider > such behavior a bug... So would I. It's now fixed. r~ - 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/