dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/staging/rtl8187se/ieee80211
Dan Aloni 02c8baecf5 Staging: prevent rtl8187se from crashing dev_ioctl() in SIOCGIWNAME
I repeatedly get __stack_chk_fail panic()s with this driver before
applying the attached fix.

ieee80211_wx_get_name() ignores sizeof(wrqu->name) which is IFNAMSIZ (16), and
on certain conditions, the concatenated string will be larger than IFNAMSIZ
including the terminating zero.

    length ("802.11" ++ "b" ++ "/g" ++ " linked" ++ "\x00") == 17

This fix uses strl{cpy,cat} in addition to the reduction of the total
possible length of the output string by a char.

It can be applied to 2.6.30-stable as well.

Signed-off-by: Dan Aloni <dan@aloni.org>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-07-12 13:21:45 -07:00
..
dot11d.c
dot11d.h
ieee80211.h
ieee80211_crypt.c
ieee80211_crypt.h
ieee80211_crypt_ccmp.c
ieee80211_crypt_tkip.c
ieee80211_crypt_wep.c
ieee80211_module.c
ieee80211_rx.c Staging: rtl8187se: wmm_param[1].ac_aci_acm_aifsn tested twice 2009-06-19 11:00:36 -07:00
ieee80211_softmac.c
ieee80211_softmac_wx.c Staging: prevent rtl8187se from crashing dev_ioctl() in SIOCGIWNAME 2009-07-12 13:21:45 -07:00
ieee80211_tx.c
ieee80211_wx.c
internal.h
rtl_crypto.h