diff options
author | nikolay@redhat.com <nikolay@redhat.com> | 2013-04-06 00:54:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-08 16:45:09 -0400 |
commit | 69b0216ac255f523556fa3d4ff030d857eaaa37f (patch) | |
tree | 45138d6eae10f05815b353556fa62d57ceea35db /net | |
parent | ffcdedb667b6db8ee31c7efa76a3ec59d9c3b0fc (diff) | |
download | op-kernel-dev-69b0216ac255f523556fa3d4ff030d857eaaa37f.zip op-kernel-dev-69b0216ac255f523556fa3d4ff030d857eaaa37f.tar.gz |
bonding: fix bonding_masters race condition in bond unloading
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@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions