Bluetooth: hci1: link tx timeout
Bluetooth: hci1: killing stalled connection 10: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: 289, name: kworker/u5:4
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
3 locks held by kworker/u5:4/289:
#0: ffff8880199cd938 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff88800fc8fd90 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
#2: ffffffff8560c420 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
CPU: 1 PID: 289 Comm: kworker/u5:4 Not tainted 6.5.0-rc2-next-20230719 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci1 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+0x11b1/0x1a70
process_one_work+0xabf/0x1770
worker_thread+0x64f/0x12a0
kthread+0x33f/0x440
ret_from_fork+0x2f/0x70
ret_from_fork_asm+0x1b/0x30
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
=============================
[ BUG: Invalid wait context ]
6.5.0-rc2-next-20230719 #1 Tainted: G W
-----------------------------
kworker/u5:4/289 is trying to lock:
ffff88801f2d49b0 (&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:4/289:
#0: ffff8880199cd938 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770
#1: ffff88800fc8fd90 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770
#2: ffffffff8560c420 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480
stack backtrace:
CPU: 1 PID: 289 Comm: kworker/u5:4 Tainted: G W 6.5.0-rc2-next-20230719 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: hci1 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+0x11b1/0x1a70
process_one_work+0xabf/0x1770
worker_thread+0x64f/0x12a0
kthread+0x33f/0x440
ret_from_fork+0x2f/0x70
ret_from_fork_asm+0x1b/0x30
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
loop4: detected capacity change from 0 to 10
loop2: detected capacity change from 0 to 10
FAT-fs (loop4): Unrecognized mount option ":m" or missing value
audit: type=1400 audit(1689795078.046:11): avc: denied { checkpoint_restore } for pid=4087 comm="syz-executor.6" capability=40 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
Bluetooth: hci1: command 0x0406 tx timeout
EXT4-fs warning (device sda): verify_group_input:150: Cannot add at group 47925 (only 16 groups)
loop4: detected capacity change from 0 to 10
loop2: detected capacity change from 0 to 10
FAT-fs (loop2): Unrecognized mount option "SỮCXTP$F{|6k.*IUENW7m-yr".~&'GQ~G-2ߏϗ<>eV" or missing value
loop3: detected capacity change from 0 to 10
FAT-fs (loop4): Unrecognized mount option ":m" or missing value