Skip to contentSkip to conversation

New: Bluetooth stack crashes kernel

Bluez-devel Andrew Morton 2 participants 2 messages Feb 2, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Sun, 1 Feb 2004 18:14:02 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 1996] New: Bluetooth stack crashes kernel

http://bugme.osdl.org/show_bug.cgi?id=1996

Summary: Bluetooth stack crashes kernel
Kernel Version: 2.6.1
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution: -
Hardware Environment: x86 PC
Software Environment:
Linux sarkovy.koeller.dyndns.org 2.6.1 #1 Sat Jan 10 01:54:59 CET 2004 i686 unknown

Gnu C                  3.3.2 
Gnu make               3.80 
util-linux             2.11z 
mount                  2.11z 
module-init-tools      0.9.15-pre2 
e2fsprogs              1.33 
nfs-utils              1.0.3 
awk: cmd. line:2: (FILENAME=- FNR=1) fatal: attempt to access field -1 
Dynamic linker (ldd)   2.3.2 
Procps                 3.1.9 
Net-tools              1.52 
Kbd                    1.10 
Sh-utils               2.0 
Modules Loaded         snd_dummy snd_via82xx snd_pcm snd_timer snd_ac97_codec 

snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd hci_usb bluetooth uhci_hcd usbcore cls_fw sch_htb ipt_tos ipt_mark ipt_MARK ipt_TOS iptable_mangle ipt_MASQUERADE iptable_nat ipt_TCPMSS ipt_pkttype ipt_length ipt_multiport ipt_REJECT ipt_LOG ipt_limit ipt_state iptable_filter ip_tables ip_conntrack_ftp ip_conntrack pppoe pppox af_packet ppp_generic slhc epic100 mii crc32

Problem Description:
I am using a bluetooth adapter connected via USB. When uploading data from a bluetooth device the kernel frequently crashes, like so (please note that I wrote this down from the screen and typed it in again, so there may be errors):

kernel BUG at include/linux/module.h:296!

invalid operand: 0000 [#1] 
CPU:    0 
EIP:    0060:[<c8944753>]    Not tainted 
EFLAGS: 00010246 

EIP is at l2cap_sock_alloc+0xc3/0xe0 [l2cap]
eax: 00000000 ebx: c261c080 ecx: 00000000 edx: c261c080
esi: 00000000 edi: c3a85980 ebp: c3a85980 esp: c02ddce0
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, threadinfo=c02dc000 task=c027fb20)

Stack: c894a280 00000000 00000024 00000020 c02dc000 c3f359d4 c89466b8 00000000 
       00000000 00000020 c8859b4c c3b00028 c3a85200 c88912d5 c3a85200 00000014 
       c02ddd3c 00000014 c261cbc0 00100030 0000008a 00000000 00000004 c118a81c 
Call Trace: 
[<c89466b8>] l2cap_recv_frame+0x518/0xe00 [l2cap] 
[<c88912d5>] tcp_match+0x75/0x170 [ip_tables] 
[<c88a206b>] match+0x6b/0xd0 [ip_multiport] 
[<c889e017>] match+0x17/0x50 [ipt_state] 
[<c888f292>] ipt_do_table+0x262/0x340 [ipt_tables] 
[<c021c9c0>] ip_local_deliver_finish+0x0/0x150 
[<c01ccbd8>] get_device+0x18/0x30 
[<c88edcf7>] uhci_submit_common+0x1f7/0x2b0 [uhci_hcd] 
[<c8904d8a>] hcd_submit_urb+0xfa/0x170 [usbcore] 
[<c8905811>] usb_submit_urb+0x1d1/0x250 [usbcore] 
[<c88e1255>] hci_usb_rx_complete+0x1a5/0x6e0 [hci_usb] 
[<c89474e1>] l2cap_recv_acldata+0x181/0x340 [l2cap] 
[<c892f117>] hci_rx_task+0x1a7/0x340 [bluetooth] 
[<c011fcb6>] tasklet_action+0x46/0x70 
[<c011fad0>] do_softirq+0x90/0xa0 
[<c010b56d>] do_IRQ+0xfd/0x130 
[<c0105000>] _stext+0x0/0x60 
[<c01098a4>] common_interrupt+0x18/0x20 
[<c0105000>] _stext+0x0/0x60 
[<c0106c13>] default_idle+0x23/0x30 
[<c0106c7c>] cpu_idle+0x2c/0x40 
[<c02de707>] start_kernel+0x147/0x160 
[<c02de480>] unknown_bootoption+0x0/0x100 
 
Code: 0f 0b 28 01 6f 79 94 c8 eb 95 0f 0b cb 01 86 79 94 c8 e9 69 
 <0>Kernel panic: Fatal exception in interrupt 

In interrupt handler - not syncing

Steps to reproduce:
/home/thomas $ hcid
/home/thomas $ sdpd
/home/thomas $ sdptool add --channel=10 OPUSH
OBEX Object Push service registered

At this point I start uploading images taken with a cellphone camera. The crash usually occurs after uploading 4..5 images.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Andrew,

this bug should be fixed in 2.6.2-rc1. See this changeset

[email protected], 2004-01-14 00:34:23+01:00, [email protected]
[Bluetooth] Fix reference counting for incoming connections

