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
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
..
ieee80211 Staging: prevent rtl8187se from crashing dev_ioctl() in SIOCGIWNAME 2009-07-12 13:21:45 -07:00
Kconfig Staging: rtl8187se: convert to net_device_ops 2009-06-19 11:00:36 -07:00
Makefile Staging: rtl8187se: make the built module be the proper name 2009-01-06 13:52:32 -08:00
dot11d.h Staging: rtl8187se: fix \r\n line ends 2009-04-03 14:53:30 -07:00
ieee80211.h staging: __FUNCTION__ is gcc-specific, use __func__ 2009-01-07 15:48:54 -08:00
ieee80211_crypt.h
r8180.h Staging: rtl8187se: Fix compilation warnings and procfs directory leak 2009-05-08 19:39:27 -07:00
r8180_93cx6.c
r8180_93cx6.h
r8180_core.c Staging: rtl8187se: convert to net_device_ops 2009-06-19 11:00:36 -07:00
r8180_dm.c Staging: rtl8187se: Use to_delayed_work 2009-06-19 11:00:36 -07:00
r8180_dm.h Staging: rtl8187se: fix \r\n line ends 2009-04-03 14:53:30 -07:00
r8180_gct.c
r8180_gct.h
r8180_hw.h
r8180_max2820.c
r8180_max2820.h
r8180_pm.c Staging: rtl8187se: convert to net_device_ops 2009-06-19 11:00:36 -07:00
r8180_pm.h
r8180_rtl8225.c
r8180_rtl8225.h
r8180_rtl8225z2.c staging: __FUNCTION__ is gcc-specific, use __func__ 2009-01-07 15:48:54 -08:00
r8180_rtl8255.c
r8180_rtl8255.h
r8180_sa2400.c
r8180_sa2400.h
r8180_wx.c Staging: rtl8187se: fix build warnings 2009-04-03 14:53:30 -07:00
r8180_wx.h
r8185b_init.c