NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/49287: something wrong between exec_script and compat32
The following reply was made to PR kern/49287; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/49287: something wrong between exec_script and compat32
Date: Thu, 23 Oct 2014 03:53:10 +0000
On Thu, Oct 23, 2014 at 12:00:01AM +0000, David Holland wrote:
> I couldn't reproduce the crash, but I did get the corrupted argv. (I
> suspect the crash depends on exactly the right combination of
> circumstances.)
ok, the argv is already broke by the time it gets to
netbsd32_copyargs().
Given printfs in the obvious places in there, I get
exec32: arg: /argtest32
exec32: arg: ./zy0
exec32: arg: ENV=/root/.shrc
exec32: arg: BLOCKSIZE=1k
exec32: arg: PWD=/
exec32: arg: HOME=/root
exec32: arg: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
exec32: arg: HOST=
exec32: arg: TERM=vt100
exec32: arg: OLDPWD=/mnt
exec32: arg: USER=root
exec32: arg: LOGNAME=root
exec32: arg: SHELL=/bin/sh
exec32: env: ENV=/root/.shrc
exec32: env: BLOCKSIZE=1k
exec32: env: PWD=/
exec32: env: HOME=/root
exec32: env: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
exec32: env: HOST=
exec32: env: TERM=vt100
exec32: env: OLDPWD=/mnt
exec32: env: USER=root
exec32: env: LOGNAME=root
exec32: env: SHELL=/bin/sh
where ./zy0 is the test script.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index