[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1387281821-21342-1-git-send-email-makita.toshiaki@lab.ntt.co.jp>
Date: Tue, 17 Dec 2013 21:03:32 +0900
From: Toshiaki Makita <makita.toshiaki@....ntt.co.jp>
To: "David S . Miller" <davem@...emloft.net>,
Stephen Hemminger <stephen@...workplumber.org>,
Vlad Yasevich <vyasevic@...hat.com>, netdev@...r.kernel.org
Cc: Toshiaki Makita <makita.toshiaki@....ntt.co.jp>
Subject: [PATCH net v2 0/9] bridge: Fix corner case problems around local fdb entries
There are so many corner cases that are not handled properly around local
fdb entries.
- We might fail to delete the old entry and might delete an arbitrary local
entry when changing mac address of a bridge port.
- We always fail to delete the old entry when changing mac address of the
bridge device.
- We might incorrectly delete a necessary entry when detaching a bridge port.
- We might incorrectly delete a necessary entry when deleting a vlan.
and so on.
This is a patch series to fix these issues.
v2:
- Change the way to find the old entry in br_fdb_changeaddr() from memorizing
previous port address to introducing a new flag indicating whether a fdb
entry is added by user or not, commented by Stephen Hemminger.
- Add a fix for the way to insert a new address in br_fdb_changeaddr().
- Prevent creating an entry such that its dst is NULL in br_add_if() to
preserve old behavior, commented by Vlad Yasevich.
- Add more comments about slight behavior change, where the bridge device
come to be able to receive traffic to an address it has during short
window, to changelogs, commented by Vlad Yasevich.
- Add a fix for possible race in br_fdb_change_mac_address().
Toshiaki Makita (9):
bridge: Fix the way to find old local fdb entries in br_fdb_changeaddr
bridge: Fix the way to insert new local fdb entries in
br_fdb_changeaddr
bridge: Fix the way to find old local fdb entries in
br_fdb_change_mac_address
bridge: Change local fdb entries whenever mac address of bridge device
changes
bridge: Fix the way to check if a local fdb entry can be deleted
bridge: Properly check if local fdb entry can be deleted in
br_fdb_change_mac_address
bridge: Properly check if local fdb entry can be deleted in
br_fdb_delete_by_port
bridge: Properly check if local fdb entry can be deleted when deleting
vlan
bridge: Prevent possible race condition in br_fdb_change_mac_address
net/bridge/br_device.c | 3 +-
net/bridge/br_fdb.c | 126 +++++++++++++++++++++++++++++++-----------------
net/bridge/br_if.c | 6 +--
net/bridge/br_private.h | 11 ++++-
net/bridge/br_stp_if.c | 2 +
net/bridge/br_vlan.c | 27 ++++++++---
6 files changed, 118 insertions(+), 57 deletions(-)
--
1.8.1.2
--
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