Bluetooth: hci2: command 0x0409 tx timeout
Bluetooth: hci2: command 0x041b tx timeout
Bluetooth: hci2: command 0x040f tx timeout
Bluetooth: hci2: command 0x0419 tx timeout
Bluetooth: hci2: command 0x0406 tx timeout
INFO: task kworker/u5:1:302 blocked for more than 143 seconds.
Not tainted 5.16.0-rc5-next-20211213 #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:1 state:D stack:28216 pid: 302 ppid: 2 flags:0x00004000
Workqueue: hci2 scan_update_work
Call Trace:
context_switch kernel/sched/core.c:4986 [inline]
__schedule+0x882/0x2160 kernel/sched/core.c:6296
schedule+0xd2/0x260 kernel/sched/core.c:6369
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428
__mutex_lock_common kernel/locking/mutex.c:673 [inline]
__mutex_lock+0xb7e/0x1480 kernel/locking/mutex.c:733
hci_req_sync net/bluetooth/hci_request.c:198 [inline]
scan_update_work+0x2d/0xb0 net/bluetooth/hci_request.c:1900
process_one_work+0xa2a/0x1700 kernel/workqueue.c:2307
worker_thread+0x624/0x13c0 kernel/workqueue.c:2454
kthread+0x40c/0x500 kernel/kthread.c:345
ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:295
INFO: task systemd-rfkill:14990 blocked for more than 143 seconds.
Not tainted 5.16.0-rc5-next-20211213 #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:systemd-rfkill state:D stack:27968 pid:14990 ppid: 1 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:4986 [inline]
__schedule+0x882/0x2160 kernel/sched/core.c:6296
schedule+0xd2/0x260 kernel/sched/core.c:6369
schedule_timeout+0x3ae/0x480 kernel/time/timer.c:1857
do_wait_for_common kernel/sched/completion.c:85 [inline]
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x174/0x270 kernel/sched/completion.c:138
__flush_work+0x53f/0xae0 kernel/workqueue.c:3093
__cancel_work_timer+0x398/0x4d0 kernel/workqueue.c:3180
hci_request_cancel_all+0x38/0x150 net/bluetooth/hci_request.c:2698
hci_dev_close_sync+0x96/0xf10 net/bluetooth/hci_sync.c:4026
hci_dev_do_close net/bluetooth/hci_core.c:553 [inline]
hci_rfkill_set_block+0x16f/0x1b0 net/bluetooth/hci_core.c:935
rfkill_set_block+0x1fd/0x540 net/rfkill/core.c:344
rfkill_fop_write+0x40b/0x4b0 net/rfkill/core.c:1276
vfs_write+0x28a/0xae0 fs/read_write.c:588
ksys_write+0x1ee/0x250 fs/read_write.c:643
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fbc9367ff33
RSP: 002b:00007fffc61f9138 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fffc61f9160 RCX: 00007fbc9367ff33
RDX: 0000000000000008 RSI: 00007fffc61f9168 RDI: 0000000000000003
RBP: 00005641497d5c20 R08: 0000000000000000 R09: 00000000ffffffff
R10: 0000000000000010 R11: 0000000000000246 R12: 00007fffc61f9168
R13: 0000000000000001 R14: 0000000000000001 R15: 00005641497d4072
Showing all locks held in the system:
1 lock held by khungtaskd/24:
#0: ffffffff85201a20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
1 lock held by in:imklog/186:
#0: ffff88800cf4bc70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:994
3 locks held by kworker/u5:1/302:
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline]
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline]
#0: ffff8880159d5938 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x923/0x1700 kernel/workqueue.c:2278
#1: ffff88801d457da8 ((work_completion)(&hdev->scan_update)){+.+.}-{0:0}, at: process_one_work+0x957/0x1700 kernel/workqueue.c:2282
#2: ffff8880428f9000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync net/bluetooth/hci_request.c:198 [inline]
#2: ffff8880428f9000 (&hdev->req_lock){+.+.}-{3:3}, at: scan_update_work+0x2d/0xb0 net/bluetooth/hci_request.c:1900
2 locks held by systemd-rfkill/14990:
#0: ffffffff85863e68 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xff/0x4b0 net/rfkill/core.c:1260
#1: ffff8880428f9000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline]
#1: ffff8880428f9000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_rfkill_set_block+0x167/0x1b0 net/bluetooth/hci_core.c:935
2 locks held by syz-executor.2/14996:
#0: ffffffff85494648 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107
#1: ffffffff85863e68 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_open+0x104/0x6c0 net/rfkill/core.c:1148
=============================================