Return-path: Received: from wf-out-1314.google.com ([209.85.200.169]:23451 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbZEJTg7 convert rfc822-to-8bit (ORCPT ); Sun, 10 May 2009 15:36:59 -0400 Received: by wf-out-1314.google.com with SMTP id 26so2143732wfd.4 for ; Sun, 10 May 2009 12:36:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1241984076.6051.18.camel@maxim-laptop> References: <1241499867.4816.18.camel@maxim-laptop> <43e72e890905051146n48bdad57s9db40a6e016cb81b@mail.gmail.com> <1241606838.18657.1.camel@maxim-laptop> <1241642056.3289.6.camel@mj> <1241958023.6051.14.camel@maxim-laptop> <43e72e890905101133w2314250s7b95a8c100e83cce@mail.gmail.com> <1241984076.6051.18.camel@maxim-laptop> From: "Luis R. Rodriguez" Date: Sun, 10 May 2009 12:36:39 -0700 Message-ID: <43e72e890905101236h2cd24edewae808da384ae48dd@mail.gmail.com> Subject: Re: [BUG] Crda oopses the system To: Maxim Levitsky Cc: Pavel Roskin , linux-wireless Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, May 10, 2009 at 12:34 PM, Maxim Levitsky wrote: > On Sun, 2009-05-10 at 11:33 -0700, Luis R. Rodriguez wrote: >> On Sun, May 10, 2009 at 5:20 AM, Maxim Levitsky wrote: >> > On Wed, 2009-05-06 at 16:34 -0400, Pavel Roskin wrote: >> >> gdb /lib/modules/`uname -r`/kernel/net/wireless/cfg80211.ko >> > >> > I have recompiled the kernel with debugging info. >> > >> > This is new backtrace: >> > >> > >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203085] --------= ----[ cut here ]------------ >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203096] kernel B= UG at /home/maxim/software/kernel/linux-2.6/net/wireless/reg.c:2039! >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203103] invalid = opcode: 0000 [#1] PREEMPT SMP >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203115] last sys= fs file: /sys/devices/platform/coretemp.1/temp1_input >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203121] CPU 0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203127] Modules = linked in: iwl3945 iwlcore mac80211 cfg80211 cpufreq_stats af_packet nv= idia(P) nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc usb_storage = usb_libusual cpufreq_powersave cpufreq_conservative cpufreq_userspace a= cpi_cpufreq coretemp sbp2 snd_hda_codec_realtek snd_hda_intel joydev sn= d_hda_codec uvcvideo snd_hwdep videodev v4l1_compat acer_wmi rfkill v4l= 2_compat_ioctl32 sdhci_pci uhci_hcd snd_pcm backlight psmouse serio_raw= ohci1394 sdhci iTCO_wdt iTCO_vendor_support snd_timer snd_page_alloc e= hci_hcd usbcore evdev wmi fuse [last unloaded: cfg80211] >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203258] Pid: 208= 76, comm: crda Tainted: P =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2.6.30-rc4= -wl #58 Aspire 5720 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203265] RIP: 001= 0:[] =C2=A0[] set_regdom+0x43e/0x4d= 0 [cfg80211] >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203291] RSP: 001= 8:ffff8800638c1978 =C2=A0EFLAGS: 00010246 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203296] RAX: fff= f88005176df68 RBX: ffff880034b601a0 RCX: ffffffffa0ca9540 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203302] RDX: fff= f880034b60000 RSI: 0000000000000000 RDI: 0000000000000000 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203308] RBP: fff= f8800638c1998 R08: 0000000000000001 R09: 0000000000000001 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203314] R10: 000= 0000000000000 R11: 0000000000000000 R12: ffff88004f889a90 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203320] R13: fff= f88007e18e6e0 R14: 0000000000000001 R15: 0000000000000001 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203326] FS: =C2=A0= 00007f1c069c56f0(0000) GS:ffff880001025000(0000) knlGS:0000000000000000 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203333] CS: =C2=A0= 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203338] CR2: 000= 07f1c0632fdb0 CR3: 000000007fa65000 CR4: 00000000000006e0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203344] DR0: 000= 0000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203350] DR3: 000= 0000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203357] Process = crda (pid: 20876, threadinfo ffff8800638c0000, task ffff880067093e80) >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203362] Stack: >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203366] =C2=A000= 00000000000000 ffff88004f889a90 0000000000000000 ffff88007e18e6e0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203379] =C2=A0ff= ff8800638c1a28 ffffffffa0c9c672 ffff88005e15ab40 ffff88004f889a90 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203393] =C2=A000= 00000000000000 ffff88007e18e6e4 ffff88007e18e6ec ffff88007e18e6f4 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203410] Call Tra= ce: >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203416] =C2=A0[<= ffffffffa0c9c672>] nl80211_set_reg+0x112/0x2c0 [cfg80211] >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203436] =C2=A0[<= ffffffff80412c8f>] ? nla_parse+0xef/0x110 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203450] =C2=A0[<= ffffffff8054dac6>] genl_rcv_msg+0x1b6/0x1f0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203462] =C2=A0[<= ffffffff8054d910>] ? genl_rcv_msg+0x0/0x1f0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203471] =C2=A0[<= ffffffff8054d0e9>] netlink_rcv_skb+0x89/0xb0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203479] =C2=A0[<= ffffffff8054d8ee>] genl_rcv+0x2e/0x50 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203488] =C2=A0[<= ffffffff8054c917>] ? netlink_unicast+0x117/0x2e0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203498] =C2=A0[<= ffffffff8054cac4>] netlink_unicast+0x2c4/0x2e0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203508] =C2=A0[<= ffffffff8052c4b3>] ? __alloc_skb+0x73/0x160 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203519] =C2=A0[<= ffffffff8054ccde>] netlink_sendmsg+0x1fe/0x300 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203528] =C2=A0[<= ffffffff80522f07>] sock_sendmsg+0x127/0x140 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203537] =C2=A0[<= ffffffff80522d61>] ? sock_recvmsg+0x141/0x160 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203546] =C2=A0[<= ffffffff80260ad0>] ? autoremove_wake_function+0x0/0x40 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203558] =C2=A0[<= ffffffff80293602>] ? __rcu_read_unlock+0xa2/0xc0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203567] =C2=A0[<= ffffffff802730e9>] ? trace_hardirqs_on_caller+0x29/0x1c0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203578] =C2=A0[<= ffffffff805219d0>] ? move_addr_to_kernel+0x30/0x40 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203588] =C2=A0[<= ffffffff8052db51>] ? verify_iovec+0x41/0xd0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203597] =C2=A0[<= ffffffff805230ae>] sys_sendmsg+0x18e/0x320 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203607] =C2=A0[<= ffffffff805c4505>] ? _spin_unlock_irqrestore+0x65/0x80 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203619] =C2=A0[<= ffffffff805c77b1>] ? sub_preempt_count+0x51/0x60 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203628] =C2=A0[<= ffffffff80403c21>] ? __up_read+0x91/0xb0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203639] =C2=A0[<= ffffffff802730e9>] ? trace_hardirqs_on_caller+0x29/0x1c0 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203648] =C2=A0[<= ffffffff805c3e4e>] ? trace_hardirqs_on_thunk+0x3a/0x3f >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203658] =C2=A0[<= ffffffff8020c15b>] system_call_fastpath+0x16/0x1b >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203670] Code: 90= 91 00 00 00 0f be b0 90 00 00 00 48 c7 c7 60 1b ca a0 31 c0 e8 13 9f 9= 2 df e9 4f fe ff ff 0f 0b eb fe 0f 0b eb fe 0f 0b eb fe <0f> 0b eb fe 4= 8 8b 35 17 43 01 00 4c 89 e7 e8 df f8 ff ff 49 89 >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203815] RIP =C2=A0= [] set_regdom+0x43e/0x4d0 [cfg80211] >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203834] =C2=A0RS= P >> >> May =C2=A07 10:27:05 maxim-laptop kernel: [ 5411.203842] ---[ end= trace 9723f71e550687a4 ]--- >> >> >> > >> > >> > This is GDB output - can be inaccurate - I have pulled latest wire= less-testing , and rebuild kernel again. >> > I will read the source, and try to fix this >> > This is 100% reproducible >> > >> > >> > >> >> (gdb) l *nl80211_set_reg+0x112 >> >> 0x96a2 is in nl80211_set_reg (/home/maxim/software/kernel/linux-2= =2E6/net/wireless/nl80211.c:2587). >> >> 2582 >> >> 2583 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BUG_ON(rule_idx !=3D num_r= ules); >> >> 2584 >> >> 2585 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mutex_lock(&cfg80211_mutex= ); >> >> 2586 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r =3D set_regdom(rd); >> >> 2587 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mutex_unlock(&cfg80211_mut= ex); >> >> 2588 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return r; >> >> 2589 >> >> 2590 =C2=A0 bad_reg: >> >> 2591 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0kfree(rd); >> >> (gdb) >> > >> >> Hm I don't see a BUG_ON at my net/wireless/reg.c:2039, can you pleas= e >> try with wireless-testing or paste the line 2039 in your >> net/wrieless/reg.c. Also if you can provide steps to how to get the >> code you have and how to reproduce it would help. >> >> =C2=A0 Luis > > Sorry for confusion.... > This is iwlwifi.git tree. Like I said before please use wireless-testing, I don't know what goes into that tree or if the fixes which I have posted get propagated. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html