mac80211/wpa: use constant time memory comparison for MACs
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 10 Jun 2017 02:59:12 +0000 (04:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Jun 2017 08:24:34 +0000 (10:24 +0200)
commit98c67d187db7808b1f3c95f2110dd4392d034182
treeeafa0fac1f1551cac32b8326e955cb20b516e6f9
parentc87905bec5dad66aa6bb43d11502cafdb33e07db
mac80211/wpa: use constant time memory comparison for MACs

Otherwise, we enable all sorts of forgeries via timing attack.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/wpa.c