Return-Path: MIME-Version: 1.0 In-Reply-To: <4AC59D8A.6000102@hartkopp.net> References: <4AC59D8A.6000102@hartkopp.net> Date: Fri, 2 Oct 2009 19:01:10 +0800 Message-ID: Subject: Re: [BUG net-2.6] bluetooth/rfcomm : sleeping function called from invalid context at mm/slub.c:1719 From: Dave Young To: Oliver Hartkopp Cc: Marcel Holtmann , Linux Netdev List , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=UTF-8 List-ID: On Fri, Oct 2, 2009 at 2:28 PM, Oliver Hartkopp wrote= : > Hello Marcel, > > with current net-2.6 tree ... > > While starting my PPP Bluetooth dialup networking, i got this: Hi, oliver please try following patch: http://patchwork.kernel.org/patch/51326/ > > [ =C2=A0722.461549] PPP generic driver version 2.4.2 > [ =C2=A0722.477519] BUG: sleeping function called from invalid context at > mm/slub.c:1719 > [ =C2=A0722.477530] in_atomic(): 1, irqs_disabled(): 0, pid: 4677, name: = pppd > [ =C2=A0722.477537] 3 locks held by pppd/4677: > [ =C2=A0722.477542] =C2=A0#0: =C2=A0(rfcomm_mutex){+.+.+.}, at: [] > rfcomm_dlc_open+0x28/0x2d6 [rfcomm] > [ =C2=A0722.477568] =C2=A0#1: =C2=A0(sk_lock-AF_BLUETOOTH-BTPROTO_L2CAP){= +.+.+.}, at: > [] l2cap_sock_connect+0x62/0x2c6 [l2cap] > [ =C2=A0722.477589] =C2=A0#2: =C2=A0(&hdev->lock){+...+.}, at: [] > l2cap_sock_connect+0x11e/0x2c6 [l2cap] > [ =C2=A0722.477613] Pid: 4677, comm: pppd Not tainted 2.6.31-08939-gdb8ab= ec-dirty #21 > [ =C2=A0722.477619] Call Trace: > [ =C2=A0722.477633] =C2=A0[] ? __debug_show_held_locks+0x1e/0x2= 0 > [ =C2=A0722.477644] =C2=A0[] __might_sleep+0xc9/0xce > [ =C2=A0722.477655] =C2=A0[] __kmalloc+0x6d/0xfb > [ =C2=A0722.477666] =C2=A0[] ? kzalloc+0xb/0xd > [ =C2=A0722.477674] =C2=A0[] kzalloc+0xb/0xd > [ =C2=A0722.477683] =C2=A0[] device_private_init+0x15/0x3d > [ =C2=A0722.477693] =C2=A0[] dev_set_drvdata+0x18/0x26 > [ =C2=A0722.477718] =C2=A0[] hci_conn_init_sysfs+0x3d/0xc7 [blu= etooth] > [ =C2=A0722.477737] =C2=A0[] hci_conn_add+0x1c0/0x1d5 [bluetoot= h] > [ =C2=A0722.477756] =C2=A0[] hci_connect+0x71/0x17d [bluetooth] > [ =C2=A0722.477769] =C2=A0[] l2cap_sock_connect+0x196/0x2c6 [l2= cap] > [ =C2=A0722.477782] =C2=A0[] kernel_connect+0xd/0x12 > [ =C2=A0722.477795] =C2=A0[] rfcomm_dlc_open+0x14a/0x2d6 [rfcom= m] > [ =C2=A0722.477810] =C2=A0[] ? rfcomm_tty_open+0x73/0x227 [rfco= mm] > [ =C2=A0722.477825] =C2=A0[] rfcomm_tty_open+0xa9/0x227 [rfcomm= ] > [ =C2=A0722.477836] =C2=A0[] ? default_wake_function+0x0/0xd > [ =C2=A0722.477847] =C2=A0[] tty_open+0x29e/0x399 > [ =C2=A0722.477858] =C2=A0[] chrdev_open+0x13f/0x156 > [ =C2=A0722.477868] =C2=A0[] __dentry_open+0x11b/0x20f > [ =C2=A0722.477878] =C2=A0[] nameidata_to_filp+0x2c/0x43 > [ =C2=A0722.477888] =C2=A0[] ? chrdev_open+0x0/0x156 > [ =C2=A0722.477898] =C2=A0[] do_filp_open+0x3c6/0x70a > [ =C2=A0722.477910] =C2=A0[] ? alloc_fd+0xc8/0xd2 > [ =C2=A0722.477920] =C2=A0[] ? alloc_fd+0xc8/0xd2 > [ =C2=A0722.477930] =C2=A0[] do_sys_open+0x4a/0xe7 > [ =C2=A0722.477940] =C2=A0[] ? restore_all_notrace+0x0/0x18 > [ =C2=A0722.477950] =C2=A0[] sys_open+0x1e/0x26 > [ =C2=A0722.477959] =C2=A0[] sysenter_do_call+0x12/0x36 > [ =C2=A0729.658613] PPP BSD Compression module registered > [ =C2=A0729.684789] PPP Deflate Compression module registered > > Any idea? > > Regards, > Oliver > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth= " in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.html > --=20 Regards dave