VIMAGE + PF crash in mbuf destructor

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

On 22 July 2013 08:43, Nikos Vassiliadis <nvass at> 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:
> 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


More information about the freebsd-virtualization mailing list