From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Cheek Date: Thu, 22 Jan 2009 14:19:00 -0500 Subject: [ath9k-devel] modprobe ath9k == BUG: unable to handle kernel NULL pointer dereference at 000001dc In-Reply-To: <49779F1D.2090800@cheek.com> References: <4976BD2E.3070807@cheek.com> <43e72e890901211049k1d222dcfqe9a530b26ccd4ca8@mail.gmail.com> <49777D8B.10802@cheek.com> <49779F1D.2090800@cheek.com> Message-ID: <4978C6A4.4050709@cheek.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org I just got a repro of this on 2.6.27.12 with compat-wireless 2009-01-19. i'm going back to 2.6.27.11 with compat-wireless 2008-12-31 to see if it is more stable (I never got the bug on that one). here are the config_debug options i had on for this last strace. please let me know what other options you would like me to turn on so i can make the trace more useful. thanks! Joseph Cheek $ grep CONFIG_DEBUG /etc/kernels/kernel-config-x86-2.6.28-gentoo-r1 # CONFIG_DEBUG_DRIVER is not set # CONFIG_DEBUG_DEVRES is not set # CONFIG_DEBUG_FS is not set CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_SHIRQ is not set # CONFIG_DEBUG_OBJECTS is not set # CONFIG_DEBUG_SLAB is not set CONFIG_DEBUG_PREEMPT=y # CONFIG_DEBUG_RT_MUTEXES is not set # CONFIG_DEBUG_SPINLOCK is not set # CONFIG_DEBUG_MUTEXES is not set # CONFIG_DEBUG_LOCK_ALLOC is not set # CONFIG_DEBUG_SPINLOCK_SLEEP is not set # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set # CONFIG_DEBUG_KOBJECT is not set # CONFIG_DEBUG_HIGHMEM is not set CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_INFO=y # CONFIG_DEBUG_VM is not set # CONFIG_DEBUG_VIRTUAL is not set # CONFIG_DEBUG_WRITECOUNT is not set CONFIG_DEBUG_MEMORY_INIT=y # CONFIG_DEBUG_LIST is not set # CONFIG_DEBUG_SG is not set # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set # CONFIG_DEBUG_STACKOVERFLOW is not set # CONFIG_DEBUG_STACK_USAGE is not set CONFIG_DEBUG_PAGEALLOC=y # CONFIG_DEBUG_RODATA is not set # CONFIG_DEBUG_NX_TEST is not set Joseph Cheek wrote: > debug was already on in the kernel. i enabled a few more options but > don' t know which options prints the calling function at EIP. are there > specific options you would like turned on? Here's the latest call trace. > > Jan 21 16:21:11 harrisburg modprobe: page allocation failure. order:1, > mode:0x20 > Jan 21 16:21:11 harrisburg Pid: 10616, comm: modprobe Not tainted > 2.6.28-gentoo-r1 > #1 > > Jan 21 16:21:11 harrisburg Call > Trace: > Jan 21 16:21:11 harrisburg [] > 0xc013cd39 > Jan 21 16:21:11 harrisburg [] > 0xc0153b79 > Jan 21 16:21:11 harrisburg [] > 0xc0153dca > Jan 21 16:21:11 harrisburg [] > 0xc02ae791 > Jan 21 16:21:11 harrisburg [] > 0xc02af00f > Jan 21 16:21:11 harrisburg [] > 0xd8d44e70 > Jan 21 16:21:11 harrisburg [] > 0xd8d4564c > Jan 21 16:21:11 harrisburg [] > 0xd8d447d4 > Jan 21 16:21:11 harrisburg [] > 0xd8d49528 > Jan 21 16:21:11 harrisburg [] > 0xc020ea75 > Jan 21 16:21:11 harrisburg [] > 0xc025b435 > Jan 21 16:21:11 harrisburg [] > 0xc025b50f > Jan 21 16:21:11 harrisburg [] > 0xc025ae86 > Jan 21 16:21:11 harrisburg [] > 0xc025b2e9 > Jan 21 16:21:11 harrisburg [] > 0xc025b4c6 > Jan 21 16:21:11 harrisburg [] > 0xc025a90b > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xc025b675 > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xc020ec89 > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xd8834038 > Jan 21 16:21:11 harrisburg [] > 0xc010104c > Jan 21 16:21:11 harrisburg [] > 0xc013c236 > Jan 21 16:21:11 harrisburg [] > 0xc013c440 > Jan 21 16:21:11 harrisburg [] > 0xc0134606 > Jan 21 16:21:11 harrisburg [] > 0xc020abf0 > Jan 21 16:21:11 harrisburg [] > 0xc0134872 > Jan 21 16:21:11 harrisburg [] > 0xc0102c4d > Jan 21 16:21:11 harrisburg > Mem-Info: > Jan 21 16:21:11 harrisburg DMA > per-cpu: > Jan 21 16:21:11 harrisburg CPU 0: hi: 0, btch: 1 usd: > 0 > Jan 21 16:21:11 harrisburg Normal > per-cpu: > Jan 21 16:21:11 harrisburg CPU 0: hi: 186, btch: 31 usd: > 51 > Jan 21 16:21:11 harrisburg Active_anon:7443 active_file:7679 > inactive_anon:7428 > Jan 21 16:21:11 harrisburg inactive_file:65044 unevictable:2 dirty:375 > writeback:0 > unstable:0 > > Jan 21 16:21:11 harrisburg free:784 slab:3701 mapped:1576 pagetables:238 > bounce:0 > > Jan 21 16:21:11 harrisburg DMA free:1504kB min:100kB low:124kB > high:148kB active_anon:32kB inactive_anon:296kB active_file:100kB > inactive_file:10236kB unevictable:0kB present:15808kB pages_scanned:0 > all_unreclaimable? no > Jan 21 16:21:11 harrisburg lowmem_reserve[]: 0 365 365 > 365 > Jan 21 16:21:11 harrisburg Normal free:1632kB min:2392kB low:2988kB > high:3588kB active_anon:29740kB inactive_anon:29416kB > active_file:30616kB inactive_file:249940kB unevictable:8kB > present:373824kB pages_scanned:0 all_unreclaimable? no > Jan 21 16:21:11 harrisburg lowmem_reserve[]: 0 0 0 > 0 > Jan 21 16:21:11 harrisburg DMA: 0*4kB 0*8kB 0*16kB 1*32kB 1*64kB 1*128kB > 1*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = > 1504kB > Jan 21 16:21:11 harrisburg Normal: 296*4kB 0*8kB 0*16kB 0*32kB 1*64kB > 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = > 1632kB > Jan 21 16:21:11 harrisburg 72757 total pagecache > pages > Jan 21 16:21:11 harrisburg 0 pages in swap > cache > Jan 21 16:21:11 harrisburg Swap cache stats: add 0, delete 0, find > 0/0 > Jan 21 16:21:11 harrisburg Free swap = > 530104kB > Jan 21 16:21:11 harrisburg Total swap = > 530104kB > Jan 21 16:21:11 harrisburg 98272 pages > RAM > Jan 21 16:21:11 harrisburg 0 pages > HighMem > Jan 21 16:21:11 harrisburg 4397 pages > reserved > Jan 21 16:21:11 harrisburg 22474 pages > shared > Jan 21 16:21:11 harrisburg 84761 pages > non-shared > Jan 21 16:21:11 harrisburg BUG: unable to handle kernel NULL pointer > dereference at > 000001dc > Jan 21 16:21:11 harrisburg IP: [] > 0xc02b3b3a > Jan 21 16:21:11 harrisburg *pde = > 00000000 > Jan 21 16:21:11 harrisburg Oops: 0000 [#1] PREEMPT > DEBUG_PAGEALLOC > Jan 21 16:21:11 harrisburg last sysfs file: > /sys/class/net/wlan0/carrier > Jan 21 16:21:11 harrisburg Modules linked in: ath9k(+) ipv6 mac80211 > snd_via82xx snd_ac97_codec cfg80211 ac97_bus snd_pcm fan via_rhine > thermal rfkill snd_page_alloc via_agp floppy processor mii > snd_mpu401_uart led_class agpgart snd_rawmidi button thermal_sys nfs > lockd sunrpc scsi_wait_scan sbp2 ohci1394 ieee1394 sl811_hcd usbhid > ohci_hcd uhci_hcd usb_storage ehci_hcd usbcore lpfc scsi_transport_fc > megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid 3w_9xxx 3w_xxxx > atp870u dc395x qla1280 dmx3191d sym53c8xx gdth initio BusLogic aic7xxx > aic79xx scsi_transport_spi sg [last unloaded: > ath9k] > Jan 21 16:21:11 > harrisburg > Jan 21 16:21:11 harrisburg Pid: 10616, comm: modprobe Not tainted > (2.6.28-gentoo-r1 #1) > KM266-8235 > Jan 21 16:21:11 harrisburg EIP: 0060:[] EFLAGS: 00010202 CPU: > 0 > Jan 21 16:21:11 harrisburg EAX: 00000001 EBX: 00000000 ECX: d65007e8 > EDX: > d8e84048 > > Jan 21 16:21:11 harrisburg ESI: d65001a0 EDI: fffffff4 EBP: d6500d80 > ESP: > cc66fd2c > > Jan 21 16:21:11 harrisburg DS: 007b ES: 007b FS: 0000 GS: 0033 SS: > 0068 > Jan 21 16:21:11 harrisburg Process modprobe (pid: 10616, ti=cc66e000 > task=d57f2ee0 > task.ti=cc66e000) > > Jan 21 16:21:11 harrisburg > Stack: > Jan 21 16:21:11 harrisburg 00000000 c02b3ceb d65001a0 d8c04145 d6500d80 > d8d441d3 00000000 > d5310000 > Jan 21 16:21:11 harrisburg fffffff4 d8d44ab3 d65001a0 0000000b d6501420 > d6500060 d65001a0 > d6500040 > Jan 21 16:21:11 harrisburg 00000000 0000000b 00000008 d65001a0 d6500d80 > d7170800 00000000 > d65001a0 > Jan 21 16:21:11 harrisburg Call > Trace: > Jan 21 16:21:11 harrisburg [] > 0xc02b3ceb > Jan 21 16:21:11 harrisburg [] > 0xd8c04145 > Jan 21 16:21:11 harrisburg [] > 0xd8d441d3 > Jan 21 16:21:11 harrisburg [] > 0xd8d44ab3 > Jan 21 16:21:11 harrisburg [] > 0xd8d49528 > Jan 21 16:21:11 harrisburg [] > 0xc020ea75 > Jan 21 16:21:11 harrisburg [] > 0xc025b435 > Jan 21 16:21:11 harrisburg [] > 0xc025b50f > Jan 21 16:21:11 harrisburg [] > 0xc025ae86 > Jan 21 16:21:11 harrisburg [] > 0xc025b2e9 > Jan 21 16:21:11 harrisburg [] > 0xc025b4c6 > Jan 21 16:21:11 harrisburg [] > 0xc025a90b > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xc025b675 > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xc020ec89 > Jan 21 16:21:11 harrisburg [] > 0xd8834000 > Jan 21 16:21:11 harrisburg [] > 0xd8834038 > Jan 21 16:21:11 harrisburg [] > 0xc010104c > Jan 21 16:21:11 harrisburg [] > 0xc013c236 > Jan 21 16:21:11 harrisburg [] > 0xc013c440 > Jan 21 16:21:11 harrisburg [] > 0xc0134606 > Jan 21 16:21:11 harrisburg [] > 0xc020abf0 > Jan 21 16:21:11 harrisburg [] > 0xc0134872 > Jan 21 16:21:11 harrisburg [] 0xc0102c4d > Jan 21 16:21:11 harrisburg Code: 74 04 0f 0b eb fe e8 86 61 00 00 85 c0 > 75 1c 68 2f 0f 00 00 68 2a 7d 36 c0 68 ef 7f 36 c0 e8 a9 30 05 00 e8 76 > 2f 05 00 83 c4 0c <8b> 83 dc 01 00 00 85 c0 75 1f 53 53 68 95 82 36 c0 > e8 8b 30 05 > Jan 21 16:21:11 harrisburg EIP: [] SS:ESP 0068:cc66fd2c > Jan 21 16:21:11 harrisburg ---[ end trace d33038261cc054eb ]--- > > > Joseph Cheek wrote: > >> I got another repro. I'll rebuild the kernel with debugging support and >> send you the syslog when it happens next time. >> >> >> Luis R. Rodriguez wrote: >> >> >>> On Tue, Jan 20, 2009 at 10:14 PM, Joseph Cheek wrote: >>> >>> >>> >>>> Not sure how reproduceable this is as it's the only one i have seen >>>> yet. but i just got it with 2.6.28.1 and compat-wireless-2009-01-19. >>>> the kernel didn't oops >>>> >>>> but ifconfig did hang. I could login on another >>>> VC and get a responsive system, but trying to ifconfig the interface >>>> down did not work. i ended up hard-resetting. >>>> >>>> >>>> >>> Can you reproduce? >>> >>> >>> >>> >>>> Jan 21 00:52:48 harrisburg EIP: [] SS:ESP 0068:ce081d2c >>>> >>>> >>>> >>> Enable kernel debugging and then the above will have the routine where >>> this came from. >>> >>> Luis >>> >>> >>> >>> >> _______________________________________________ >> ath9k-devel mailing list >> ath9k-devel at lists.ath9k.org >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel >> >> > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel >