Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2013 10:11:57 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Nikos Vassiliadis <nvass@gmx.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>, freebsd-pf@freebsd.org
Subject:   Re: VIMAGE + PF crash in mbuf destructor
Message-ID:  <CAJ-VmomAC573hrQivfT9Gn_tJn5SkMhM_MK8hUCbtr-7D-NGDw@mail.gmail.com>
In-Reply-To: <51ED5308.3020008@gmx.com>
References:  <CAG=rPVfxFiOVOeSyDP=wBubNQCHK5dqcgBBaJjeS6XXtSZSZqg@mail.gmail.com> <51ED5308.3020008@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 July 2013 08:43, Nikos Vassiliadis <nvass@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomAC573hrQivfT9Gn_tJn5SkMhM_MK8hUCbtr-7D-NGDw>