linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] mac80211: Avoid accessing uninitialized stack data
@ 2014-12-10 19:14 Jes.Sorensen
  2014-12-10 19:14 ` [PATCH 1/1] wireless: mac80211: Avoid using " Jes.Sorensen
  0 siblings, 1 reply; 6+ messages in thread
From: Jes.Sorensen @ 2014-12-10 19:14 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Jes Sorensen

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

Working on a wifi driver I hit the case where
ieee80211_determine_chantype() could end up accessing uninitialized
stack data, if a driver advertised it's supported bands as having HT
support, but only 20MHz channel support.

This patch should take care of the issue by copying over *chandef into
vht_chandef. I don't think it would be correct to set
IEEE80211_STA_DISABLE_VHT here since I believe it is valid for a
driver to support VHT without 40+MHz support? Please correct me if I
am wrong.

This is against the current staging tree, but should be valid for 3.18
and probably also the stable kernels.

Cheers,
Jes


Jes Sorensen (1):
  wireless: mac80211: Avoid using uninitialized stack data

 net/mac80211/mlme.c | 1 +
 1 file changed, 1 insertion(+)

-- 
1.9.3


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v2 0/1] mac80211: Avoid accessing uninitialized stack data
@ 2014-12-11 16:37 Jes.Sorensen
  2014-12-11 16:37 ` [PATCH 1/1] wireless: mac80211: Avoid using " Jes.Sorensen
  0 siblings, 1 reply; 6+ messages in thread
From: Jes.Sorensen @ 2014-12-11 16:37 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Jes Sorensen

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

Per Johannes' suggestion, here is a v2 of the patch, avoiding
accessing uninitialized stack variables when a driver announces HT
support without also advertising 40MHz+ support.

Cheers,
Jes

Jes Sorensen (1):
  wireless: mac80211: Avoid using uninitialized stack data

 net/mac80211/mlme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-12 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10 19:14 [PATCH 0/1] mac80211: Avoid accessing uninitialized stack data Jes.Sorensen
2014-12-10 19:14 ` [PATCH 1/1] wireless: mac80211: Avoid using " Jes.Sorensen
2014-12-11  8:14   ` Johannes Berg
2014-12-12 11:03   ` Johannes Berg
2014-12-12 14:02     ` Jes Sorensen
  -- strict thread matches above, loose matches on Subject: below --
2014-12-11 16:37 [PATCH v2 0/1] mac80211: Avoid accessing " Jes.Sorensen
2014-12-11 16:37 ` [PATCH 1/1] wireless: mac80211: Avoid using " Jes.Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).