INFO: task syz.8.5351:27204 blocked for more than 143 seconds.
      Tainted: G             L     Y syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.8.5351      state:D stack:27688 pid:27204 tgid:27192 ppid:26634  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
 fbcon_fb_unbind+0x40/0x670
 unregister_framebuffer+0x122/0x3b0
 drm_client_dev_unregister+0x227/0x2d0
 drm_dev_unregister+0x4a/0x700
 drm_dev_unplug+0x4b/0xb0
 bochs_pci_remove+0x3e/0x50
 pci_device_remove+0x99/0x1c0
 device_release_driver_internal+0x42b/0x7d0
 pci_stop_bus_device+0xf6/0x120
 pci_stop_and_remove_bus_device_locked+0x77/0xb0
 remove_store+0xe5/0x150
 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:0x7f54e4d9f559
RSP: 002b:00007f54e5cfc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f54e5026090 RCX: 00007f54e4d9f559
RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000008
RBP: 00007f54e4e36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f54e5026128 R14: 00007f54e5026090 R15: 00007ffc26a3d3e8
 </TASK>
INFO: task syz.8.5351:27205 blocked for more than 143 seconds.
      Tainted: G             L     Y syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.8.5351      state:D stack:28712 pid:27205 tgid:27192 ppid:26634  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c4/0x15a0
 rescan_store+0xb5/0x150
 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:0x7f54e4d9f559
RSP: 002b:00007f54e5cdb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f54e5026180 RCX: 00007f54e4d9f559
RDX: 0000000000000001 RSI: 00002000000001c0 RDI: 000000000000000b
RBP: 00007f54e4e36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f54e5026218 R14: 00007f54e5026180 R15: 00007ffc26a3d3e8
 </TASK>
INFO: task syz.0.5356:27256 blocked for more than 143 seconds.
      Tainted: G             L     Y syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.5356      state:D stack:27560 pid:27256 tgid:27254 ppid:27208  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
 do_con_write+0x12e/0x5530
 con_write+0x27/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:0x7f987699f559
RSP: 002b:00007f98777d3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9876c26090 RCX: 00007f987699f559
RDX: 0000000000001006 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 00007f9876a36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9876c26128 R14: 00007f9876c26090 R15: 00007ffea26d3838
 </TASK>

Showing all locks held in the system:
locks held by kworker/0:1/10: 3, on CPU#0:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900000f7c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88810677ba70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by khungtaskd/35: 1, last CPU#0:
 #0: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by udevd/5035: 1, last CPU#1:
 #0: ffff888114ede460 (sb_writers#5){.+.+}-{0:0}, at: ep_try_send_events+0x197/0xd50
locks held by getty/5414: 2, on CPU#0:
 #0: ffff88817221e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000348b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/1:5/5650: 3, on CPU#1:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000600fc40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881a638c258 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x1fd/0x3b0
locks held by kworker/u10:19/24585: 2, on CPU#1:
 #0: ffff8881072eb148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004b57c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by syz.8.5351/27204: 7, on CPU#0:
 #0: ffff88811453ccf0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff888106f0c460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88802241d080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffffffff905c8f80 (pci_rescan_remove_lock){+.+.}-{4:4}, at: pci_stop_and_remove_bus_device_locked+0x13/0xb0
 #4: ffff8881a01bc1f8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xa9/0x7d0
 #5: ffff8881185b4260 (&dev->clientlist_mutex){+.+.}-{4:4}, at: drm_client_dev_unregister+0xa1/0x2d0
 #6: ffffffff905f0900 (registration_lock){+.+.}-{4:4}, at: unregister_framebuffer+0x2e/0x3b0
locks held by syz.8.5351/27205: 5, on CPU#0:
 #0: ffff88811453c0f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff888106f0c460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88802241f080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888161abb1e8 (kn->active#60){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff905c8f80 (pci_rescan_remove_lock){+.+.}-{4:4}, at: rescan_store+0xb5/0x150
locks held by syz.2.5335/27200: 6, last CPU#0:
 #0: ffffffff8fd4c580 (console_lock){+.+.}-{0:0}, at: vt_ioctl+0x1d06/0x20e0
 #1: ffff88810677ba70 (&helper->lock){+.+.}-{4:4}, at: __drm_fb_helper_restore_fbdev_mode_unlocked+0x93/0x1f0
 #2: ffff8881185b4128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff88810677b890 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc90004e1f3f0 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc90004e1f418 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.0.5356/27256: 4, on CPU#1:
 #0: ffff88811f4a60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff88811f4a6128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff88811f4a62c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc90003cc3370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x664/0x1230
locks held by syz.3.5367/27458: 2, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff888101b231b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.5.5369/27463: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.5371/27510: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by kworker/u11:1/27518: 3, on CPU#0:
 #0: ffff8881117ba148 ((wq_completion)hci6){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90003f67c40 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888112204ea0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x242/0x430
locks held by syz.7.5372/27614: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.5378/27631: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.5383/27791: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.5384/27805: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.5386/27807: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.5387/27919: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.5387/27922: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.3.5394/27964: 4, on CPU#1:
 #0: ffff8881b864e6f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff8881d77ba460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88816b4f1480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888103aee968 (kn->active#62){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
locks held by syz.5.5397/27968: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.5397/27969: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.5399/28131: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.5400/28136: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.5400/28137: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.5406/28142: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.5420/28319: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.5420/28320: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.5420/28321: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.5425/28406: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.5426/28407: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz-executor/28413: 1, last CPU#0:
 #0: ffffffff9125e320 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc1d/0x1c30

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 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: 34 Comm: pr/ttyS0 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:io_serial_out+0x7c/0xc0
Code: fe 47 fc 44 89 f9 d3 e5 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 cc 6b be fc 41 03 2e 89 d8 89 ea ee <5b> 41 5c 41 5e 41 5f 5d e9 57 ab 77 06 cc 44 89 f9 80 e1 07 38 c1
RSP: 0018:ffffc90000aa7900 EFLAGS: 00000002
RAX: 0000000000000065 RBX: 0000000000000065 RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00000000000003f8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: ffffffff8580fe40 R12: dffffc0000000000
R13: 0000000000000065 R14: ffffffff9bd81e60 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8882a7c8c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c40acb440 CR3: 000000016dd82000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __serial8250_console_fifo_write+0x1e6/0x3e0
 serial8250_console_write+0xa7e/0x1200
 nbcon_emit_next_record+0xef5/0x1a90
 nbcon_kthread_func+0x6d9/0x8d0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
