INFO: task syz.5.3475:15693 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.3475      state:D stack:24136 pid:15693 tgid:15691 ppid:15514  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17d4/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c1/0x1550
 ptmx_open+0xdc/0x2e0
 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:0x7f3f99b9e159
RSP: 002b:00007f3f9a9a4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f3f99e25fa0 RCX: 00007f3f99b9e159
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f3f99c3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3f99e26038 R14: 00007f3f99e25fa0 R15: 00007ffee0856cd8
 </TASK>
INFO: task syz.2.3501:15864 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.2.3501      state:D stack:28552 pid:15864 tgid:15863 ppid:15559  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17d4/0x5820
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c1/0x1550
 ptmx_open+0xdc/0x2e0
 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:0x7fd58499e159
RSP: 002b:00007fd58578a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd584c25fa0 RCX: 00007fd58499e159
RDX: 0000000000000002 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fd584a3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd584c26038 R14: 00007fd584c25fa0 R15: 00007ffd9b3527a8
 </TASK>

Showing all locks held in the system:
locks held by kworker/0:0/9: 2, last CPU#0:
 #0: ffff888100069d40 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc900000e7c40 ((gc_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by kworker/u8:1/13: 3, on CPU#0:
 #0: ffff888114872140 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000127c40 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff9024ccc0 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
locks held by khungtaskd/35: 1, last CPU#0:
 #0: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5419: 2, on CPU#1:
 #0: ffff8881186210a0 (&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 syz-executor/5573: 2, last CPU#0:
 #0: ffff88810e8f83b8 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x2d8/0x9f0
 #1: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: folio_lruvec_lock_irqsave+0x24/0x550
locks held by kworker/u9:12/10752: 4, last CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000365fc40 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888026b107a0 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xb4/0x420
 #3: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550
locks held by kworker/u9:16/10760: 3, last CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc9000450fc40 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff8881130407a0 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xb4/0x420
locks held by kworker/1:12/14078: 3, on CPU#0:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90004fd7c40 ((work_completion)(&helper->damage_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff888109bc1270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_damage_work+0x15b/0xf20
locks held by syz.4.3432/15316: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_release_struct+0xae/0xd0
locks held by syz.3.3474/15410: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by kworker/u8:0/15602: 2, last CPU#0:
 #0: ffff888115ad8140 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90008667c40 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by syz.5.3475/15693: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.2.3501/15864: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.8.3507/15879: 10, last CPU#0:
 #0: ffff888115bca0f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888033dbc460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff88801cd37480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #3: ffff888103ecb788 (kn->active#110){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #4: ffffffff8ed4e9e0 (console_lock){+.+.}-{0:0}, at: rotate_store+0x2c/0x500
 #5: ffff888109bc1270 (&helper->lock){+.+.}-{4:4}, at: drm_fb_helper_pan_display+0xbe/0xbe0
 #6: ffff888169200128 (&dev->master_mutex){+.+.}-{4:4}, at: drm_master_internal_acquire+0x20/0x80
 #7: ffff888109bc1090 (&client->modeset_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_locked+0x4c/0x4d0
 #8: ffffc900076a7410 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
 #9: ffffc900076a7438 (crtc_ww_class_mutex){+.+.}-{4:4}, at: drm_client_modeset_commit_atomic+0x11a/0x7e0
locks held by syz.0.3563/16337: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.7.3616/16500: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.4.3625/16580: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.1.3650/16700: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.3.3669/16890: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz.6.3673/16901: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.2.3702/17108: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.0.3794/17499: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz.0.3794/17502: 1, on CPU#1:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: tty_open+0x204/0xcc0
locks held by syz-executor/17603: 2, last CPU#0:
 #0: ffff8881e0f78460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: __page_table_check_zero+0x6c/0x430
locks held by kworker/u9:1/17646: 3, last CPU#0:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: raw_spin_rq_lock_nested+0x2d/0x160
 #1: ffff888121024408 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x57/0x7d0
 #2: ffffffff9ac5a9d8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0xb7/0x420
locks held by syz.8.3902/17903: 1, on CPU#0:
 #0: ffffffff8f673520 (tty_mutex){+.+.}-{4:4}, at: ptmx_open+0xdc/0x2e0
locks held by syz-executor/18119: 2, on CPU#0:
 #0: ffffffff907a50b0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff9024ccc0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xc10/0x1c30
locks held by syz.1.3976/18142: 1, on CPU#0:
 #0: ffff8881063c1078 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0x1dd/0x4e0
locks held by syz.1.3976/18143: 3, last CPU#0:
 #0: ffff88810edd4f28 (&dev_instance->mutex){+.+.}-{4:4}, at: __video_do_ioctl+0x473/0xc70
 #1: ffff8881063c1078 (&mm->mmap_lock){++++}-{4:4}, at: __gup_longterm_locked+0x2ec/0x15c0
 #2: ffffffff8ed5c6a0 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240

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

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>
