MFC VIMAGE fixes to 11-stable

Kristof Provost kristof at sigsegv.be
Thu Apr 20 13:32:33 UTC 2017


On 20 Apr 2017, at 15:28, Marko Zec wrote:
> Right.  But pfi_attach_group_event() and the other handlers cited 
> above
> _do_ in fact invoke CURVNET_SET(vnet0) on entry, overriding the proper
> vnet choice from the caller.
>
Yes, that does look wrong.
I should have looked a bit further.

> Therefore the proper fix should be as simple as removing CURVNET_SET() 
> /
> CURVNET_RESTORE() macro pairs from the cited handlers.
>
Hopefully, yes. I’ve still got some other pf/vnet issues on my todo 
list, but
I’ve now added this too.  It might actually explain some other bug 
report I’ve
seen (but not looked at in any depth).

Regards,
Kristof


More information about the freebsd-net mailing list