From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29422 invoked by alias); 11 Feb 2006 18:26:13 -0000 Received: (qmail 29414 invoked by uid 22791); 11 Feb 2006 18:26:12 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 11 Feb 2006 18:26:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F7zRb-0006VI-9s; Sat, 11 Feb 2006 13:26:03 -0500 Date: Sat, 11 Feb 2006 18:26:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: David Lecomber , gdb Subject: Re: Whacky ia64: linux_proc_xfer_partial and lseek vs pread64 Message-ID: <20060211182603.GA24949@nevyn.them.org> Mail-Followup-To: Andreas Schwab , David Lecomber , gdb References: <1139591736.3780.26.camel@cpc2-oxfd8-0-0-cust771.oxfd.cable.ntl.com> <20060210181441.GA29255@nevyn.them.org> <20060210190617.GA30740@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00106.txt.bz2 On Sat, Feb 11, 2006 at 05:49:48PM +0100, Andreas Schwab wrote: > Daniel Jacobowitz writes: > > > Fascinating. That definitely seems like a kernel bug to me; why not? > > Looking closer, it indeed looks like a bug. With 2.6.5 this still did > work. The problem is that fs/read_write.c:rw_verify_area rejects negative > offsets as well, even though fs/proc/base.c:mem_read handles them fine. Who should this be reported to? Normally I fix ptrace bugs myself, but I can't do anything about ia64... hmm... I suppose it might manifest on ia32 too since the kernel/user split is up at 4G. I wonder if I can coax GDB to try to read the stack using pread. Anyway, I don't really have time to fix it. -- Daniel Jacobowitz CodeSourcery