mac80211: use constant time comparison with keys
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 17 Oct 2017 18:32:07 +0000 (20:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 Oct 2017 07:39:14 +0000 (09:39 +0200)
commit2bdd713b92a9cade239d3c7d15205a09f556624d
treeb441303ef59832d45fa555ee2bf3e52f7c13980c
parent1b72bf5a0777d7cec6c2d857ac15599022b3c123
mac80211: use constant time comparison with keys

Otherwise we risk leaking information via timing side channel.

Fixes: fdf7cb4185b6 ("mac80211: accept key reinstall without changing anything")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c