Bluetooth: Wrong link type (-22)
Bluetooth: Wrong link type (-22)
Bluetooth: Wrong link type (-22)
Bluetooth: hci7: link tx timeout
Bluetooth: hci7: killing stalled connection 11:aa:aa:aa:aa:aa
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 301, name: kworker/u5:8
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
3 locks held by kworker/u5:8/301:
#0: ffff88801f4ba938 ((wq_completion)hci7#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff888016b67db0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
#2: ffffffff8560b6c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
CPU: 0 PID: 301 Comm: kworker/u5:8 Not tainted 6.4.0-next-20230630 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci7 hci_tx_work
Call Trace:
dump_stack_lvl+0xc1/0xf0
__might_resched+0x2f9/0x510
__mutex_lock+0x9e/0x1a30
hci_cmd_sync_submit+0x3b/0x2d0
hci_cmd_sync_queue+0x7b/0xb0
hci_disconnect+0x1c2/0x450
__check_timeout+0x2cc/0x480
hci_tx_work+0x7cb/0x1a70
process_one_work+0xabf/0x1770
worker_thread+0x64f/0x12a0
kthread+0x33f/0x440
ret_from_fork+0x2c/0x50
=============================
[ BUG: Invalid wait context ]
6.4.0-next-20230630 #1 Tainted: G W
-----------------------------
kworker/u5:8/301 is trying to lock:
ffff88801f7e89b0 (&hdev->unregister_lock){+.+.}-{3:3}, at: hci_cmd_sync_submit+0x3b/0x2d0
other info that might help us debug this:
context-{4:4}
3 locks held by kworker/u5:8/301:
#0: ffff88801f4ba938 ((wq_completion)hci7#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff888016b67db0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
#2: ffffffff8560b6c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
stack backtrace:
CPU: 0 PID: 301 Comm: kworker/u5:8 Tainted: G W 6.4.0-next-20230630 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci7 hci_tx_work
Call Trace:
dump_stack_lvl+0x91/0xf0
__lock_acquire+0x1605/0x6340
lock_acquire+0x19a/0x4c0
__mutex_lock+0x12a/0x1a30
hci_cmd_sync_submit+0x3b/0x2d0
hci_cmd_sync_queue+0x7b/0xb0
hci_disconnect+0x1c2/0x450
__check_timeout+0x2cc/0x480
hci_tx_work+0x7cb/0x1a70
process_one_work+0xabf/0x1770
worker_thread+0x64f/0x12a0
kthread+0x33f/0x440
ret_from_fork+0x2c/0x50
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 9797 Comm: syz-executor.4 Tainted: G W 6.4.0-next-20230630 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack_lvl+0xc1/0xf0
should_fail_ex+0x4b4/0x5b0
should_failslab+0x9/0x20
kmem_cache_alloc+0x62/0x370
jbd2__journal_start+0x194/0x810
__ext4_journal_start_sb+0x3d7/0x560
ext4_dirty_inode+0xa5/0x130
__mark_inode_dirty+0x1aa/0xc10
generic_write_end+0x319/0x3d0
ext4_da_write_end+0x1e4/0xb10
generic_perform_write+0x333/0x5e0
ext4_buffered_write_iter+0x123/0x3d0
ext4_file_write_iter+0x36d/0x19b0
do_iter_readv_writev+0x217/0x3c0
do_iter_write+0x186/0x820
vfs_iter_write+0x7a/0xb0
iter_file_splice_write+0x737/0xcb0
direct_splice_actor+0x119/0x180
splice_direct_to_actor+0x349/0x9d0
do_splice_direct+0x1bb/0x290
do_sendfile+0xb67/0x1300
__x64_sys_sendfile64+0x1d5/0x210
do_syscall_64+0x3f/0x90
entry_SYSCALL_64_after_hwframe+0x6e/0xd8
RIP: 0033:0x7f31f1b1db19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f31ef093188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f31f1c30f60 RCX: 00007f31f1b1db19
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 00007f31ef0931d0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000010000027f R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffce982d0df R14: 00007f31ef093300 R15: 0000000000022000
Bluetooth: Wrong link type (-22)
Bluetooth: Wrong link type (-22)
Bluetooth: Wrong link type (-22)
Bluetooth: hci7: link tx timeout
Bluetooth: hci7: killing stalled connection 11:aa:aa:aa:aa:aa
Bluetooth: hci7: command 0x0406 tx timeout