[openwrt/openwrt] mac80211: mesh: drop frames appearing to be from us

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 25 01:54:36 PST 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/166741240afd396c41b284edaa5180b162232741

commit 166741240afd396c41b284edaa5180b162232741
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Jan 19 18:34:10 2018 +0100

    mac80211: mesh: drop frames appearing to be from us
    
    Upstream backport to fix issues arising from devices with duplicate MAC
    addresses
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 ...-mesh-drop-frames-appearing-to-be-from-us.patch | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/package/kernel/mac80211/patches/323-mac80211-mesh-drop-frames-appearing-to-be-from-us.patch b/package/kernel/mac80211/patches/323-mac80211-mesh-drop-frames-appearing-to-be-from-us.patch
new file mode 100644
index 0000000..839e927
--- /dev/null
+++ b/package/kernel/mac80211/patches/323-mac80211-mesh-drop-frames-appearing-to-be-from-us.patch
@@ -0,0 +1,25 @@
+From: Johannes Berg <johannes.berg at intel.com>
+Date: Thu, 4 Jan 2018 15:51:53 +0100
+Subject: [PATCH] mac80211: mesh: drop frames appearing to be from us
+
+If there are multiple mesh stations with the same MAC address,
+they will both get confused and start throwing warnings.
+
+Obviously in this case nothing can actually work anyway, so just
+drop frames that look like they're from ourselves early on.
+
+Reported-by: Gui Iribarren <gui at altermundi.net>
+Signed-off-by: Johannes Berg <johannes.berg at intel.com>
+---
+
+--- a/net/mac80211/rx.c
++++ b/net/mac80211/rx.c
+@@ -3632,6 +3632,8 @@ static bool ieee80211_accept_frame(struc
+ 		}
+ 		return true;
+ 	case NL80211_IFTYPE_MESH_POINT:
++		if (ether_addr_equal(sdata->vif.addr, hdr->addr2))
++			return false;
+ 		if (multicast)
+ 			return true;
+ 		return ether_addr_equal(sdata->vif.addr, hdr->addr1);



More information about the lede-commits mailing list