INFO: task syz.1.1304:12641 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.1.1304      state:D stack:24616 pid:12641 tgid:12640 ppid:9997   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c1/0x1550
 sync_bdevs+0x276/0x470
 __ia32_sys_sync+0xc5/0x120
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe7b6d9e1d9
RSP: 002b:00007fe7b7bda028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fe7b7025fa0 RCX: 00007fe7b6d9e1d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fe7b7025fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe7b7026038 R14: 00007fe7b7025fa0 R15: 00007ffe46a3dca8
 </TASK>

Showing all locks held in the system:
locks held by khungtaskd/35: 1, last CPU#0:
 #0: ffffffff8fd5c8a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/1:2/804: 3, on CPU#1:
 #0: ffff88810006a140 ((wq_completion)events_freezable){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004a0fc40 ((work_completion)(&hcd->wakeup_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816e8f11d8 (&dev->mutex){....}-{4:4}, at: usb_remote_wakeup+0x23/0x120
locks held by kworker/1:3/3165: 5, on CPU#1:
 #0: ffff888164b29540 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000f647c40 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816e7091d8 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4d30
 #3: ffff888172e3d1d8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x450
 #4: ffff8881bce5e1a0 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x450
locks held by udevd/5857: 1, on CPU#0:
 #0: ffff88816c0d9350 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xde/0xd70
locks held by getty/9308: 2, on CPU#1:
 #0: ffff8881792470a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc90003a072e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/0:10/10496: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90003bd7c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816b7e5270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.1.1304/12641: 1, on CPU#0:
 #0: ffff88816c0d9350 (&disk->open_mutex){+.+.}-{4:4}, at: sync_bdevs+0x276/0x470
locks held by syz.0.1693/14608: 10, last CPU#1:
 #0: ffff8881164130a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff888116413128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0x9f0
 #2: ffff8881164132c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f5/0x11e0
 #3: ffffc90006563370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x66d/0x11e0
 #4: ffffffff8fd4ec40 (console_lock){+.+.}-{0:0}, at: do_con_write+0x12e/0x5530
 #5: ffff88816b7e5270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff88816b2ac128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff88816b7e5090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc900073cf150 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc900073cf178 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0

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

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>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 14608 Comm: syz.0.1693 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:native_apic_msr_write+0x39/0x50
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc cc 89 f6 31 d2 e9 e6 4c a8 03 66 0f 1f 44 00
RSP: 0018:ffffc90000a18e10 EFLAGS: 00000046
RAX: 0000000000001e17 RBX: ffff88823c623c80 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 0000000000001e17 RDI: 0000000000000838
RBP: ffffc90000a18ee0 R08: 0000000000000100 R09: 0000000000000001
R10: 0000000000000003 R11: ffffffff81756510 R12: 0000000000001e17
R13: dffffc0000000000 R14: 000000001000177c R15: 0000000000000020
FS:  00007ff2ce3946c0(0000) GS:ffff8882a7cbf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a3e1eb8c0 CR3: 000000016d5c2000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 lapic_next_event+0x11/0x20
 clockevents_program_event+0x385/0x630
 hrtimer_run_softirq+0x255/0x2e0
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:memcpy_toio+0x7c/0xe0
Code: 02 40 0f 94 c5 31 ff e8 f2 30 a9 fc b0 01 48 83 fb 02 73 4f 84 c0 74 51 e8 21 2b a9 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:ffffc900073ceb08 EFLAGS: 00010206
RAX: ffffffff851ee4ef RBX: 0000000000001400 RCX: 00000000000004d7
RDX: ffffc90020402000 RSI: ffffc900046248a4 RDI: ffffc9000501b8a4
RBP: 0000000000001401 R08: ffffc900073cecf0 R09: 0000000000000001
R10: ffffc900073ced19 R11: fffff52000e79da4 R12: ffff88816b1f6c58
R13: ffffc9000501b800 R14: ffffc9000501b800 R15: ffffc90004624800
 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
 csi_J+0x6e6/0xe80
 do_con_write+0x41eb/0x5530
 con_write+0x27/0x290
 n_tty_write+0xd49/0x11e0
 file_tty_write+0x50d/0x9f0
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff2cd59e1d9
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:00007ff2ce394028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff2cd825fa0 RCX: 00007ff2cd59e1d9
RDX: 0000000000001006 RSI: 0000200000000b40 RDI: 0000000000000004
RBP: 00007ff2cd635888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff2cd826038 R14: 00007ff2cd825fa0 R15: 00007ffe92623ce8
 </TASK>
