[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130422.204113.1112043388924796755.davem@davemloft.net>
Date: Mon, 22 Apr 2013 20:41:13 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ordex@...istici.org
Cc: b.a.t.m.a.n@...ts.open-mesh.org, netdev@...r.kernel.org,
lindner_marek@...oo.de
Subject: Re: [PATCH next 2/2] batman-adv: fix global protection fault
during soft_iface destruction
From: Antonio Quartulli <ordex@...istici.org>
Date: Fri, 19 Apr 2013 11:04:52 +0200
> batadv_mesh_free() schedules some RCU callbacks which need the bat_priv struct
> to do their jobs, while free_netdev(), which is called immediately after, is
> destroying the private data.
>
> Put an rcu_barrier() in the middle so that free_netdev() is invoked only after
> all the callbacks returned.
>
> This bug has been introduced by ab8f433dd39be94e8617cff2dfe9f7eca162eb15
> ("batman-adv: Move deinitialization of soft-interface to destructor")
>
> Signed-off-by: Antonio Quartulli <ordex@...istici.org>
> Signed-off-by: Marek Lindner <lindner_marek@...oo.de>
Applied.
--
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