NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/51916: ptrace(2) PT_IO option PIOD_READ_AUXV returns large piod_len on exit
The following reply was made to PR kern/51916; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/51916: ptrace(2) PT_IO option PIOD_READ_AUXV returns large
piod_len on exit
Date: Wed, 25 Jan 2017 17:06:50 +0000
On Wed, Jan 25, 2017 at 04:55:01PM +0000, n54%gmx.com@localhost wrote:
> On OpenBSD (5.9) PIOD_READ_AUXV returns with piod_len set to the
> number of read bytes. On NetBSD it returns surprisingly large
> value.
>
> OpenBSD the same code returns 64 bytes, on NetBSD 8496.
It would be easier for those of us following along from the couch to
look at this if you included the offending ptrace code itself :-)
Looks like process_auxv_offset() illegally adjusts uio_resid. Please
just fix it :-)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index