projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50508d9
)
mac80211: reject zero MAC address in add station
author
Karthikeyan Periyasamy
<periyasa@codeaurora.org>
Wed, 24 Jul 2019 09:16:10 +0000
(14:46 +0530)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 31 Jul 2019 09:00:52 +0000
(11:00 +0200)
This came up in fuzz testing, and really we don't consider
all-zeroes to be a valid MAC address in most places, so
also reject it here to avoid confusion later on.
Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Link:
https://lore.kernel.org/r/1563959770-21570-1-git-send-email-periyasa@codeaurora.org
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
patch
|
blob
|
history
diff --git
a/net/mac80211/cfg.c
b/net/mac80211/cfg.c
index 4d458067d80d17d774ef1cda0a31a28045781841..10b99b263c4faa141340f61572cc99b6498a9b2f 100644
(file)
--- a/
net/mac80211/cfg.c
+++ b/
net/mac80211/cfg.c
@@
-1543,7
+1543,7
@@
static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
if (ether_addr_equal(mac, sdata->vif.addr))
return -EINVAL;
- if (
is_multicast
_ether_addr(mac))
+ if (
!is_valid
_ether_addr(mac))
return -EINVAL;
sta = sta_info_alloc(sdata, mac, GFP_KERNEL);