Return-Path: Message-ID: <4AC59D8A.6000102@hartkopp.net> Date: Fri, 02 Oct 2009 08:28:26 +0200 From: Oliver Hartkopp MIME-Version: 1.0 To: Marcel Holtmann CC: Linux Netdev List , linux-bluetooth@vger.kernel.org Subject: [BUG net-2.6] bluetooth/rfcomm : sleeping function called from invalid context at mm/slub.c:1719 Content-Type: text/plain; charset=ISO-8859-1 List-ID: Hello Marcel, with current net-2.6 tree ... While starting my PPP Bluetooth dialup networking, i got this: [ 722.461549] PPP generic driver version 2.4.2 [ 722.477519] BUG: sleeping function called from invalid context at mm/slub.c:1719 [ 722.477530] in_atomic(): 1, irqs_disabled(): 0, pid: 4677, name: pppd [ 722.477537] 3 locks held by pppd/4677: [ 722.477542] #0: (rfcomm_mutex){+.+.+.}, at: [] rfcomm_dlc_open+0x28/0x2d6 [rfcomm] [ 722.477568] #1: (sk_lock-AF_BLUETOOTH-BTPROTO_L2CAP){+.+.+.}, at: [] l2cap_sock_connect+0x62/0x2c6 [l2cap] [ 722.477589] #2: (&hdev->lock){+...+.}, at: [] l2cap_sock_connect+0x11e/0x2c6 [l2cap] [ 722.477613] Pid: 4677, comm: pppd Not tainted 2.6.31-08939-gdb8abec-dirty #21 [ 722.477619] Call Trace: [ 722.477633] [] ? __debug_show_held_locks+0x1e/0x20 [ 722.477644] [] __might_sleep+0xc9/0xce [ 722.477655] [] __kmalloc+0x6d/0xfb [ 722.477666] [] ? kzalloc+0xb/0xd [ 722.477674] [] kzalloc+0xb/0xd [ 722.477683] [] device_private_init+0x15/0x3d [ 722.477693] [] dev_set_drvdata+0x18/0x26 [ 722.477718] [] hci_conn_init_sysfs+0x3d/0xc7 [bluetooth] [ 722.477737] [] hci_conn_add+0x1c0/0x1d5 [bluetooth] [ 722.477756] [] hci_connect+0x71/0x17d [bluetooth] [ 722.477769] [] l2cap_sock_connect+0x196/0x2c6 [l2cap] [ 722.477782] [] kernel_connect+0xd/0x12 [ 722.477795] [] rfcomm_dlc_open+0x14a/0x2d6 [rfcomm] [ 722.477810] [] ? rfcomm_tty_open+0x73/0x227 [rfcomm] [ 722.477825] [] rfcomm_tty_open+0xa9/0x227 [rfcomm] [ 722.477836] [] ? default_wake_function+0x0/0xd [ 722.477847] [] tty_open+0x29e/0x399 [ 722.477858] [] chrdev_open+0x13f/0x156 [ 722.477868] [] __dentry_open+0x11b/0x20f [ 722.477878] [] nameidata_to_filp+0x2c/0x43 [ 722.477888] [] ? chrdev_open+0x0/0x156 [ 722.477898] [] do_filp_open+0x3c6/0x70a [ 722.477910] [] ? alloc_fd+0xc8/0xd2 [ 722.477920] [] ? alloc_fd+0xc8/0xd2 [ 722.477930] [] do_sys_open+0x4a/0xe7 [ 722.477940] [] ? restore_all_notrace+0x0/0x18 [ 722.477950] [] sys_open+0x1e/0x26 [ 722.477959] [] sysenter_do_call+0x12/0x36 [ 729.658613] PPP BSD Compression module registered [ 729.684789] PPP Deflate Compression module registered Any idea? Regards, Oliver