VIMAGE + PF crash in mbuf destructor

Adrian Chadd adrian at freebsd.org
Mon Jul 22 17:11:59 UTC 2013


On 22 July 2013 08:43, Nikos Vassiliadis <nvass at gmx.com> wrote:
> Hi,
>
> I think this comes from the eventhandlers pf installs to handle
> ifnet events. It seems like a wifi event causes this code to run
> and the context is not set. Does the panic happen only when you
> use vnet jails?
>
> Could you try putting all evenhandlers in an
> 'if (IS_DEFAULT_VNET(curvnet))' block?
>
> It's here:
> http://fxr.watson.org/fxr/source/netpfil/pf/pf_if.c#L127
> the pfi_*_cookie = ... lines.
>
> I am not sure if this would be enough though since it might
> panic in other places.

I don't think the default vnet context is the correct behaviour there.
We'd need to figure out what the vnet context of the mbuf is and set
that.


-adrian


More information about the freebsd-virtualization mailing list