INFO: task syz.3.987:8232 blocked for more than 144 seconds.
      Tainted: G             L     Y syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.987       state:D stack:23208 pid:8232  tgid:8231  ppid:6822   task_flags:0x400040 flags:0x00080003
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_write+0x82/0x290
 n_tty_write+0xd40/0x1230
 file_tty_write+0x50d/0xa20
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f514639f559
RSP: 002b:00007f5147267028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5146625fa0 RCX: 00007f514639f559
RDX: 0000000000001006 RSI: 00002000000025c0 RDI: 0000000000000003
RBP: 00007f5146436b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5146626038 R14: 00007f5146625fa0 R15: 00007ffde247d858
 </TASK>
INFO: task syz.0.1252:8965 blocked for more than 144 seconds.
      Tainted: G             L     Y syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.1252      state:D stack:28592 pid:8965  tgid:8964  ppid:5587   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
 con_get_unimap+0x5a/0x460
 vt_ioctl+0x15c8/0x20e0
 tty_ioctl+0x920/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6d2139f559
RSP: 002b:00007f6d221c4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6d21625fa0 RCX: 00007f6d2139f559
RDX: 0000200000000140 RSI: 0000000000004b66 RDI: 0000000000000003
RBP: 00007f6d21436b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6d21626038 R14: 00007f6d21625fa0 R15: 00007ffd66bf6ac8
 </TASK>

Showing all locks held in the system:
locks held by rcu_tasks_kthre/32: 1, on CPU#0:
 #0: ffffffff8fd5ad08 (rcu_tasks.tasks_gp_mutex){+.+.}-{4:4}, at: rcu_tasks_one_gp+0xb1f/0xe20
locks held by khungtaskd/36: 1, last CPU#0:
 #0: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/1:2/808: 3, on CPU#1:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004dcfc40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816a1ef270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by getty/5412: 2, on CPU#1:
 #0: ffff88816cb990a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000347b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/1:5/5656: 2, on CPU#1:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004f0fc40 (console_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by syz.3.987/8232: 4, on CPU#1:
 #0: ffff8881179160a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff888117916128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff8881179162c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc900065bb370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x664/0x1230
locks held by syz.4.1174/8767: 10, last CPU#1:
 #0: ffff888170bacaf0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff8881af6e4460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881be250480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff8881663fef08 (kn->active#73){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff8fd4c580 (console_lock){+.+.}-{0:0}, at: rotate_all_store+0x2c/0x630
 #5: ffff88816a1ef270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff88816b5d8128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff88816a1ef090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc9000efa7630 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc9000efa7658 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.9.1987/10938: 2, on CPU#1:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff8881b82fa1b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.2.2045/11176: 1, on CPU#0:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by kworker/u8:4/11293: 4, last CPU#0:
 #0: ffff8881123d6148 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90006fe7c40 ((work_completion)(&(&bat_priv->mcast.work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: batadv_mcast_mla_update+0x186/0x3750
 #3: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550
locks held by syz.1.2261/11846: 1, on CPU#1:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.4.2278/11932: 1, on CPU#0:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.2471/12532: 1, on CPU#0:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.5.2515/12633: 1, on CPU#1:
 #0: ffffffff90688f60 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 36 Comm: khungtaskd Tainted: G             L     Y syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP, [Y]=FORCED_BIND
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 8767 Comm: syz.4.1174 Tainted: G             L     Y syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP, [Y]=FORCED_BIND
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:ffffc9000efa6fe8 EFLAGS: 00010206
RAX: ffffffff8529d0df RBX: 0000000000001400 RCX: 00000000000004e8
RDX: ffffc900209c3000 RSI: ffffc90004d73c60 RDI: ffffc900053aac60
RBP: 0000000000001401 R08: ffffc9000efa71d0 R09: 0000000000000001
R10: ffffc9000efa71f9 R11: fffff52001df4e40 R12: ffff88816b4b5c58
R13: ffffc900053aac00 R14: ffffc900053aac00 R15: ffffc90004d73c00
FS:  00007f385b6556c0(0000) GS:ffff8882a7c8d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007feca97edff8 CR3: 00000001042fa000 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
 ud_update_start+0x112/0x3a0
 fbcon_switch+0x130e/0x20b0
 redraw_screen+0x57b/0x1020
 rotate_all_store+0x539/0x630
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f385a79f559
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:00007f385b655028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f385aa25fa0 RCX: 00007f385a79f559
RDX: 0000000000000001 RSI: 00002000000003c0 RDI: 0000000000000003
RBP: 00007f385a836b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f385aa26038 R14: 00007f385aa25fa0 R15: 00007ffdd04d67a8
 </TASK>
