after updating kernel versions from gentoo-sources-2.6.11-r9 to gentoo-sources-2.6.11-r11 when i put my atheros chipset wireless card into monitor mode and do an "iwlist ath0 scan" i get a kernel panic. If not in monitor mode i get this error: BetaPrime ~ # iwlist ath0 scan <---this command take about 10 sec to complete ath0 Failed to read scan data : Resource temporarily unavailable i'm not sure if it is my build, or if the update in kernel version broke something. i have tried madwifi-drivers but they have stability issues on my system. madwifi-bsd used to work flawlessly untill now. Reproducible: Always Steps to Reproduce: 1.ifconfig ath0 up 2.iwconfig ath0 monitor 3.iwlist ath0 scan Actual Results: crash as so: Oops: 0000 [#1] Modules linked in: lp parport snd_pcm_oss snd_mixer_oss and_intel_8x0 and_ac97_codec and _pcm snd_page_alloc ath_pci ath_rate_onoe ath_rate_amrr wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl wlan ath_hal nvidia 3c59x CPU: 0 EIP: 0060:[<d91240267>] Tainted:P VLI EFLAGS: 00010246 (2.6.11-gentoo-r11) EIP is at ath_tx_start+0x236/0xd20 [ath_pci] eax: 00000000 ebx: 00000000 ecx:d4227e28 edx: 00000040 esi: d7236000 edi:d6ff6010 ebp:d7236628 esp: d4227dac ds: 007b es: 007b ss: 0068 Process awk (pid: 28325, threadinfo=d4226000 task=d7cf1a20) Stack: d4226000 42b8fa43 d4227e28 00000000 00000000 d6bd59b4 d4227e08 c0415d60 d66d59b4 00000008 00000006 d6bd6964 00000000 d4227e28 00000000 d90fb6e0 00000000 00000010 00000001 d63e4b84 00ff007f 0000002e 00000018 ffffffff Call Trace: [<d912041d>] ath_start_0x16d/0x650 [ath_pci] [<d910887c>] ieee80211_mgmt_output+0x1cc/0x2c0 [wlan] [<d9109eb0>] ieee80211_send_mgmt+0x2a0/0xd30 [wlan] [<d9107980>] ieee80211_iterate_nodes+0x90/0xd0 [wlan] [<d910c560>] ieee80211_newstate+0x270/0x600 [wlan] [<d9125bdd>] ath_newstate+0x1cd/0x410 [ath_pci] [<d91057d7>] ieee80211_next_scan+0x127/0x180 [wlan] [<d91258f0>] ath_next_scan+0x0/0x20 [ath_pci] [<c01247e2>] run_timer_softirq+0xe2/0x200 [<c013aa60>] handle_IRQ_event+0x30/0x70 [<c0120406>] __do_softirq+0x7b/0x90 [<c0120446>] do_softirq+0x26/0x30 [<c0120515>] irq_exit+0x35/0x40 [<c01054fe>] do_IRQ+0x1e/0/30 [<c0103a8e>] common_interrupt+0x1a/0x20 Code: 8f 42 08 00 00 85 c0 0f 84 8c 07 00 00 83 bd 3c 07 00 00 08 0f 85 69 06 00 00 31 c0 89 44 24 40 f6 86 60 14 00 00 10 8b 4c 24 34 <86> 9c 8e c8 19 00 00 0f 85 3d 06 00 00 86 44 24 60 85 c0 0f 84 <0Kernel Panic - not syncing: Fatal exception in interrupt> Expected Results: it should just exit the program without crashing. here is the procedure as i executed it + other info you might require: BetaPrime ~ # ifconfig ath0 up BetaPrime ~ # ifconfig ath0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:200 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:11 Memory:d90c0000-d90d0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:66 errors:0 dropped:0 overruns:0 frame:0 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4157 (4.0 Kb) TX bytes:4157 (4.0 Kb) BetaPrime ~ # iwlist ath0 scan <---this command take about 10 sec to complete ath0 Failed to read scan data : Resource temporarily unavailable BetaPrime ~ # iwconfig ath0 mode monitor BetaPrime ~ # iwlist ath0 scan <--this causes the kernel panic Oops: 0000 [#1] Modules linked in: lp parport snd_pcm_oss snd_mixer_oss and_intel_8x0 and_ac97_codec and _pcm snd_page_alloc ath_pci ath_rate_onoe ath_rate_amrr wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl wlan ath_hal nvidia 3c59x CPU: 0 EIP: 0060:[<d91240267>] Tainted:P VLI EFLAGS: 00010246 (2.6.11-gentoo-r11) EIP is at ath_tx_start+0x236/0xd20 [ath_pci] eax: 00000000 ebx: 00000000 ecx:d4227e28 edx: 00000040 esi: d7236000 edi:d6ff6010 ebp:d7236628 esp: d4227dac ds: 007b es: 007b ss: 0068 Process awk (pid: 28325, threadinfo=d4226000 task=d7cf1a20) Stack: d4226000 42b8fa43 d4227e28 00000000 00000000 d6bd59b4 d4227e08 c0415d60 d66d59b4 00000008 00000006 d6bd6964 00000000 d4227e28 00000000 d90fb6e0 00000000 00000010 00000001 d63e4b84 00ff007f 0000002e 00000018 ffffffff Call Trace: [<d912041d>] ath_start_0x16d/0x650 [ath_pci] [<d910887c>] ieee80211_mgmt_output+0x1cc/0x2c0 [wlan] [<d9109eb0>] ieee80211_send_mgmt+0x2a0/0xd30 [wlan] [<d9107980>] ieee80211_iterate_nodes+0x90/0xd0 [wlan] [<d910c560>] ieee80211_newstate+0x270/0x600 [wlan] [<d9125bdd>] ath_newstate+0x1cd/0x410 [ath_pci] [<d91057d7>] ieee80211_next_scan+0x127/0x180 [wlan] [<d91258f0>] ath_next_scan+0x0/0x20 [ath_pci] [<c01247e2>] run_timer_softirq+0xe2/0x200 [<c013aa60>] handle_IRQ_event+0x30/0x70 [<c0120406>] __do_softirq+0x7b/0x90 [<c0120446>] do_softirq+0x26/0x30 [<c0120515>] irq_exit+0x35/0x40 [<c01054fe>] do_IRQ+0x1e/0/30 [<c0103a8e>] common_interrupt+0x1a/0x20 Code: 8f 42 08 00 00 85 c0 0f 84 8c 07 00 00 83 bd 3c 07 00 00 08 0f 85 69 06 00 00 31 c0 89 44 24 40 f6 86 60 14 00 00 10 8b 4c 24 34 <86> 9c 8e c8 19 00 00 0f 85 3d 06 00 00 86 44 24 60 85 c0 0f 84 <0Kernel Panic - not syncing: Fatal exception in interrupt> Here is some more info, if it will help: BetaPrime ~ # lspci 0000:00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 04) 0000:00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 04) 0000:00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02) 0000:00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #3) (rev 02) 0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42) 0000:00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02) 0000:00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02) 0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02) 0000:00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02) 0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 440 Go] (rev a3) 0000:02:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78) 0000:02:01.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller 0000:02:01.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller 0000:02:01.2 FireWire (IEEE 1394): Texas Instruments PCI4451 IEEE-1394 Controller 0000:02:03.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) BetaPrime ~ # uname -a Linux BetaPrime 2.6.11-gentoo-r11 #1 Thu Jun 16 13:31:21 CDT 2005 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz GenuineIntel GNU/Linux BetaPrime ~ # lsmod Module Size Used by lp 8516 0 parport 21056 1 lp snd_pcm_oss 49056 0 snd_mixer_oss 17920 2 snd_pcm_oss snd_intel8x0 29120 1 snd_ac97_codec 75512 1 snd_intel8x0 snd_pcm 83720 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec snd_page_alloc 7812 2 snd_intel8x0,snd_pcm ath_pci 68764 0 ath_rate_onoe 7432 1 ath_pci ath_rate_amrr 7556 0 wlan_xauth 1536 0 wlan_wep 6016 0 wlan_tkip 11264 0 wlan_ccmp 6528 0 wlan_acl 4224 0 wlan 130836 9 ath_pci,ath_rate_onoe,ath_rate_amrr,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl ath_hal 147024 2 ath_pci nvidia 3465852 14 3c59x 38440 0 BetaPrime ~ # emerge --info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 14:50:25)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac aalib acpi aliaschain alsa apache2 apm avi berkdb bitmap-fonts cdr crypt cups curl dga directfb divx4linu divx4linux doc dvd dvdr dvdread eds emboss encode esd ethereal fam fb fbcon flac fmod foomaticdb fortran gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java javascript jpeg junit libg++ libwww lzo mad mikmod mmx mmx2 mmxext mng motif mozilla mp3 mpeg mpi ncurses network nls nptl nvidia offensive ogg oggvorbis opengl pam pcmcia pdflib perl png ppds python quicktime readline real rtc samba sdl slang snmp speex spell sqlite sse sse2 ssl svga tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vidix vorbis win32codecs xine xm12 xml xml2 xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY BetaPrime ~ # emerge -s wireless-tools * net-wireless/wireless-tools Latest version available: 28_pre8 Latest version installed: 28_pre8 BetaPrime ~ # emerge -s madwifi * net-wireless/madwifi-bsd Latest version available: 0.1_pre20050602 Latest version installed: 0.1_pre20050602 * net-wireless/madwifi-driver Latest version available: 0.1_pre20050420 Latest version installed: [ Not Installed ] * net-wireless/madwifi-tools Latest version available: 0.1_pre20050420 Latest version installed: 0.1_pre20050420
Yeah, I'm not surprised that could cause problems. Generally you shouldn't be doing anything other than monitoring while in monitor mode. If you want to use scan, just up the device and scan.
Which version of the madwifi driver are you using?
yep, i agree Mr. Johanson, it's just that before the upgrade it would just dump me back to the command line, instead of kernel crash. On the other hand, i'm also having issues with ath0 Failed to read scan data : Resource temporarily unavailable whenever i try in managed mode. I'm not sure if it is because of a consistent compilation error (tried recompiling kernel and drivers 3 times each) or because of the changes made in the kernel bump. That said, i have not reviewed just what those changes are, so take that with a grain of salt. That said again, ever since compiling this new version of the kernel, it won't scan in managed mode, and crashes in monitor - before it used to scan with no problems in managed, and did NOT crash in monitor. Mr. Andersen, as to your question i am running madwifi-bsd, at version 0.1_pre20050602. (info included in original post also)
Well, I am unable to reproduce this error. I cannot cause a kernel panic. That panic looks related to your IRQ assignments, but most likely is cause by you loading every madwifi module. Why? You should ONLY modprobe ath_pci and nothing else. As you use the different features of the card it should autoload any additional modules required. I use ck-sources on my laptop so we would have to get someone else with your exact kernel version to 100% confirm. But, I suspect this is not a bug it is user error. My solution for ya, only modprobe the module ath_pci. Lemme know if that fixes your problem.
Mr. Horton, Well i took out all the modules, left in ath_pci only - still get a kernel crash each and every time that i try those commands in that order. I also tried booting into the old kernel (gentoo-sources-2.6.11-r9) and it worked without problems. iwlist ath0 scan in managed mode returned my AP as so: BetaPrime ~ # iwlist ath0 scan ath0 Scan completed : Cell 01 - Address: xx:xx:xx:xx:xx:xx ESSID:"xxxxxxxxxxxxxx" Mode:Master Frequency:2.462 GHz (Channel 11) Quality=16/94 Signal level=-79 dBm Noise level=-95 dBm Encryption key:on Bit Rate:1 Mb/s Bit Rate:2 Mb/s Bit Rate:5 Mb/s Bit Rate:6 Mb/s Bit Rate:9 Mb/s Bit Rate:11 Mb/s Bit Rate:12 Mb/s Bit Rate:18 Mb/s Bit Rate:24 Mb/s Bit Rate:36 Mb/s Bit Rate:48 Mb/s Bit Rate:54 Mb/s Extra:bcn_int=100 , and in monitor more just printed no results like so: BetaPrime ~ # iwconfig ath0 mode monitor BetaPrime ~ # iwlist ath0 scan ath0 No scan results BetaPrime ~ # so in the previous version, it works as intended, this new kernel has got me completely confused. Any suggestions as to what i can post to help in troubleshooting?
This is the only thing I could find that sounds like your problem. http://sourceforge.net/mailarchive/forum.php?forum_id=33958&max_rows=25&style=flat&viewmonth=200506&viewday=16 It sounds to me like a kernel thing. I would be interested in trying 2.6.12 and see if it has any problems. I will let you know my results as I test it out and try to recreate it.
Mr. Horton, i read that link, and i can see how it resembles my problem, but unfortunately i cannot find anything in my logs. Once the kernel crashes, that's it. I'm going to try 2.6.12 on mine also and will report back with the findings.
Alright, i installed gentoo-sources-2.6.12-r1 compiled, and remerged madwifi-bsd. It seems that there is a small change now. when i used 2.6.11-r11 did not scan at all, now it scans when in managed mode. when i try to scan in monitor mode, it gives me a dump like a kernel panic, but instead of locking up, i get a Segmentation fault and it dumps me back to the command line. If i try to run it again, it locks up that virtual terminal and i have to switch to another one. When i do a ps -A i do not get the command in the listing, but the terminal i ran it on is locked up. The mouse still works, as does selction and paste. I don't know if this helps with anything guys, but now i can copy and paste all segfaults if need be.
Gentoo does not really do any extra patching or anything out of the norm with madwifi. This probably should be reported upstream if one or more persons can reproduce.
Please report this problem upstream.