2018-03-28 03:24:26

by Mikhail Gavrilov

[permalink] [raw]
Subject: BUG: sleeping function called from invalid context at net/core/sock.c:2768

$ uname -r
4.16.0-rc7

[85044.650045] Bluetooth: hci0: last event is not cmd complete (0x0f)
[85057.544598] usb 1-9.2: USB disconnect, device number 12
[85060.640035] Bluetooth: hci0: last event is not cmd complete (0x0f)
[85065.025725] BUG: sleeping function called from invalid context at
net/core/sock.c:2768
[85065.025729] in_atomic(): 1, irqs_disabled(): 0, pid: 2084, name: krfcommd
[85065.025730] INFO: lockdep is turned off.
[85065.025733] CPU: 6 PID: 2084 Comm: krfcommd Not tainted 4.16.0-rc7 #1
[85065.025735] Hardware name: Gigabyte Technology Co., Ltd.
Z87M-D3H/Z87M-D3H, BIOS F11 08/12/2014
[85065.025736] Call Trace:
[85065.025743] dump_stack+0x85/0xbf
[85065.025747] ___might_sleep+0x15b/0x240
[85065.025751] lock_sock_nested+0x29/0xa0
[85065.025764] bt_accept_enqueue+0x3c/0xb0 [bluetooth]
[85065.025770] rfcomm_connect_ind+0x227/0x250 [rfcomm]
[85065.025774] rfcomm_run+0x155a/0x1860 [rfcomm]
[85065.025778] ? do_wait_intr_irq+0xb0/0xb0
[85065.025783] ? rfcomm_check_accept+0xa0/0xa0 [rfcomm]
[85065.025786] kthread+0x121/0x140
[85065.025789] ? kthread_create_worker_on_cpu+0x70/0x70
[85065.025792] ret_from_fork+0x3a/0x50
[85069.642058] Bluetooth: hci0: last event is not cmd complete (0x0f)



--
Best Regards,
Mike Gavrilov.