The L2CAP reference counting must be increased by the RFCOMM module if an incoming connection is accepted. If this is not done, it will be decreased one time to often if the connection is terminated.

Regards

Marcel

Quoted 98 lines

Begin forwarded message:

Date: Sun, 1 Feb 2004 18:14:02 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 1996] New: Bluetooth stack crashes kernel

http://bugme.osdl.org/show_bug.cgi?id=1996

Summary: Bluetooth stack crashes kernel
Kernel Version: 2.6.1
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution: -
Hardware Environment: x86 PC
Software Environment:
Linux sarkovy.koeller.dyndns.org 2.6.1 #1 Sat Jan 10 01:54:59 CET 2004 i686 unknown

Gnu C                  3.3.2 
Gnu make               3.80 
util-linux             2.11z 
mount                  2.11z 
module-init-tools      0.9.15-pre2 
e2fsprogs              1.33 
nfs-utils              1.0.3 
awk: cmd. line:2: (FILENAME=- FNR=1) fatal: attempt to access field -1 
Dynamic linker (ldd)   2.3.2 
Procps                 3.1.9 
Net-tools              1.52 
Kbd                    1.10 
Sh-utils               2.0 
Modules Loaded         snd_dummy snd_via82xx snd_pcm snd_timer snd_ac97_codec 

snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd hci_usb bluetooth uhci_hcd usbcore cls_fw sch_htb ipt_tos ipt_mark ipt_MARK ipt_TOS iptable_mangle ipt_MASQUERADE iptable_nat ipt_TCPMSS ipt_pkttype ipt_length ipt_multiport ipt_REJECT ipt_LOG ipt_limit ipt_state iptable_filter ip_tables ip_conntrack_ftp ip_conntrack pppoe pppox af_packet ppp_generic slhc epic100 mii crc32

Problem Description:
I am using a bluetooth adapter connected via USB. When uploading data from a bluetooth device the kernel frequently crashes, like so (please note that I wrote this down from the screen and typed it in again, so there may be errors):

kernel BUG at include/linux/module.h:296!

invalid operand: 0000 [#1] 
CPU:    0 
EIP:    0060:[<c8944753>]    Not tainted 
EFLAGS: 00010246 

EIP is at l2cap_sock_alloc+0xc3/0xe0 [l2cap]
eax: 00000000 ebx: c261c080 ecx: 00000000 edx: c261c080
esi: 00000000 edi: c3a85980 ebp: c3a85980 esp: c02ddce0
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, threadinfo=c02dc000 task=c027fb20)

Stack: c894a280 00000000 00000024 00000020 c02dc000 c3f359d4 c89466b8 00000000 
       00000000 00000020 c8859b4c c3b00028 c3a85200 c88912d5 c3a85200 00000014 
       c02ddd3c 00000014 c261cbc0 00100030 0000008a 00000000 00000004 c118a81c 
Call Trace: 
[<c89466b8>] l2cap_recv_frame+0x518/0xe00 [l2cap] 
[<c88912d5>] tcp_match+0x75/0x170 [ip_tables] 
[<c88a206b>] match+0x6b/0xd0 [ip_multiport] 
[<c889e017>] match+0x17/0x50 [ipt_state] 
[<c888f292>] ipt_do_table+0x262/0x340 [ipt_tables] 
[<c021c9c0>] ip_local_deliver_finish+0x0/0x150 
[<c01ccbd8>] get_device+0x18/0x30 
[<c88edcf7>] uhci_submit_common+0x1f7/0x2b0 [uhci_hcd] 
[<c8904d8a>] hcd_submit_urb+0xfa/0x170 [usbcore] 
[<c8905811>] usb_submit_urb+0x1d1/0x250 [usbcore] 
[<c88e1255>] hci_usb_rx_complete+0x1a5/0x6e0 [hci_usb] 
[<c89474e1>] l2cap_recv_acldata+0x181/0x340 [l2cap] 
[<c892f117>] hci_rx_task+0x1a7/0x340 [bluetooth] 
[<c011fcb6>] tasklet_action+0x46/0x70 
[<c011fad0>] do_softirq+0x90/0xa0 
[<c010b56d>] do_IRQ+0xfd/0x130 
[<c0105000>] _stext+0x0/0x60 
[<c01098a4>] common_interrupt+0x18/0x20 
[<c0105000>] _stext+0x0/0x60 
[<c0106c13>] default_idle+0x23/0x30 
[<c0106c7c>] cpu_idle+0x2c/0x40 
[<c02de707>] start_kernel+0x147/0x160 
[<c02de480>] unknown_bootoption+0x0/0x100 
 
Code: 0f 0b 28 01 6f 79 94 c8 eb 95 0f 0b cb 01 86 79 94 c8 e9 69 
 <0>Kernel panic: Fatal exception in interrupt 

In interrupt handler - not syncing

Steps to reproduce:
/home/thomas $ hcid
/home/thomas $ sdpd
/home/thomas $ sdptool add --channel=10 OPUSH
OBEX Object Push service registered

Quoted 5 lines

At this point I start uploading images taken with a cellphone camera. The crash usually occurs after uploading 4..5 images.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel