INFO: task kworker/0:8:10746 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:8     state:D stack:21344 pid:10746 tgid:10746 ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: events console_callback
Call Trace:
 <TASK>
 __schedule+0x17d4/0x5820
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 __down_common+0x3b7/0x850
 down+0x80/0xd0
 console_lock+0x58/0x90
 console_callback+0x69/0x450
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.0.2541:12375 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.0.2541      state:D stack:25304 pid:12375 tgid:12370 ppid:11317  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:0x7f6617b5e98e
RSP: 002b:00007f6615db3b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f6615db46c0 RCX: 00007f6617b5e98e
RDX: 0000000000000002 RSI: 00007f6615db3c00 RDI: ffffffffffffff9c
RBP: 00007f6617c3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6617e26218 R14: 00007f6617e26180 R15: 00007ffee5defa08
 </TASK>

Showing all locks held in the system:
locks held by pr/ttyS0/16: 1, last CPU#0:
 #0: ffffffff8ec36278 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60
locks held by khungtaskd/35: 1, last CPU#0:
 #0: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5419: 2, on CPU#1:
 #0: ffff88816a2cd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034762e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/u9:6/9296: 3, last CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000290fc40 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88801e2f0258 (&devlink->lock_key){+.+.}-{4:4}, at: nsim_dev_trap_report_work+0x57/0xb40
locks held by kworker/0:8/10746: 2, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900047afc40 (console_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by kworker/0:9/10747: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000466fc40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881692c2a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.8.2121/11222: 6, last CPU#0:
 #0: ffffffff8ed4e9e0 (console_lock){+.+.}-{0:0}, at: vt_resizex+0x2a6/0x570
 #1: ffff8881692c2a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #2: ffff88816b3c4128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff8881692c2890 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc900043074b0 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc900043074d8 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.0.2541/12375: 2, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
 #1: ffff88802de851b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.9.2611/12525: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.1.2711/12989: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.4.2849/13433: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.6.2947/13760: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.5.3130/14376: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.7.3234/14632: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.8.3266/14744: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz-executor/14963: 6, last CPU#0:
 #0: ffff8881765ec460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888054f9e880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816df885a8 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8fac4be0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
 #4: ffff888029f55128 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb9/0x880
 #5: ffff888111f5c258 (&devlink->lock_key#10){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x170
locks held by syz.2.3353/14982: 2, last CPU#0:
 #0: ffff8881bbe72460 (sb_writers#5){.+.+}-{0:0}, at: vfs_coredump+0x3766/0x4530
 #1: ffff88810fdbe9b8 (&mm->mmap_lock){++++}-{4:4}, at: dump_user_range+0x1c5/0x12c0
locks held by syz.0.3359/14998: 2, last CPU#0:
 #0: ffff88801e9e6b90 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{4:4}, at: xfrm_netlink_rcv+0x6a/0x90
 #1: ffffffff8f51a768 ((crypto_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x54/0x90

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 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>
