linux/net/mac80211
Senthil Balasubramanian 70d251b24c mac80211: Fix for NULL pointer dereference in sta_info_get()
This addresses a NULL pointer dereference in sta_info_get().
TID and sta_info are extracted in ADDBA Timer expiry function
through the timer handler's argument.

The problem is extracging the TID (which was stored in
timer_to_tid[] array of type "u8") through "int *" typecast which
may also yield unwanted bytes for the MSB of TID that results
in incorrect sta_info and ieee80211_local pointers.

ieee80211_local pointer is NULL as illustrated below, it crashes in
sta_info_get(). The problem started when extracting ieee80211_local
pointer out of sta_info iteself and eventually crashed in
stat_info_get().

The proper way to fix is to change the data type of TID to u8
instead of u16. However changing all the occurences requires
some prototype changes as well. We should fix this in upcoming
patches.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: Luis Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-05-28 16:43:49 -04:00
..
aes_ccm.c mac80211: rename files 2008-04-08 16:44:45 -04:00
aes_ccm.h
cfg.c net/mac80211: always true conditionals 2008-05-28 16:43:41 -04:00
cfg.h
debugfs_key.c mac80211: fix debugfs default key oops 2008-05-12 21:18:05 -04:00
debugfs_key.h mac80211: fix key vs. sta locking problems 2008-04-08 16:44:45 -04:00
debugfs_netdev.c mac80211: rename files 2008-04-08 16:44:45 -04:00
debugfs_netdev.h
debugfs_sta.c mac80211: make debugfs files root-only 2008-04-08 16:44:43 -04:00
debugfs_sta.h
debugfs.c mac80211: rename files 2008-04-08 16:44:45 -04:00
debugfs.h
event.c
ieee80211_i.h mac80211: use 4-byte mesh sequence number 2008-04-30 20:34:26 -04:00
iface.c mac80211: assign needed_headroom/tailroom for netdevs 2008-05-12 20:51:44 -07:00
Kconfig wireless: Fix compile error with wifi & leds 2008-04-27 15:34:55 -07:00
key.c mac80211: fix key todo list order 2008-04-16 15:59:57 -04:00
key.h mac80211: fix key hwaccel race 2008-04-16 14:53:22 -04:00
led.c mac80211: rename files 2008-04-08 16:44:45 -04:00
led.h mac80211: rename files 2008-04-08 16:44:45 -04:00
main.c mac80211: fix a typo in ieee80211_handle_filtered_frame comment 2008-05-28 16:43:49 -04:00
Makefile mac80211: rename files 2008-04-08 16:44:45 -04:00
mesh_hwmp.c mac80211: mesh hwmp: fix kfree(skb) 2008-05-12 21:22:18 -04:00
mesh_pathtbl.c Fix potential scheduling while atomic in mesh_path_add. 2008-05-12 21:22:19 -04:00
mesh_plink.c mac80211: rename files 2008-04-08 16:44:45 -04:00
mesh.c mac80211: fix incorrect mesh header length 2008-05-12 21:22:18 -04:00
mesh.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6 2008-05-01 02:06:32 -07:00
michael.c
michael.h
mlme.c mac80211: Fix for NULL pointer dereference in sta_info_get() 2008-05-28 16:43:49 -04:00
rate.c mac80211: rename files 2008-04-08 16:44:45 -04:00
rate.h mac80211: rename files 2008-04-08 16:44:45 -04:00
rc80211_pid_algo.c mac80211: rename files 2008-04-08 16:44:45 -04:00
rc80211_pid_debugfs.c fix irq flags in mac80211 code 2008-05-12 21:18:04 -04:00
rc80211_pid.h
rx.c mac80211: add missing newlines in printk() 2008-05-12 21:44:41 -04:00
sta_info.c mac80211: rename files 2008-04-08 16:44:45 -04:00
sta_info.h mac80211: rename files 2008-04-08 16:44:45 -04:00
tkip.c mac80211: incorrect shift direction 2008-04-30 20:34:26 -04:00
tkip.h mac80211: rename files 2008-04-08 16:44:45 -04:00
tx.c mac80211: Use skb_header_cloned() on TX path. 2008-05-12 21:59:32 -07:00
util.c mac80211: Add RTNL version of ieee80211_iterate_active_interfaces 2008-05-16 17:15:09 -04:00
wep.c
wep.h mac80211: rename files 2008-04-08 16:44:45 -04:00
wext.c mac80211 : Fixes the status message for iwconfig 2008-05-28 16:43:46 -04:00
wme.c mac80211: add missing newlines in printk() 2008-05-12 21:44:41 -04:00
wme.h
wpa.c
wpa.h