INFO: task syz.9.848:11209 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.9.848       state:D stack:28584 pid:11209 tgid:11207 ppid:11043  task_flags:0x400140 flags:0x00080002
Call Trace:
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 __down_common+0x3cb/0x8b0
 down+0x7b/0xd0
 console_lock+0x53/0x90
 set_selection_kernel+0x3c/0x17c0
 set_selection_user+0xf8/0x150
 vt_ioctl+0x836/0x20e0
 tty_ioctl+0x920/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a4ad9f559
RSP: 002b:00007f5a4bbf0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5a4b025fa0 RCX: 00007f5a4ad9f559
RDX: 0000200000000180 RSI: 000000000000541c RDI: 0000000000000003
RBP: 00007f5a4ae36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5a4b026038 R14: 00007f5a4b025fa0 R15: 00007ffcc942e7b8
 </TASK>
INFO: task syz.9.848:11213 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.9.848       state:D stack:28808 pid:11213 tgid:11207 ppid:11043  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x874/0x10d0
 down_write+0x1b7/0x200
 tty_set_termios+0x147/0x1800
 set_termios+0x538/0x6c0
 tty_mode_ioctl+0x49c/0x7c0
 tty_ioctl+0x9bd/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a4ad9f559
RSP: 002b:00007f5a4bbcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5a4b026090 RCX: 00007f5a4ad9f559
RDX: 00002000000001c0 RSI: 00000000402c542b RDI: 0000000000000003
RBP: 00007f5a4ae36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5a4b026128 R14: 00007f5a4b026090 R15: 00007ffcc942e7b8
 </TASK>
INFO: task syz.9.848:11216 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.9.848       state:D stack:26664 pid:11216 tgid:11207 ppid:11043  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
 paste_selection+0x117/0x760
 vt_ioctl+0x836/0x20e0
 tty_ioctl+0x920/0xde0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a4ad9f559
RSP: 002b:00007f5a4bbae028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5a4b026180 RCX: 00007f5a4ad9f559
RDX: 0000200000000240 RSI: 000000000000541c RDI: 0000000000000003
RBP: 00007f5a4ae36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5a4b026218 R14: 00007f5a4b026180 R15: 00007ffcc942e7b8
 </TASK>
INFO: task syz.0.850:11316 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.0.850       state:D stack:24264 pid:11316 tgid:11313 ppid:11165  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:0x7fa4b075fd8e
RSP: 002b:00007fa4b1594b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fa4b15956c0 RCX: 00007fa4b075fd8e
RDX: 0000000000000002 RSI: 00007fa4b1594c00 RDI: ffffffffffffff9c
RBP: 00007fa4b0836b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa4b0a26218 R14: 00007fa4b0a26180 R15: 00007fff86762b48
 </TASK>

Showing all locks held in the system:
locks held by pr/ttyS0/35: 2, last CPU#0:
 #0: ffffffff8fc33e18 (console_srcu){....}-{0:0}, at: console_srcu_read_lock+0x30/0x60
 #1: ffffffff9bd81e38 (&port_lock_key){-...}-{3:3}, at: univ8250_console_device_lock+0x67/0xc0
locks held by khungtaskd/36: 1, last CPU#1:
 #0: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by kworker/u10:4/67: 2, last CPU#1:
 #0: ffff888032008148 ((wq_completion)wg-kex-wg2#75){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90001797c40 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by getty/5417: 2, on CPU#1:
 #0: ffff888116e110a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034932e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/u8:3/5637: 3, last CPU#0:
 #0: ffff8881127af948 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004bcfc40 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8880221b61c8 (&hard_iface->bat_iv.ogm_buff_mutex){+.+.}-{4:4}, at: batadv_iv_ogm_schedule+0xd4/0xfc0
locks held by kworker/0:6/5672: 3, on CPU#0:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004dcfc40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88817c7ca258 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x1fd/0x3b0
locks held by kworker/u10:6/7479: 3, last CPU#1:
 #0: ffff8881000ac148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000417fc40 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88819efb0800 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xb4/0x420
locks held by kworker/1:10/10224: 4, last CPU#1:
 #0: ffff88810006ad48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900064b7c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffc900064b7770 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_atomic_helper_dirtyfb+0x106/0xfd0
 #3: ffffc900064b7798 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_atomic_helper_dirtyfb+0x106/0xfd0
locks held by syz.2.829/10752: 4, on CPU#1:
 #0: ffff88801cafc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff88801cafc128 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write+0x1e2/0xa20
 #2: ffff88801cafc2c8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1f2/0x1230
 #3: ffffc90003ee3370 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x664/0x1230
locks held by syz.5.836/10927: 6, on CPU#0:
 #0: ffffffff8fd4c580 (console_lock){+.+.}-{0:0}, at: vt_ioctl+0x1d06/0x20e0
 #1: ffff888118980a70 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #2: ffff88811a4d8128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #3: ffff888118980890 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #4: ffffc900063e7590 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #5: ffffc900063e75b8 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.9.848/11209: 1, on CPU#0:
 #0: ffffffff90691300 (vc_sel.lock){+.+.}-{4:4}, at: set_selection_kernel+0x37/0x17c0
locks held by syz.9.848/11213: 2, on CPU#0:
 #0: ffff88801cafc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffff88801cafc2c8 (&tty->termios_rwsem){++++}-{4:4}, at: tty_set_termios+0x147/0x1800
locks held by syz.0.850/11316: 2, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
 #1: ffff88816efb61b0 (&tty->legacy_mutex){+.+.}-{4:4}, at: tty_init_dev+0x74/0x4d0
locks held by syz.1.854/11444: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.3.855/11553: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.858/11634: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.863/11746: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.864/11745: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.864/11749: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.868/11809: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.870/11945: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.876/11981: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.880/12051: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.885/12118: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.882/12139: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.3.888/12192: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.892/12283: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.892/12285: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.7.892/12286: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.6.893/12306: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.2.896/12363: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.4.899/12445: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.898/12462: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.898/12463: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.898/12464: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.5.898/12465: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.8.900/12511: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.9.901/12574: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.0.902/12609: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.1.909/12682: 1, on CPU#1:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz.3.907/12703: 1, on CPU#0:
 #0: ffffffff90689120 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xd80
locks held by syz-executor/12706: 1, last CPU#0:
 #0: ffffffff8fd5a360 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 36 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+0xfd2/0x1030
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 Comm: pr/ttyS0 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: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 bc 6b be fc 41 03 2e 89 d8 89 ea ee <5b> 41 5c 41 5e 41 5f 5d e9 47 ab 77 06 cc 44 89 f9 80 e1 07 38 c1
RSP: 0018:ffffc90000ab7900 EFLAGS: 00000002
RAX: 000000000000002e RBX: 000000000000002e RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00000000000003f8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: ffffffff8580fe50 R12: dffffc0000000000
R13: 000000000000002e R14: ffffffff9bd81e60 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88818c48c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f04677ae440 CR3: 000000001ca3a000 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>
