Menu

#253 GPF happened while unloading ndiswrapper

open
nobody
None
5
2015-02-15
2010-11-05
phio
No

I'm using ndiswrapper on FC8, for a USB wireless card:'D-Link AirPlus G DWL-G122 Wireless USB Adapter(rev.A2). But recently, the system randomly crashes while I want to unload ndiswrapper(We're testing some wireless product of ourself using Linux hosts). Since this device has a not working native module p54usb, I've add p54usb into blacklist. And I've set DEBUG=3 when compile ndiswrapper. Since this problem can not be reproduced 100%, I wrote a simple script to 'load' and 'unload' ndiswrapper repeatedly. Below is what I got from /var/log/messages when the sytem crashed. Is this a bug or something else? Please help me, thank you :-)

Nov 5 16:14:38 TB32-PC1 kernel: ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
Nov 5 16:14:38 TB32-PC1 kernel: usb 5-7: reset high speed USB device using ehci_hcd and address 3
Nov 5 16:14:39 TB32-PC1 kernel: ndiswrapper: driver prisma02 (D-Link,08/05/2004, 3.00.22.0) loaded
Nov 5 16:14:39 TB32-PC1 ntpd[2496]: synchronized to 149.20.54.20, stratum 2
Nov 5 16:14:40 TB32-PC1 kernel: wlan0: ethernet device 00:19:5b:37:34:96 using NDIS driver: prisma02, version: 0x30016, NDIS version: 0x500, vendor: 'D-Link AirPlus G DWL-G122 Wireless USB Adapter(rev.A2)', 2001:3704.F.conf
Nov 5 16:14:40 TB32-PC1 kernel: wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Nov 5 16:14:40 TB32-PC1 kernel: usbcore: registered new interface driver ndiswrapper
Nov 5 16:14:42 TB32-PC1 kernel: usbcore: deregistering interface driver ndiswrapper
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper: device wlan0 removed
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
Nov 5 16:14:42 TB32-PC1 kernel: usb 5-7: reset high speed USB device using ehci_hcd and address 3
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper: driver prisma02 (D-Link,08/05/2004, 3.00.22.0) loaded
Nov 5 16:14:42 TB32-PC1 kernel: general protection fault: 0000 [#1] SMP
Nov 5 16:14:40 TB32-PC1 kernel: wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Nov 5 16:14:40 TB32-PC1 kernel: usbcore: registered new interface driver ndiswrapper
Nov 5 16:14:42 TB32-PC1 kernel: usbcore: deregistering interface driver ndiswrapper
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper: device wlan0 removed
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
Nov 5 16:14:42 TB32-PC1 kernel: usb 5-7: reset high speed USB device using ehci_hcd and address 3
Nov 5 16:14:42 TB32-PC1 kernel: ndiswrapper: driver prisma02 (D-Link,08/05/2004, 3.00.22.0) loaded
Nov 5 16:14:42 TB32-PC1 kernel: general protection fault: 0000 [#1] SMP
Nov 5 16:14:42 TB32-PC1 kernel: Modules linked in: ndiswrapper(+)(U) sit tunnel4 ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge autofs4 hidp l2cap bluetooth nfs lockd nfs_acl fuse sunrpc dm_multipath wmi video output sbs sbshc battery ac radeon drm ipv6 snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer 8139cp snd soundcore 8139too parport_pc i2c_i801 snd_page_alloc mii iTCO_wdt tg3 dcdbas serio_raw i2c_core iTCO_vendor_support pcspkr parport sg sr_mod floppy cdrom dm_snapshot dm_zero dm_mirror dm_log dm_mod ata_piix ata_generic pata_acpi libata sd_mod scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd [last unloaded: ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel:
Nov 5 16:14:42 TB32-PC1 kernel: Pid: 10768, comm: modprobe Tainted: P (2.6.26.8-57.fc8 #1)
Nov 5 16:14:42 TB32-PC1 kernel: EIP: 0060:[<c0481f48>] EFLAGS: 00210086 CPU: 0
Nov 5 16:14:42 TB32-PC1 kernel: EIP is at kmalloc+0x92/0xd2
Nov 5 16:14:42 TB32-PC1 kernel: EAX: 00000000 EBX: c0757600 ECX: c180aa78 EDX: ffffffff
Nov 5 16:14:42 TB32-PC1 kernel: ESI: 00000080 EDI: 00200286 EBP: f3bd6a58 ESP: f3bd6a44
Nov 5 16:14:42 TB32-PC1 kernel: DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Nov 5 16:14:42 TB32-PC1 kernel: Process modprobe (pid: 10768, ti=f3bd6000 task=f39b8c80 task.ti=f3bd6000)
Nov 5 16:14:42 TB32-PC1 kernel: Stack: f8cc6fcf 000000d0 00000064 e4307400 e430747c f3bd6a64 f8cc6fcf f71c5000
Nov 5 16:14:42 TB32-PC1 kernel: f3bd6a78 f8cc3b23 00000000 00000064 74534255 f3bd6aa4 f8d3397b f3bd6a9c
Nov 5 16:14:42 TB32-PC1 kernel: 00000064 74534255 e430747c e4307400 dbce5bc4 0000007c 00000000 00bd6ad0
Nov 5 16:14:42 TB32-PC1 kernel: Call Trace:
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc6fcf>] ? ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc6fcf>] ? ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc3b23>] ? NdisAllocateMemoryWithTag+0x10/0x26 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8ccde21>] ? mp_init+0x74/0x171 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8ccdf94>] ? NdisDispatchPnp+0x76/0xdcd [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<c062ec1f>] ? schedule+0x6c2/0x6f4
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc8f9b>] ? IoAllocateIrp+0x4d/0x58 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<c0630269>] ? _spin_unlock_bh+0xe/0x10
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc5e14>] ? get_current_nt_thread+0x40/0x46 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc99d1>] ? IoQueueThreadIrp+0xb/0xf8 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc9216>] ? IofCallDriver+0x68/0x8e [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cca486>] ? IoSendIrpTopDev+0x76/0xa5 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cca632>] ? pnp_start_device+0x3a/0x74 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cca908>] ? wrap_pnp_start_device+0x184/0x1a7 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8ccaefc>] ? wrap_pnp_start_usb_device+0xa4/0xac [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<c04bf48f>] ? sysfs_addrm_finish+0x50/0x19c
Nov 5 16:14:42 TB32-PC1 kernel: [<c062f24e>] ? mutex_lock+0x1d/0x2d
Nov 5 16:14:42 TB32-PC1 kernel: [<c058310f>] ? usb_autopm_do_device+0xb1/0xb9
Nov 5 16:14:42 TB32-PC1 kernel: [<c0583b66>] ? usb_probe_interface+0xb9/0xec
Nov 5 16:14:42 TB32-PC1 kernel: [<c056fee9>] ? driver_probe_device+0xb8/0x133
Nov 5 16:14:42 TB32-PC1 kernel: [<c056ff9e>] ?
driver_attach+0x3a/0x59
Nov 5 16:14:42 TB32-PC1 kernel: [<c056f7d0>] ? bus_for_each_dev+0x37/0x5c
Nov 5 16:14:42 TB32-PC1 kernel: [<c056fd76>] ? driver_attach+0x14/0x16
Nov 5 16:14:42 TB32-PC1 kernel: [<c056ff64>] ? driver_attach+0x0/0x59
Nov 5 16:14:42 TB32-PC1 kernel: [<c056fb5c>] ? bus_add_driver+0x90/0x1b8
Nov 5 16:14:42 TB32-PC1 kernel: [<c04fb05f>] ? kset_find_obj+0x23/0x4f
Nov 5 16:14:42 TB32-PC1 kernel: [<c05701a7>] ? driver_register+0x71/0xcc
Nov 5 16:14:42 TB32-PC1 kernel: [<c05837a0>] ? usb_register_driver+0x66/0xc0
Nov 5 16:14:42 TB32-PC1 kernel: [<f8cc1be4>] ? loader_init+0xe4/0x111 [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<f8972071>] ? wrapper_init+0x71/0x9e [ndiswrapper]
Nov 5 16:14:42 TB32-PC1 kernel: [<c0446f32>] ? sys_init_module+0x16bd/0x182d
Nov 5 16:14:42 TB32-PC1 kernel: [<c045e9d1>] ? disable_irq+0x0/0x2a
Nov 5 16:14:42 TB32-PC1 kernel: [<c0404bde>] ? syscall_call+0x7/0xb
Nov 5 16:14:42 TB32-PC1 kernel: =======================
Nov 5 16:14:43 TB32-PC1 kernel: Code: c0 8b 8c 83 80 00 00 00 8b 11 8b 71 10 85 d2 75 17 51 8b 55 f0 89 d8 ff 75 ec 83 c9 ff e8 31 eb ff ff 5b 89 c2 58 eb 08 8b 41 0c <8b> 04 82 89 01 89 f8 50 9d 0f 1f 84 00 00 00 00 00 66 83 7d f0
Nov 5 16:14:43 TB32-PC1 kernel: EIP: [<c0481f48>]
kmalloc+0x92/0xd2 SS:ESP 0068:f3bd6a44
Nov 5 16:14:43 TB32-PC1 kernel: ---[ end trace 6647b1b0d5aec58a ]---
Nov 5 16:14:43 TB32-PC1 kernel: BUG: sleeping function called from invalid context at kernel/rwsem.c:21
Nov 5 16:14:43 TB32-PC1 kernel: in_atomic():0, irqs_disabled():1
Nov 5 16:14:43 TB32-PC1 kernel: Pid: 10768, comm: modprobe Tainted: P D 2.6.26.8-57.fc8 #1
Nov 5 16:14:43 TB32-PC1 kernel: [<c041fac8>] might_sleep+0xb3/0xba
Nov 5 16:14:43 TB32-PC1 kernel: [<c062f5ad>] down_read+0x15/0x29
Nov 5 16:14:43 TB32-PC1 kernel: [<c044d7f8>] acct_collect+0x3b/0x14b
Nov 5 16:14:43 TB32-PC1 kernel: [<c042b30d>] do_exit+0x1be/0x71f
Nov 5 16:14:43 TB32-PC1 kernel: [<c0429291>] ? printk+0x15/0x17
Nov 5 16:14:43 TB32-PC1 kernel: [<c04060ed>] die+0x15e/0x166
Nov 5 16:14:43 TB32-PC1 kernel: [<c0630ad5>] do_general_protection+0x23b/0x243
Nov 5 16:14:43 TB32-PC1 kernel: [<c063089a>] ? do_general_protection+0x0/0x243
Nov 5 16:14:43 TB32-PC1 kernel: [<c0630592>] error_code+0x72/0x78
Nov 5 16:14:43 TB32-PC1 kernel: [<c0481f48>] ?
kmalloc+0x92/0xd2
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc6fcf>] ? ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc6fcf>] ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc3b23>] NdisAllocateMemoryWithTag+0x10/0x26 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8ccde21>] ? mp_init+0x74/0x171 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8ccdf94>] ? NdisDispatchPnp+0x76/0xdcd [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c062ec1f>] ? schedule+0x6c2/0x6f4
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc8f9b>] ? IoAllocateIrp+0x4d/0x58 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c041fac8>] might_sleep+0xb3/0xba
Nov 5 16:14:43 TB32-PC1 kernel: [<c062f5ad>] down_read+0x15/0x29
Nov 5 16:14:43 TB32-PC1 kernel: [<c044d7f8>] acct_collect+0x3b/0x14b
Nov 5 16:14:43 TB32-PC1 kernel: [<c042b30d>] do_exit+0x1be/0x71f
Nov 5 16:14:43 TB32-PC1 kernel: [<c0429291>] ? printk+0x15/0x17
Nov 5 16:14:43 TB32-PC1 kernel: [<c04060ed>] die+0x15e/0x166
Nov 5 16:14:43 TB32-PC1 kernel: [<c0630ad5>] do_general_protection+0x23b/0x243
Nov 5 16:14:43 TB32-PC1 kernel: [<c063089a>] ? do_general_protection+0x0/0x243
Nov 5 16:14:43 TB32-PC1 kernel: [<c0630592>] error_code+0x72/0x78
Nov 5 16:14:43 TB32-PC1 kernel: [<c0481f48>] ?
kmalloc+0x92/0xd2
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc6fcf>] ? ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc6fcf>] ExAllocatePoolWithTag+0x36/0x68 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc3b23>] NdisAllocateMemoryWithTag+0x10/0x26 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8ccde21>] ? mp_init+0x74/0x171 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8ccdf94>] ? NdisDispatchPnp+0x76/0xdcd [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c062ec1f>] ? schedule+0x6c2/0x6f4
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc8f9b>] ? IoAllocateIrp+0x4d/0x58 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c0630269>] ? _spin_unlock_bh+0xe/0x10
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc5e14>] ? get_current_nt_thread+0x40/0x46 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc99d1>] ? IoQueueThreadIrp+0xb/0xf8 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc9216>] ? IofCallDriver+0x68/0x8e [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cca486>] ? IoSendIrpTopDev+0x76/0xa5 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cca632>] ? pnp_start_device+0x3a/0x74 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cca908>] ? wrap_pnp_start_device+0x184/0x1a7 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8ccaefc>] ? wrap_pnp_start_usb_device+0xa4/0xac [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c04bf48f>] ? sysfs_addrm_finish+0x50/0x19c
Nov 5 16:14:43 TB32-PC1 kernel: [<c062f24e>] ? mutex_lock+0x1d/0x2d
Nov 5 16:14:43 TB32-PC1 kernel: [<c058310f>] ? usb_autopm_do_device+0xb1/0xb9
Nov 5 16:14:43 TB32-PC1 kernel: [<c0583b66>] ? usb_probe_interface+0xb9/0xec
Nov 5 16:14:43 TB32-PC1 kernel: [<c056fee9>] ? driver_probe_device+0xb8/0x133
Nov 5 16:14:43 TB32-PC1 kernel: [<c056ff9e>] ? driver_attach+0x3a/0x59
Nov 5 16:14:43 TB32-PC1 kernel: [<c056f7d0>] ? bus_for_each_dev+0x37/0x5c
Nov 5 16:14:43 TB32-PC1 kernel: [<c056fd76>] ? driver_attach+0x14/0x16
Nov 5 16:14:43 TB32-PC1 kernel: [<c056ff64>] ?
driver_attach+0x0/0x59
Nov 5 16:14:43 TB32-PC1 kernel: [<c056fb5c>] ? bus_add_driver+0x90/0x1b8
Nov 5 16:14:43 TB32-PC1 kernel: [<c04fb05f>] ? kset_find_obj+0x23/0x4f
Nov 5 16:14:43 TB32-PC1 kernel: [<c05701a7>] ? driver_register+0x71/0xcc
Nov 5 16:14:43 TB32-PC1 kernel: [<c05837a0>] ? usb_register_driver+0x66/0xc0
Nov 5 16:14:43 TB32-PC1 kernel: [<f8cc1be4>] ? loader_init+0xe4/0x111 [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<f8972071>] ? wrapper_init+0x71/0x9e [ndiswrapper]
Nov 5 16:14:43 TB32-PC1 kernel: [<c0446f32>] ? sys_init_module+0x16bd/0x182d
Nov 5 16:14:43 TB32-PC1 kernel: [<c045e9d1>] ? disable_irq+0x0/0x2a
Nov 5 16:14:43 TB32-PC1 kernel: [<c0404bde>] ? syscall_call+0x7/0xb
Nov 5 16:14:43 TB32-PC1 kernel: =======================
Nov 5 16:14:44 TB32-PC1 kernel: general protection fault: 0000 [#2] SMP

Related

Bugs: #1
Bugs: #2
Wiki: ndiswrapper

Discussion


Log in to post a comment.