Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table
@ 2009-01-28 17:38 Reinette Chatre
  2009-01-28 19:05 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Reinette Chatre @ 2009-01-28 17:38 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, ipw3945-devel, Reinette Chatre, Tomas Winkler

Cleans uCode key table bit map iwl_clear_stations_table
since all stations are cleared also the key table must be.

Since the keys are not removed properly on suspend by mac80211
this may result in exhausting key table on resume leading
to memory corruption during removal

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
---
This change originally formed part of commit
40a9a8299116297429298e8fcee08235134883f7 "iwlwifi: clean key table in
iwl_clear_stations_table function". After that patch this function was
moved to iwl-sta.c with commit 565ddeb389362b42df69e26804903ecd2303bb8e.

This change was lost between 2.6.28 and 2.6.29-rc1, so adding it back here.

This will fix http://bugzilla.kernel.org/show_bug.cgi?id=12415

 drivers/net/wireless/iwlwifi/iwl-sta.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index 7d2129c..1fae3a6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -483,6 +483,9 @@ void iwl_clear_stations_table(struct iwl_priv *priv)
 	priv->num_stations = 0;
 	memset(priv->stations, 0, sizeof(priv->stations));
 
+	/* clean ucode key table bit map */
+	priv->ucode_key_table = 0;
+
 	spin_unlock_irqrestore(&priv->sta_lock, flags);
 }
 EXPORT_SYMBOL(iwl_clear_stations_table);
-- 
1.5.4.3


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

* Re: [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table
  2009-01-28 17:38 [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table Reinette Chatre
@ 2009-01-28 19:05 ` Johannes Berg
  2009-01-28 21:25   ` reinette chatre
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2009-01-28 19:05 UTC (permalink / raw)
  To: Reinette Chatre; +Cc: linville, linux-wireless, Tomas Winkler

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

On Wed, 2009-01-28 at 09:38 -0800, Reinette Chatre wrote:
> Cleans uCode key table bit map iwl_clear_stations_table
> since all stations are cleared also the key table must be.
> 
> Since the keys are not removed properly on suspend by mac80211
> this may result in exhausting key table on resume leading
> to memory corruption during removal

Just FYI, this is fixed now in mac80211.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table
  2009-01-28 19:05 ` Johannes Berg
@ 2009-01-28 21:25   ` reinette chatre
  2009-01-28 21:35     ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: reinette chatre @ 2009-01-28 21:25 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	Winkler, Tomas

On Wed, 2009-01-28 at 11:05 -0800, Johannes Berg wrote:
> On Wed, 2009-01-28 at 09:38 -0800, Reinette Chatre wrote:
> > Cleans uCode key table bit map iwl_clear_stations_table
> > since all stations are cleared also the key table must be.
> > 
> > Since the keys are not removed properly on suspend by mac80211
> > this may result in exhausting key table on resume leading
> > to memory corruption during removal
> 
> Just FYI, this is fixed now in mac80211.

Sorry - I missed this. Could you please point me to the patch? 
The problem was encountered in 2.6.29-rc2 (see
http://bugzilla.kernel.org/show_bug.cgi?id=12415 ) and I would like to
know if this patch you refer to is included there. If so then we have
another issue.

Thanks

Reinette



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

* Re: [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table
  2009-01-28 21:25   ` reinette chatre
@ 2009-01-28 21:35     ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2009-01-28 21:35 UTC (permalink / raw)
  To: reinette chatre
  Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	Winkler, Tomas

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

On Wed, 2009-01-28 at 13:25 -0800, reinette chatre wrote:
> On Wed, 2009-01-28 at 11:05 -0800, Johannes Berg wrote:
> > On Wed, 2009-01-28 at 09:38 -0800, Reinette Chatre wrote:
> > > Cleans uCode key table bit map iwl_clear_stations_table
> > > since all stations are cleared also the key table must be.
> > > 
> > > Since the keys are not removed properly on suspend by mac80211
> > > this may result in exhausting key table on resume leading
> > > to memory corruption during removal
> > 
> > Just FYI, this is fixed now in mac80211.
> 
> Sorry - I missed this. Could you please point me to the patch? 
> The problem was encountered in 2.6.29-rc2 (see
> http://bugzilla.kernel.org/show_bug.cgi?id=12415 ) and I would like to
> know if this patch you refer to is included there. If so then we have
> another issue.

Sorry, my mistake, the patch to fix mac80211 suspend/resume is in
for .30.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2009-01-28 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28 17:38 [PATCH v2.6.29] iwlwifi: clean key table in iwl_clear_stations_table Reinette Chatre
2009-01-28 19:05 ` Johannes Berg
2009-01-28 21:25   ` reinette chatre
2009-01-28 21:35     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox