INFO: task login:9048 blocked for more than 143 seconds. Not tainted 5.5.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. login D23224 9048 1 0x80000002 Call Trace: context_switch kernel/sched/core.c:3385 [inline] __schedule+0x934/0x1f90 kernel/sched/core.c:4081 schedule+0xdc/0x2b0 kernel/sched/core.c:4155 schedule_timeout+0x717/0xc50 kernel/time/timer.c:1871 down_write_failed drivers/tty/tty_ldsem.c:262 [inline] __ldsem_down_write_nested+0x3b2/0x8f0 drivers/tty/tty_ldsem.c:324 ldsem_down_write+0x33/0x40 drivers/tty/tty_ldsem.c:366 __tty_ldisc_lock drivers/tty/tty_ldisc.c:315 [inline] tty_ldisc_lock+0x66/0xb0 drivers/tty/tty_ldisc.c:339 tty_ldisc_hangup+0x1c6/0x640 drivers/tty/tty_ldisc.c:745 __tty_hangup.part.0+0x2fb/0x750 drivers/tty/tty_io.c:625 __tty_hangup drivers/tty/tty_io.c:575 [inline] tty_vhangup_session+0x25/0x30 drivers/tty/tty_io.c:735 disassociate_ctty.part.0+0xb4/0x740 drivers/tty/tty_jobctrl.c:267 disassociate_ctty+0x81/0xa0 drivers/tty/tty_jobctrl.c:261 do_exit+0x1b42/0x2ef0 kernel/exit.c:795 do_group_exit+0x135/0x360 kernel/exit.c:895 __do_sys_exit_group kernel/exit.c:906 [inline] __se_sys_exit_group kernel/exit.c:904 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:904 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f814c8971e8 Code: Bad RIP value. RSP: 002b:00007ffec0ccbca8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f814c8971e8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00007f814cb6c840 R08: 00000000000000e7 R09: ffffffffffffffa8 R10: 00007f814cb72740 R11: 0000000000000246 R12: 00007f814cb6c840 R13: 0000000000000001 R14: 0000000000000001 R15: 000000000060b798 Showing all locks held in the system: 1 lock held by khungtaskd/907: #0: ffffffff899a56c0 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5334 3 locks held by rs:main Q:Reg/8924: 1 lock held by rsyslogd/8926: #0: ffff88809f6091a0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by login/9048: #0: ffff88809fdf5198 (&tty->legacy_mutex){+.+.}, at: tty_lock+0xc7/0x130 drivers/tty/tty_mutex.c:19 #1: ffff88809fdf5090 (&tty->ldisc_sem){++++}, at: ldsem_down_write+0x33/0x40 drivers/tty/tty_ldsem.c:366 2 locks held by getty/9049: #0: ffff8880a21d9090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc900018cb2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9050: #0: ffff888099ea0090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc900018db2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9051: #0: ffff888099e9a090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc900018eb2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9052: #0: ffff8880a45f9090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc900018bb2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9053: #0: ffff88807ffb7090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc9000186b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9054: #0: ffff88807cdcf090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc9000182b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by syz-executor825/9146: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 907 Comm: khungtaskd Not tainted 5.5.0-rc1-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+0x70/0xb2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x23b/0x28b 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:205 [inline] watchdog+0xb11/0x10c0 kernel/hung_task.c:289 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9146 Comm: syz-executor825 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_memory_region_inline mm/kasan/generic.c:173 [inline] RIP: 0010:check_memory_region+0x0/0x1a0 mm/kasan/generic.c:192 Code: 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 f2 be f8 00 00 00 48 89 e5 e8 ef fd 12 06 5d c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 <48> 85 f6 0f 84 34 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 0f b6 RSP: 0018:ffffc900026f7580 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 000000000000002a RCX: ffffffff815a98e2 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8b2ced20 RBP: ffffc900026f7588 R08: 0000000000000001 R09: 000000000000002a R10: ffff8880a246caa8 R11: ffff8880a246c1c0 R12: 0000000000000008 R13: ffff8880a246caa8 R14: 0000000000000000 R15: 00000000000c002a FS: 000000000177d880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 000000009a471000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] hlock_class kernel/locking/lockdep.c:163 [inline] mark_lock+0xc2/0x1220 kernel/locking/lockdep.c:3643 mark_usage kernel/locking/lockdep.c:3592 [inline] __lock_acquire+0x538/0x4a00 kernel/locking/lockdep.c:3909 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4485 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 rq_lock kernel/sched/sched.h:1215 [inline] __schedule+0x232/0x1f90 kernel/sched/core.c:4029 schedule+0xdc/0x2b0 kernel/sched/core.c:4155 paste_selection+0x2f5/0x460 drivers/tty/vt/selection.c:367 tioclinux+0x133/0x480 drivers/tty/vt/vt.c:3044 vt_ioctl+0x1a41/0x26d0 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0xa37/0x14f0 drivers/tty/tty_io.c:2660 vfs_ioctl fs/ioctl.c:47 [inline] file_ioctl fs/ioctl.c:545 [inline] do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749 __do_sys_ioctl fs/ioctl.c:756 [inline] __se_sys_ioctl fs/ioctl.c:754 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4416c9 Code: e8 bc b2 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 6b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe2e0c1668 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000007a825 RCX: 00000000004416c9 RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000003 RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000046 R13: 0000000000402450 R14: 0000000000000000 R15: 0000000000000000