misc/152148: vnet_pfil_init() happens too late if pfil_head_register() is called from if_ethersubr.c

John A. Murphy murf at perftech.com
Thu Nov 11 21:10:06 UTC 2010


>Number:         152148
>Category:       misc
>Synopsis:       vnet_pfil_init() happens too late if pfil_head_register() is  called from if_ethersubr.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 11 21:10:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     John A. Murphy
>Release:        8.1-Release
>Organization:
PerfTech
>Environment:
FreeBSD freebsd64.perftech.com 8.1-RELEASE FreeBSD 8.1-RELEASE #12: Fri Oct 29 14:07:28 CDT 2010
root at freebsd64.perftech.com:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
I'd like to add a pfil_hook in if_ethersubr.c, similar to the one in NetBSD, but
vnet_pfil_init() happens AFTER ether_ifattach(), so the filter registered in either_ifattach()is lost when vnet_pfil_init() invokes LIST_INIT(&V_pfil_head_list).

>How-To-Repeat:
Build a kernel that registers a pfil_hook in ether_ifattach() and load a module that tries to use that filter.  OR --- look at the code and take my word for it.
>Fix:
Unknown --- maybe change order of execution.

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


More information about the freebsd-bugs mailing list