kern/79493: [PATCH] Reproducible if_tun panic

Christian Brueffer chris at unixpages.org
Sat Apr 2 15:10:03 PST 2005


>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:


More information about the freebsd-bugs mailing list