Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 01:03:24 -0500 (EST)
From:      Robert Watson <robert@cyrus.watson.org>
To:        Warner Losh <imp@village.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net bpf.c bpf.h 
Message-ID:  <Pine.NEB.3.96L.1000319005828.1270I-100000@fledge.watson.org>
In-Reply-To: <200003190551.WAA05331@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 18 Mar 2000, Warner Losh wrote:

> In message <200003190542.VAA29960@freefall.freebsd.org> Robert Watson writes:
> :   favorite pccard ethernet card, and then eject the card.  As some pccard
> :   drivers do not invoke if_detach(ifp), this bug will not manifest itself
> :   for those drivers.
> 
> Which ones don't?  ep, ed, and sn certainly do and I've *NEVER* seen
> any bpf related crashes.  I think that I would have since I run dhcp.
> 
> Not that this isn't a good change, I just don't understand this
> statement.

Warner,

I just successfully reproduced the bug using if_ep -- I inserted the card,
ran tcpdump -ni ep0, and then ejected the card.  It took a second or two,
but then the system hung.  if_wi seems to result in a failure much more
reliably.  As this bug can involve memory tromping, it will not
necessarily result in an immediate page fault, although that does appear
to be the case with if_wi. 

My statement about if_detach not being invoked by all drivers may have
been a result of an incorrect reading if if_ep_pccard.  If also appears to
call if_detach, and also crash. :-)  I have no other pccard ethernet
cards, so can't test any further drivers.

Given that I can reproduce the crash with if_ep, I think I'll go ahead and
commit the fix to that one also, once I've had a chance to test it.

  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 cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1000319005828.1270I-100000>