Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 2014 05:05:52 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        dumbbell@FreeBSD.org
Cc:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r272386 - in head: sbin/ifconfig share/man/man4 sys/net
Message-ID:  <20141003.050552.130574284942561369.hrs@allbsd.org>
In-Reply-To: <542D9AED.6060805@FreeBSD.org>
References:  <201410012137.s91LbXL4025967@svn.freebsd.org> <542D9AED.6060805@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Oct__3_05_05_52_2014_877)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Jean-S=E9bastien P=E9dron <dumbbell@FreeBSD.org> wrote
  in <542D9AED.6060805@FreeBSD.org>:

du> > Author: hrs
du> > Date: Wed Oct  1 21:37:32 2014
du> > New Revision: 272386
du> > URL: https://svnweb.freebsd.org/changeset/base/272386
du> > =

du> > Log:
du> >   Virtualize lagg(4) cloner.  This change fixes a panic when tear=
ing down
du> >   if_lagg(4) interfaces which were cloned in a vnet jail.
du> =

du> Hi!
du> =

du> I believe this change needs at least an entry in UPDATING, because =
an
du> ifconfig(8) binary built before this commit fails to change laggpro=
to on
du> a kernel including this commit.
du> =

du> The error is the following:
du>     # ifconfig lagg0 laggproto failover
du>     ifconfig: SIOCSLAGG: Invalid argument
du> =

du> By quickly looking at the code, I would say that the culprit is the=

du> change in size of the "struct lag_reqall". The new "ra_opts" field =
in
du> "struct lagg_reqall" isn't initialized in the incompatible ifconfig=
(8)
du> binary. This could be considered invalid options, leading to "error=
 =3D
du> EINVAL" in if_lagg.c:1301.
du> =

du> Another non-critical regression is that this ifconfig(8) binary doe=
sn't
du> display the laggproto and laggport lines. I mean those lines:
du>     # ifconfig lagg0
du>     lagg0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> (..=
.)
du> 	(...)
du> 	laggproto failover lagghash l2,l3,l4
du> 	laggport: wlan0 flags=3D0<>
du> 	laggport: re0 flags=3D5<MASTER,ACTIVE>
du> =

du> Beside an UPDATING entry, how about a previously released world wit=
h
du> this new kernel? Isn't this configuration supposed to work?

 Ah, yes, I was lazy and did not keep the compatibility.  On or after
 r272446 an old ifconfig works with the new kernel.

-- Hiroki

----Security_Multipart(Fri_Oct__3_05_05_52_2014_877)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlQtsCAACgkQTyzT2CeTzy2zLACeP1+8fSGbBvGQX19z/7cYX1pV
OU0An2VXcxOGpxjqPTCoZ7nUYxnAQeae
=VZyS
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Oct__3_05_05_52_2014_877)----



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