[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20121206192852.GG16122@casper.infradead.org>
Date: Thu, 6 Dec 2012 19:28:52 +0000
From: Thomas Graf <tgraf@...g.ch>
To: Vlad Yasevich <vyasevich@...il.com>
Cc: linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
Neil Horman <nhorman@...driver.com>
Subject: Re: [PATCH] sctp: Add RCU protection to assoc->transport_addr_list
On 12/06/12 at 02:14pm, Vlad Yasevich wrote:
> Right, but there may be chunks that have cached association with a ref
> before sctp_association_free() is called. Now, after free they may
> be looking at the transport list for whatever reason... Most places
> check assoc->dead, but I don't want to get caught. So, there is
> a remote chance that someone may look at transports and would crash
> without rcu.
You are right, sctp_associate_free() can be called even though there
may still be multiple refs on that assoc around. We are currently
fine as I believe sk_lock serializes all the accesses but better
be safe than sorry.
I've respun the patches in a v2 patch series.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists