linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Oops with 2.6.24 git when loading iwl3945
@ 2007-11-27 20:43 Thomas Tuttle
  2007-11-28  5:48 ` Andrew Morton
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Thomas Tuttle @ 2007-11-27 20:43 UTC (permalink / raw)
  To: linux-kernel

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

Hey.

I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
fairly confident it's current), and I'm getting an Oops when I try to
load the iwl3945 driver.  I've attached it as plain text.

Hope this helps,

Thomas Tuttle

[-- Attachment #2: oops --]
[-- Type: text/plain, Size: 2721 bytes --]

ieee80211_crypt: registered algorithm 'NULL'
ieee80211_crypt: registered algorithm 'WEP'
iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.1.17kds
iwl3945: Copyright(c) 2003-2007 Intel Corporation
ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:0c:00.0 to 64
iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
iwl3945: Tunable channels: 11 802.11bg, 13 802.11a channels
general protection fault: 0000 [1] SMP 
CPU 0 
Modules linked in: iwl3945 ieee80211_crypt_wep ieee80211_crypt mac80211 cfg80211 i915 drm snd_seq_oss snd_seq_device snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_hda_intel snd_pcm snd_timer snd soundcore snd_page_alloc coretemp hwmon rtc rfcomm l2cap hci_usb bluetooth uhci_hcd ehci_hcd usbcore evdev b44 ssb psmouse
Pid: 5230, comm: iwl3945/0 Not tainted 2.6.24-rc3-git2 #1
RIP: 0010:[<ffffffff80300c56>]  [<ffffffff80300c56>] strcmp+0x0/0x1a
RSP: 0018:ffff810074d93dd8  EFLAGS: 00010287
RAX: ffffffff881c2e80 RBX: ffff8100752b84e0 RCX: ffff810074d92000
RDX: ffff810074de2073 RSI: ffffffff881c086b RDI: 000200740000016b
RBP: ffffffff881c8e80 R08: ffff810074d92000 R09: ffff810002bf77a0
R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff88197540
R13: ffff810074de2060 R14: ffff810074de2030 R15: 0000000000000038
FS:  0000000000000000(0000) GS:ffffffff8059d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 00002b313ecef000 CR3: 000000007d100000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process iwl3945/0 (pid: 5230, threadinfo ffff810074d92000, task ffff81007c812000)
Stack:  ffffffff88183a0e ffff810074d52220 ffff810074d518c0 ffff810074de2000
 ffffffff881a81e2 0000000000000000 0000000000000000 0000000074d93e30
 0000000000000000 ffff81007c812000 0000000000000000 0000000000000000
Call Trace:
 [<ffffffff88183a0e>] :mac80211:ieee80211_rate_control_register+0x3d/0xdd
 [<ffffffff881a81e2>] :iwl3945:iwl_bg_alive_start+0xc96/0xef9
 [<ffffffff80439984>] thread_return+0x3d/0x81
 [<ffffffff881a754c>] :iwl3945:iwl_bg_alive_start+0x0/0xef9
 [<ffffffff80242755>] run_workqueue+0x7f/0x10b
 [<ffffffff80243071>] worker_thread+0x0/0xe4
 [<ffffffff8024314b>] worker_thread+0xda/0xe4
 [<ffffffff802460c0>] autoremove_wake_function+0x0/0x2e
 [<ffffffff80245fae>] kthread+0x47/0x75
 [<ffffffff8020cc48>] child_rip+0xa/0x12
 [<ffffffff80245f67>] kthread+0x0/0x75
 [<ffffffff8020cc3e>] child_rip+0x0/0x12


Code: 8a 17 89 d0 2a 06 48 ff c6 84 c0 75 09 84 d2 74 05 48 ff c7 
RIP  [<ffffffff80300c56>] strcmp+0x0/0x1a
 RSP <ffff810074d93dd8>


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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-11-27 20:43 Oops with 2.6.24 git when loading iwl3945 Thomas Tuttle
@ 2007-11-28  5:48 ` Andrew Morton
  2007-11-28 21:43   ` Jeremy Fitzhardinge
  2007-11-28 23:50 ` Rafael J. Wysocki
  2007-12-02 16:43 ` Cyrill Gorcunov
  2 siblings, 1 reply; 9+ messages in thread
From: Andrew Morton @ 2007-11-28  5:48 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: linux-kernel, linux-wireless

On Tue, 27 Nov 2007 15:43:57 -0500 "Thomas Tuttle" <linux-kernel@ttuttle.net> wrote:

> Hey.
> 
> I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
> fairly confident it's current), and I'm getting an Oops when I try to
> load the iwl3945 driver.  I've attached it as plain text.
> 

Let's cc linux-wireless.

> ieee80211_crypt: registered algorithm 'NULL'
> ieee80211_crypt: registered algorithm 'WEP'
> iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.1.17kds
> iwl3945: Copyright(c) 2003-2007 Intel Corporation
> ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 17
> PCI: Setting latency timer of device 0000:0c:00.0 to 64
> iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
> iwl3945: Tunable channels: 11 802.11bg, 13 802.11a channels
> general protection fault: 0000 [1] SMP 
> CPU 0 
> Modules linked in: iwl3945 ieee80211_crypt_wep ieee80211_crypt mac80211 cfg80211 i915 drm snd_seq_oss snd_seq_device snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_hda_intel snd_pcm snd_timer snd soundcore snd_page_alloc coretemp hwmon rtc rfcomm l2cap hci_usb bluetooth uhci_hcd ehci_hcd usbcore evdev b44 ssb psmouse
> Pid: 5230, comm: iwl3945/0 Not tainted 2.6.24-rc3-git2 #1
> RIP: 0010:[<ffffffff80300c56>]  [<ffffffff80300c56>] strcmp+0x0/0x1a
> RSP: 0018:ffff810074d93dd8  EFLAGS: 00010287
> RAX: ffffffff881c2e80 RBX: ffff8100752b84e0 RCX: ffff810074d92000
> RDX: ffff810074de2073 RSI: ffffffff881c086b RDI: 000200740000016b
> RBP: ffffffff881c8e80 R08: ffff810074d92000 R09: ffff810002bf77a0
> R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff88197540
> R13: ffff810074de2060 R14: ffff810074de2030 R15: 0000000000000038
> FS:  0000000000000000(0000) GS:ffffffff8059d000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> CR2: 00002b313ecef000 CR3: 000000007d100000 CR4: 00000000000006e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Process iwl3945/0 (pid: 5230, threadinfo ffff810074d92000, task ffff81007c812000)
> Stack:  ffffffff88183a0e ffff810074d52220 ffff810074d518c0 ffff810074de2000
>  ffffffff881a81e2 0000000000000000 0000000000000000 0000000074d93e30
>  0000000000000000 ffff81007c812000 0000000000000000 0000000000000000
> Call Trace:
>  [<ffffffff88183a0e>] :mac80211:ieee80211_rate_control_register+0x3d/0xdd
>  [<ffffffff881a81e2>] :iwl3945:iwl_bg_alive_start+0xc96/0xef9
>  [<ffffffff80439984>] thread_return+0x3d/0x81
>  [<ffffffff881a754c>] :iwl3945:iwl_bg_alive_start+0x0/0xef9
>  [<ffffffff80242755>] run_workqueue+0x7f/0x10b
>  [<ffffffff80243071>] worker_thread+0x0/0xe4
>  [<ffffffff8024314b>] worker_thread+0xda/0xe4
>  [<ffffffff802460c0>] autoremove_wake_function+0x0/0x2e
>  [<ffffffff80245fae>] kthread+0x47/0x75
>  [<ffffffff8020cc48>] child_rip+0xa/0x12
>  [<ffffffff80245f67>] kthread+0x0/0x75
>  [<ffffffff8020cc3e>] child_rip+0x0/0x12
> 
> 
> Code: 8a 17 89 d0 2a 06 48 ff c6 84 c0 75 09 84 d2 74 05 48 ff c7 
> RIP  [<ffffffff80300c56>] strcmp+0x0/0x1a
>  RSP <ffff810074d93dd8>
> 

I have a shiny new t61p which uses iwl3945.  It barely runs carefully
selected bits of the fc8 2.6.23-based kernel and heaven knows what 2.6.24
will do to it.  It will join my Vaio as a
tool-of-kernel-developer-tormenting.  This means that your wireless should
keep working ;)

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-11-28  5:48 ` Andrew Morton
@ 2007-11-28 21:43   ` Jeremy Fitzhardinge
  0 siblings, 0 replies; 9+ messages in thread
From: Jeremy Fitzhardinge @ 2007-11-28 21:43 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Thomas Tuttle, linux-kernel, linux-wireless

Andrew Morton wrote:
> I have a shiny new t61p which uses iwl3945.  It barely runs carefully
> selected bits of the fc8 2.6.23-based kernel and heaven knows what 2.6.24
> will do to it.  It will join my Vaio as a
> tool-of-kernel-developer-tormenting.  This means that your wireless should
> keep working ;)

My X60 is boringly stable with currentish kernels, and the recent
changes to the wireless driver have made it feel actually solid.  Unless
you want blinky lights.

    J

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-11-27 20:43 Oops with 2.6.24 git when loading iwl3945 Thomas Tuttle
  2007-11-28  5:48 ` Andrew Morton
@ 2007-11-28 23:50 ` Rafael J. Wysocki
  2007-12-02 16:43 ` Cyrill Gorcunov
  2 siblings, 0 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2007-11-28 23:50 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: linux-kernel

On Tuesday, 27 of November 2007, Thomas Tuttle wrote:
> Hey.
> 
> I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
> fairly confident it's current), and I'm getting an Oops when I try to
> load the iwl3945 driver.  I've attached it as plain text.

Can you also attach it to the Bugzilla entry at
http://bugzilla.kernel.org/show_bug.cgi?id=9470 , please?

Thanks,
Rafael

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-11-27 20:43 Oops with 2.6.24 git when loading iwl3945 Thomas Tuttle
  2007-11-28  5:48 ` Andrew Morton
  2007-11-28 23:50 ` Rafael J. Wysocki
@ 2007-12-02 16:43 ` Cyrill Gorcunov
  2007-12-02 17:46   ` Thomas Tuttle
  2 siblings, 1 reply; 9+ messages in thread
From: Cyrill Gorcunov @ 2007-12-02 16:43 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: Andrew Morton, LKML

[Thomas Tuttle - Tue, Nov 27, 2007 at 03:43:57PM -0500]
| Hey.
| 
| I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
| fairly confident it's current), and I'm getting an Oops when I try to
| load the iwl3945 driver.  I've attached it as plain text.
| 
| Hope this helps,
| 
| Thomas Tuttle

Hi Thomas,
Could you please test the patch?

		Cyrill
---

Seems just mutex unlock is missed ;)

 net/mac80211/ieee80211_rate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 7254bd6..3260a4a 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -33,6 +33,7 @@ int ieee80211_rate_control_register(struct rate_control_ops *ops)
 		if (!strcmp(alg->ops->name, ops->name)) {
 			/* don't register an algorithm twice */
 			WARN_ON(1);
+			mutex_unlock(&rate_ctrl_mutex);
 			return -EALREADY;
 		}
 	}

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-12-02 16:43 ` Cyrill Gorcunov
@ 2007-12-02 17:46   ` Thomas Tuttle
  2007-12-02 18:05     ` Cyrill Gorcunov
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Thomas Tuttle @ 2007-12-02 17:46 UTC (permalink / raw)
  To: Cyrill Gorcunov; +Cc: linux-kernel, Andrew Morton

On Sun, 2 Dec 2007 19:43:16 +0300, "Cyrill Gorcunov"
<gorcunov@gmail.com> said:
> [Thomas Tuttle - Tue, Nov 27, 2007 at 03:43:57PM -0500]
> | Hey.
> | 
> | I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
> | fairly confident it's current), and I'm getting an Oops when I try to
> | load the iwl3945 driver.  I've attached it as plain text.
> | 
> | Hope this helps,
> | 
> | Thomas Tuttle
> 
> Hi Thomas,
> Could you please test the patch?

It didn't help.  The original oops says the problem was in strcmp.  It
was a GPF, which suggests to me that one of the arguments is NULL. 
Since ops->name is checked at the beginning of the function, the only
other possibility is that alg->ops->name is NULL.  I added a bit of code
to check for this, and it turns out that one of the strings was indeed
NULL.  I didn't know where to go from there in debugging, but I hope it
helps.

Thanks,

Thomas Tuttle

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-12-02 17:46   ` Thomas Tuttle
@ 2007-12-02 18:05     ` Cyrill Gorcunov
  2007-12-03  5:25     ` Cyrill Gorcunov
  2007-12-03 19:19     ` Cyrill Gorcunov
  2 siblings, 0 replies; 9+ messages in thread
From: Cyrill Gorcunov @ 2007-12-02 18:05 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: linux-kernel, Andrew Morton

[Thomas Tuttle - Sun, Dec 02, 2007 at 12:46:01PM -0500]
| On Sun, 2 Dec 2007 19:43:16 +0300, "Cyrill Gorcunov"
| <gorcunov@gmail.com> said:
| > [Thomas Tuttle - Tue, Nov 27, 2007 at 03:43:57PM -0500]
| > | Hey.
| > | 
| > | I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
| > | fairly confident it's current), and I'm getting an Oops when I try to
| > | load the iwl3945 driver.  I've attached it as plain text.
| > | 
| > | Hope this helps,
| > | 
| > | Thomas Tuttle
| > 
| > Hi Thomas,
| > Could you please test the patch?
| 
| It didn't help.  The original oops says the problem was in strcmp.  It
| was a GPF, which suggests to me that one of the arguments is NULL. 
| Since ops->name is checked at the beginning of the function, the only
| other possibility is that alg->ops->name is NULL.  I added a bit of code
| to check for this, and it turns out that one of the strings was indeed
| NULL.  I didn't know where to go from there in debugging, but I hope it
| helps.
| 
| Thanks,
| 
| Thomas Tuttle
| 

thanks, i do know that problem is in strcmp, i just thought the reason
of bug was a delayed procedure execution 'case of missing mutex unlock.
Have to dig deeper ;)

		Cyrill


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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-12-02 17:46   ` Thomas Tuttle
  2007-12-02 18:05     ` Cyrill Gorcunov
@ 2007-12-03  5:25     ` Cyrill Gorcunov
  2007-12-03 19:19     ` Cyrill Gorcunov
  2 siblings, 0 replies; 9+ messages in thread
From: Cyrill Gorcunov @ 2007-12-03  5:25 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: linux-kernel

On 12/2/07, Thomas Tuttle <linux-kernel@ttuttle.net> wrote:
> On Sun, 2 Dec 2007 19:43:16 +0300, "Cyrill Gorcunov"
> <gorcunov@gmail.com> said:
> > [Thomas Tuttle - Tue, Nov 27, 2007 at 03:43:57PM -0500]
> > | Hey.
> > |
> > | I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
> > | fairly confident it's current), and I'm getting an Oops when I try to
> > | load the iwl3945 driver.  I've attached it as plain text.
> > |
> > | Hope this helps,
> > |
> > | Thomas Tuttle
> >
> > Hi Thomas,
> > Could you please test the patch?
>
> It didn't help.  The original oops says the problem was in strcmp.  It
> was a GPF, which suggests to me that one of the arguments is NULL.
> Since ops->name is checked at the beginning of the function, the only
> other possibility is that alg->ops->name is NULL.  I added a bit of code
> to check for this, and it turns out that one of the strings was indeed
> NULL.  I didn't know where to go from there in debugging, but I hope it
> helps.
>
> Thanks,
>
> Thomas Tuttle
>
Hi Thomas,
could you please attach your kernel's .config (and in bugzilla too).
Thanks.

Cyrill

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

* Re: Oops with 2.6.24 git when loading iwl3945
  2007-12-02 17:46   ` Thomas Tuttle
  2007-12-02 18:05     ` Cyrill Gorcunov
  2007-12-03  5:25     ` Cyrill Gorcunov
@ 2007-12-03 19:19     ` Cyrill Gorcunov
  2 siblings, 0 replies; 9+ messages in thread
From: Cyrill Gorcunov @ 2007-12-03 19:19 UTC (permalink / raw)
  To: Thomas Tuttle; +Cc: linux-kernel, Andrew Morton

[Thomas Tuttle - Sun, Dec 02, 2007 at 12:46:01PM -0500]
| On Sun, 2 Dec 2007 19:43:16 +0300, "Cyrill Gorcunov"
| <gorcunov@gmail.com> said:
| > [Thomas Tuttle - Tue, Nov 27, 2007 at 03:43:57PM -0500]
| > | Hey.
| > | 
| > | I'm using a git snapshot that gentoo distributed mere hours ago (so I'm
| > | fairly confident it's current), and I'm getting an Oops when I try to
| > | load the iwl3945 driver.  I've attached it as plain text.
| > | 
| > | Hope this helps,
| > | 
| > | Thomas Tuttle
| > 
| > Hi Thomas,
| > Could you please test the patch?
| 
| It didn't help.  The original oops says the problem was in strcmp.  It
| was a GPF, which suggests to me that one of the arguments is NULL. 
| Since ops->name is checked at the beginning of the function, the only
| other possibility is that alg->ops->name is NULL.  I added a bit of code
| to check for this, and it turns out that one of the strings was indeed
| NULL.  I didn't know where to go from there in debugging, but I hope it
| helps.
| 
| Thanks,
| 
| Thomas Tuttle
|

Hi Thomas,

could you please try that one ;)
Ayway as my previous patch and this one have to be applied anyway (regardless
the OOPs you catched). So I've sent previous patch to list and this one too,
but that is more important for - does these (both) patch helped. Thanks a lot
for patience (i know the problem is in strcmp but it seems that is a side issue -
main problems seems to be in sych. events)

		Cyrill
---

From: Cyrill Gorcunov <gorcunov@gmail.com>
Date: Mon, 3 Dec 2007 22:12:30 +0300
Subject: [PATCH] [PATCH] NET: mac80211 - fix inappropriate memory freeing

This patch does fix inappropriate memory freeing in case
of requested rate_control_ops was not found. In this case
the list head entity is going to be accidently wasted.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 net/mac80211/ieee80211_rate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 3260a4a..c3f2783 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -60,11 +60,11 @@ void ieee80211_rate_control_unregister(struct rate_control_ops *ops)
 	list_for_each_entry(alg, &rate_ctrl_algs, list) {
 		if (alg->ops == ops) {
 			list_del(&alg->list);
+			kfree(alg);
 			break;
 		}
 	}
 	mutex_unlock(&rate_ctrl_mutex);
-	kfree(alg);
 }
 EXPORT_SYMBOL(ieee80211_rate_control_unregister);
 
-- 
1.5.3.5


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

end of thread, other threads:[~2007-12-03 19:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 20:43 Oops with 2.6.24 git when loading iwl3945 Thomas Tuttle
2007-11-28  5:48 ` Andrew Morton
2007-11-28 21:43   ` Jeremy Fitzhardinge
2007-11-28 23:50 ` Rafael J. Wysocki
2007-12-02 16:43 ` Cyrill Gorcunov
2007-12-02 17:46   ` Thomas Tuttle
2007-12-02 18:05     ` Cyrill Gorcunov
2007-12-03  5:25     ` Cyrill Gorcunov
2007-12-03 19:19     ` Cyrill Gorcunov

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).