Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2011 17:57:05 -0500
From:      "Devon H. O'Dell" <devon.odell@gmail.com>
To:        Oliver Pinter <oliver.pntr@gmail.com>
Cc:        freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org
Subject:   Re: kern/155321: imgact_shell integer underflow when argv[0] is longer than interp + path
Message-ID:  <AANLkTi=MCLXuSH5b_4chfMjsCjyudV6-82-C0FvzKG8U@mail.gmail.com>
In-Reply-To: <AANLkTi=dUkneFhOMh_R6d7jS1og32xrBGo=%2B_LjedgHL@mail.gmail.com>
References:  <201103061956.p26JutYe064887@red.freebsd.org> <201103062000.p26K0InG097407@freefall.freebsd.org> <AANLkTinQqtBD1ANhjs6P3gb5EJL4MhPUcLiPfo%2BmpNEX@mail.gmail.com> <AANLkTi=dUkneFhOMh_R6d7jS1og32xrBGo=%2B_LjedgHL@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yeah, this has been a bug for quite some time.

--dho

2011/3/6 Oliver Pinter <oliver.pntr@gmail.com>:
> under 7.4 exist too this problem
>
> XXX@XXX test> gcc execve.c
> XXX@XXX test> cp /bin/ls .
> XXX@XXX test> ./a.out ls /tmp/test/ls
> a.out =A0 =A0 =A0 =A0 =A0 execve.c =A0 =A0 =A0 =A0ls =A0 =A0 =A0 =A0 =A0 =
=A0 =A0shellscript
> XXX@XXX test> ./a.out shellscript asdf
> shellscript
> XXX@XXX test> ./a.out shellscript /tmp/test/
> a.out* =A0 =A0 =A0 execve.c =A0 =A0 ls* =A0 =A0 =A0 =A0 =A0shellscript*
> XXX@XXX test> ./a.out shellscript /tmp/test/ls
> shellscript
> XXX@XXX test> ./a.out shellscript /tmp/test/shellscript
> shellscript
> XXX@XXX test> ./a.out shellscript /bin/echo-shellscript
> shellscript
> XXX@XXX test> ./a.out shellscript /bin/echo-shellscript1
> execve: Argument list too long
> XXX@XXX test> uname -a
> FreeBSD XXX 7.4-STABLE FreeBSD 7.4-STABLE #71 r219301+472ccf9: Sun Mar
> =A06 19:16:46 CET 2011 =A0 =A0 XXX@XXX:/usr/obj/usr/src/sys/stable =A0amd=
64
>
>
> On 3/6/11, Devon H. O'Dell <devon.odell@gmail.com> wrote:
>> Actually, kib@ points out that this isn't quite correct; the correct
>> fix should indeed be a 1-liner, attached.
>>
>> --dho
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=MCLXuSH5b_4chfMjsCjyudV6-82-C0FvzKG8U>