Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 20:40:45 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/172075: panic if an in-use tap interface is destroyed
Message-ID:  <201209252040.q8PKejqJ072822@freefall.freebsd.org>
Resent-Message-ID: <201209252050.q8PKo97X073569@freefall.freebsd.org>

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

>Number:         172075
>Category:       kern
>Synopsis:       panic if an in-use tap interface is destroyed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 20:50:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ed Maste
>Release:        FreeBSD 9.0-STABLE i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD freefall.freebsd.org 9.0-STABLE FreeBSD 9.0-STABLE #6 r235139: Tue May 8 21:19:03 UTC 2012 simon@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386

>Description:

tap_destroy contains an assertion that the tap device
is not open, which causes a panic if attempting to
destroy that tap device.

   211  static void
   212  tap_destroy(struct tap_softc *tp)
   213  {
   214          struct ifnet *ifp = tp->tap_ifp;
   215  
   216          /* Unlocked read. */
   217          KASSERT(!(tp->tap_flags & TAP_OPEN),
   218                  ("%s flags is out of sync", ifp->if_xname));

>How-To-Repeat:

# ifconfig tap0 create
# cat /dev/tap0 &
# ifconfig tap0 destroy

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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