public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] krfcommd or kernel bug?
@ 2004-05-22 12:15 Przemek
  2004-05-22 12:25 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Przemek @ 2004-05-22 12:15 UTC (permalink / raw)
  To: bluez-users

Hi!

I have two machines: first - win2k with CSR USB dongle (BlueTake) and second - linux
with Ericsson's ROK101008 starter kit.
I'm trying to connect to linux bluetooth-serial-port from win2k.
Just after receivig SABM frame I got such info:

May 18 05:08:31 localhost kernel: ------------[ cut here
]------------
May 18 05:08:31 localhost kernel: kernel BUG at
include/linux/module.h:302!
May 18 05:08:31 localhost kernel: invalid operand: 0000 [#1]
May 18 05:08:31 localhost kernel: CPU:    0
May 18 05:08:31 localhost kernel: EIP:    0060:[<c285a913>]    Not
tainted
May 18 05:08:31 localhost kernel: EFLAGS: 00010246
May 18 05:08:31 localhost kernel: EIP is at
rfcomm_session_add+0xb3/0xc0 [rfcomm]
May 18 05:08:31 localhost kernel: eax: 00000000   ebx: c11c0e20
ecx: 00000000   edx: c2862060
May 18 05:08:31 localhost kernel: esi: 00000002   edi: c11c0e4c
ebp: 00000000   esp: c1299f8c
May 18 05:08:31 localhost kernel: ds: 007b   es: 007b   ss: 0068
May 18 05:08:31 localhost kernel: Process krfcommd (pid: 1127,
threadinfo=c1298000 task=c1d20660)
May 18 05:08:31 localhost kernel: Stack: c1fbb340 c283eec0 c1fbb340
c1d614e0 c283eec0 c285c62f c1d614e0 00000002
May 18 05:08:31 localhost kernel:        c1fbb340 04000000 c129ffff
c0116161 c1298000 c2861d70 c1298000 00000000
May 18 05:08:31 localhost kernel:        00000000 00000000 c285c83d
c1299fdc 00000000 00000000 0000007b ffffffff
May 18 05:08:31 localhost kernel: Call Trace:
May 18 05:08:31 localhost kernel:  [<c285c62f>]
rfcomm_worker+0x48f/0x4e0 [rfcomm]
May 18 05:08:31 localhost kernel:  [<c0116161>]
set_user_nice+0x61/0x120
May 18 05:08:31 localhost kernel:  [<c285c83d>] rfcomm_run+0x5d/0x80
[rfcomm]
May 18 05:08:31 localhost kernel:  [<c285c7e0>] rfcomm_run+0x0/0x80
[rfcomm]
May 18 05:08:31 localhost kernel:  [<c0106f81>]
kernel_thread_helper+0x5/0x24
May 18 05:08:32 localhost kernel:
May 18 05:08:32 localhost kernel: Code: 0f 0b 2e 01 37 f7 85 c2 eb
ca 8d 76 00 56 53 8b 5c 24 0c 8b

That is what I'm using:

$uname -a
Linux localhost.localdomain 2.6.2 #16 Tue May 18 02:08:00 CEST 2004
i586 i586 i386 GNU/Linux

$rpm -qa | grep bluez
bluez-utils-2.7-1
bluez-libs-2.7-1
bluez-hcidump-1.8-1

$lsmod
Module                  Size  Used by
rfcomm                 33144  0 
l2cap                  20416  3 rfcomm
hci_uart               15632  0 
bluetooth              40996  3 rfcomm,l2cap,hci_uart
8250                   15456  0 
serial_core            18720  1 8250

$hciattach ttyS0 57600 ericsson flow

#hciconfig hci0 up
#hciconfig -a
# hciconfig -a hci1   
hci1:   Type: UART
        BD Address: 00:80:37:16:30:8B ACL MTU: 672:10  SCO MTU: 64:0
        UP RUNNING PSCAN ISCAN 
        RX bytes:394 acl:0 sco:0 events:16 errors:2
        TX bytes:330 acl:0 sco:0 commands:17 errors:0
        Features: 0x07 0xea 0x31 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'BlueZ (0)'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0xb LMP Ver: 1.1 (0x1) LMP
Subver: 0x300
        Manufacturer: Ericsson Mobile Comunications (0)

hcid and sdpd are running.

If you want me to send a dump from this fatal connection just tell
me.

Best Regards, 
aquamala


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] krfcommd or kernel bug?
  2004-05-22 12:15 [Bluez-users] krfcommd or kernel bug? Przemek
@ 2004-05-22 12:25 ` Marcel Holtmann
  2004-05-22 19:15   ` Przemek
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-05-22 12:25 UTC (permalink / raw)
  To: aquamala; +Cc: BlueZ Mailing List

Hi Aquamala,

> I have two machines: first - win2k with CSR USB dongle (BlueTake) and second - linux
> with Ericsson's ROK101008 starter kit.
> I'm trying to connect to linux bluetooth-serial-port from win2k.
> Just after receivig SABM frame I got such info:
> 
> May 18 05:08:31 localhost kernel: ------------[ cut here
> ]------------
> May 18 05:08:31 localhost kernel: kernel BUG at
> include/linux/module.h:302!
> May 18 05:08:31 localhost kernel: invalid operand: 0000 [#1]
> May 18 05:08:31 localhost kernel: CPU:    0
> May 18 05:08:31 localhost kernel: EIP:    0060:[<c285a913>]    Not
> tainted
> May 18 05:08:31 localhost kernel: EFLAGS: 00010246
> May 18 05:08:31 localhost kernel: EIP is at
> rfcomm_session_add+0xb3/0xc0 [rfcomm]
> May 18 05:08:31 localhost kernel: eax: 00000000   ebx: c11c0e20
> ecx: 00000000   edx: c2862060
> May 18 05:08:31 localhost kernel: esi: 00000002   edi: c11c0e4c
> ebp: 00000000   esp: c1299f8c
> May 18 05:08:31 localhost kernel: ds: 007b   es: 007b   ss: 0068
> May 18 05:08:31 localhost kernel: Process krfcommd (pid: 1127,
> threadinfo=c1298000 task=c1d20660)
> May 18 05:08:31 localhost kernel: Stack: c1fbb340 c283eec0 c1fbb340
> c1d614e0 c283eec0 c285c62f c1d614e0 00000002
> May 18 05:08:31 localhost kernel:        c1fbb340 04000000 c129ffff
> c0116161 c1298000 c2861d70 c1298000 00000000
> May 18 05:08:31 localhost kernel:        00000000 00000000 c285c83d
> c1299fdc 00000000 00000000 0000007b ffffffff
> May 18 05:08:31 localhost kernel: Call Trace:
> May 18 05:08:31 localhost kernel:  [<c285c62f>]
> rfcomm_worker+0x48f/0x4e0 [rfcomm]
> May 18 05:08:31 localhost kernel:  [<c0116161>]
> set_user_nice+0x61/0x120
> May 18 05:08:31 localhost kernel:  [<c285c83d>] rfcomm_run+0x5d/0x80
> [rfcomm]
> May 18 05:08:31 localhost kernel:  [<c285c7e0>] rfcomm_run+0x0/0x80
> [rfcomm]
> May 18 05:08:31 localhost kernel:  [<c0106f81>]
> kernel_thread_helper+0x5/0x24
> May 18 05:08:32 localhost kernel:
> May 18 05:08:32 localhost kernel: Code: 0f 0b 2e 01 37 f7 85 c2 eb
> ca 8d 76 00 56 53 8b 5c 24 0c 8b
> 
> That is what I'm using:
> 
> $uname -a
> Linux localhost.localdomain 2.6.2 #16 Tue May 18 02:08:00 CEST 2004
> i586 i586 i386 GNU/Linux

and here is the problem. Your kernel is buggy and you should better use
the latest 2.6 kernel with our Bluetooth patch. For exmaple 2.6.6-mh1.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] krfcommd or kernel bug?
  2004-05-22 12:25 ` Marcel Holtmann
@ 2004-05-22 19:15   ` Przemek
  2004-05-23 10:26     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Przemek @ 2004-05-22 19:15 UTC (permalink / raw)
  To: BlueZ Mailing List

> > $uname -a
> > Linux localhost.localdomain 2.6.2 #16 Tue May 18 02:08:00 CEST 2004
> > i586 i586 i386 GNU/Linux
> 
> and here is the problem. Your kernel is buggy and you should better use
> the latest 2.6 kernel with our Bluetooth patch. For exmaple 2.6.6-mh1.

Ok, I've just upgreaded to 2.6.6-mh1.
Now, I can't even hciattach my device :/

#modprobe serport
#modprobe hci_uart
#hciattach ttyS0 ericsson 57600 flow

...and then:

May 22 19:42:40 localhost kernel: Unable to handle kernel NULL
pointer dereference at virtual address 00000014
May 22 19:42:40 localhost kernel:  printing eip:
May 22 19:42:40 localhost kernel: c6817289
May 22 19:42:40 localhost kernel: *pde = 00000000
May 22 19:42:40 localhost kernel: Oops: 0002 [#1]
May 22 19:42:40 localhost kernel: PREEMPT
May 22 19:42:40 localhost kernel: CPU:    0
May 22 19:42:40 localhost kernel: EIP:    0060:[<c6817289>]    Not
tainted
May 22 19:42:40 localhost kernel: EFLAGS: 00010286   (2.6.6-mh1)
May 22 19:42:40 localhost kernel: EIP is at hci_uart_close+0x9/0x40
[hci_uart]
May 22 19:42:40 localhost kernel: eax: 00000002   ebx: c1320d3c
ecx: c0274b7c   edx: 00000000
May 22 19:42:40 localhost kernel: esi: 00000000   edi: c5dbfa00
ebp: 00000000   esp: c5315ebc
May 22 19:42:40 localhost kernel: ds: 007b   es: 007b   ss: 0068
May 22 19:42:40 localhost kernel: Process hciattach (pid: 1238,
threadinfo=c5314000 task=c5f1a5f0)
May 22 19:42:40 localhost kernel: Stack: c6817403 00000000 c52de000
00000000 c01c1a00 c52de000 00000000 00000000
May 22 19:42:40 localhost kernel:        00000001 00000000 c02fd108
0000000a c02d6a00 c01151fc c02fd108 00000046
May 22 19:42:40 localhost kernel:        c5314000 00000000 00000046
c5314000 c0105a59 c0276424 c523d768 00000126
May 22 19:42:40 localhost kernel: Call Trace:
May 22 19:42:40 localhost kernel:  [<c6817403>]
hci_uart_tty_close+0x23/0x60 [hci_uart]
May 22 19:42:40 localhost kernel:  [<c01c1a00>]
release_dev+0x4e0/0x5e0
May 22 19:42:40 localhost kernel:  [<c01151fc>]
__do_softirq+0x7c/0x80
May 22 19:42:40 localhost kernel:  [<c0105a59>] do_IRQ+0xf9/0x140
May 22 19:42:40 localhost kernel:  [<c01c1ea1>]
tty_release+0x21/0x60
May 22 19:42:41 localhost kernel:  [<c014313b>] __fput+0xfb/0x120
May 22 19:42:41 localhost kernel:  [<c0141a43>] filp_close+0x43/0x80
May 22 19:42:41 localhost kernel:  [<c0112cd5>]
put_files_struct+0x55/0xc0
May 22 19:42:41 localhost kernel:  [<c0113910>] do_exit+0x1b0/0x3e0
May 22 19:42:41 localhost kernel:  [<c0113c30>]
do_group_exit+0x70/0xc0
May 22 19:42:41 localhost kernel:  [<c0103ed7>] syscall_call+0x7/0xb
May 22 19:42:41 localhost kernel:
May 22 19:42:41 localhost kernel: Code: 0f b3 42 14 19 c0 85 c0 75
0d b8 00 00 00 00 c3 8d b4 26 00

I have no idea what to do... 

Best Regards, 
Przemek


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] krfcommd or kernel bug?
  2004-05-22 19:15   ` Przemek
@ 2004-05-23 10:26     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2004-05-23 10:26 UTC (permalink / raw)
  To: aquamala; +Cc: BlueZ Mailing List

Hi Aquamala,

> > > $uname -a
> > > Linux localhost.localdomain 2.6.2 #16 Tue May 18 02:08:00 CEST 2004
> > > i586 i586 i386 GNU/Linux
> > 
> > and here is the problem. Your kernel is buggy and you should better use
> > the latest 2.6 kernel with our Bluetooth patch. For exmaple 2.6.6-mh1.
> 
> Ok, I've just upgreaded to 2.6.6-mh1.

and I found that the 2.6.6 has still a module reference count bug in the
RFCOMM layer. To prevent this bug you must start at least one service
that uses RFCOMM.

> Now, I can't even hciattach my device :/
> 
> #modprobe serport
> #modprobe hci_uart
> #hciattach ttyS0 ericsson 57600 flow
> 
> ...and then:
> 
> May 22 19:42:40 localhost kernel: Unable to handle kernel NULL
> pointer dereference at virtual address 00000014
> May 22 19:42:40 localhost kernel:  printing eip:
> May 22 19:42:40 localhost kernel: c6817289
> May 22 19:42:40 localhost kernel: *pde = 00000000
> May 22 19:42:40 localhost kernel: Oops: 0002 [#1]
> May 22 19:42:40 localhost kernel: PREEMPT
> May 22 19:42:40 localhost kernel: CPU:    0
> May 22 19:42:40 localhost kernel: EIP:    0060:[<c6817289>]    Not
> tainted
> May 22 19:42:40 localhost kernel: EFLAGS: 00010286   (2.6.6-mh1)
> May 22 19:42:40 localhost kernel: EIP is at hci_uart_close+0x9/0x40
> [hci_uart]
> May 22 19:42:40 localhost kernel: eax: 00000002   ebx: c1320d3c
> ecx: c0274b7c   edx: 00000000
> May 22 19:42:40 localhost kernel: esi: 00000000   edi: c5dbfa00
> ebp: 00000000   esp: c5315ebc
> May 22 19:42:40 localhost kernel: ds: 007b   es: 007b   ss: 0068
> May 22 19:42:40 localhost kernel: Process hciattach (pid: 1238,
> threadinfo=c5314000 task=c5f1a5f0)
> May 22 19:42:40 localhost kernel: Stack: c6817403 00000000 c52de000
> 00000000 c01c1a00 c52de000 00000000 00000000
> May 22 19:42:40 localhost kernel:        00000001 00000000 c02fd108
> 0000000a c02d6a00 c01151fc c02fd108 00000046
> May 22 19:42:40 localhost kernel:        c5314000 00000000 00000046
> c5314000 c0105a59 c0276424 c523d768 00000126
> May 22 19:42:40 localhost kernel: Call Trace:
> May 22 19:42:40 localhost kernel:  [<c6817403>]
> hci_uart_tty_close+0x23/0x60 [hci_uart]
> May 22 19:42:40 localhost kernel:  [<c01c1a00>]
> release_dev+0x4e0/0x5e0
> May 22 19:42:40 localhost kernel:  [<c01151fc>]
> __do_softirq+0x7c/0x80
> May 22 19:42:40 localhost kernel:  [<c0105a59>] do_IRQ+0xf9/0x140
> May 22 19:42:40 localhost kernel:  [<c01c1ea1>]
> tty_release+0x21/0x60
> May 22 19:42:41 localhost kernel:  [<c014313b>] __fput+0xfb/0x120
> May 22 19:42:41 localhost kernel:  [<c0141a43>] filp_close+0x43/0x80
> May 22 19:42:41 localhost kernel:  [<c0112cd5>]
> put_files_struct+0x55/0xc0
> May 22 19:42:41 localhost kernel:  [<c0113910>] do_exit+0x1b0/0x3e0
> May 22 19:42:41 localhost kernel:  [<c0113c30>]
> do_group_exit+0x70/0xc0
> May 22 19:42:41 localhost kernel:  [<c0103ed7>] syscall_call+0x7/0xb
> May 22 19:42:41 localhost kernel:
> May 22 19:42:41 localhost kernel: Code: 0f b3 42 14 19 c0 85 c0 75
> 0d b8 00 00 00 00 c3 8d b4 26 00
> 
> I have no idea what to do... 

I've never seen this before and actually I don't know why get a NULL
pointer dereference here.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-23 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-22 12:15 [Bluez-users] krfcommd or kernel bug? Przemek
2004-05-22 12:25 ` Marcel Holtmann
2004-05-22 19:15   ` Przemek
2004-05-23 10:26     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox