]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: make sure data is accessible in EAPOL check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 22:41:23 +0000 (00:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:18:31 +0000 (13:18 -0800)
commit3a817522b33cb42171cd36f5fa77fa40f447f351
treef7647babbf4bc0badf77ce40a2d761260ab11a0a
parent1db96611d45adcc0db12e8f16f78337757cc932e
mac80211: make sure data is accessible in EAPOL check

commit 6dbda2d00d466225f9db1dc695ff852443f28832 upstream.

The code to allow EAPOL frames even when the station
isn't yet marked associated needs to check that the
incoming frame is long enough and due to paged RX it
also can't assume skb->data contains the right data,
it must use skb_copy_bits(). Fix this to avoid using
data that doesn't really exist.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/rx.c