Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 00:38:36 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Wiktor Niesiobedzki <w@evip.pl>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: adsl/pppoe no longer connecting on 5.1
Message-ID:  <20030612073836.GA39115@rot13.obsecurity.org>
In-Reply-To: <20030612051812.GQ48387@mail.evip.pl>
References:  <200306112248.AA655556764@141.com> <20030612045022.GA36033@rot13.obsecurity.org> <20030612051812.GQ48387@mail.evip.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 12, 2003 at 07:18:12AM +0200, Wiktor Niesiobedzki wrote:
> On Wed, Jun 11, 2003 at 09:50:22PM -0700, Kris Kennaway wrote:
> > On Wed, Jun 11, 2003 at 10:48:32PM -0600, Andrew Lankford wrote:
> > > >Can you try backing out bsd.sys.mk to r1.26 and rebuild your world a=
nd
> > > >kernel?  Later versions of this file are causing strange problems >w=
ith
> > > >package builds.
> > >=20
> > > I was a little lazy and just backed out bsd.sys.mk to 1.26 as you
> > > suggested, rebuilt /usr/lib/ , /usr/include/, and ppp.  My kernel is =
the
> > > same as last time.  As a result, ppp's now up and running again.
> >=20
> > Thanks, that's actually more useful because it isolates the problem.
> > It's probably something in ppp that is misbehaving with CSTD=3Dc99.
> >=20
> alloca(3) function is misbehaving in ppp (namely ether.c). Is this a comp=
iler
> bug?

Okay, it looks like alloca.S was broken.  My previous patch that
increased the size of allocations was just a gratuitous difference
with the inline version, and is not necessary.  Here's a fix that
seems to get ppp to stop complaining.

Kris

Index: alloca.S
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/lib/libc/i386/gen/alloca.S,v
retrieving revision 1.10
diff -u -r1.10 alloca.S
--- alloca.S	23 Mar 2002 02:44:18 -0000	1.10
+++ alloca.S	12 Jun 2003 07:35:03 -0000
@@ -51,6 +51,7 @@
 	andl	$0xfffffffc,%eax
 	subl	%eax,%esp
 	movl	%esp,%eax	/* base of newly allocated space */
+	leal    24(%esp), %eax
 	pushl	8(%ecx)		/* copy possible saved registers */
 	pushl	4(%ecx)
 	pushl	0(%ecx)

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+6C38Wry0BWjoQKURAmzsAKD4w1FmsWmSbEqtvp7HjpZgBykKGQCgxGKd
5jf9ogr3hgIf2UEHMOSls2g=
=91/y
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030612073836.GA39115>