INFO: task syz.9.7359:32648 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.7359      state:D stack:28504 pid:32648 tgid:32647 ppid:27365  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17d4/0x5820
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 __down_common+0x3b7/0x850
 down+0x80/0xd0
 console_lock+0x58/0x90
 con_install+0x97/0x770
 tty_init_dev+0xd7/0x4d0
 tty_open+0x7d9/0xcc0
 chrdev_open+0x4d9/0x600
 do_dentry_open+0x816/0x1380
 vfs_open+0x3b/0x340
 path_openat+0x1443/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0c8f5e98e
RSP: 002b:00007fc0c9f12b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fc0c9f136c0 RCX: 00007fc0c8f5e98e
RDX: 0000000000000002 RSI: 00007fc0c9f12c00 RDI: ffffffffffffff9c
RBP: 00007fc0c9035024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc0c9226038 R14: 00007fc0c9225fa0 R15: 00007ffde36f2e98
 </TASK>

Showing all locks held in the system:
locks held by khungtaskd/34: 1, last CPU#1:
 #0: ffffffff8ed5c6e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5424: 2, on CPU#1:
 #0: ffff88817a8520a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034832e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/0:11/9060: 2, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900017c7c40 (console_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by kworker/0:12/9061: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90001797c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816b4b9270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.2.7309/32513: 10, last CPU#0:
 #0: ffff8881783b4af0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff8881973ba460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881b2d83880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff88816579b0f8 (kn->active#117){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff8ed4ea20 (console_lock){+.+.}-{0:0}, at: rotate_store+0x2c/0x500
 #5: ffff88816b4b9270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff8881017c4128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff88816b4b9090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc90007967650 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc90007967678 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.9.7359/32648: 2, on CPU#1:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
 #1: ffff8881bf7051b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.4.7525/1428: 1, on CPU#1:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.1.7545/1715: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.3.7693/3516: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.6.7705/3577: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.8.7728/4522: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.7.7734/4566: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.2.7735/4891: 1, on CPU#1:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.9.7752/5961: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.1.7758/6401: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.4.7760/6418: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.0.7774/6863: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.3.7775/7209: 1, on CPU#0:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.6.7788/7583: 1, on CPU#1:
 #0: ffffffff8f6760e0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17d/0x390
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 16 Comm: pr/ttyS0 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x80
Code: de 5b e9 03 5a 64 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 65 48 8b 0d d8 6e cc 11 <65> 48 8b 15 d8 6e cc 11 f7 c2 00 01 00 ff 74 29 89 d6 81 e6 00 01
RSP: 0018:ffffc900000072d0 EFLAGS: 00000246
RAX: ffffffff8a8f8726 RBX: ffff88811d1a4000 RCX: ffff888102ea0000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff88811d1a4000
RBP: 1ffff11022569d99 R08: 0000000000000100 R09: ffffc90000007610
R10: ffffc90000007460 R11: fffff52000000e8e R12: 0000000000000003
R13: ffff888112b4ecc8 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff88818d6de000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b34916ff8 CR3: 000000019b314000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 ip6_ignore_linkdown+0x16/0x140
 find_match+0x9c/0xb40
 __find_rr_leaf+0x243/0x740
 fib6_table_lookup+0x3c6/0xae0
 ip6_pol_route+0x229/0x14d0
 fib6_rule_lookup+0x556/0x730
 ip6_route_input+0x78d/0xb20
 ip6_rcv_finish+0x141/0x280
 NF_HOOK+0x336/0x3c0
 process_backlog+0x795/0x18b0
 __napi_poll+0xaa/0x330
 net_rx_action+0x61d/0xf50
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80
Code: f7 e8 6d 30 be f5 f7 c3 00 02 00 00 74 05 e8 b0 67 ea f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 04 4a af f5 65 48 8b 05 5c 92 ae 07 48 85 c0 74 18 5b 41 5e c3
RSP: 0018:ffffc90000157ca8 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000206 RCX: 8000000000000001
RDX: 0000000000000000 RSI: ffffffff8e47676b RDI: 0000000000000001
RBP: ffffc90000157e18 R08: ffffffff907a387f R09: 1ffffffff20f470f
R10: dffffc0000000000 R11: fffffbfff20f4710 R12: 0000000000000002
R13: ffff888102ea0000 R14: ffffffff9ad2cfe0 R15: dffffc0000000000
 nbcon_kthread_func+0x6c4/0x880
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
