INFO: task kworker/u5:1:25915 blocked for more than 143 seconds. Not tainted 5.19.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:1 state:D stack:28352 pid:25915 ppid: 2 flags:0x00004000 Workqueue: hci6 hci_power_on Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0x957/0xec0 kernel/sched/core.c:6428 schedule+0xeb/0x1b0 kernel/sched/core.c:6500 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6559 __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.5:25930 blocked for more than 143 seconds. Not tainted 5.19.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:26488 pid:25930 ppid: 3649 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0x957/0xec0 kernel/sched/core.c:6428 schedule+0xeb/0x1b0 kernel/sched/core.c:6500 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_ldisc_kill drivers/tty/tty_ldisc.c:608 [inline] tty_ldisc_hangup+0x432/0x610 drivers/tty/tty_ldisc.c:724 __tty_hangup+0x494/0x6d0 drivers/tty/tty_io.c:637 tty_vhangup drivers/tty/tty_io.c:707 [inline] tty_ioctl+0x606/0xc60 drivers/tty/tty_io.c:2718 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:0x7f9a03e89109 RSP: 002b:00007f9a04fec168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9a03f9bf60 RCX: 00007f9a03e89109 RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000003 RBP: 00007f9a03ee30ad R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd954d6b1f R14: 00007f9a04fec300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cb1ebe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3292: #0: ffff88814a4a2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2124 3 locks held by kworker/u5:1/25915: #0: ffff888020a14938 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc90004a17d00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff888073d45048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline] #2: ffff888073d45048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963 3 locks held by syz-executor.5/25930: #0: ffff8880409e31c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: __tty_hangup+0xc3/0x6d0 drivers/tty/tty_io.c:597 #1: ffff8880409e3098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline] #1: ffff8880409e3098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x6a/0xb0 drivers/tty/tty_ldisc.c:314 #2: ffff888073d45048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline] #2: ffff888073d45048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1a9/0x460 net/bluetooth/hci_core.c:2685 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 5.19.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:220 [inline] watchdog+0xd18/0xd60 kernel/hung_task.c:378 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2963 Comm: syslogd Not tainted 5.19.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_preemption_disabled+0x42/0x120 lib/smp_processor_id.c:55 Code: 08 65 8b 1d 30 30 d7 75 65 8b 05 a1 85 d7 75 a9 ff ff ff 7f 74 22 65 48 8b 04 25 28 00 00 00 48 3b 44 24 08 0f 85 cc 00 00 00 <89> d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00 RSP: 0018:ffffc90002d4fde0 EFLAGS: 00000046 RAX: f14b1cd5e49bfc00 RBX: 0000000000000000 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8a8d32a0 RDI: ffffffff8ae98a60 RBP: 0000000000000000 R08: ffffffff81e88e27 R09: ffffed10289e00fa R10: ffffed10289e00fa R11: 1ffff110289e00f9 R12: 0000000000000246 R13: ffff88807e543b00 R14: 00000000ffffffff R15: ffffffff8cb1eb60 FS: 00007fe33512b800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00f2c3000 CR3: 000000007f31b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] lock_is_held_type+0x10a/0x190 kernel/locking/lockdep.c:5709 lock_is_held include/linux/lockdep.h:279 [inline] rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125 trace_sys_exit+0x2d/0xd0 include/trace/events/syscalls.h:44 syscall_exit_work+0x4a/0xe0 kernel/entry/common.c:245 syscall_exit_to_user_mode_prepare+0x62/0x80 kernel/entry/common.c:276 __syscall_exit_to_user_mode_work kernel/entry/common.c:281 [inline] syscall_exit_to_user_mode+0xa/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fe3352b78fe Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28 RSP: 002b:00007ffe4c2cb008 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: 0000000000000052 RBX: 0000000000000002 RCX: 00007fe3352b78fe RDX: 00000000000000ff RSI: 0000556524fdd950 RDI: 0000000000000000 RBP: 0000556524fdd910 R08: 00007fe335347040 R09: 00007fe3353470c0 R10: 00007fe335346fc0 R11: 0000000000000246 R12: 0000556524fdd997 R13: 0000556524fdd950 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 08 65 8b or %ah,-0x75(%rbp) 3: 1d 30 30 d7 75 sbb $0x75d73030,%eax 8: 65 8b 05 a1 85 d7 75 mov %gs:0x75d785a1(%rip),%eax # 0x75d785b0 f: a9 ff ff ff 7f test $0x7fffffff,%eax 14: 74 22 je 0x38 16: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 1d: 00 00 1f: 48 3b 44 24 08 cmp 0x8(%rsp),%rax 24: 0f 85 cc 00 00 00 jne 0xf6 * 2a: 89 d8 mov %ebx,%eax <-- trapping instruction 2c: 48 83 c4 10 add $0x10,%rsp 30: 5b pop %rbx 31: 41 5c pop %r12 33: 41 5e pop %r14 35: 41 5f pop %r15 37: c3 retq 38: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 3f: 00