INFO: task kworker/u5:2:3636 blocked for more than 143 seconds. Not tainted 5.18.0-syzkaller-10643-g9d004b2f4fea #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:2 state:D stack:25296 pid: 3636 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:6431 schedule+0xeb/0x1b0 kernel/sched/core.c:6503 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6562 __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.2:8540 blocked for more than 143 seconds. Not tainted 5.18.0-syzkaller-10643-g9d004b2f4fea #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27040 pid: 8540 ppid: 3630 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0x957/0xec0 kernel/sched/core.c:6431 schedule+0xeb/0x1b0 kernel/sched/core.c:6503 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_release+0x23c/0x510 drivers/tty/tty_ldisc.c:776 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1694 tty_release+0xc06/0xe60 drivers/tty/tty_io.c:1865 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fd980e3bd4b RSP: 002b:00007ffc2f8124f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fd980e3bd4b RDX: 00007fd980fa0238 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007fd980f9d960 R08: 0000000000000000 R09: 00007fd980fa0240 R10: 00007ffc2f8125f0 R11: 0000000000000293 R12: 0000000000039bb2 R13: 00007ffc2f8125f0 R14: 00007fd980f9bf60 R15: 0000000000000032 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/3285: #0: ffff888025827098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002cd62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ad/0x1c90 drivers/tty/n_tty.c:2075 3 locks held by kworker/u5:2/3636: #0: ffff88801fa5a938 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000312fd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff88802a4ad048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline] #2: ffff88802a4ad048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963 3 locks held by kworker/u4:7/3696: #0: ffff8880b9a39b58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544 #1: ffff8880b9a27748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x567/0x820 kernel/sched/psi.c:889 #2: ffff8880b9a282d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x12a/0x270 kernel/time/timer.c:999 2 locks held by kworker/u4:9/6441: #0: ffff8880b9a39b58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544 #1: ffff88801c8e8998 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xa1/0x990 kernel/sched/core.c:4079 3 locks held by syz-executor.2/8540: #0: ffff88802d92f098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline] #0: ffff88802d92f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:336 [inline] #0: ffff88802d92f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline] #0: ffff88802d92f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_release+0x5b/0x510 drivers/tty/tty_ldisc.c:775 #1: ffff88807a752098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: __tty_ldisc_lock_nested drivers/tty/tty_ldisc.c:296 [inline] #1: ffff88807a752098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:338 [inline] #1: ffff88807a752098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline] #1: ffff88807a752098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_release+0x7f/0x510 drivers/tty/tty_ldisc.c:775 #2: ffff88802a4ad048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline] #2: ffff88802a4ad048 (&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.18.0-syzkaller-10643-g9d004b2f4fea #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: 2953 Comm: syslogd Not tainted 5.18.0-syzkaller-10643-g9d004b2f4fea #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memset_erms+0xb/0x10 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffffc9000d6373b0 EFLAGS: 00000202 RAX: ffffc9000d637500 RBX: ffffc9000d637538 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc9000d637560 RBP: 1ffffffff1d02ae5 R08: dffffc0000000000 R09: ffffc9000d637550 R10: fffff52001ac6eac R11: 1ffff92001ac6eaa R12: ffffc9000d637500 R13: ffffffff8e81572c R14: ffffc9000d637550 R15: 1ffff92001ac6ea1 FS: 00007feeb43a5800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5149300000 CR3: 0000000024b93000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0xdbc/0x24c0 arch/x86/kernel/unwind_orc.c:541 __unwind_start+0x5b7/0x760 arch/x86/kernel/unwind_orc.c:712 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xdc/0x140 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0xd8/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:200 [inline] slab_free_hook mm/slub.c:1727 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1753 slab_free mm/slub.c:3507 [inline] kmem_cache_free+0xc7/0x270 mm/slub.c:3524 skb_free_datagram+0x27/0x1f0 net/core/datagram.c:322 __unix_dgram_recvmsg+0xc70/0x1200 net/unix/af_unix.c:2470 sock_recvmsg_nosec net/socket.c:995 [inline] sock_recvmsg net/socket.c:1013 [inline] sock_read_iter+0x3ab/0x4d0 net/socket.c:1086 call_read_iter include/linux/fs.h:2054 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0xa01/0xd10 fs/read_write.c:482 ksys_read+0x19b/0x2c0 fs/read_write.c:620 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:0x7feeb45318fe 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:00007fff1380cd48 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007feeb45318fe RDX: 00000000000000ff RSI: 00005575df913950 RDI: 0000000000000000 RBP: 00005575df913910 R08: 00007feeb45c1040 R09: 00007feeb45c10c0 R10: 00007feeb45c0fc0 R11: 0000000000000246 R12: 00005575df913997 R13: 00005575df913950 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 40 0f add 0xf(%rax),%eax 3: b6 f6 mov $0xf6,%dh 5: 48 b8 01 01 01 01 01 movabs $0x101010101010101,%rax c: 01 01 01 f: 48 0f af c6 imul %rsi,%rax 13: f3 48 ab rep stos %rax,%es:(%rdi) 16: 89 d1 mov %edx,%ecx 18: f3 aa rep stos %al,%es:(%rdi) 1a: 4c 89 c8 mov %r9,%rax 1d: c3 retq 1e: 90 nop 1f: 49 89 f9 mov %rdi,%r9 22: 40 88 f0 mov %sil,%al 25: 48 89 d1 mov %rdx,%rcx 28: f3 aa rep stos %al,%es:(%rdi) * 2a: 4c 89 c8 mov %r9,%rax <-- trapping instruction 2d: c3 retq 2e: 90 nop 2f: 49 89 fa mov %rdi,%r10 32: 40 0f b6 ce movzbl %sil,%ecx 36: 48 b8 01 01 01 01 01 movabs $0x101010101010101,%rax 3d: 01 01 01