Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Apr 2005 01:08:27 +0200 (CEST)
From:      Christian Brueffer <chris@unixpages.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/79493: [PATCH] Reproducible if_tun panic
Message-ID:  <20050402230827.D425828452@haakonia.hitnet.rwth-aachen.de>
Resent-Message-ID: <200504022310.j32NA3iP048506@freefall.freebsd.org>

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

>Number:         79493
>Category:       kern
>Synopsis:       [PATCH] Reproducible if_tun panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 02 23:10:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Christian Brueffer
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
	
>Description:
	It's possible to trigger a panic by kldload'ing if_tun
	if it is already compiled into the kernel or loaded as
	a module.
	This doesn't happen on 5.4-PRERELEASE systems.
>How-To-Repeat:
	kldload if_tun
	
>Fix:
The following patch works for me, though I'm not sure it's
the correct thing to do.

Index: if_tun.c
===================================================================
RCS file: /data/ncvs/freebsd/src/sys/net/if_tun.c,v
retrieving revision 1.149
diff -u -r1.149 if_tun.c
--- if_tun.c    31 Mar 2005 12:19:44 -0000      1.149
+++ if_tun.c    2 Apr 2005 23:05:32 -0000
@@ -856,3 +856,5 @@
        splx(s);
        return (revents);
 }
+
+MODULE_VERSION(tun, 1);
	



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


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