Search Linux Wireless

re: cfg80211: add 802.11ad (60gHz band) support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Vladimir Kondratiev,

The patch 3a0c52a6d82c: "cfg80211: add 802.11ad (60gHz band) support" 
from Jul 2, 2012, leads to the following warning:
drivers/net/wireless/mac80211_hwsim.c:1841 init_mac80211_hwsim()
	 warn: buffer overflow 'data->bands' 2 <= 2

drivers/net/wireless/mac80211_hwsim.c
  1839  
  1840                  for (band = IEEE80211_BAND_2GHZ; band < IEEE80211_NUM_BANDS; band++) {
                                                                ^^^^^^^^^^^^^^^^^^^
We raised IEEE80211_NUM_BANDS to 3.

  1841                          struct ieee80211_supported_band *sband = &data->bands[band];
                                                                                ^^^^^^^^^^^
This only has 2 elements still.

  1842                          switch (band) {
  1843                          case IEEE80211_BAND_2GHZ:

It causes a bogus dereference later.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux