Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2006 14:15:17 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-current@freebsd.org
Cc:        Denis Shaposhnikov <dsh@vlink.ru>, Yar Tikhiy <yar@comp.chem.msu.su>, Gleb Smirnoff <glebius@freebsd.org>, bms@freebsd.org
Subject:   Re: carp kernel trap
Message-ID:  <200606271415.26559.max@love2party.net>
In-Reply-To: <20060627155452.B87634@mp2.macomnet.net>
References:  <87fyhwf6z0.fsf@neva.vlink.ru> <20060627111334.GE36941@comp.chem.msu.su> <20060627155452.B87634@mp2.macomnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart10777043.kqXVjQPqU8
Content-Type: multipart/mixed;
  boundary="Boundary-01=_aFSoE5GjQtl/nzU"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_aFSoE5GjQtl/nzU
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 27 June 2006 13:55, Maxim Konovalov wrote:
> On Tue, 27 Jun 2006, 15:13+0400, Yar Tikhiy wrote:
> > On Fri, Jun 23, 2006 at 03:26:43PM +0400, Denis Shaposhnikov wrote:
> > > Hi!
> > >
> > > I've got a kernel panic on yesterday's current:
> > >
> > > # ifconfig carp3 vhid 3 advskew 100 pass XXXXXXXX 10.10.8.7/26
> > >
> > > Fatal trap 12: page fault while in kernel mode
> > > cpuid =3D 1; apic id =3D 06
> > > fault virtual address	=3D 0x0
=2E..
> See my email to cvs-all.

Please try the attached patch and let me know if that fixes things for you.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-01=_aFSoE5GjQtl/nzU
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="ip_carp.imo.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="ip_carp.imo.diff"

Index: ip_carp.c
=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/store/mlaier/fcvs/src/sys/netinet/ip_carp.c,v
retrieving revision 1.40
diff -u -r1.40 ip_carp.c
=2D-- ip_carp.c	2 Jun 2006 19:59:33 -0000	1.40
+++ ip_carp.c	27 Jun 2006 12:11:41 -0000
@@ -375,6 +375,10 @@
 #ifdef INET6
 	sc->sc_im6o.im6o_multicast_hlim =3D CARP_DFLTTL;
 #endif
+	sc->sc_imo.imo_membership =3D (struct in_multi **)malloc(
+	    (sizeof(struct in_multi *) * IP_MIN_MEMBERSHIPS), M_CARP,
+	    M_WAITOK);
+	sc->sc_imo.imo_max_memberships =3D IP_MIN_MEMBERSHIPS;
=20
 	callout_init(&sc->sc_ad_tmo, NET_CALLOUT_MPSAFE);
 	callout_init(&sc->sc_md_tmo, NET_CALLOUT_MPSAFE);
@@ -415,6 +419,7 @@
 	bpfdetach(ifp);
 	if_detach(ifp);
 	if_free_type(ifp, IFT_ETHER);
+	free(sc->sc_imo.imo_membership, M_CARP);
 	free(sc, M_CARP);
 }
=20

--Boundary-01=_aFSoE5GjQtl/nzU--

--nextPart10777043.kqXVjQPqU8
Content-Type: application/pgp-signature

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

iD8DBQBEoSFeXyyEoT62BG0RAgM/AJ9HrEeqBpwyE8uxbWuF/QuxobFqxQCfR8PX
1gCWpvkz86uOle91ewOXX+I=
=0n0O
-----END PGP SIGNATURE-----

--nextPart10777043.kqXVjQPqU8--



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