INFO: task syz.1.1231:9563 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.1231      state:D stack:26248 pid:9563  tgid:9562  ppid:9436   task_flags:0x400140 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
 vt_resizex+0x2a6/0x570
 vt_ioctl+0x1362/0x20e0
 tty_ioctl+0x920/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f296839f559
RSP: 002b:00007f29692ba028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2968625fa0 RCX: 00007f296839f559
RDX: 00002000000006c0 RSI: 000000000000560a RDI: 0000000000000003
RBP: 00007f2968436b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2968626038 R14: 00007f2968625fa0 R15: 00007ffcf6a1c418
 </TASK>

Showing all locks held in the system:
locks held by kworker/u9:0/26: 2, on CPU#0:
 #0: ffff888169ac6148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000a17c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by kworker/1:1/32: 3, last CPU#1:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000a77c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881b1bcb258 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x1fd/0x3b0
locks held by khungtaskd/35: 1, last CPU#1:
 #0: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5408: 2, on CPU#1:
 #0: ffff88816bba10a0 (&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:6/6596: 3, on CPU#0:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90003cbfc40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816c422270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.5.1065/8744: 4, on CPU#0:
 #0: ffff888013d3f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff888013d3f128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff888013d3f2c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc900036f9370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0xdd3/0x1230
locks held by syz.9.1222/9404: 6, last CPU#0:
 #0: ffffffff8fd4c580 (console_lock){+.+.}-{0:0}, at: vt_resizex+0x2a6/0x570
 #1: ffff88816c422270 (&helper->lock){+.+.}-{4:4}, at: __drm_fb_helper_restore_fbdev_mode_unlocked+0x93/0x1f0
 #2: ffff888101b0c128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff88816c422090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc90006ff7310 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc90006ff7338 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.3.1235/9701: 2, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff88817229e1b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.0.1236/9741: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.1238/9865: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.1241/10025: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.1240/10082: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.1240/10086: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.1247/10174: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.1250/10316: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.1251/10319: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.1252/10366: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.1253/10429: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.3.1254/10451: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.1255/10491: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.1256/10538: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.1259/10586: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.1260/10632: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.1262/10722: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.1263/10728: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.1265/10770: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.1267/10853: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.1266/10858: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.1266/10859: 4, on CPU#1:
 #0: ffff888179a112f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff88819700e460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881caa69880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888103ad4698 (kn->active#71){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
locks held by syz.3.1268/10897: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.1273/10987: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.1270/10995: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.1274/11039: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
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: 9404 Comm: syz.9.1222 Not tainted syzkaller #0 PREEMPT(full) 
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 b2 31 9f fc b0 01 48 83 fb 02 73 4f 84 c0 74 51 e8 e1 2b 9f 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:ffffc90006ff6cc8 EFLAGS: 00010206
RAX: ffffffff8529d0df RBX: 0000000000001400 RCX: 00000000000004bb
RDX: 0000000000000000 RSI: ffffc900063d6514 RDI: ffffc900053d5514
RBP: 0000000000001401 R08: ffffc90006ff6eb0 R09: 0000000000000001
R10: ffffc90006ff6ed9 R11: fffff52000dfeddc R12: ffff88816c263d58
R13: ffffc900053d5400 R14: ffffc900053d5400 R15: ffffc900063d6400
FS:  00007f2ab2dfb6c0(0000) GS:ffff88818c48c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf22b141d0 CR3: 00000001a142a000 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_client_modeset_commit+0x4a/0x70
 __drm_fb_helper_restore_fbdev_mode_unlocked+0xb4/0x1f0
 drm_fb_helper_set_par+0xaf/0x100
 fb_set_var+0x989/0x10f0
 fbcon_resize+0xbdb/0x1580
 vc_do_resize+0x761/0x1550
 vt_resizex+0x3d7/0x570
 vt_ioctl+0x1362/0x20e0
 tty_ioctl+0x920/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ab1f9f559
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:00007f2ab2dfb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2ab2226360 RCX: 00007f2ab1f9f559
RDX: 00002000000006c0 RSI: 000000000000560a RDI: 0000000000000003
RBP: 00007f2ab2036b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2ab22263f8 R14: 00007f2ab2226360 R15: 00007ffd84d0e378
 </TASK>
