INFO: task syz.4.3786:21053 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hu
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.3786      state:D stack:28056 pid:21053 tgid:21052 ppid:19894  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 __down_common+0x3cb/0x8b0
 down+0x7b/0xd0
 console_lock+0x53/0x90
 con_install+0x97/0x770
 tty_init_dev+0xd7/0x4d0
 tty_open+0x7de/0xd80
 chrdev_open+0x4d9/0x600
 do_dentry_open+0x80e/0x1360
 vfs_open_consume+0x4a/0x350
 path_openat+0x1700/0x20f0
 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:0x7fa70f95fd8e
RSP: 002b:00007fa70dbf5b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fa70dbf66c0 RCX: 00007fa70f95fd8e
RDX: 0000000000000002 RSI: 00007fa70dbf5c00 RDI: ffffffffffffff9c
RBP: 00007fa70fa36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa70fc26038 R14: 00007fa70fc25fa0 R15: 00007ffd0fd48078
 </TASK>

Showing all locks held in the system:
locks held by ksoftirqd/0/15: 1, last CPU#0:
 #0: ffffffff8fd5ab20 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3de/0x18b0
locks held by kworker/1:1/32: 2, on CPU#1:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000a77c40 (console_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by khungtaskd/35: 1, last CPU#1:
 #0: ffffffff8fd5ab20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5424: 2, on CPU#0:
 #0: ffff88817a3d30a0 (&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/u10:14/14649: 2, on CPU#1:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000635fc40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by syz.9.3747/20936: 4, on CPU#1:
 #0: ffff88801e38a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff88801e38a128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff88801e38a2c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc90004455370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x664/0x1230
locks held by syz.9.3747/20937: 6, last CPU#0:
 #0: ffffffff8fd4cec0 (console_lock){+.+.}-{0:0}, at: vt_resize+0x46/0xd0
 #1: ffff8881033d1a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #2: ffff888168854128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff8881033d1890 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc90007897650 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc90007897678 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.4.3786/21053: 2, on CPU#1:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff88810f45e1b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.5.3985/21874: 1, on CPU#0:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.4118/22495: 1, on CPU#1:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.4248/23092: 1, on CPU#1:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.4303/23310: 1, on CPU#1:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz-executor/23393: 1, last CPU#1:
 #0: ffff88819f86c460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
locks held by syz.1.4355/23596: 1, on CPU#0:
 #0: ffffffff9067a800 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80

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

NMI backtrace for cpu 1
CPU: 1 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+0xfd2/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: 20937 Comm: syz.9.3747 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:memcpy_toio+0x7c/0xe0
Code: 02 40 0f 94 c5 31 ff e8 72 d7 a8 fc b0 01 48 83 fb 02 73 4f 84 c0 74 51 e8 a1 d1 a8 fc 48 89 d9 48 c1 e9 02 4c 89 fe 4c 89 f7 <f3> a5 f6 c3 02 74 02 66 a5 f6 c3 01 74 01 a4 5b 41 5e 41 5f 5d e9
RSP: 0018:ffffc90007897008 EFLAGS: 00010206
RAX: ffffffff851fb2ef RBX: 0000000000001400 RCX: 00000000000003e2
RDX: 0000000000000000 RSI: ffffc90004d4ac78 RDI: ffffc900052b9c78
RBP: 0000000000001401 R08: ffffc900078971f0 R09: 0000000000000001
R10: ffffc90007897219 R11: fffff52000f12e44 R12: ffff88810469ee58
R13: ffffc900052b9800 R14: ffffc900052b9800 R15: ffffc90004d4a800
FS:  00007f8ad9f936c0(0000) GS:ffff88818c4b1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff28c98c20 CR3: 00000001af7c0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 drm_fb_memcpy+0x325/0x5d0
 bochs_primary_plane_helper_atomic_update+0x361/0xa30
 drm_atomic_helper_commit_planes+0x626/0xea0
 drm_atomic_helper_commit_tail+0x60/0x510
 commit_tail+0x2b1/0x3c0
 drm_atomic_helper_commit+0xa77/0xb10
 drm_atomic_commit+0x24e/0x2b0
 drm_client_modeset_commit_atomic+0x660/0x7e0
 drm_client_modeset_commit_locked+0xcb/0x4d0
 drm_fb_helper_pan_display+0x3e9/0xbe0
 fb_pan_display+0x3a3/0x6a0
 bit_update_start+0x4c/0x1e0
 fbcon_switch+0x130e/0x20b0
 redraw_screen+0x57b/0x1020
 vc_do_resize+0xffc/0x1550
 vt_resize+0x81/0xd0
 tiocswinsz+0x104/0x160
 tty_ioctl+0x225/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8adbd9f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ad9f93028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8adc026270 RCX: 00007f8adbd9f559
RDX: 0000200000001280 RSI: 0000000000005414 RDI: 0000000000000004
RBP: 00007f8adbe36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8adc026308 R14: 00007f8adc026270 R15: 00007ffc8b37b9d8
 </TASK>
