Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2010 21:04:24 GMT
From:      "John A. Murphy" <murf@perftech.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/152148: vnet_pfil_init() happens too late if pfil_head_register() is called from if_ethersubr.c 
Message-ID:  <201011112104.oABL4OSv039525@www.freebsd.org>
Resent-Message-ID: <201011112110.oABLA52c002036@freefall.freebsd.org>

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

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



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