Kernel bug: INFO: task hung in hci_cmd_sync_clear (3)
Subsystem: bluetooth
Status: open

Crash report:
INFO: task syz-executor:5987 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0
      Blocked by coredump.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:21536 pid:5987  tgid:5987  ppid:1      task_flags:0x40054c flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5357 [inline]
 __schedule+0x1798/0x4cc0 kernel/sched/core.c:6961
 __schedule_loop kernel/sched/core.c:7043 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:7058
 schedule_timeout+0x9a/0x270 kernel/time/sleep_timeout.c:75
 do_wait_for_common kernel/sched/completion.c:100 [inline]
 __wait_for_common kernel/sched/completion.c:121 [inline]
 wait_for_common kernel/sched/completion.c:132 [inline]
 wait_for_completion+0x2bf/0x5d0 kernel/sched/completion.c:153
 __flush_work+0x9b9/0xbc0 kernel/workqueue.c:4244
 __cancel_work_sync+0xbe/0x110 kernel/workqueue.c:4364
 hci_cmd_sync_clear+0x30/0x230 net/bluetooth/hci_sync.c:655
 hci_unregister_dev+0x194/0x510 net/bluetooth/hci_core.c:2711
 vhci_release+0x80/0xd0 drivers/bluetooth/hci_vhci.c:665
 __fput+0x44c/0xa70 fs/file_table.c:468
 task_work_run+0x1d4/0x260 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x6b5/0x2300 kernel/exit.c:961
 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102
 get_signal+0x1286/0x1340 kernel/signal.c:3034
 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:40
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f817718d5fc
RSP: 002b:00007ffcbc4e5080 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: fffffffffffffe00 RBX: 0000000000000003 RCX: 00007f817718d5fc
RDX: 0000000000000030 RSI: 00007ffcbc4e5140 RDI: 00000000000000f9
RBP: 00007ffcbc4e50ec R08: 0000000000000000 R09: 00007ffcbc4e4df7
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000258
R13: 00000000000927c0 R14: 000000000002d6e1 R15: 00007ffcbc4e5140
 </TASK>
INFO: task syz-executor:6635 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0
      Blocked by coredump.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:21928 pid:6635  tgid:6635  ppid:1      task_flags:0x40054c flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5357 [inline]
 __schedule+0x1798/0x4cc0 kernel/sched/core.c:6961
 __schedule_loop kernel/sched/core.c:7043 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:7058
 schedule_timeout+0x9a/0x270 kernel/time/sleep_timeout.c:75
 do_wait_for_common kernel/sched/completion.c:100 [inline]
 __wait_for_common kernel/sched/completion.c:121 [inline]
 wait_for_common kernel/sched/completion.c:132 [inline]
 wait_for_completion+0x2bf/0x5d0 kernel/sched/completion.c:153
 __flush_work+0x9b9/0xbc0 kernel/workqueue.c:4244
 __cancel_work_sync+0xbe/0x110 kernel/workqueue.c:4364
 hci_cmd_sync_clear+0x30/0x230 net/bluetooth/hci_sync.c:655
 hci_unregister_dev+0x194/0x510 net/bluetooth/hci_core.c:2711
 vhci_release+0x80/0xd0 drivers/bluetooth/hci_vhci.c:665
 __fput+0x44c/0xa70 fs/file_table.c:468
 task_work_run+0x1d4/0x260 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x6b5/0x2300 kernel/exit.c:961
 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102
 get_signal+0x1286/0x1340 kernel/signal.c:3034
 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:40
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2c63d8d5fc
RSP: 002b:00007fff0df75af0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: fffffffffffffe00 RBX: 0000000000000003 RCX: 00007f2c63d8d5fc
RDX: 0000000000000030 RSI: 00007fff0df75bb0 RDI: 00000000000000f9
RBP: 00007fff0df75b5c R08: 0000000000000000 R09: 00007fff0df75867
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000258
R13: 00007f2c63f81280 R14: 0000000000030366 R15: 00007fff0df75bb0
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:328 [inline]
 watchdog+0xf93/0xfe0 kernel/hung_task.c:491
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 9755 Comm: kworker/u9:8 Not tainted 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Workqueue: hci8 hci_cmd_sync_work
RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
RIP: 0010:do_raw_spin_lock+0x7d/0x290 kernel/locking/spinlock_debug.c:115
Code: 4c 24 20 48 c1 e9 03 48 b8 f1 f1 f1 f1 04 f3 f3 f3 48 89 4c 24 18 4a 89 04 39 4c 8d 77 04 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 <84> c0 0f 85 9f 01 00 00 41 8b 06 3d ad 4e ad de 0f 85 1b 01 00 00
RSP: 0018:ffffc90000007b40 EFLAGS: 00000013
RAX: 0000000000000000 RBX: ffffffff99cf1fe8 RCX: 1ffff92000000f6c
RDX: 0000000000000000 RSI: ffffffff8be334e0 RDI: ffffffff99cf1fe8
RBP: ffffc90000007bf0 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000000f98 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffffff99cf1fec R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff888125c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d763fff CR3: 000000000df36000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0xb3/0xf0 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x9a/0x250 lib/debugobjects.c:873
 debug_hrtimer_deactivate kernel/time/hrtimer.c:450 [inline]
 debug_deactivate+0x1d/0x200 kernel/time/hrtimer.c:490
 __run_hrtimer kernel/time/hrtimer.c:1729 [inline]
 __hrtimer_run_queues+0x2b0/0xc60 kernel/time/hrtimer.c:1825
 hrtimer_interrupt+0x45b/0xaa0 kernel/time/hrtimer.c:1887
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1039 [inline]
 __sysvec_apic_timer_interrupt+0x10b/0x410 arch/x86/kernel/apic/apic.c:1056
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1050
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline]
RIP: 0010:vprintk_emit+0x58f/0x7a0 kernel/printk/printk.c:2449
Code: 85 32 01 00 00 e8 c1 86 1f 00 41 89 df 4d 85 f6 48 8b 1c 24 75 07 e8 b0 86 1f 00 eb 06 e8 a9 86 1f 00 fb 48 c7 c7 80 e1 12 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 b9 35
RSP: 0018:ffffc9000f94f600 EFLAGS: 00000293
RAX: ffffffff81a024e7 RBX: ffffffff81a023a4 RCX: ffff88807b049e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e12e180
RBP: ffffc9000f94f710 R08: ffffffff8fa38137 R09: 1ffffffff1f47026
R10: dffffc0000000000 R11: fffffbfff1f47027 R12: dffffc0000000000
R13: 1ffff92001f29ec4 R14: 0000000000000200 R15: 000000000000002b
 _printk+0xcf/0x120 kernel/printk/printk.c:2475
 bt_err+0x10b/0x160 net/bluetooth/lib.c:296
 __hci_cmd_sync_status_sk net/bluetooth/hci_sync.c:271 [inline]
 __hci_cmd_sync_status net/bluetooth/hci_sync.c:287 [inline]
 hci_le_terminate_big_sync+0x195/0x200 net/bluetooth/hci_sync.c:1942
 hci_cmd_sync_work+0x213/0x3a0 net/bluetooth/hci_sync.c:332
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>