Bluetooth: hci4: Malformed Event: 0x02
Bluetooth: Wrong link type (-22)
Bluetooth: hci4: link tx timeout
Bluetooth: hci4: 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: 277, name: kworker/u5:0
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
3 locks held by kworker/u5:0/277:
#0: ffff888016262938 ((wq_completion)hci4#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff88803f44fdb0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
netlink: 'syz-executor.1': attribute type 16 has an invalid length.
#2: ffffffff8560b3c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
CPU: 1 PID: 277 Comm: kworker/u5:0 Not tainted 6.4.0-next-20230706 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci4 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-20230706 #1 Tainted: G W
-----------------------------
kworker/u5:0/277 is trying to lock:
ffff88801e8ac9b0 (&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:0/277:
#0: ffff888016262938 ((wq_completion)hci4#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff88803f44fdb0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
#2: ffffffff8560b3c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
stack backtrace:
CPU: 1 PID: 277 Comm: kworker/u5:0 Tainted: G W 6.4.0-next-20230706 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci4 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
loop5: detected capacity change from 0 to 264192
Bluetooth: hci4: Malformed Event: 0x02
loop2: detected capacity change from 0 to 10
Bluetooth: Wrong link type (-57)
loop5: detected capacity change from 0 to 264192
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 6691 Comm: syz-executor.2 Tainted: G W 6.4.0-next-20230706 #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+0x61/0x390
alloc_empty_file+0x76/0x1e0
alloc_file+0x5e/0x800
alloc_file_pseudo+0x16e/0x260
__shmem_file_setup+0x202/0x300
__do_sys_memfd_create+0x385/0xa20
do_syscall_64+0x3f/0x90
entry_SYSCALL_64_after_hwframe+0x6e/0xd8
RIP: 0033:0x7fa9705fdb19
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:00007fa96db72f48 EFLAGS: 00000246 ORIG_RAX: 000000000000013f
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fa9705fdb19
RDX: 0000000000001400 RSI: 0000000000000000 RDI: 00007fa9706570fb
RBP: 0000000000000002 R08: 0000000000000a00 R09: ffffffffffffffff
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000008100000
R13: 0000000020000040 R14: 0000000000001400 R15: 0000000020000140
Bluetooth: hci4: command 0x0406 tx timeout