From owner-freebsd-net Sat Sep 9 9:17:29 2000 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 2245B37B423; Sat, 9 Sep 2000 09:17:26 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id MAA68157; Sat, 9 Sep 2000 12:16:39 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 9 Sep 2000 12:16:39 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Brian Somers Cc: Wes Peters , Seigo Tanimura , current@FreeBSD.org, net@FreeBSD.org Subject: Re: the ifp to a removed pcmcia ethernet card is left in struct ip_moptions and struct ifmultiaddr In-Reply-To: <200009082350.e88Nogn57839@hak.lan.Awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 9 Sep 2000, Brian Somers wrote: > > Seigo Tanimura wrote: > > > > > > I have been suffering from this problem for almost 2 months. When I > > > remove a pcmcia ethernet card from my laptop PC, routed(8) announces > > > updated routing information by multicast, leading to a kernel > > > panic. > > > > Ejecting an interface configured up will do that. ifconfig the interface > > `down' and then `delete' before ejecting it. > > Interfaces in promiscuous mode will always result in a reboot. I > *usually* get away with ejecting an active card if it's not in > promiscuous mode. A while back I committed patches to use bpf_detach(), which elminated the struct ifnet pointer in the bpf described at detach time. This removed most of the panics I experience on ejecting pccards. This should be in 5.0-CURRENT and 4.1-STABLE. If you're still experiencing panics, we should track it down some more as presumably there is another reference (it could also be a race condition, or in-use mbuf during detach?) Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message