02c8baecf5
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> |
||
---|---|---|
.. | ||
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 | ||
ieee80211_softmac.c | ||
ieee80211_softmac_wx.c | ||
ieee80211_tx.c | ||
ieee80211_wx.c | ||
internal.h | ||
rtl_crypto.h |