INFO: task kworker/u4:0:8 blocked for more than 143 seconds. Not tainted 5.18.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:0 state:D stack:25896 pid: 8 ppid: 2 flags:0x00004000 Workqueue: events_unbound flush_to_ldisc Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0xa9a/0x4cc0 kernel/sched/core.c:6388 schedule+0xd2/0x1f0 kernel/sched/core.c:6460 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6519 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 commit_echoes+0x4c/0x210 drivers/tty/n_tty.c:761 n_tty_receive_char+0x3b0/0x5b0 drivers/tty/n_tty.c:1383 n_tty_receive_buf_standard drivers/tty/n_tty.c:1532 [inline] __receive_buf drivers/tty/n_tty.c:1549 [inline] n_tty_receive_buf_common+0x109e/0x4780 drivers/tty/n_tty.c:1645 tty_ldisc_receive_buf+0xa3/0x190 drivers/tty/tty_buffer.c:451 tty_port_default_receive_buf+0x6e/0xa0 drivers/tty/tty_port.c:39 receive_buf drivers/tty/tty_buffer.c:471 [inline] flush_to_ldisc+0x20a/0x3f0 drivers/tty/tty_buffer.c:521 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Showing all locks held in the system: 6 locks held by kworker/u4:0/8: #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc900000d7da8 ((work_completion)(&buf->work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffff888010c790b8 (&buf->lock){+.+.}-{3:3}, at: flush_to_ldisc+0x42/0x3f0 drivers/tty/tty_buffer.c:493 #3: ffff888077ff8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref+0x1d/0x80 drivers/tty/tty_ldisc.c:264 #4: ffff888077ff82e8 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_receive_buf_common+0x84/0x4780 drivers/tty/n_tty.c:1608 #5: ffffc9000cdcb378 (&ldata->output_lock){+.+.}-{3:3}, at: commit_echoes+0x4c/0x210 drivers/tty/n_tty.c:761 1 lock held by khungtaskd/28: #0: ffffffff8bd821e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6467 1 lock held by khugepaged/34: #0: ffffffff8be70508 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x62/0x770 mm/swap.c:790 2 locks held by getty/3272: #0: ffff88801dc4a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002ce62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcea/0x1230 drivers/tty/n_tty.c:2075 2 locks held by kworker/u4:6/4697: 5 locks held by syz-executor.4/5142: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.18.0-rc5-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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 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+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4697 Comm: kworker/u4:6 Not tainted 5.18.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:hlock_class kernel/locking/lockdep.c:192 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4727 [inline] RIP: 0010:__lock_acquire+0x6b0/0x56c0 kernel/locking/lockdep.c:4979 Code: 03 42 0f b6 04 38 84 c0 74 08 3c 03 0f 8e 42 2c 00 00 45 3b a5 58 0a 00 00 0f 8d 99 00 00 00 49 63 c4 48 8d 04 80 49 8d 1c c6 <48> 8d 7b 20 48 89 fa 48 c1 ea 03 42 0f b6 14 3a 84 d2 74 09 80 fa RSP: 0018:ffffc90004f5fa38 EFLAGS: 00000086 RAX: 0000000000000000 RBX: ffff888079d962e0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffff90058c99 RBP: 0000000000000004 R08: dffffc0000000000 R09: ffffffff90056907 R10: fffffbfff200ad20 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888079d95880 R14: ffff888079d962e0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c001195000 CR3: 000000000ba8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5641 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5606 rcu_lock_acquire include/linux/rcupdate.h:268 [inline] rcu_read_lock include/linux/rcupdate.h:694 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0x12d/0xfa0 net/batman-adv/network-coding.c:719 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ---------------- Code disassembly (best guess): 0: 03 42 0f add 0xf(%rdx),%eax 3: b6 04 mov $0x4,%dh 5: 38 84 c0 74 08 3c 03 cmp %al,0x33c0874(%rax,%rax,8) c: 0f 8e 42 2c 00 00 jle 0x2c54 12: 45 3b a5 58 0a 00 00 cmp 0xa58(%r13),%r12d 19: 0f 8d 99 00 00 00 jge 0xb8 1f: 49 63 c4 movslq %r12d,%rax 22: 48 8d 04 80 lea (%rax,%rax,4),%rax 26: 49 8d 1c c6 lea (%r14,%rax,8),%rbx * 2a: 48 8d 7b 20 lea 0x20(%rbx),%rdi <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 48 c1 ea 03 shr $0x3,%rdx 35: 42 0f b6 14 3a movzbl (%rdx,%r15,1),%edx 3a: 84 d2 test %dl,%dl 3c: 74 09 je 0x47 3e: 80 .byte 0x80 3f: fa cli