[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130408.164526.147100963232725098.davem@davemloft.net>
Date: Mon, 08 Apr 2013 16:45:26 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: nikolay@...hat.com
Cc: netdev@...r.kernel.org, andy@...yhouse.net, fubar@...ibm.com,
vfalico@...hat.com
Subject: Re: [PATCH 2/2] bonding: fix bonding_masters race condition in
bond unloading
From: Nikolay Aleksandrov <nikolay@...hat.com>
Date: Sat, 6 Apr 2013 12:54:38 +0200
> While the bonding module is unloading, it is considered that after
> rtnl_link_unregister all bond devices are destroyed but since no
> synchronization mechanism exists, a new bond device can be created
> via bonding_masters before unregister_pernet_subsys which would
> lead to multiple problems (e.g. NULL pointer dereference, wrong RIP,
> list corruption).
>
> This patch fixes the issue by removing any bond devices left in the
> netns after bonding_masters is removed from sysfs.
>
> Signed-off-by: Nikolay Aleksandrov <nikolay@...hat.com>
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