Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2014 17:10:46 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-net@freebsd.org
Cc:        Alexander Motin <mav@freebsd.org>
Subject:   Re: Multicast races on vlan & lagg
Message-ID:  <201408111710.46443.jhb@freebsd.org>
In-Reply-To: <53DA50E2.6070606@FreeBSD.org>
References:  <53DA50E2.6070606@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, July 31, 2014 10:21:22 am Alexander Motin wrote:
> Hi.
> 
> Doing some tests on FreeNAS (FreeBSD 9.2+) I hit series of panic during
> active interfaces manipulation in some scenarios including multicast and
> several vlans on top of lagg. I am not ready to reproduce the full
> environment on head, but the code looks equal, so probably the bugs.
> 
> I've made a patch to improve locking in that area, that seems fixes the
> problems: http://people.freebsd.org/~mav/mcast_vlan_lagg.patch
> 
> Could somebody with more experience in the area please take a look?

Can't you use IF_ADDR_RLOCK instead of IF_ADDR_WLOCK?  Also, strictly speaking 
it might be best to use if_maddr_rlock() instead of directly using 
IF_ADDR_RLOCK().

-- 
John Baldwin



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