]> git.karo-electronics.de Git - linux-beck.git/commit
mac80211: Allocate a sync skcipher explicitly for FILS AEAD
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 4 Feb 2017 16:08:42 +0000 (18:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Feb 2017 06:42:47 +0000 (07:42 +0100)
commit01fba20b5976e445676febbdf6dc78d71c6d7b62
tree59358197378bdac3509767b02531bf30b2b79f50
parente479ab651f071dbd1518ce8fb121c7f42f2bb97d
mac80211: Allocate a sync skcipher explicitly for FILS AEAD

The skcipher could have been of the async variant which may return from
skcipher_encrypt() with -EINPROGRESS after having queued the request.
The FILS AEAD implementation here does not have code for dealing with
that possibility, so allocate a sync cipher explicitly to avoid
potential issues with hardware accelerators.

This is based on the patch sent out by Ard.

Fixes: 39404feee691 ("mac80211: FILS AEAD protection for station mode association frames")
Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/fils_aead.c