Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 0/2] cfg80211/ath: custom regulatory bug fixes
@ 2010-12-16  3:24 Luis R. Rodriguez
  2010-12-16  3:24 ` [PATCH 1/2] cfg80211: fix null pointer dereference with a custom regulatory request Luis R. Rodriguez
  2010-12-16  3:24 ` [PATCH 2/2] ath: fix NULL pointer dereference on reg_notifier() Luis R. Rodriguez
  0 siblings, 2 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2010-12-16  3:24 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez

Here are a couple of fixes for the recent change we did where we
moved the core regulatory hint to the queue. In a really slow box
or if you are doing crazy testing this can potentilly occur. I take
it the patch "cfg80211: put core regulatory request into queue"
will note make it in until 2.6.38, so these are not a stable fixes.

I was able to force the condition by doing:

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 99d4183..e6f483d0 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1481,7 +1481,7 @@ static void reg_process_pending_hints(void)
 
 	spin_unlock(&reg_requests_lock);
 
-	reg_process_hint(reg_request);
+	//reg_process_hint(reg_request);
 
 out:
 	mutex_unlock(&reg_mutex);

This mimics the situation of either having a slow box or you
doing some crazy module load/unload testing.

Luis R. Rodriguez (2):
  cfg80211: fix null pointer dereference with a custom regulatory
    request
  ath: fix NULL pointer dereference on reg_notifier()

 drivers/net/wireless/ath/regd.c |    8 ++++++++
 include/net/cfg80211.h          |    4 +++-
 net/wireless/reg.c              |    3 ++-
 3 files changed, 13 insertions(+), 2 deletions(-)

-- 
1.7.3.2.90.gd4c43


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

end of thread, other threads:[~2010-12-16  3:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16  3:24 [PATCH 0/2] cfg80211/ath: custom regulatory bug fixes Luis R. Rodriguez
2010-12-16  3:24 ` [PATCH 1/2] cfg80211: fix null pointer dereference with a custom regulatory request Luis R. Rodriguez
2010-12-16  3:24 ` [PATCH 2/2] ath: fix NULL pointer dereference on reg_notifier() Luis R. Rodriguez

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