INFO: task kworker/u5:7:3656 blocked for more than 143 seconds. Not tainted 5.19.0-rc3-syzkaller-00048-gde5c208d533a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:7 state:D stack:25696 pid: 3656 ppid: 2 flags:0x00004000 Workqueue: hci10 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.4:5508 blocked for more than 143 seconds. Not tainted 5.19.0-rc3-syzkaller-00048-gde5c208d533a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27040 pid: 5508 ppid: 3640 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_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:0x7fee3963bd4b RSP: 002b:00007ffe69f24d10 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fee3963bd4b RDX: 00007fee397a01e0 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007fee3979d960 R08: 0000000000000000 R09: 00007fee397a01e8 R10: 00007ffe69f24e10 R11: 0000000000000293 R12: 000000000003dac3 R13: 00007ffe69f24e10 R14: 00007fee3979bf60 R15: 0000000000000032 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cb1ece0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3292: #0: ffff88814a91f098 (&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:7/3656: #0: ffff88807b7cc138 ((wq_completion)hci10){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc900036ffd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff88801f25d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline] #2: ffff88801f25d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963 3 locks held by syz-executor.4/5508: #0: ffff8880370ba098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline] #0: ffff8880370ba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:346 [inline] #0: ffff8880370ba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline] #0: ffff8880370ba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_release+0xb3/0x510 drivers/tty/tty_ldisc.c:775 #1: ffff888039581098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: __tty_ldisc_lock_nested drivers/tty/tty_ldisc.c:296 [inline] #1: ffff888039581098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:348 [inline] #1: ffff888039581098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline] #1: ffff888039581098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_release+0xd7/0x510 drivers/tty/tty_ldisc.c:775 #2: ffff88801f25d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline] #2: ffff88801f25d048 (&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: 29 Comm: khungtaskd Not tainted 5.19.0-rc3-syzkaller-00048-gde5c208d533a #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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2962 Comm: syslogd Not tainted 5.19.0-rc3-syzkaller-00048-gde5c208d533a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_kcov_mode kernel/kcov.c:177 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x33/0x60 kernel/kcov.c:200 Code: 00 6f 02 00 65 8b 15 e4 c6 7a 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 a4 15 00 00 00 74 2c 8b 91 80 15 00 00 <83> fa 02 75 21 48 8b 91 88 15 00 00 48 8b 32 48 8d 7e 01 8b 89 84 RSP: 0018:ffffc9000d3a7760 EFLAGS: 00000246 RAX: ffffffff81b43508 RBX: ffffea00011b7dc0 RCX: ffff8880272ad880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000d3a78b0 R08: ffffffff81b434e8 R09: fffff94000236fb9 R10: fffff94000236fb9 R11: 1ffffd4000236fb8 R12: dffffc0000000000 R13: 1ffffd4000236fb9 R14: ffffea00011b7dc8 R15: ffffea00011b7dc0 FS: 00007f08cbb89800(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ed82de2600 CR3: 0000000026868000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_flags include/linux/page-flags.h:338 [inline] folio_test_swapbacked include/linux/page-flags.h:521 [inline] folio_test_swapcache include/linux/page-flags.h:562 [inline] folio_index+0x68/0x370 include/linux/pagemap.h:656 folio_contains include/linux/pagemap.h:705 [inline] __filemap_get_folio+0xa95/0x11f0 mm/filemap.c:1971 shmem_getpage_gfp+0x369/0x33c0 mm/shmem.c:1849 shmem_getpage mm/shmem.c:149 [inline] shmem_write_begin+0xcc/0x1a0 mm/shmem.c:2473 generic_perform_write+0x314/0x610 mm/filemap.c:3770 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3898 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3930 call_write_iter include/linux/fs.h:2058 [inline] new_sync_write fs/read_write.c:504 [inline] vfs_write+0xa22/0xd40 fs/read_write.c:591 ksys_write+0x19b/0x2c0 fs/read_write.c:644 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:0x7f08cbd159a3 Code: 8b 15 d9 f4 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffd539c2b48 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f08cbd159a3 RDX: 000000000000009b RSI: 000055a607fd7c50 RDI: 0000000000000003 RBP: 000055a607fd7c50 R08: 00007f08cbda5040 R09: 00007f08cbda50c0 R10: 00007f08cbda4fc0 R11: 0000000000000246 R12: 000000000000009b R13: 00007f08cbb89788 R14: 0000000000000004 R15: 000055a607fd7a60 ---------------- Code disassembly (best guess): 0: 00 6f 02 add %ch,0x2(%rdi) 3: 00 65 8b add %ah,-0x75(%rbp) 6: 15 e4 c6 7a 7e adc $0x7e7ac6e4,%eax b: f7 c2 00 01 ff 00 test $0xff0100,%edx 11: 74 11 je 0x24 13: f7 c2 00 01 00 00 test $0x100,%edx 19: 74 35 je 0x50 1b: 83 b9 a4 15 00 00 00 cmpl $0x0,0x15a4(%rcx) 22: 74 2c je 0x50 24: 8b 91 80 15 00 00 mov 0x1580(%rcx),%edx * 2a: 83 fa 02 cmp $0x2,%edx <-- trapping instruction 2d: 75 21 jne 0x50 2f: 48 8b 91 88 15 00 00 mov 0x1588(%rcx),%rdx 36: 48 8b 32 mov (%rdx),%rsi 39: 48 8d 7e 01 lea 0x1(%rsi),%rdi 3d: 8b .byte 0x8b 3e: 89 .byte 0x89 3f: 84 .byte 0x84