INFO: task syz.7.1339:16280 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.7.1339      state:D stack:27392 pid:16280 tgid:16276 ppid:14712  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5830
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 __down_common+0x3cb/0x8b0
 down+0x7b/0xd0
 console_lock+0x53/0x90
 do_con_write+0x12e/0x5530
 con_write+0x27/0x290
 n_tty_write+0xd40/0x1230
 file_tty_write+0x50d/0xa20
 do_iter_readv_writev+0x612/0x8c0
 vfs_writev+0x343/0x990
 do_writev+0x154/0x2e0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f672299fb19
RSP: 002b:00007f6723925028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f6722c26090 RCX: 00007f672299fb19
RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000006
RBP: 00007f6722a37b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6722c26128 R14: 00007f6722c26090 R15: 00007ffddbc906e8
 </TASK>

Showing all locks held in the system:
locks held by khungtaskd/36: 1, last CPU#0:
 #0: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by udevd/5062: 1, last CPU#0:
 #0: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: sock_def_readable+0xae/0x550
locks held by dhcpcd/5358: 2, on CPU#0:
 #0: ffff88803f5b06f0 (nlk_cb_mutex-ROUTE){+.+.}-{4:4}, at: netlink_dump+0xe2/0xf20
 #1: ffffffff916930e0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dumpit+0x92/0x200
locks held by getty/5444: 2, on CPU#0:
 #0: ffff88816a9870a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034932e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/u8:3/5686: 4, on CPU#0:
 #0: ffff8881012e5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000637fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff91684408 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffffffff916930e0 (rtnl_mutex){+.+.}-{4:4}, at: wg_destruct+0x25/0x310
locks held by kworker/0:7/5724: 3, on CPU#0:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900065a7c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888169fe6270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.6.1319/16166: 6, last CPU#0:
 #0: ffffffff9014c4c0 (console_lock){+.+.}-{0:0}, at: vt_resizex+0x2a6/0x570
 #1: ffff888169fe6270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #2: ffff888101388128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff888169fe6090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc90006df74b0 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc90006df74d8 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.7.1339/16280: 4, on CPU#1:
 #0: ffff88811ff6e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff88811ff6e128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff88811ff6e2c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc90004d33370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x664/0x1230
locks held by syz.3.1563/17950: 2, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff888114c9e1b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.4.1582/18067: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.1589/18100: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.1608/18389: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.1610/18420: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.6.1630/18476: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.1630/18477: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz-executor/18621: 7, last CPU#0:
 #0: ffff888178700478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881a624f480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816f26cb48 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec1a0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
 #4: ffff88811392a128 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xa9/0x7d0
 #5: ffff8880210f8258 (&devlink->lock_key#40){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x170
 #6: ffffffff901607f8 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x175/0x610
locks held by syz.9.1642/18693: 1, on CPU#0:
 #0: ffffffff90a947c0 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz-executor/18695: 3, last CPU#0:
 #0: ffffffff91684408 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x51f/0x770
 #1: ffffffff916930e0 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x2ee/0x870
 #2: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 36 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+0x1073/0x10f0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
