Whacky ia64: linux_proc_xfer_partial and lseek vs pread64

Daniel Jacobowitz drow@false.org
Sat Feb 11 18:26:00 GMT 2006


On Sat, Feb 11, 2006 at 05:49:48PM +0100, Andreas Schwab wrote:
> Daniel Jacobowitz <drow@false.org> 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



More information about the Gdb mailing list