]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: verify that skb data is present
authorJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 22:36:40 +0000 (00:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:18:31 +0000 (13:18 -0800)
commit1db96611d45adcc0db12e8f16f78337757cc932e
treee69c485bff9537d1382f718f28b049f81c389322
parent1d45cb149a2ad467d5454a01ec60bff38b0ddfe4
mac80211: verify that skb data is present

commit 9b395bc3be1cebf0144a127c7e67d56dbdac0930 upstream.

A number of places in the mesh code don't check that
the frame data is present and in the skb header when
trying to access. Add those checks and the necessary
pskb_may_pull() calls. This prevents accessing data
that doesn't actually exist.

To do this, export ieee80211_get_mesh_hdrlen() to be
able to use it in mac80211.

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