INFO: task kworker/u4:0:7 blocked for more than 140 seconds. Not tainted 4.19.98-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/u4:0 D24128 7 2 0x80000000 Workqueue: events_unbound flush_to_ldisc Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 flush_to_ldisc+0x3d/0x390 drivers/tty/tty_buffer.c:500 process_one_work+0x989/0x1750 kernel/workqueue.c:2153 worker_thread+0x98/0xe40 kernel/workqueue.c:2296 kthread+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 INFO: task getty:8104 blocked for more than 140 seconds. Not tainted 4.19.98-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. getty D25096 8104 1 0x80000002 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_timeout+0x8c8/0xfc0 kernel/time/timer.c:1782 down_write_failed drivers/tty/tty_ldsem.c:284 [inline] __ldsem_down_write_nested+0x3b3/0x8f0 drivers/tty/tty_ldsem.c:346 ldsem_down_write+0x33/0x40 drivers/tty/tty_ldsem.c:388 __tty_ldisc_lock drivers/tty/tty_ldisc.c:320 [inline] tty_ldisc_lock+0x50/0x90 drivers/tty/tty_ldisc.c:344 tty_ldisc_hangup+0x1b9/0x630 drivers/tty/tty_ldisc.c:746 __tty_hangup.part.0+0x306/0x720 drivers/tty/tty_io.c:623 __tty_hangup drivers/tty/tty_io.c:573 [inline] tty_vhangup_session+0x25/0x30 drivers/tty/tty_io.c:733 disassociate_ctty.part.0+0xb4/0x6f0 drivers/tty/tty_jobctrl.c:267 disassociate_ctty+0x81/0xa0 drivers/tty/tty_jobctrl.c:261 do_exit+0x180e/0x30d0 kernel/exit.c:878 do_group_exit+0x135/0x370 kernel/exit.c:983 __do_sys_exit_group kernel/exit.c:994 [inline] __se_sys_exit_group kernel/exit.c:992 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:992 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f91bfc8c1e8 Code: Bad RIP value. RSP: 002b:00007ffd9eced598 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f91bfc8c1e8 RDX: 0000000000000001 RSI: 000000000000003c RDI: 0000000000000001 RBP: 00007f91bff61840 R08: 00000000000000e7 R09: ffffffffffffffa8 R10: 00007f91bff67740 R11: 0000000000000246 R12: 00007f91bff61840 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.5:6944 blocked for more than 140 seconds. Not tainted 4.19.98-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D29096 6944 21949 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 paste_selection+0x11d/0x443 drivers/tty/vt/selection.c:348 tioclinux+0x133/0x470 drivers/tty/vt/vt.c:3019 vt_ioctl+0x19ab/0x2530 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007f3a329edc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f3a329ee6d4 RCX: 000000000045b349 RDX: 0000000020000280 RSI: 000000000000541c RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000056c R14: 00000000004c6aed R15: 000000000075bf2c INFO: task syz-executor.1:6952 blocked for more than 140 seconds. Not tainted 4.19.98-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D27696 6952 28910 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 paste_selection+0x11d/0x443 drivers/tty/vt/selection.c:348 tioclinux+0x133/0x470 drivers/tty/vt/vt.c:3019 vt_ioctl+0x19ab/0x2530 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007f04b7f2cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f04b7f2d6d4 RCX: 000000000045b349 RDX: 0000000020000280 RSI: 000000000000541c RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000056c R14: 00000000004c6aed R15: 000000000075bf2c INFO: task syz-executor.2:6962 blocked for more than 140 seconds. Not tainted 4.19.98-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D27744 6962 28801 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 paste_selection+0x11d/0x443 drivers/tty/vt/selection.c:348 tioclinux+0x133/0x470 drivers/tty/vt/vt.c:3019 vt_ioctl+0x19ab/0x2530 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007f70b02f9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f70b02fa6d4 RCX: 000000000045b349 RDX: 0000000020000280 RSI: 000000000000541c RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000056c R14: 00000000004c6aed R15: 000000000075bf2c Showing all locks held in the system: 3 locks held by kworker/u4:0/7: #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 00000000bdba3a2e ((wq_completion)"events_unbound"){+.+.}, at: process_one_work+0x87e/0x1750 kernel/workqueue.c:2124 #1: 00000000c03162b8 ((work_completion)(&buf->work)){+.+.}, at: process_one_work+0x8b4/0x1750 kernel/workqueue.c:2128 #2: 0000000022fea8c6 (&buf->lock){+.+.}, at: flush_to_ldisc+0x3d/0x390 drivers/tty/tty_buffer.c:500 1 lock held by khungtaskd/1082: #0: 00000000bdd54b01 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4438 2 locks held by rs:main Q:Reg/7980: #0: 0000000022dc7c6f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:767 #1: 00000000bdd54b01 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000bdd54b01 (rcu_read_lock){....}, at: update_curr+0x2cc/0x8a0 kernel/sched/fair.c:828 1 lock held by rsyslogd/7982: #0: 00000000cc36d73b (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:767 2 locks held by getty/8104: #0: 0000000020a7bfa4 (&tty->legacy_mutex){+.+.}, at: tty_lock+0x73/0xb0 drivers/tty/tty_mutex.c:19 #1: 00000000f3b7ff5b (&tty->ldisc_sem){++++}, at: ldsem_down_write+0x33/0x40 drivers/tty/tty_ldsem.c:388 2 locks held by getty/8105: #0: 0000000099a33635 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000068898f3b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8106: #0: 00000000fa3ed5de (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 00000000673940fd (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8107: #0: 00000000a23ebd7b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000056801d60 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8108: #0: 000000005b79a0b4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 00000000fb3a8e2f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8109: #0: 000000006477dca8 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 000000002a729701 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8110: #0: 00000000fdf88073 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000013b908e1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 3 locks held by syz-executor.0/6933: 2 locks held by syz-executor.5/6944: #0: 00000000f3b7ff5b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000022fea8c6 (&buf->lock){+.+.}, at: tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 2 locks held by syz-executor.1/6952: #0: 00000000f3b7ff5b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000022fea8c6 (&buf->lock){+.+.}, at: tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 2 locks held by syz-executor.2/6962: #0: 00000000f3b7ff5b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000022fea8c6 (&buf->lock){+.+.}, at: tty_buffer_lock_exclusive+0x30/0x40 drivers/tty/tty_buffer.c:61 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1082 Comm: khungtaskd Not tainted 4.19.98-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x9df/0xee0 kernel/hung_task.c:287 kthread+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6933 Comm: syz-executor.0 Not tainted 4.19.98-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lockdep_hardirqs_on+0x0/0x5d0 kernel/locking/lockdep.c:2844 Code: 8b 5d c0 e9 f5 fc ff ff 44 89 5d b8 48 89 7d c0 e8 a5 5e 50 00 44 8b 5d b8 48 8b 7d c0 e9 6b fe ff ff 0f 1f 84 00 00 00 00 00 <48> c7 c0 60 83 3c 89 55 48 ba 00 00 00 00 00 fc ff df 48 89 c1 48 RSP: 0018:ffff88804641f7c0 EFLAGS: 00000046 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000bee6000 RDX: 0000000000040000 RSI: ffffffff8170513e RDI: ffffffff8755e048 RBP: ffff88804641f7f8 R08: ffff8880822120c0 R09: ffffed1015d05849 R10: ffffed1015d05848 R11: ffff8880ae82c243 R12: ffff8880ae82c240 R13: ffffffff8754a9a5 R14: ffffffff8755e048 R15: ffff8880ae82c240 FS: 00007fd3aeca7700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000045b31f CR3: 000000006465c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] _raw_spin_unlock_irq+0x28/0x90 kernel/locking/spinlock.c:192 rq_unlock_irq kernel/sched/sched.h:1842 [inline] __schedule+0x1495/0x1dc0 kernel/sched/core.c:3518 schedule+0x92/0x1c0 kernel/sched/core.c:3559 paste_selection+0x2e8/0x443 drivers/tty/vt/selection.c:354 tioclinux+0x133/0x470 drivers/tty/vt/vt.c:3019 vt_ioctl+0x19ab/0x2530 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x7f3/0x1510 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd3aeca6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd3aeca76d4 RCX: 000000000045b349 RDX: 0000000020000280 RSI: 000000000000541c RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000056c R14: 00000000004c6aed R15: 000000000075bf2c