mac80211: mesh: drop frames appearing to be from us
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jan 2018 14:51:53 +0000 (15:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:23:27 +0000 (10:23 +0100)
commit58c4ee842b30b7d6feac4c098949a11f42706579
tree98288cd57333e1b61a4dafbdf0e9b2a6124837b9
parent4ec2b1ca93d8cd1b1ea7cc6fd4eb5c5a362e127e
mac80211: mesh: drop frames appearing to be from us

[ Upstream commit 736a80bbfda709fb3631f5f62056f250a38e5804 ]

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@altermundi.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/rx.c