INFO: task kworker/u5:4:3629 blocked for more than 143 seconds.
Not tainted 5.19.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:4 state:D stack:26048 pid: 3629 ppid: 2 flags:0x00004000
Workqueue: hci6 hci_power_on
Call Trace:
context_switch kernel/sched/core.c:5146 [inline]
__schedule+0x957/0xe20 kernel/sched/core.c:6458
schedule+0xeb/0x1b0 kernel/sched/core.c:6530
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6589
__mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679
__mutex_lock kernel/locking/mutex.c:747 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
hci_dev_do_open net/bluetooth/hci_core.c:480 [inline]
hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
INFO: task syz-executor.0:25120 blocked for more than 143 seconds.
Not tainted 5.19.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:26776 pid:25120 ppid: 3617 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5146 [inline]
__schedule+0x957/0xe20 kernel/sched/core.c:6458
schedule+0xeb/0x1b0 kernel/sched/core.c:6530
schedule_timeout+0xac/0x300 kernel/time/timer.c:1911
do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x46/0x60 kernel/sched/completion.c:138
__flush_work kernel/workqueue.c:3075 [inline]
__cancel_work_timer+0x585/0x740 kernel/workqueue.c:3162
hci_dev_close_sync+0x31/0xcc0 net/bluetooth/hci_sync.c:4091
hci_dev_do_close net/bluetooth/hci_core.c:553 [inline]
hci_unregister_dev+0x1b1/0x460 net/bluetooth/hci_core.c:2685
hci_uart_tty_close+0x1a7/0x280 drivers/bluetooth/hci_ldisc.c:548
tty_set_ldisc+0x22e/0x670 drivers/tty/tty_ldisc.c:552
tty_ioctl+0xada/0xc60 drivers/tty/tty_io.c:2714
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f88f9089109
RSP: 002b:00007f88fa125168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f88f919bf60 RCX: 00007f88f9089109
RDX: 0000000020000000 RSI: 0000000000005423 RDI: 0000000000000003
RBP: 00007f88f90e305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffeb4ab7d9f R14: 00007f88fa125300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by khungtaskd/28:
#0: ffffffff8cb1e820 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3289:
#0: ffff88814a934098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc90002d232e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2124
3 locks held by kworker/u5:4/3629:
#0: ffff888021435138 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900031cfd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffff88801d029048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline]
#2: ffff88801d029048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963
3 locks held by syz-executor.0/25120:
#0: ffff88801c9771c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_set_ldisc+0x4e/0x670 drivers/tty/tty_ldisc.c:529
#1: ffff88801c977098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline]
#1: ffff88801c977098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x6a/0xb0 drivers/tty/tty_ldisc.c:314
#2: ffff88801d029048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline]
#2: ffff88801d029048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1a9/0x460 net/bluetooth/hci_core.c:2685
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x168/0x280 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
watchdog+0xcf9/0xd40 kernel/hung_task.c:369
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10630 Comm: kworker/u4:16 Not tainted 5.19.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:219 [inline]
RIP: 0010:test_bit include/asm-generic/bitops/instrumented-non-atomic.h:135 [inline]
RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:379 [inline]
RIP: 0010:cpu_online include/linux/cpumask.h:921 [inline]
RIP: 0010:trace_timer_expire_exit+0x5a/0x210 include/trace/events/timer.h:127
Code: 89 d8 c1 e8 06 48 8d 3c c5 68 94 03 8e be 08 00 00 00 e8 79 b8 63 00 89 d8 31 f6 48 0f a3 05 a5 e2 8c 0c 0f 92 c3 40 0f 92 c6 <31> ff e8 8f ce 10 00 84 db 75 07 e8 a6 cb 10 00 eb 47 65 ff 05 25
RSP: 0018:ffffc900001e0b88 EFLAGS: 00000247
RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8176b1b7
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff8e039468
RBP: ffffc900001e0c90 R08: dffffc0000000000 R09: fffffbfff1c0728e
R10: fffffbfff1c0728e R11: 1ffffffff1c0728d R12: ffff88805392e810
R13: ffffc900001e0be0 R14: 1ffff9200003c178 R15: ffffffff8851a2c0
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75aed55280 CR3: 000000000c88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
call_timer_fn+0xfd/0x210 kernel/time/timer.c:1475
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers+0x76a/0x980 kernel/time/timer.c:1790
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803
__do_softirq+0x382/0x793 kernel/softirq.c:571
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x1b/0x20
RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline]
RIP: 0010:smp_call_function_many_cond+0xf12/0x1500 kernel/smp.c:988
Code: 8b 3c 24 44 89 fe 83 e6 01 31 ff e8 a8 e2 0a 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 08 e8 73 de 0a 00 eb 46 90 f3 90 <42> 0f b6 04 3b 84 c0 75 11 41 f7 04 24 01 00 00 00 74 2b e8 56 de
RSP: 0018:ffffc90004f17780 EFLAGS: 00000293
RAX: ffffffff817c9f2a RBX: 1ffff11017348411 RCX: ffff88804aec1d80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004f17940 R08: ffffffff817c9ef8 R09: fffffbfff1fa9201
R10: fffffbfff1fa9201 R11: 1ffffffff1fa9200 R12: ffff8880b9a42088
R13: 1ffff11017367580 R14: 0000000000000000 R15: dffffc0000000000
on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1154
on_each_cpu include/linux/smp.h:71 [inline]
text_poke_sync arch/x86/kernel/alternative.c:1231 [inline]
text_poke_bp_batch+0x661/0x970 arch/x86/kernel/alternative.c:1472
text_poke_flush arch/x86/kernel/alternative.c:1589 [inline]
text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596
arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
static_key_enable_cpuslocked+0x129/0x250 kernel/jump_label.c:177
static_key_enable+0x16/0x20 kernel/jump_label.c:190
toggle_allocation_gate+0xbf/0x470 mm/kfence/core.c:811
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
----------------
Code disassembly (best guess):
0: 89 d8 mov %ebx,%eax
2: c1 e8 06 shr $0x6,%eax
5: 48 8d 3c c5 68 94 03 lea -0x71fc6b98(,%rax,8),%rdi
c: 8e
d: be 08 00 00 00 mov $0x8,%esi
12: e8 79 b8 63 00 callq 0x63b890
17: 89 d8 mov %ebx,%eax
19: 31 f6 xor %esi,%esi
1b: 48 0f a3 05 a5 e2 8c bt %rax,0xc8ce2a5(%rip) # 0xc8ce2c8
22: 0c
23: 0f 92 c3 setb %bl
26: 40 0f 92 c6 setb %sil
* 2a: 31 ff xor %edi,%edi <-- trapping instruction
2c: e8 8f ce 10 00 callq 0x10cec0
31: 84 db test %bl,%bl
33: 75 07 jne 0x3c
35: e8 a6 cb 10 00 callq 0x10cbe0
3a: eb 47 jmp 0x83
3c: 65 gs
3d: ff .byte 0xff
3e: 05 .byte 0x5
3f: 25 .byte 0x25