INFO: task kworker/0:4:5703 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:4     state:D stack:22880 pid:5703  tgid:5703  ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: events console_callback
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 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.5.2114:11274 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.5.2114      state:D stack:28488 pid:11274 tgid:11273 ppid:11031  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17db/0x58f0
 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:0x7fcc1075e98e
RSP: 002b:00007fcc115d4b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcc115d56c0 RCX: 00007fcc1075e98e
RDX: 0000000000000002 RSI: 00007fcc115d4c00 RDI: ffffffffffffff9c
RBP: 00007fcc1083506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcc10a26038 R14: 00007fcc10a25fa0 R15: 00007ffed4e89c28
 </TASK>

Showing all locks held in the system:
locks held by khungtaskd/35: 1, last CPU#1:
 #0: ffffffff8ed5c760 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/0:2/807: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004e27c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881090d9a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by getty/5422: 2, on CPU#0:
 #0: ffff88817632a0a0 (&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/0:4/5703: 2, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)even
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000619fc40 (console_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by kworker/0:5/5742: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900063dfc40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888174703250 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x1fd/0x3b0
locks held by syz.0.1907/10640: 10, last CPU#0:
 #0: ffff8881bbe592f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff8881a6f60460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881737c9080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888165b07b48 (kn->active#74){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff8ed4eaa0 (console_lock){+.+.}-{0:0}, at: rotate_all_store+0x2c/0x630
 #5: ffff8881090d9a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff8881092f0128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff8881090d9890 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc9000febf650 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc9000febf678 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.5.2114/11274: 2, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
 #1: ffff888104b321b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.6.2166/11426: 1, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.3.2635/12965: 1, on CPU#0:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.2.2702/13125: 1, on CPU#0:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.0.2854/13621: 1, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.4.2872/13667: 1, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.4.2872/13668: 1, on CPU#0:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.5.3025/14105: 1, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.6.3132/14403: 1, on CPU#1:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.8.3182/14625: 1, on CPU#0:
 #0: ffffffff8f677620 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0

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

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: 5657 Comm: kworker/1:5 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
Workqueue: events_power_efficient wg_ratelimiter_gc_entries
RIP: 0010:check_preemption_disabled+0x26/0xd0
Code: 90 90 90 90 55 41 57 41 56 53 65 8b 05 db dd af 07 65 48 8b 0d ab dd af 07 85 c9 74 0c 5b 41 5e 41 5f 5d c3 cc cc cc cc cc 9c <59> f7 c1 00 02 00 00 74 ea 65 4c 8b 3d 81 dd af 07 41 f6 47 2f 04
RSP: 0018:ffffc9000606f9c8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 00000000ffffffff RCX: 8000000000000000
RDX: 0000000000000000 RSI: ffffffff8e48f727 RDI: ffffffff8c6d9480
RBP: 00000000ffffffff R08: ffffffff8f993c43 R09: 1ffffffff1f32788
R10: dffffc0000000000 R11: fffffbfff1f32789 R12: 0000000000000246
R13: ffff888170635a00 R14: ffffffff8ed5c820 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8882a8cd6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f148e1eb840 CR3: 000000000eb48000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_is_held_type+0x5a/0x150
 __might_resched+0x86/0x4c0
 wg_ratelimiter_gc_entries+0x3a4/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>
