INFO: task syz.0.3489:21369 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.3489      state:D stack:25576 pid:21369 tgid:21369 ppid:21194  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c4/0x15a0
 tty_release_struct+0xae/0xd0
 tty_release+0xc62/0x1670
 __fput+0x408/0xa40
 fput_close_sync+0x11f/0x240
 filp_close_sync+0x6e/0xa0
 __se_sys_close_range+0xa77/0xef0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fbba259f559
RSP: 002b:00007ffdca5df3d8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: ffffffffffffffda RBX: 00007fbba2827da0 RCX: 00007fbba259f559
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fbba2827da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007fbba2827cb0 R11: 0000000000000246 R12: 00000000000abe3d
R13: 00007fbba282609c R14: 00000000000abb70 R15: 00007fbba2826090
 </TASK>
INFO: task syz.0.3489:21370 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.3489      state:D stack:27080 pid:21370 tgid:21369 ppid:21194  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_install+0x97/0x770
 tty_init_dev+0xd7/0x4d0
 tty_open+0x7de/0xd80
 chrdev_open+0x4d9/0x600
 do_dentry_open+0x80e/0x1360
 vfs_open_consume+0x4a/0x350
 path_openat+0x16fc/0x20f0
 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:0x7fbba255fd8e
RSP: 002b:00007fbba34efb28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fbba34f06c0 RCX: 00007fbba255fd8e
RDX: 0000000000000002 RSI: 00007fbba34efc00 RDI: ffffffffffffff9c
RBP: 00007fbba2636b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbba2826038 R14: 00007fbba2825fa0 R15: 00007ffdca5df278
 </TASK>
INFO: task syz.5.3490:21385 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.5.3490      state:D stack:28584 pid:21385 tgid:21384 ppid:21195  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c4/0x15a0
 tty_open+0x204/0xd80
 chrdev_open+0x4d9/0x600
 do_dentry_open+0x80e/0x1360
 vfs_open_consume+0x4a/0x350
 path_openat+0x16fc/0x20f0
 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:0x7fcdbb15fd8e
RSP: 002b:00007fcdbc126b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcdbc1276c0 RCX: 00007fcdbb15fd8e
RDX: 0000000000000002 RSI: 00007fcdbc126c00 RDI: ffffffffffffff9c
RBP: 00007fcdbb236b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdbb426038 R14: 00007fcdbb425fa0 R15: 00007ffe59d28488
 </TASK>

Showing all locks held in the system:
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 getty/5411: 2, on CPU#1:
 #0: ffff8881795cd0a0 (&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/u8:4/6676: 3, last CPU#0:
 #0: ffff88817657f148 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90003eafc40 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816ac7e1c8 (&hard_iface->bat_iv.ogm_buff_mutex){+.+.}-{4:4}, at: batadv_iv_ogm_schedule+0xd4/0xfc0
locks held by kworker/0:6/6939: 3, on CPU#0:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000409fc40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888111894270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.2.3433/20920: 10, last CPU#0:
 #0: ffff8881194ba6f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff88810e586460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88810e5a8480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888165fb6e18 (kn->active#56){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff8fd4c580 (console_lock){+.+.}-{0:0}, at: rotate_all_store+0x2c/0x630
 #5: ffff888111894270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff8881042c4128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff888111894090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc900042ef410 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc900042ef438 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.0.3489/21369: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_release_struct+0xae/0xd0
locks held by syz.0.3489/21370: 2, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff888176d371b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.5.3490/21385: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.3575/21772: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.7.3588/21784: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.3651/22177: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.3651/22178: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.3719/22576: 4, on CPU#1:
 #0: ffff8881be32a6f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff88816dc10460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff888173f9d480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888165fb6e18 (kn->active#56){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
locks held by syz.3.3720/22578: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.3782/22890: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.3795/22933: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.3851/23187: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.3859/23206: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.3920/23432: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.3926/23467: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.3963/23640: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.3.3975/23690: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80

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

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: 23752 Comm: syz.8.3995 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: 0033:0x7f45186568df
Code: c6 31 c0 e8 83 8c 14 00 48 85 c0 75 26 69 3d dc ed ef 00 b8 0b 00 00 e8 9f 97 14 00 31 f6 bf 3c 00 00 00 31 c0 e8 61 8c 14 00 <eb> fe 0f 1f 80 00 00 00 00 64 c7 04 25 a4 ff ff ff 00 00 00 00 48
RSP: 002b:00007f45196fff00 EFLAGS: 00000217
RAX: 0000000000000000 RBX: 0000000000000058 RCX: 00007f451879f559
RDX: 00007f45197009c8 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f4518836b20 R08: 0000000000000000 R09: 0000000000000058
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4518a26038 R14: 00007f4518a25fa0 R15: 00007ffd1c1c9008
FS:  00007f45197006c0 GS:  0000000000000000
